mirror of
https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer.git
synced 2025-06-07 17:37:50 -05:00
30 lines
633 B
Plaintext
30 lines
633 B
Plaintext
#include maps/mp/animscripts/shared;
|
|
|
|
main()
|
|
{
|
|
self endon( "killanimscript" );
|
|
self endon( "stop_flashbang_effect" );
|
|
wait randomfloatrange( 0, 0,4 );
|
|
duration = self startflashbanged() * 0,001;
|
|
self setanimstate( "flashed" );
|
|
self maps/mp/animscripts/shared::donotetracks( "done" );
|
|
self setflashbanged( 0 );
|
|
self.flashed = 0;
|
|
self notify( "stop_flashbang_effect" );
|
|
}
|
|
|
|
startflashbanged()
|
|
{
|
|
if ( isDefined( self.flashduration ) )
|
|
{
|
|
duration = self.flashduration;
|
|
}
|
|
else
|
|
{
|
|
duration = self getflashbangedstrength() * 1000;
|
|
}
|
|
self.flashendtime = getTime() + duration;
|
|
self notify( "flashed" );
|
|
return duration;
|
|
}
|