1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 07:08:06 -05:00

Meat powerup: take 10 damage per second while holding

This commit is contained in:
Jbleezy
2023-12-02 03:19:07 -08:00
parent 842cd96f0f
commit 707ef1eb99
2 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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");