Unit shoots when dies? How
Moderator: Moderators
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Unit shoots when dies? How
Is it possible that when a unit dies it shoots out like a cicle of shots or something?
-
Taivyx
- 2008 Best Games Related Avatar
- Posts: 1706
- Joined: Thu Jun 07, 2007 3:34 pm
- Projects :: Terra Strife - discontinued
- xbox live or psn: No gamertag set
- Contact:
Re: Death
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.
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Death
Could I have it drop a timebomb or something with one second timer and that shoots shots out in a circle with the explosion?
- [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: Death
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.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Death
Ack, no need for something that complicated. All you need to do is make an explosion for the unit.
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Death
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?
-
Fingerfood
- Sith

- Posts: 1262
- Joined: Fri Nov 30, 2007 9:40 pm
Re: Death
0 Seconds would make it stay there forever...
Try like 0.1 or a different weapon. (grenade, detpack)
Try like 0.1 or a different weapon. (grenade, detpack)
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Death
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?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Death
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.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?

