Unit shoots when dies? How

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Unit shoots when dies? How

Post by woner11 »

Is it possible that when a unit dies it shoots out like a cicle of shots or something?
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Death

Post by Grev »

I believe that would require new anims.
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: Death

Post 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.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Death

Post 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?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Death

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Death

Post by Maveritchell »

Ack, no need for something that complicated. All you need to do is make an explosion for the unit.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Death

Post 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?
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: Death

Post by Fingerfood »

0 Seconds would make it stay there forever...
Try like 0.1 or a different weapon. (grenade, detpack)
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Death

Post 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?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Death

Post 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.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Death

Post by woner11 »

Thanks a bunch.
Post Reply