‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_claymore.csc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #using scripts\shared\util_shared;
4 
5 #insert scripts\shared\shared.gsh;
6 
7 #using scripts\shared\util_shared;
8 
9 #precache( "client_fx", "_t6/weapon/claymore/fx_claymore_laser" );
10 
11 function ‪init( localClientNum )
12 {
13  level._effect["fx_claymore_laser"] = "_t6/weapon/claymore/fx_claymore_laser";
14 }
15 
16 function ‪spawned( localClientNum )
17 {
18  self endon( "entityshutdown" );
19 
20  self ‪util::waittill_dobj(localClientNum);
21 
22  while( true )
23  {
24  if( isdefined( self.stunned ) && self.stunned )
25  {
26  wait( 0.1 );
27  continue;
28  }
29 
30 
31  self.claymoreLaserFXId = PlayFXOnTag( localClientNum, level._effect["fx_claymore_laser"], self, "tag_fx" );
32 
33  self waittill( "stunned" );
34  stopfx(localClientNum, self.claymoreLaserFXId);
35 
36  }
37 }
‪init
‪function init(localClientNum)
Definition: _claymore.csc:11
‪spawned
‪function spawned(localClientNum)
Definition: _claymore.csc:24
‪waittill_dobj
‪function waittill_dobj(localClientNum)
Definition: util_shared.csc:1117