mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-18 19:18:23 -05:00
Zombies: all body shot kills award 50 points
This commit is contained in:
@ -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