View unanswered posts | View active topics It is currently Thu Jan 09, 2025 11:48 pm



Reply to topic  [ 6 posts ] 
 need help with contact detonation grenades 
Author Message

Joined: Sun May 31, 2009 6:49 pm
Posts: 69
Reply with quote
Post need help with contact detonation grenades
I want to make a grenade that flies alone in a straight line and detonates as soon as it hits anything? Any idea how i can achieve this? It also needs to not rotate.


Mon Jun 01, 2009 6:28 pm
Profile
Banned
User avatar

Joined: Thu May 14, 2009 9:22 pm
Posts: 826
Location: Lookin' forward to mocking people on Jan 1st 2013.
Reply with quote
Post Re: need help with contact detonation grenades
You want to make a throwable rocket, right?
You could make it emit particles like a rocket once thrown, and set its gibimpulselimit low so that it would blow up on impact.
Or you could throw an emitter that shoots a rocket with the grenade's sprite forward.


Mon Jun 01, 2009 6:37 pm
Profile YIM
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: need help with contact detonation grenades
TDExplosive, GlobalAccScalar = 0, AngularVel = 0, GibImpulseLimit = 0.001.
Those are the important parts.


Mon Jun 01, 2009 6:54 pm
Profile

Joined: Sun May 31, 2009 6:49 pm
Posts: 69
Reply with quote
Post Re: need help with contact detonation grenades
GlobalAccScalar doesn't seem to exist (searched the wiki) and can you please provide an example of where to use AngularVel to stop the actually grenade rotating.


Tue Jun 02, 2009 5:50 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: need help with contact detonation grenades
Code:
AddAmmo = TDExplosive
(tab)PresetName = Zero G Bomb
(insert most TDExplosive code here)
(tab)GlobalAccScalar = 0
(tab)AngularVel = 0
(tab)GibImpulseLimit = 0.01


Tue Jun 02, 2009 7:28 pm
Profile

Joined: Sun May 31, 2009 6:49 pm
Posts: 69
Reply with quote
Post Re: need help with contact detonation grenades
it worked ty


Wed Jun 10, 2009 8:30 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: Google [Bot]


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.034s | 16 Queries | GZIP : Off ]