1
0
mirror of https://github.com/Paintball/BO2-GSC-Releases.git synced 2025-06-07 13:28:09 -05:00

Add files via upload

This commit is contained in:
Nick // Cahz 2021-08-02 07:50:39 -07:00 committed by GitHub
parent f96a2ced1a
commit 27d103daf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# BETTER ZOMBIES COUNTER
## NOTES
- Take the precompiled version and place it inside %localappdata%/Plutonium/storage/t6/scripts/zm/ or use the source code for your own GSC

View File

@ -0,0 +1,56 @@
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill("connected", player);
player thread drawZombiesCounter();
}
}
drawZombiesCounter()
{
self endon( "disconnect" );
level endon( "end_game" );
level waittill( "start_of_round" );
self.zombiesCounter = maps/mp/gametypes_zm/_hud_util::createFontString( "hudsmall" , 1.9 );
self.zombiesCounter maps/mp/gametypes_zm/_hud_util::setPoint( "CENTER", "CENTER", "CENTER", 190 );
self.zombiesCounter.alpha = 0;
while( 1 )
{
self.zombiesCounter setValue( ( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total ) );
if( ( maps/mp/zombies/_zm_utility::get_round_enemy_array().size + level.zombie_total ) != 0 )
{
self.zombiesCounter.label = &"Zombies: ^1";
if( self.zombiesCounter.alpha != 1 )
{
self.zombiesCounter fadeovertime( 0.5 );
self.zombiesCounter.alpha = 1;
}
}
else
{
self.zombiesCounter.label = &"Zombies: ^6";
for( i = 0; i < 15; i++ )
{
if( self.zombiesCounter.alpha == 1 )
{
self.zombiesCounter fadeovertime( 0.5 );
self.zombiesCounter.alpha = 0;
}
else
{
self.zombiesCounter fadeovertime( 0.5 );
self.zombiesCounter.alpha = 1;
}
wait 0.5;
}
level waittill( "start_of_round" );
}
wait 0.05;
}
}