Page 1 of 1

Restoring OrdnanceCollision

Posted: Sun Jan 20, 2008 8:04 pm
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

Re: Restoring OrdnanceCollision

Posted: Sun Jan 20, 2008 8:19 pm
by Maveritchell
OrdnanceCollision = geometryname, none, clear

Put the shield's geometry back in there, I'd wager.

Re: Restoring OrdnanceCollision

Posted: Sun Jan 20, 2008 8:24 pm
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

Re: Restoring OrdnanceCollision

Posted: Sun Jan 20, 2008 8:48 pm
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

Re: Restoring OrdnanceCollision

Posted: Sun Jan 20, 2008 8:53 pm
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.

Re: Restoring OrdnanceCollision

Posted: Sun Jan 20, 2008 9:46 pm
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?