mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Meat powerup: take 50 damage per second if stationary while holding
This commit is contained in:
@ -416,7 +416,7 @@
|
|||||||
### Meat
|
### Meat
|
||||||
* All zombies go after player holding the meat
|
* All zombies go after player holding the meat
|
||||||
* 75% move speed while holding the meat
|
* 75% move speed while holding the meat
|
||||||
* Take 10 damage per second while holding the meat
|
* Take 50 damage per second if stationary while holding the meat
|
||||||
* Player who threw the meat can meat themself
|
* Player who threw the meat can meat themself
|
||||||
* Attracts zombies more consistently on ground
|
* Attracts zombies more consistently on ground
|
||||||
* Decreased attract radius on ground by 50%
|
* Decreased attract radius on ground by 50%
|
||||||
|
@ -245,13 +245,32 @@ meat_damage_over_time()
|
|||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
self endon("player_downed");
|
self endon("player_downed");
|
||||||
|
|
||||||
wait 0.05;
|
time_zero_speed = 0;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
wait 1;
|
velocity = self getVelocity() * (1, 1, 0);
|
||||||
|
speed = length(velocity);
|
||||||
|
|
||||||
radiusDamage(self.origin + (0, 0, 5), 10, 10, 10);
|
if (speed == 0)
|
||||||
|
{
|
||||||
|
time_zero_speed++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (time_zero_speed > 0)
|
||||||
|
{
|
||||||
|
time_zero_speed--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (time_zero_speed >= 20)
|
||||||
|
{
|
||||||
|
time_zero_speed = 0;
|
||||||
|
radiusDamage(self.origin + (0, 0, 5), 10, 50, 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
wait 0.05;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user