Land Mines
Moderator: InsideQC Admins
3 posts
• Page 1 of 1
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
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: The-Overlook-Hotel.game-server.cc
-

redrum - Posts: 410
- Joined: Wed Mar 28, 2007 11:35 pm
- Location: Long Island, New York
Something like:
- Code: Select all
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;
}
- venomus
- Posts: 41
- Joined: Tue May 24, 2005 4:54 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
