diff --git a/README.md b/README.md index 242d941c..c2bc925f 100644 --- a/README.md +++ b/README.md @@ -416,6 +416,7 @@ ### Meat * All zombies go after player holding the meat * 60% move speed while holding the meat +* Take 10 damage per second 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% @@ -424,7 +425,7 @@ * Changed powerup fx color to blue * Able to drop when players are down * No longer able to drop when another meat powerup is already dropped -* Message shows when the meat is grabbed, thrown, and landed on a player +* Message shows when the meat is grabbed and landed on a player * Meleeing while the meat is moving no longer grabs the meat * Meleeing while the meat is moving throws the meat * Removed pick up trigger diff --git a/scripts/zm/replaced/zgrief.gsc b/scripts/zm/replaced/zgrief.gsc index 982a8b8c..58a31077 100644 --- a/scripts/zm/replaced/zgrief.gsc +++ b/scripts/zm/replaced/zgrief.gsc @@ -183,6 +183,8 @@ meat_stink( who ) level.meat_player = who; level.meat_powerup = undefined; + who thread meat_damage_over_time(); + if (who attackbuttonpressed()) { who thread meat_disable_weapons(); @@ -254,6 +256,22 @@ meat_disable_weapons() self.meat_weapons_disabled = undefined; } +meat_damage_over_time() +{ + level endon("meat_thrown"); + self endon("disconnect"); + self endon("player_downed"); + + wait 0.05; + + while (1) + { + wait 1; + + radiusDamage(self.origin + (0, 0, 5), 10, 10, 10); + } +} + meat_stink_ignoreme_think() { level endon("meat_thrown");