From 8b7be81bb1d4f8a3c3c2195f44b07e849da91d12 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sat, 6 Aug 2022 23:42:55 -0700 Subject: [PATCH] Encounter: headstomp only when prone --- README.md | 7 ++--- scripts/zm/zgrief/zgrief_reimagined.gsc | 37 +++++++++++++++++++++---- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index acac138c..05e2503d 100644 --- a/README.md +++ b/README.md @@ -443,7 +443,7 @@ * Unlimited powerups * Unlimited barrier rebuild points * Decreased stun time of unupgraded weapons from 0.75 seconds to 0.5 seconds -* Decreased stun time of upgraded weapons rom 0.75 seconds to 0.625 seconds +* Decreased stun time of upgraded weapons from 0.75 seconds to 0.625 seconds * Meleeing enemy players pushes 16.67% farther for every 500 damage that melee weapon deals * Meleeing enemy players that are crouched pushes 33.33% of the amount when standing * Meleeing enemy players that are prone pushes 16.67% of the amount when standing @@ -456,10 +456,9 @@ * Downing enemy players awards 500 points * Bleeding out enemy players awards 1000 points to all teammates * Landing on top of an enemy player downs only the bottom player -* Landing on top of an enemy player can be done at any stance +* Landing on top of an enemy player only occurs if the bottom player is prone * Increased max radius for landing on top of an enemy player by 16.67% -* Decreased max height for landing on top of an enemy player that is crouched by 8.33% -* Decreased max height for landing on top of an enemy player that is prone by 50% +* Decreased max height for landing on top of an enemy player by 50% * Max Ammo: decreased amount of ammo given from max stock to one clip * Max Ammo: unloads clip of all enemy players' weapons * Double Points: decreased duration from 30 seconds to 15 seconds diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index fcb28a65..a1a5fac7 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -963,13 +963,9 @@ headstomp_watcher() players = get_players(); foreach(player in players) { - player_top_origin = player getEye(); - if(player getStance() == "prone") - { - player_top_origin = player getCentroid(); - } + player_top_origin = player getCentroid(); - if(player != self && player.team != self.team && is_player_valid(player) && player isOnGround() && self.origin[2] > player_top_origin[2]) + if(player != self && player.team != self.team && is_player_valid(player) && player getStance() == "prone" && player isOnGround() && self.origin[2] > player_top_origin[2]) { if(distance2d(self.origin, player.origin) <= 21 && (self.origin[2] - player_top_origin[2]) <= 15) { @@ -2784,6 +2780,8 @@ spawn_bots() level waittill( "connected", player ); + wait 5; + level.bots = []; for(i = 0; i < bot_amount; i++) @@ -2801,4 +2799,31 @@ spawn_bots() level.bots[i].pers["isBot"] = 1; } + + while(1) + { + if (player useButtonPressed()) + { + for (i = 0; i < level.bots.size; i++) + { + level.bots[i] setStance("prone"); + } + } + else if (player adsButtonPressed()) + { + for (i = 0; i < level.bots.size; i++) + { + level.bots[i] setStance("crouch"); + } + } + else if (player attackButtonPressed()) + { + for (i = 0; i < level.bots.size; i++) + { + level.bots[i] setStance("stand"); + } + } + + wait 0.05; + } } \ No newline at end of file