Collision Boxes

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
Astute
Rebel Colonel
Rebel Colonel
Posts: 566
Joined: Tue Apr 12, 2005 7:03 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Collision Boxes

Post by Astute »

I'm trying to create collision boxes that only block certain objects and units. I've looked at the hangar shields on the space maps, but I can't seem to find out how they work. I decided to try something like this.

[GameObjectClass]

ClassLabel = "prop"
GeometryName = "com_inv_col_64ed.msh"


[Properties]

GeometryName = "com_inv_col_64"
OrdnanceCollision = "none"
SoldierCollision = "none"

I hoped that this would block vehicles, but allow soldiers to pass through. It seems as if nothing happened, vehicles and soldiers are still blocked, and ordinance still passes through. Anyone have a better method, or the answer as to how the hangar shields work?
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Collision Boxes

Post by Qdin »

try to look in the shields for Pollis Massa - those barriers blocks infantry too... I know you want the opposite of that, but we gotta start somewhere :P
User avatar
Dragonum
2nd Lieutenant
2nd Lieutenant
Posts: 405
Joined: Tue Nov 16, 2004 4:08 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Dragonum »

you find this in a odf for a shild in space and in the polis massa

VehicleCollision = "CLEAR"


you can go through the shild with vehicles only

i found another one where you find this

SoldierCollision = "CLEAR"

now (if you add the second line) you can through the shild with both, vehicles and soldiers
Astute
Rebel Colonel
Rebel Colonel
Posts: 566
Joined: Tue Apr 12, 2005 7:03 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Astute »

Well, I decided to just use the hangar shields and modify them to block vehicles. It appears that the hangar shields have something about their mesh that allows them to use "CLEAR" and "none" as properties for collision. This will not work on anything else.
Post Reply