View unanswered posts | View active topics It is currently Sun Jun 16, 2024 4:11 am



Reply to topic  [ 9 posts ] 
 Prevent grenades from exploding on actors death 
Author Message
User avatar

Joined: Wed Jul 06, 2011 5:11 pm
Posts: 226
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post 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
Profile
User avatar

Joined: Wed Jul 06, 2011 5:11 pm
Posts: 226
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Mar 07, 2011 2:18 am
Posts: 717
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post Re: Prevent grenades from exploding on actors death
Then don't use what I said. Problem solved.


Thu Sep 22, 2011 12:20 am
Profile
User avatar

Joined: Mon Mar 07, 2011 2:18 am
Posts: 717
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post Re: Prevent grenades from exploding on actors death
Abdul made that change, not me. :P


Thu Sep 22, 2011 12:44 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.029s | 15 Queries | GZIP : Off ]