Page 1 of 1

Weapons Questions

Posted: Wed Jan 24, 2007 6:48 pm
by authraw
I am now working on modding the weapons of my troops in my map, but there are a few issues that I'm not sure how to address:

1. Is it possible to get a gun to dissolve enemies like the incinerator? Like, I want to take the MagnaGuard's Bulldog RLR and have enemies dissolve when the bullets hit them (instead of falling over). How would I go about doing this? Here's my cis_weap_inf_bulldog_ord.odf:

Code: Select all

[OrdnanceClass]
ClassParent         = "com_weap_inf_bulldog_ord"

[Properties]
GeometryName        = "com_weap_missile"

TrailEffect         = "com_sfx_exhaust_xwing"
LightColor              = "250 18 220 150"
LightRadius             = "4.0"

ExplosionName           = "cis_weap_inf_bulldog_exp"
Explosion           =  "all_weap_inf_incinerator_exp"

OrdnanceSound = "cis_weap_inf_bulldog_ordnance"
2. I am trying to make a self-destruct weapon, but I'm not sure where to start. I have two ideas of how I could get it to work:
-It could be a gun that, when fired, makes a large explosion centered on the character and then immediately overheats (and stays that way). Without having friendly fire on, it wouldn't end up killing the character, but it could only be used once per spawn.
-More ideally, it would be triggered as soon as the character dies. Again, there is an explosion centered on the character upon its death.

I'm really at a loss for what else to try. These two problems have been plaguing me for awhile and I can't seem to figure them out.

Thanks!

RE: Weapons Questions

Posted: Wed Jan 24, 2007 9:49 pm
by [RDH]Zerted
You can do 1, but I can't tell you what needs to be changed to make it happen.

For 2, the weapon would be like the recon droid, just with no movement and an instant explosion. In order to kill the player with FF off, you need to go into the Lua and set it so when a character drops/uses/fires the remote controllable, self-destruct object that character is instantly killed.

For the second part of two, if you want the unit to blow up only when it dies and is holding that weapon, I can't help you. If you want the unit to blow up no matter what weapon is being held, use OnCharacterDeath(). If the dead unit's class matches the class of units you want to explode, you can try spawning the self-destruct ordiance at the dead unit's location (matrix methods. Search for the Teleport topic). That may or may not work, I haven't never tried it.