Page 1 of 1

Unit shoots when dies? How

Posted: Sun Mar 09, 2008 1:26 pm
by woner11
Is it possible that when a unit dies it shoots out like a cicle of shots or something?

Re: Death

Posted: Sun Mar 09, 2008 1:27 pm
by Grev
I believe that would require new anims.

Re: Death

Posted: Sun Mar 09, 2008 1:28 pm
by Taivyx
I'm going to go ahead and say that it's not possible, as it requires that a certain weapon be shot upon death, and as far as I know, it's hardcoded that the player has to press something to fire a weapon.

Re: Death

Posted: Sun Mar 09, 2008 1:33 pm
by woner11
Could I have it drop a timebomb or something with one second timer and that shoots shots out in a circle with the explosion?

Re: Death

Posted: Sun Mar 09, 2008 2:30 pm
by [RDH]Zerted
You could try using CreateEntity() at the player's location (matrix) to create and place the bomb when the player dies. Theres an example of CreateEntity() being used in the Vehicle Mode topic in the SWBF1 Pack forum.

Re: Death

Posted: Sun Mar 09, 2008 7:48 pm
by Maveritchell
Ack, no need for something that complicated. All you need to do is make an explosion for the unit.

Re: Death

Posted: Sun Mar 09, 2008 8:15 pm
by woner11
Like your bomb guy. How do I do that? What do I need to type in for the probability section of what the unit leaves behind? Would a time bomb with 1 second work, or zero seconds?

Re: Death

Posted: Sun Mar 09, 2008 8:36 pm
by Fingerfood
0 Seconds would make it stay there forever...
Try like 0.1 or a different weapon. (grenade, detpack)

Re: Death

Posted: Mon Mar 10, 2008 12:28 am
by woner11
Thanks! One last question though, could you make it so that it has a chance to miss you when it explodes, or so that you can dodge?

Re: Death

Posted: Mon Mar 10, 2008 6:49 am
by Maveritchell
woner11 wrote:Like your bomb guy. How do I do that? What do I need to type in for the probability section of what the unit leaves behind? Would a time bomb with 1 second work, or zero seconds?
Uh, what? There's no ordnance involved (time bomb?). The "probability" you'd set would be the chunkfrequency (for which you need to have added chunk sections). Set it to 1.0. For an example you can check out the cis_inf_default. It has an explosionname (just like weapons) and a chunkfrequency.

Re: Death

Posted: Mon Mar 10, 2008 10:41 pm
by woner11
Thanks a bunch.