mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 15:17:57 -05:00
Max Ammo: unloads clip of all enemy players' weapons Double Points: enemy players gain half points for 30 seconds Insta Kill: enemy players deal half damage for 30 seconds Nuke: deals 80 damage to all enemy players
34 lines
701 B
Plaintext
34 lines
701 B
Plaintext
#include maps\mp\_utility;
|
|
#include common_scripts\utility;
|
|
#include maps\mp\zombies\_zm_utility;
|
|
|
|
add_to_player_score( points, add_to_total )
|
|
{
|
|
if ( !isDefined( add_to_total ) )
|
|
{
|
|
add_to_total = 1;
|
|
}
|
|
if ( !isDefined( points ) || level.intermission )
|
|
{
|
|
return;
|
|
}
|
|
points = int(points); // points must be an int
|
|
self.score += points;
|
|
self.pers[ "score" ] = self.score;
|
|
if ( add_to_total )
|
|
{
|
|
self.score_total += points;
|
|
}
|
|
self incrementplayerstat( "score", points );
|
|
}
|
|
|
|
minus_to_player_score( points )
|
|
{
|
|
if ( !isDefined( points ) || level.intermission )
|
|
{
|
|
return;
|
|
}
|
|
points = int(points); // points must be an int
|
|
self.score -= points;
|
|
self.pers[ "score" ] = self.score;
|
|
} |