Selective collision

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
Splat
Private Second Class
Posts: 74
Joined: Mon Oct 20, 2008 4:10 pm

Selective collision

Post by Splat »

does anyon know how to make it so a cirtain object only collides with people and not ships, so it is something like the hangar shields in the space maps?
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: selective collision

Post by Frisbeetarian »

If you have an example of something that does what you want, why don't you just look up that something (the hanger shield in this case) in the assets and see what it uses?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: selective collision

Post by DarthD.U.C.K. »

this is done via prefixes for the collision in xsi
the most collisionprimitives are called p_-svbot-xxx
the charachters stand for different colisiontypes:
s-soldier
v-vehicle
b-building
o-ordnance
t-terrain

you can have various collisions for various types via the prefixes, like p_-sbot or p_-so would be the prefixes for the hangarshields

there are also odf-lines that can qassign primitives to collisiontypes but i think they are overwritten by the prefixes..
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: selective collision

Post by Frisbeetarian »

Instead of telling him all that, you could have just referred him to the art_guide.doc.

I can't speak as to whether or not collision primitives override the ODF lines (I referred him to the one that he needs in the first reply), but I do know that it would be best to test the ODF lines first instead of importing an object into XSI, redoing the collision, then having someone export it with the full version.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: selective collision

Post by DarthD.U.C.K. »

why is it bad to tell him this? posts not words are counted :roll:


the shield uses the prefixes an no odf-commands by the way

i think splat has the full version of xsi or atleast someone who can export stuff for him
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: selective collision

Post by FragMe! »

If he is creating objects from scratch then doing it in XSI is the better way.
If using stock models then you can put parameters in the odf like:
VehicleCollision = "none" that will make it so the object does not have vehicle. collision.
You would do that in the odf of the object you do not want to collide with not the vehicles odf. BTW this would affect flyers as well as any other vehicle.
You can do the same thing for Soldier, Ordnance and Building collisions, wouldn't recommend it for terrain or you will be under your map.
Splat
Private Second Class
Posts: 74
Joined: Mon Oct 20, 2008 4:10 pm

Re: selective collision

Post by Splat »

thx, so i would have to name the collision in xsi p-vbot-xxx? That would allow flyers through?
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: selective collision

Post by FragMe! »

it would be p_-sbot-somename

given what D.U.C.K. said earlier v is for vehicle so it cannot be in the name.

also make sure you understand what you can and cannot do with primitives when it comes to sizing and scaling, only cubes can be scaled the others have to be done in the pop up creation box. And do not freeze a primitive, this means for both transforms and model if you do it loses it's pimitiveness and will not work properly in game.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: selective collision

Post by Frisbeetarian »

FragMe! wrote:If he is creating objects from scratch then doing it in XSI is the better way.
If using stock models then you can put parameters in the odf
Agreed, I was assuming that he was talking about using stock models, my mistake.
DarthD.U.C.K. wrote:the shield uses the prefixes an no odf-commands by the way
Wrong:
imp_cap_stardestroyer_shield.odf
cis_fedcruiser_shield_blue.odf
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: selective collision

Post by AceMastermind »

DarthD.U.C.K. wrote:...the characters stand for different collisiontypes:
s-soldier
v-vehicle
b-building
o-ordnance
t-terrain
You forgot one(undocumented):
f-flag
Allows flyers to pick up the flag like in space ctf, this one is used alone in stock examples.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Selective collision

Post by DarthD.U.C.K. »

Frisbeetarian wrote:
DarthD.U.C.K. wrote:the shield uses the prefixes an no odf-commands by the way
Wrong:
imp_cap_stardestroyer_shield.odf
cis_fedcruiser_shield_blue.odf
Right:
all_cap_rebelcruiser_shield.odf
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Selective collision

Post by Frisbeetarian »

...which is not used, check ZE.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Selective collision

Post by DarthD.U.C.K. »

you are right 0.o
wierd that i opened the only shield odf and msh thats has primitivecollision and ist unse dingame
Post Reply