Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Land Mines

| Inside3d Forums Forum Index -> QuakeC Programming

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 |

Posted: Sun Jan 13, 2008 12:32 am Post subject: |

venomus wrote:

Code:
Grenade :: Spawn ()

It's QC, not C++
_________________
woh... feelin woozy... too much cider...
http://entar.quakedev.com
games fascination - My Game Development Blog/Journal

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> QuakeC Programming | All times are GMT
Page 1 of 1

Jump to:

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 vote in polls in this forum

Powered by phpBB © 2004 phpBB Group