Collision problem with vehicle?

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
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Collision problem with vehicle?

Post by skelltor »

ok so I am adding new vehicles but one is now a ghost vehicle as it will drive through units with no damage to them and ordence does not damage and passes through it. how do I fix this?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: ghost vehicles?

Post by AQT »

Sounds like you didn't set up collision properties for it. For example, from the stock all_hover_combatspeeder.odf:
Hidden/Spoiler:
[code]SoldierCollision = "CollisionMesh"
SoldierCollision = "p_cube1"
SoldierCollision = "p_cube2"
SoldierCollision = "p_cube3"
SoldierCollision = "p_cube4"

OrdnanceCollision = "CollisionMesh"
OrdnanceCollision = "p_cube1"
OrdnanceCollision = "p_cube2"
OrdnanceCollision = "p_cube3"
OrdnanceCollision = "p_cube4"

TerrainCollision = "p_sphere1"
TerrainCollision = "p_sphere2"
TerrainCollision = "p_sphere3"
TerrainCollision = "p_sphere4"
TerrainCollision = "p_sphere5"
TerrainCollision = "p_sphere6"

VehicleCollision = "p_sphere1"
VehicleCollision = "p_sphere2"
VehicleCollision = "p_sphere3"
VehicleCollision = "p_sphere4"
VehicleCollision = "p_sphere5"
VehicleCollision = "p_sphere6"

BuildingCollision = "p_box"[/code]
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: ghost vehicles?

Post by skelltor »

will the name ie p_sphere1 be different for all vehicles?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: ghost vehicles?

Post by Fiodis »

Could be. Open up the msh file and find out.
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: ghost vehicles?

Post by FragMe! »

Are these vehicles you created in and are just trying to put in game?
If they are you will need to add collision primitives to your model prior to export.

If these are previously made models then you will have to as suggested to do a search of the
msh file for anything that should have p_ somewhere in the name.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: ghost vehicles?

Post by skelltor »

they are the swamp speeder from the convo pack and the stock republic fightertank
Post Reply