2023-04-13 17:30:38 +02:00

27 lines
6.1 KiB
Plaintext

#using scripts\codescripts\struct;
#using scripts\shared\callbacks_shared;
#using scripts\mp\gametypes\_globallogic;
function main()
{
callback::on_spawned( &on_player_spawned );
if( GetGametypeSetting( "silentPlant" ) != 0 )
setsoundcontext( "bomb_plant", "silent" );
}
function onPrecacheGameType()
{
}
function onStartGameType()
{
}
function on_player_spawned( localClientNum )
{
self thread globallogic::watch_plant_sound( localClientNum );
}