mirror of
https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer.git
synced 2025-06-10 10:47:58 -05:00
42 lines
661 B
Plaintext
42 lines
661 B
Plaintext
#include common_scripts/utility;
|
|
#include maps/mp/_scoreevents;
|
|
#include maps/mp/_utility;
|
|
|
|
init()
|
|
{
|
|
level.medalinfo = [];
|
|
level.medalcallbacks = [];
|
|
level.numkills = 0;
|
|
level thread onplayerconnect();
|
|
}
|
|
|
|
onplayerconnect()
|
|
{
|
|
for ( ;; )
|
|
{
|
|
level waittill( "connected", player );
|
|
player.lastkilledby = undefined;
|
|
}
|
|
}
|
|
|
|
setlastkilledby( attacker )
|
|
{
|
|
self.lastkilledby = attacker;
|
|
}
|
|
|
|
offenseglobalcount()
|
|
{
|
|
level.globalteammedals++;
|
|
}
|
|
|
|
defenseglobalcount()
|
|
{
|
|
level.globalteammedals++;
|
|
}
|
|
|
|
codecallback_medal( medalindex )
|
|
{
|
|
self luinotifyevent( &"medal_received", 1, medalindex );
|
|
self luinotifyeventtospectators( &"medal_received", 1, medalindex );
|
|
}
|