Files
IL-GSC/BO1/PC/ZM/clientscripts/_zombiemode_ai_sonic.csc
2024-02-18 17:32:07 -05:00

28 lines
557 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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");
}