View previous topic :: View next topic |
Author |
Message |
redrum

Joined: 28 Mar 2007 Posts: 367 Location: Long Island, New York
|
Posted: Sat Jan 12, 2008 3:54 am Post subject: Land Mines |
|
|
Guys, I want to change how the GL works.
You know when you miss with it, the grenade will eventually blow up. I want to change it so that it will only blow up when some one "steps" on it.
Any help would be appreciated  _________________ Welcome to the Overlook Hotel 69.113.123.178:27500 |
|
Back to top |
|
 |
venomus
Joined: 24 May 2005 Posts: 44
|
Posted: Sat Jan 12, 2008 4:21 pm Post subject: |
|
|
Something like:
Code: |
Grenade :: Spawn ()
{
self.think = GrenadeThink ();
self.nextthink = time + 0.1;
}
GrenadeThink ()
{
if (self.velocity = '0 0 0')
{
self.think = sub_Null();
self.touch = explode ();
}
self.nextthink = time + 0.1;
}
|
|
|
Back to top |
|
 |
Entar

Joined: 05 Nov 2004 Posts: 422 Location: At my computer
|
|
Back to top |
|
 |
|