From b053a44297fb65853ab0adceda9f8fc257d2f7f3 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Tue, 27 Jul 2021 21:03:28 -0400 Subject: [PATCH] Update supportClassic.cs --- Classic/scripts/supportClassic.cs | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) mode change 100644 => 100755 Classic/scripts/supportClassic.cs diff --git a/Classic/scripts/supportClassic.cs b/Classic/scripts/supportClassic.cs old mode 100644 new mode 100755 index 9747417..26936e4 --- a/Classic/scripts/supportClassic.cs +++ b/Classic/scripts/supportClassic.cs @@ -46,7 +46,7 @@ function AIConnection::isMounted(%client) { %vehicle = %client.getControlObject(); %className = %vehicle.getDataBlock().className; - if(%className $= WheeledVehicleData || %className $= FlyingVehicleData || %className $= HoverVehicleData) + if(%className $= WheeledVehicleData || %className $= FlyingVehicleData || %className $= HoverVehicleData) return true; else return false; @@ -66,19 +66,19 @@ function ForceFieldBareData::damageObject(%data, %targetObject, %position, %sour // Random Teams code by Founder (founder@mechina.com) 6/13/02 /////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////// -// Couple other files edited for Random Teams. +// Couple other files edited for Random Teams. // Hud.cs and DefaultGame.cs function AIConnection::startMission(%client) { // assign the team if (%client.team <= 0) Game.assignClientTeam(%client); - + if(%client.lastTeam !$= "") { if(%client.team != %client.lastTeam) Game.AIChangeTeam( %client, %client.lastTeam ); - } + } // set the client's sensor group... setTargetSensorGroup( %client.target, %client.team ); %client.setSensorGroup( %client.team ); @@ -179,7 +179,7 @@ datablock TriggerData(flagTrigger) tickPeriodMS = 10; }; -function flagTrigger::onEnterTrigger(%data, %obj, %colObj) +function flagTrigger::onEnterTrigger(%data, %obj, %colObj) { %flag = %obj.flag; if($flagStatus[%flag.team] $= "") @@ -313,4 +313,13 @@ function KickByCID(%client, %reason, %time) // Keep them out // if(%time != 0) // BanList::add(%client.guid, %client.getAddress(), %time); -} \ No newline at end of file +} + +//More Spam +function TSStatic::onTrigger(%this, %triggerId, %on){ +//anti console spam +} + +function TSStatic::onTriggerTick(%this, %triggerId){ +//anti console spam +}