mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-16 10:08:02 -05:00
Zombies: all body shot kills award 50 points
This commit is contained in:
@ -44,6 +44,7 @@ main()
|
||||
replaceFunc(maps\mp\zombies\_zm_utility::create_zombie_point_of_interest_attractor_positions, scripts\zm\replaced\_zm_utility::create_zombie_point_of_interest_attractor_positions);
|
||||
replaceFunc(maps\mp\zombies\_zm_score::add_to_player_score, scripts\zm\replaced\_zm_score::add_to_player_score);
|
||||
replaceFunc(maps\mp\zombies\_zm_score::minus_to_player_score, scripts\zm\replaced\_zm_score::minus_to_player_score);
|
||||
replaceFunc(maps\mp\zombies\_zm_score::player_add_points_kill_bonus, scripts\zm\replaced\_zm_score::player_add_points_kill_bonus);
|
||||
replaceFunc(maps\mp\zombies\_zm_laststand::revive_do_revive, scripts\zm\replaced\_zm_laststand::revive_do_revive);
|
||||
replaceFunc(maps\mp\zombies\_zm_laststand::revive_give_back_weapons, scripts\zm\replaced\_zm_laststand::revive_give_back_weapons);
|
||||
replaceFunc(maps\mp\zombies\_zm_laststand::revive_hud_think, scripts\zm\replaced\_zm_laststand::revive_hud_think);
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps\mp\zombies\_zm_score;
|
||||
|
||||
add_to_player_score( points, add_to_total )
|
||||
{
|
||||
@ -31,4 +32,39 @@ minus_to_player_score( points )
|
||||
points = int(points); // points must be an int
|
||||
self.score -= points;
|
||||
self.pers[ "score" ] = self.score;
|
||||
}
|
||||
|
||||
player_add_points_kill_bonus( mod, hit_location )
|
||||
{
|
||||
if ( mod == "MOD_MELEE" )
|
||||
{
|
||||
self score_cf_increment_info( "death_melee" );
|
||||
return level.zombie_vars["zombie_score_bonus_melee"];
|
||||
}
|
||||
|
||||
if ( mod == "MOD_BURNED" )
|
||||
{
|
||||
self score_cf_increment_info( "death_torso" );
|
||||
return level.zombie_vars["zombie_score_bonus_burn"];
|
||||
}
|
||||
|
||||
score = 0;
|
||||
|
||||
if ( isdefined( hit_location ) )
|
||||
{
|
||||
switch ( hit_location )
|
||||
{
|
||||
case "helmet":
|
||||
case "head":
|
||||
case "neck":
|
||||
self score_cf_increment_info( "death_head" );
|
||||
score = level.zombie_vars["zombie_score_bonus_head"];
|
||||
break;
|
||||
default:
|
||||
self score_cf_increment_info( "death_normal" );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return score;
|
||||
}
|
Reference in New Issue
Block a user