Author |
Message |
Pantera1993
Joined: Wed Jul 06, 2011 5:11 pm Posts: 226
|
Prevent grenades from exploding on actors death
Alright so, I have the grenades as GetsHitByMos = 1 so they are recognized by lua, but when the actor that dies has one in it's inventory, it explodes violently all over the place.
Is there a fix to this problem?
|
Thu Sep 15, 2011 9:22 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Prevent grenades from exploding on actors death
Have the explosion on an MOSRotating that is spawned by a script on the grenade based on a timer.
So if the grenade gets destroyed before the timer goes off, no explosion.
|
Thu Sep 15, 2011 9:29 pm |
|
|
Gotcha!
Joined: Tue Apr 01, 2008 4:49 pm Posts: 1972 Location: The Netherlands
|
Re: Prevent grenades from exploding on actors death
Yes and no. You'll have to set ActivatesWhenReleased = 1 to ActivatesWhenReleased = 0 in the TDExplosive's .ini file. This keeps it from exploding spontaneously after an actor's death. Keep in mind though, when some actor uses its big butt to push a grenade into the ground it'll most likely go off no matter what you try to do about it.
|
Thu Sep 15, 2011 9:30 pm |
|
|
Azukki
Joined: Sat Nov 03, 2007 9:44 pm Posts: 1916 Location: Flint Hills
|
Re: Prevent grenades from exploding on actors death
Gotcha! wrote: Keep in mind though, when some actor uses its big butt to push a grenade into the ground it'll most likely go off no matter what you try to do about it. While that was fun, it's not always the case now. Look at the new grenades, they have gibs, and separately, they have script initiated explosions that don't happen when they gib, which is what CC48 was talking about. This was also possible to achieve with emitters, in the past.
|
Fri Sep 16, 2011 6:30 am |
|
|
Pantera1993
Joined: Wed Jul 06, 2011 5:11 pm Posts: 226
|
Re: Prevent grenades from exploding on actors death
The ActivatesWhenReleased = 0 thing worked to solve the issue with the grenades exploding on death, now they just go off when they're touched by nearly anything. I guess I'll try setting the GibImpulseLimit super high, and see how that turns out.
|
Wed Sep 21, 2011 11:36 pm |
|
|
Emogotsaone
Joined: Mon Mar 07, 2011 2:18 am Posts: 717
|
Re: Prevent grenades from exploding on actors death
CaveCricket48 wrote: Have the explosion on an MOSRotating that is spawned by a script on the grenade based on a timer.
So if the grenade gets destroyed before the timer goes off, no explosion. I think that's lame. I would much rather shoot a grenade in someones had and blow em up.
|
Wed Sep 21, 2011 11:58 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Prevent grenades from exploding on actors death
Then don't use what I said. Problem solved.
|
Thu Sep 22, 2011 12:20 am |
|
|
Emogotsaone
Joined: Mon Mar 07, 2011 2:18 am Posts: 717
|
Re: Prevent grenades from exploding on actors death
CaveCricket48 wrote: Then don't use what I said. Problem solved. I'm making a sly game suggestion.
|
Thu Sep 22, 2011 12:38 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Prevent grenades from exploding on actors death
Abdul made that change, not me.
|
Thu Sep 22, 2011 12:44 am |
|
|
|