Inside3D!
     

Land Mines

 
Post new topic   Reply to topic    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

PostPosted: Sat Jan 12, 2008 3:54 am    Post subject: Land Mines Reply with quote

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 Laughing
_________________
Welcome to the Overlook Hotel 69.113.123.178:27500
Back to top
View user's profile Send private message Send e-mail
venomus



Joined: 24 May 2005
Posts: 44

PostPosted: Sat Jan 12, 2008 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Entar



Joined: 05 Nov 2004
Posts: 422
Location: At my computer

PostPosted: Sun Jan 13, 2008 12:32 am    Post subject: Reply with quote

venomus wrote:
Code:
Grenade :: Spawn ()

It's QC, not C++ Razz
_________________
woh... feelin woozy... too much cider...
http://entar.quakedev.com
games fascination - My Game Development Blog/Journal
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    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