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
Restoring OrdnanceCollision
Moderator: Moderators
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Restoring OrdnanceCollision
OrdnanceCollision = geometryname, none, clear
Put the shield's geometry back in there, I'd wager.
Put the shield's geometry back in there, I'd wager.
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: Restoring OrdnanceCollision
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
all_cap_rebelcruiser_shield p_-so-_shield2
cis_fedcruiser_shield_blue collision1 and collision9
rep_assultship_shield_red collision2
imp_cap_stardestroyer_shield collision1
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Restoring OrdnanceCollision
Remove that line from your odf[RDH]Zerted wrote:What should I set it back to in order for it to work as before?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Restoring OrdnanceCollision
I think he's modifying them dynamically ingame, not pre-munge.AceMastermind wrote:Remove that line from your odf[RDH]Zerted wrote:What should I set it back to in order for it to work as before?
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Restoring OrdnanceCollision
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:
Any other ideas?
""
"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")