mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Update supportClassic.cs
This commit is contained in:
parent
9c3c7f75cf
commit
b053a44297
21
Classic/scripts/supportClassic.cs
Normal file → Executable file
21
Classic/scripts/supportClassic.cs
Normal file → Executable file
|
|
@ -46,7 +46,7 @@ function AIConnection::isMounted(%client)
|
||||||
{
|
{
|
||||||
%vehicle = %client.getControlObject();
|
%vehicle = %client.getControlObject();
|
||||||
%className = %vehicle.getDataBlock().className;
|
%className = %vehicle.getDataBlock().className;
|
||||||
if(%className $= WheeledVehicleData || %className $= FlyingVehicleData || %className $= HoverVehicleData)
|
if(%className $= WheeledVehicleData || %className $= FlyingVehicleData || %className $= HoverVehicleData)
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -66,19 +66,19 @@ function ForceFieldBareData::damageObject(%data, %targetObject, %position, %sour
|
||||||
// Random Teams code by Founder (founder@mechina.com) 6/13/02 ///////////////////////////
|
// 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
|
// Hud.cs and DefaultGame.cs
|
||||||
function AIConnection::startMission(%client)
|
function AIConnection::startMission(%client)
|
||||||
{
|
{
|
||||||
// assign the team
|
// assign the team
|
||||||
if (%client.team <= 0)
|
if (%client.team <= 0)
|
||||||
Game.assignClientTeam(%client);
|
Game.assignClientTeam(%client);
|
||||||
|
|
||||||
if(%client.lastTeam !$= "")
|
if(%client.lastTeam !$= "")
|
||||||
{
|
{
|
||||||
if(%client.team != %client.lastTeam)
|
if(%client.team != %client.lastTeam)
|
||||||
Game.AIChangeTeam( %client, %client.lastTeam );
|
Game.AIChangeTeam( %client, %client.lastTeam );
|
||||||
}
|
}
|
||||||
// set the client's sensor group...
|
// set the client's sensor group...
|
||||||
setTargetSensorGroup( %client.target, %client.team );
|
setTargetSensorGroup( %client.target, %client.team );
|
||||||
%client.setSensorGroup( %client.team );
|
%client.setSensorGroup( %client.team );
|
||||||
|
|
@ -179,7 +179,7 @@ datablock TriggerData(flagTrigger)
|
||||||
tickPeriodMS = 10;
|
tickPeriodMS = 10;
|
||||||
};
|
};
|
||||||
|
|
||||||
function flagTrigger::onEnterTrigger(%data, %obj, %colObj)
|
function flagTrigger::onEnterTrigger(%data, %obj, %colObj)
|
||||||
{
|
{
|
||||||
%flag = %obj.flag;
|
%flag = %obj.flag;
|
||||||
if($flagStatus[%flag.team] $= "<At Base>")
|
if($flagStatus[%flag.team] $= "<At Base>")
|
||||||
|
|
@ -313,4 +313,13 @@ function KickByCID(%client, %reason, %time)
|
||||||
// Keep them out
|
// Keep them out
|
||||||
// if(%time != 0)
|
// if(%time != 0)
|
||||||
// BanList::add(%client.guid, %client.getAddress(), %time);
|
// BanList::add(%client.guid, %client.getAddress(), %time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//More Spam
|
||||||
|
function TSStatic::onTrigger(%this, %triggerId, %on){
|
||||||
|
//anti console spam
|
||||||
|
}
|
||||||
|
|
||||||
|
function TSStatic::onTriggerTick(%this, %triggerId){
|
||||||
|
//anti console spam
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue