Restoring OrdnanceCollision

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
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Restoring OrdnanceCollision

Post by [RDH]Zerted »

I thought I knew how to do this, but I don't.

Through the lua, I've changed the shield ODFs to allow you to shoot through them, but now I can't get them to block shots again. To get fire-through, I changed OrdnanceCollision's value to "CLEAR". What should I set it back too inorder for it to work as before?

The shield ODFs I'm working on:
all_cap_rebelcruiser_shield
cis_fedcruiser_shield_blue
rep_assultship_shield_red
imp_cap_stardestroyer_shield
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Restoring OrdnanceCollision

Post by Maveritchell »

OrdnanceCollision = geometryname, none, clear

Put the shield's geometry back in there, I'd wager.
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: Restoring OrdnanceCollision

Post by FragMe! »

If it helps here are the collision names for each ship

all_cap_rebelcruiser_shield p_-so-_shield2
cis_fedcruiser_shield_blue collision1 and collision9
rep_assultship_shield_red collision2
imp_cap_stardestroyer_shield collision1
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Restoring OrdnanceCollision

Post by AceMastermind »

[RDH]Zerted wrote:What should I set it back to in order for it to work as before?
Remove that line from your odf
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Restoring OrdnanceCollision

Post by Maveritchell »

AceMastermind wrote:
[RDH]Zerted wrote:What should I set it back to in order for it to work as before?
Remove that line from your odf
I think he's modifying them dynamically ingame, not pre-munge.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Restoring OrdnanceCollision

Post by [RDH]Zerted »

Yeah, I'm doing this dynamically ingame in an attempt to turn it into a FakeConsole command. I've tried these for imp_cap_stardestroyer_shield and they don't seem to work:
""
"imp_cap_stardestroyer_shield"
"imp_cap_stardestroyer_shield.msh"
"geometryname"
"GEOMETRYNAME"
"collision1"

In addition, I have been killing/respawning the prop when I attempt to change it:

Code: Select all

local location = GetEntityMatrix("IMP_CAP_STARDESTROYER_SHIELD")
DeleteEntity("IMP_CAP_STARDESTROYER_SHIELD")
CreateEntity("imp_cap_stardestroyer_shield", location, "IMP_CAP_STARDESTROYER_SHIELD")
Any other ideas?
Post Reply