Collision Regions

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Collision Regions

Post by MandeRek »

Since the EYNThread doesn't work atm, i ask it here..

How do i add collision regions to my maps? I want a region to be not-accesable for certain things..

Actually, i just need a block, where soldiers can go through, but vehicles can't, and i need a block where nothing can go through.. The block needs to be invisible.. Can someone help? :?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3284
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Collision Regions

Post by AceMastermind »

There are some invisible objects already in the modtools that you can place in your map, you can enable or disable the different collision types in the odf.
Example
SoldierCollision = "none" or "CLEAR"
means soldiers will not collide with this object and can go through it, you can do the same with vehicle and ordnance collision also.


BF2_ModTools\data_ABC\Common\odfs
com_inv_col_8.odf
com_inv_col_16.odf
com_inv_col_32.odf
com_inv_col_64.odf
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Collision Regions

Post by Caleb1117 »

AceMastermind wrote:There are some invisible objects already in the modtools that you can place in your map, you can enable or disable the different collision types in the odf.
Example
SoldierCollision = "none" or "CLEAR"
means soldiers will not collide with this object and can go through it, you can do the same with vehicle and ordnance collision also.


BF2_ModTools\data_ABC\Common\odfs
com_inv_col_8.odf
com_inv_col_16.odf
com_inv_col_32.odf
com_inv_col_64.odf
Offtopic: Ace, is it possable to do OrdnaceCollision = "CLEAR", and it allow shooting through and object's collision, on a already exported model.

I have a model with a extra tall collision, so people can't go over it, but you can't shoot through it. (I made it before I knew how to use: "collision_-svb-collision")
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3284
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Collision Regions

Post by AceMastermind »

Caleb1117 wrote:...is it possible to do OrdnanceCollision = "CLEAR", and it allow shooting through and object's collision, on a already exported model.
Yep, i've used it with objects that I exported and it worked fine.
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: Collision Regions

Post by MandeRek »

Great, thanks! This is all i needed! :D
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: Collision Regions

Post by Taivyx »

Maybe I'm missing something, but can't you just use barriers? :?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Collision Regions

Post by Maveritchell »

Taivyx wrote:Maybe I'm missing something, but can't you just use barriers? :?
Barriers =/= collision. Barriers only mean anything to AI.
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: Collision Regions

Post by Taivyx »

Ah okay
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Collision Regions

Post by jedimoose32 »

AceMastermind wrote: com_inv_col_8.odf
com_inv_col_16.odf
com_inv_col_32.odf
com_inv_col_64.odf
Is there a difference between these (just curious because I need to use something like this too)?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Collision Regions

Post by FragMe! »

They are cubes of different sizes as the number indicates so com_inv_col_8 would be a cube that is 8 x 8 x 8 units.
2 units @ the height of a standard soldier
Post Reply