Inside3D!
     

a poison zombie gib gun

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
MeTcHsteekle



Joined: 15 May 2008
Posts: 397
Location: its a secret

PostPosted: Fri Aug 15, 2008 12:49 am    Post subject: a poison zombie gib gun Reply with quote

hellos agin

i wanna make a well ya and i dont know wut ima supposed to copy and modifi

its palnning to be like the nailgun, like a seconday weapon so...

i need to know which w_fire is for the nailgun..

and also how to make the zombie gibs it fires poisonus

any help is apprecated Very Happy

ooh i forgot...please/?/
_________________
bah
Back to top
View user's profile Send private message AIM Address
Orion



Joined: 12 Jan 2007
Posts: 414
Location: Brazil

PostPosted: Fri Aug 15, 2008 4:15 am    Post subject: Reply with quote

Well, the firing function for the nailgun is W_FireSpikes() in weapons.qc.

Also, to make the zombies poison the enemies, try this:

Add this before ZombieGrenadeTouch() in zombie.qc:
Code:

void() ZombiePoison =
{
  self.nextthink = time;

  if (self.enemy.health <= 0 || self.enemy.waterlevel > 1) // if the enemy is dead or in water...
  {
    remove(self); // then heal the poison effect
    return;
  }

  if (self.t_width < time)
  {
    T_Damage (self.enemy, self, self.owner, 5); // do 5 damage (changeable)
    self.t_width = time + 2; (damage enemy every 2 seconds (changeable)
  }
};

void(enetity e) GetPoisoned =
{
  local entity poison;

  poison = spawn ();
  poison.owner = self.owner;
  poison.enemy = e;
  poison.nextthink = time;
  poison.think = ZombiePoison;
};



And in ZombieGrenadeTouch() you'll see a line like this:
Code:

T_Damage (other, self, self.owner, 10 );


After that line, add this:
Code:

GetPoisoned (other);



If a zombie hit you 2 or more times the poison will do damage twice or more as fast.
Hope this helps. Wink
_________________
There's no signature here. Stop looking for one.
Back to top
View user's profile Send private message
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