mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-29 23:32:18 +00:00
SERVER: Have Zombies do more damage when Barricade reaching.
This commit is contained in:
parent
a347cfee3f
commit
f97e82828b
1 changed files with 4 additions and 2 deletions
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define ZOMBIE_DAMAGE_THROUGH_WINDOW 60
|
||||||
|
|
||||||
void() Zombie_Walk_Setup;
|
void() Zombie_Walk_Setup;
|
||||||
void() crawler_rip_board1;
|
void() crawler_rip_board1;
|
||||||
void() crawler_da1;
|
void() crawler_da1;
|
||||||
|
@ -766,12 +768,12 @@ void() zombie_attack_through_window =
|
||||||
{
|
{
|
||||||
play_sound_z(1);
|
play_sound_z(1);
|
||||||
local entity who;
|
local entity who;
|
||||||
who = findradius(self.origin,70);
|
who = findradius(self.origin, 70);
|
||||||
while(who)
|
while(who)
|
||||||
{
|
{
|
||||||
if(who.classname == "player")
|
if(who.classname == "player")
|
||||||
{
|
{
|
||||||
DamageHandler (who, self, 50, S_ZOMBIE);
|
DamageHandler (who, self, ZOMBIE_DAMAGE_THROUGH_WINDOW, S_ZOMBIE);
|
||||||
}
|
}
|
||||||
who = who.chain;
|
who = who.chain;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue