// #autoload // #name = SS Task LOS // #version = 1.1 // #date = April 10, 2003 // #author = Chris Lee // #warrior = Silverspirit // #email = uncle_crewcut@hotmail.com // #web = http://scripts.tribalwar.com/silverspirit // #description = Creates an 'Attack at location' task at your line of sight and sends to your team. // #category = Silverspirit's Scripts // #status = Release if (!isObject(ssTaskLOS)) new ScriptObject(ssTaskLOS) { class = ssTaskLOS; }; package ssTaskLOS { function ssTaskLOS::Setup(%this) { if (%this.Setup) return; $RemapName[$RemapCount]="Task LOS"; $RemapCmd[$RemapCount]="ssTaskLOSMakeTask"; $RemapCount++; %this.Setup = true; } function ssTaskLOSMakeTask(%val) { if (!%val) return; ServerConnection.sendLOSTarget(); commandToServer('BuildClientTask','AttackLocation',true); commandToServer('SendTaskToTeam'); } function clientCmdSetDefaultVehicleKeys(%inVehicle) { parent::clientCmdSetDefaultVehicleKeys(%inVehicle); if (%inVehicle) passengerKeys.copyBind(moveMap, ssTaskLOSMakeTask); } function DispatchLaunchMode() { parent::DispatchLaunchMode(); if (!isObject(autoload)) ssTaskLOS.Setup(); } }; activatePackage(ssTaskLOS); if (isObject(autoload)) ssTaskLOS.Setup();