diff --git a/README.md b/README.md index b1e7d094..d83bb1b5 100644 --- a/README.md +++ b/README.md @@ -230,5 +230,6 @@ * Every player starts with 10000 points * Decreased stun time by enemy players from 0.75 seconds to 0.5 seconds * Players can be stunned by enemy players while already stunned +* Points awarded for stunning enemy players that are damaged * Teams win rounds by getting all enemy players down * First team to win 3 rounds wins the game \ No newline at end of file diff --git a/scripts/zm/_zm_reimagined_grief.gsc b/scripts/zm/_zm_reimagined_grief.gsc index c0e5318e..76df1ff9 100644 --- a/scripts/zm/_zm_reimagined_grief.gsc +++ b/scripts/zm/_zm_reimagined_grief.gsc @@ -401,6 +401,7 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme } } + self thread add_grief_score(eattacker); self thread do_game_mode_shellshock(); self playsound( "zmb_player_hit_ding" ); } @@ -411,6 +412,14 @@ do_game_mode_shellshock() self shellshock( "grief_stab_zm", 0.5 ); } +add_grief_score(attacker) +{ + if(is_player_valid(attacker) && self.health < self.maxhealth) + { + attacker maps/mp/zombies/_zm_score::add_to_player_score(10); + } +} + unlimited_zombies() { while(1)