diff --git a/README.md b/README.md index 49af404e..218ba0ed 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,7 @@ ### Meat * All zombies go after player 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 * Attracts zombies more consistently on ground * Decreased attract radius on ground by 50% diff --git a/scripts/zm/replaced/zgrief.gsc b/scripts/zm/replaced/zgrief.gsc index c2910302..57e74c1c 100644 --- a/scripts/zm/replaced/zgrief.gsc +++ b/scripts/zm/replaced/zgrief.gsc @@ -245,13 +245,32 @@ meat_damage_over_time() self endon("disconnect"); self endon("player_downed"); - wait 0.05; + time_zero_speed = 0; 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; } }