mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-06-25 13:51:53 +00:00
1.03
This commit is contained in:
30
mods/mp_patch/clientscripts/mp/_claymore.csc
Normal file
30
mods/mp_patch/clientscripts/mp/_claymore.csc
Normal file
@ -0,0 +1,30 @@
|
||||
#include clientscripts\mp\_utility;
|
||||
#include clientscripts\mp\_rewindobjects;
|
||||
|
||||
init( localClientNum )
|
||||
{
|
||||
level._effect["fx_claymore_laser"] = loadfx( "weapon/claymore/fx_claymore_laser" );
|
||||
}
|
||||
|
||||
spawned( localClientNum )
|
||||
{
|
||||
self endon( "entityshutdown" );
|
||||
|
||||
self waittill_dobj(localClientNum);
|
||||
|
||||
while( true )
|
||||
{
|
||||
if( IsDefined( self.stunned ) && self.stunned )
|
||||
{
|
||||
wait( 0.1 );
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
self.claymoreLaserFXId = PlayFXOnTag( localClientNum, level._effect["fx_claymore_laser"], self, "tag_fx" );
|
||||
|
||||
self waittill( "stunned" );
|
||||
stopfx(localClientNum, self.claymoreLaserFXId);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user