RuneStorm
http://www.runestorm.com/forums/

Sticky grenades And grenade related stuff...
http://www.runestorm.com/forums/viewtopic.php?f=69&t=74682
Page 1 of 1

Author:  Glosmostinex [ Sat Aug 02, 2008 11:09 pm ]
Post subject:  Sticky grenades And grenade related stuff...

I want to make a grenade that sticks in the characters. i found in the ballisticGrenade(at bcore) this:

Code:
class BallisticGrenade extends BallisticProjectile;

var() enum EDetonateType            // Different ways that grenade can detonate
{
   DT_Timer,               // Detonate when timer runs out
   DT_Impact,               // Detonate on impact
   DT_ImpactTimed,            // Detonate on timer that only starts on impact
   DT_None                  // Don't use normal detonation
} DetonateOn;

var() enum EPlayerImpactType         // Different ways that grenade can impact with players
{
   PIT_Bounce,               // Bounce off players
   PIT_Detonate,            // Detonate
   PIT_Stick               // Stick to players
} PlayerImpactType;


Does the ballistic grenades use those PIT_something to say if this grenade will bounce/stick/detonate? i also searched if the pinneapple used this PIT_bounce, but there is no reference to this in its code.(I think)
And Kab, you used the DT_impact on your gas grenade?

Author:  Captain Xavious [ Sun Aug 03, 2008 4:33 pm ]
Post subject:  Re: Sticky grenades And grenade related stuff...

Yeah, the PIT thingy determines what it does on contact. I think I messed around with it a bit, has a lot of cool stuff you could do with it, like recreate exact functional duplicates of the Halo greandes if you wanted to.

Author:  Glosmostinex [ Sun Aug 03, 2008 9:02 pm ]
Post subject:  Re: Sticky grenades And grenade related stuff...

where i put the PIT_sticky in a grenade? :blush:

Author:  Captain Xavious [ Sun Aug 03, 2008 10:12 pm ]
Post subject:  Re: Sticky grenades And grenade related stuff...

It'd be a default property, I beleive either PlayerImpactType or EPlayerImpactType=PIT_whatever

Author:  Glosmostinex [ Fri Aug 08, 2008 10:47 pm ]
Post subject:  Re: Sticky grenades And grenade related stuff...

ok, the sticky Partly works...
the PIT detonate works well, but the stick don't worked very well.
sometimes it stickied in the leg, but It's very difficult to stick it. even if it touch the victim, it doesn't attach to it. :scratch:
and when stickied, the explosion don't appears :glare:

Author:  Captain Xavious [ Sat Aug 09, 2008 9:36 am ]
Post subject:  Re: Sticky grenades And grenade related stuff...

Ah, well, you must consider that this is probably still quite experimental and wasn't tested very thoroughly. But I thought I seen a property that determined how sticky the grenade was. Might have to look into a different class or something for it though.

Author:  Glosmostinex [ Sat Aug 09, 2008 11:17 am ]
Post subject:  Re: Sticky grenades And grenade related stuff...

or the bots kicked the grenade before impact :P
It's MinStickVelocity or something?

Author:  Captain Xavious [ Sun Aug 10, 2008 8:14 pm ]
Post subject:  Re: Sticky grenades And grenade related stuff...

Yeah, that sounds about right.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/