add cdata files

This commit is contained in:
quaK
2024-07-13 22:49:23 +03:00
parent 6ab1e4f7d4
commit 8b0fa206d4
36 changed files with 239 additions and 0 deletions

View File

@ -0,0 +1,48 @@
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for( ;; )
{
level waittill( "connected", player );
player thread onPlayerSpawned();
}
}
watchWeaponInspection()
{
self endon( "death" );
self endon( "disconnect" );
self endon( "faux_spawn" );
if ( isai( self ) || isbot( self ) )
return;
self notifyonplayercommand( "weapon_inspection", "+actionslot 8" );
for (;;)
{
self waittill( "weapon_inspection" );
self iPrintLnBold("actionslot 8 pressed...");
self startweaponinspection();
wait 0.05;
while ( self isinspectingweapon() )
wait 0.05;
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for (;;)
{
scripts\engine\utility::waittill_any( "spawned_player", "faux_spawn" );
self thread watchWeaponInspection();
}
}