27 lines
8.4 KiB
Plaintext
27 lines
8.4 KiB
Plaintext
#using scripts\codescripts\struct;
|
|
|
|
#using scripts\shared\clientfield_shared;
|
|
#using scripts\shared\system_shared;
|
|
#using scripts\shared\util_shared;
|
|
|
|
|
|
|
|
|
|
|
|
#namespace counteruav;
|
|
|
|
function autoexec __init__sytem__() { system::register("counteruav",&__init__,undefined,undefined); }
|
|
|
|
function __init__()
|
|
{
|
|
clientfield::register( "toplayer", "counteruav", 1, 1, "int", &CounterUAVChanged, !true, true );
|
|
}
|
|
|
|
function CounterUAVChanged( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
|
|
{
|
|
player = GetLocalPlayer( localClientNum );
|
|
assert( isdefined( player ) );
|
|
|
|
player SetEnemyGlobalScrambler( newVal );
|
|
}
|