boiii-scripts/mp/killstreaks/_planemortar.csc
2023-04-13 17:30:38 +02:00

32 lines
8.6 KiB
Plaintext

#using scripts\codescripts\struct;
#using scripts\shared\clientfield_shared;
#using scripts\shared\system_shared;
#precache( "client_fx", "killstreaks/fx_ls_exhaust_afterburner" );
#namespace planemortar;
function autoexec __init__sytem__() { system::register("planemortar",&__init__,undefined,undefined); }
function __init__()
{
level.planeMortarExhaustFX = "killstreaks/fx_ls_exhaust_afterburner";
clientfield::register( "scriptmover", "planemortar_contrail", 1, 1, "int",&planemortar_contrail, !true, !true );
}
function planemortar_contrail( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
{
self endon( "death" );
self endon( "entityshutdown" );
if ( newVal )
{
self.fx = PlayFXOnTag( localClientNum, level.planeMortarExhaustFX, self, "tag_fx" );
}
}