Data Realms Fan Forums http://45.55.195.193/ |
|
need help with contact detonation grenades http://45.55.195.193/viewtopic.php?f=1&t=15119 |
Page 1 of 1 |
Author: | Eviltebor [ Mon Jun 01, 2009 6:28 pm ] |
Post subject: | 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. |
Author: | Metal Meltdown [ Mon Jun 01, 2009 6:37 pm ] |
Post subject: | 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. |
Author: | Duh102 [ Mon Jun 01, 2009 6:54 pm ] |
Post subject: | Re: need help with contact detonation grenades |
TDExplosive, GlobalAccScalar = 0, AngularVel = 0, GibImpulseLimit = 0.001. Those are the important parts. |
Author: | Eviltebor [ Tue Jun 02, 2009 5:50 pm ] |
Post subject: | 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. |
Author: | Duh102 [ Tue Jun 02, 2009 7:28 pm ] |
Post subject: | 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 |
Author: | Eviltebor [ Wed Jun 10, 2009 8:30 pm ] |
Post subject: | Re: need help with contact detonation grenades |
it worked ty |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |