mirror of
https://github.com/InfinityLoader/IL-GSC.git
synced 2025-06-10 10:27:55 -05:00
28 lines
557 B
Plaintext
28 lines
557 B
Plaintext
#include clientscripts\_utility;
|
||
init_sonic_zombie()
|
||
{
|
||
register_clientflag_callback( "actor", level._CF_ACTOR_IS_SONIC_ZOMBIE, ::sonic_zombie_callback);
|
||
}
|
||
sonic_zombie_callback( client_num, set, newEnt )
|
||
{
|
||
if(set)
|
||
{
|
||
self thread sonic_ambient_sounds(client_num);
|
||
}
|
||
else
|
||
{
|
||
self thread sonic_ambiet_sounds_stop(client_num);
|
||
}
|
||
}
|
||
sonic_ambient_sounds(client_num)
|
||
{
|
||
if(client_num != 0)
|
||
{
|
||
return;
|
||
}
|
||
self PlayLoopSound("evt_sonic_ambient_loop", 1);
|
||
}
|
||
sonic_ambiet_sounds_stop(client_num)
|
||
{
|
||
self notify("stop_sounds");
|
||
} |