function w3x takes nothing returns nothing
endfunction
function IsPlayerEnemyCR takes player pPlayer1, player pPlayer2 returns boolean
return pPlayer1 != pPlayer2
endfunction
function PlaySoundPlayer takes player pPlayer, sound soundHandle returns nothing
if ( GetLocalPlayer() == pPlayer ) then
call PlaySoundBJ(soundHandle)
endif
endfunction
function StopSoundPlayer takes player pPlayer, sound soundHandle, boolean bFadeOut returns nothing
if ( GetLocalPlayer() == pPlayer ) then
call StopSound(soundHandle, false, bFadeOut)
endif
endfunction
function StandardAngle takes real rAngle returns real
loop
if ( rAngle < -180 ) then
set rAngle = rAngle + 360
elseif ( rAngle > 180 ) then
set rAngle = rAngle - 360
else
exitwhen true
endif
endloop
return rAngle
endfunction
function ShowDebugMsg takes string fp_strMsg returns nothing
if (udg_ItsForDebug) then
call DisplayTextToForce( GetPlayersAll(), fp_strMsg )
endif
endfunction
function ShowDisplayOrderID takes nothing returns nothing
call ShowDebugMsg( I2S(GetIssuedOrderIdBJ()) )
endfunction
function ShowQuestMsg takes string fp_strTitle, string fp_strMsg returns nothing
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_ALWAYSHINT, "\r|cffffcc00REQUIRED QUEST|r\n" + StringCase(fp_strTitle, true) + "\n" + fp_strMsg )
endfunction
function ShowQuestHintMsg takes string fp_strMsg returns nothing
call PlaySoundBJ( gg_snd_Hint )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_ALWAYSHINT, "\r|cffffcc00HINT|r - " + fp_strMsg )
endfunction
function ShowTipMsg takes string fp_strMsg returns nothing
call PlaySoundBJ( gg_snd_Hint )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_ALWAYSHINT, "\r|cff00ff00TIP|r - " + fp_strMsg )
endfunction
function ShowTipMsgPlayer takes player fp_Player, string fp_strMsg returns nothing
call DisplayTextToPlayer( fp_Player, 0, 0, "\r|cff00ff00TIP|r - " + fp_strMsg )
endfunction
function ShowWarningMsg takes player fp_Player, string fp_strMsg returns nothing
call DisplayTextToPlayer ( fp_Player, 0, 0, "\r|cffff0000WARNING|r - " + fp_strMsg )
endfunction
function ShowGeneralMsg takes string fp_strMsg, boolean fp_snd returns nothing
if (fp_snd) then
call PlaySoundBJ( gg_snd_Hint )
endif
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_ALWAYSHINT, "\r|cffffcc00" + StringCase(fp_strMsg, true) + "|r")
endfunction
function ShowDrivingMsgPlayer takes player plPlayer, string strMsg returns nothing
call DisplayTextToPlayer ( plPlayer, 0, 0, "\r|cffffcc00" + strMsg + "|r" )
endfunction
function ShowPowerUpMsgPlayer takes player plPlayer, string strMsg returns nothing
call DisplayTextToPlayer ( plPlayer, 0, 0, "\r|cccffff00" + strMsg + "|r" )
endfunction
function GetPlayerNameWithColor takes integer nPlayerIndex returns string
return udg_PlayerColor[nPlayerIndex] + GetPlayerName(Player(nPlayerIndex)) + "|r"
endfunction
function ShowHitMsg takes player fp_PlayerHit, integer nPlayerIndexHitter, string fp_strMsg returns nothing
call PlaySoundPlayer( fp_PlayerHit, gg_snd_QuestLog )
call ShowWarningMsg( fp_PlayerHit, "You got hit by " + GetPlayerNameWithColor( nPlayerIndexHitter ) + "'s " + fp_strMsg + "!" )
endfunction
function GetPlayerIndex takes player plPlayer returns integer
local integer nIndex = 0
loop
exitwhen nIndex > udg_PLAYER_MAXNUM
if ( plPlayer == Player(nIndex) ) then
return nIndex
endif
set nIndex = nIndex + 1
endloop
return -1
endfunction
function GetModelAddress takes integer nModel returns integer
return nModel * 12
endfunction
function GetModelUnitType takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 0]
endfunction
function GetModelIndex takes integer nUnitType returns integer
local integer nIndex = 0
loop
exitwhen nIndex >= udg_MODEL_NUM
if ( nUnitType == GetModelUnitType(nIndex) ) then
return nIndex
endif
set nIndex = nIndex + 1
endloop
return -1
endfunction
function GetModelPickUnitType takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 1]
endfunction
function GetModelFlyUnitType takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 2]
endfunction
function GetModelHonk takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 3]
endfunction
function GetModelAnimStandID takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 4]
endfunction
function GetModelAnimWalkID takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 5]
endfunction
function GetModelAnimStandAttackID takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 6]
endfunction
function GetModelAnimWalkAttackID takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 7]
endfunction
function GetModelAnimVictoryID takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 8]
endfunction
function GetModelDriverUnitType takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 9]
endfunction
function GetModelDriverAnimID takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 10]
endfunction
function GetModelDriverSound takes integer nModel returns integer
return udg_Models[GetModelAddress(nModel) + 11]
endfunction
function GetModelAttributesAddress takes integer nModel returns integer
return nModel * 4
endfunction
function GetModelMaxSpeed takes integer nModel returns real
return udg_ModelAttributes[GetModelAttributesAddress(nModel) + 0]
endfunction
function GetModelTurnRate takes integer nModel returns real
return udg_ModelAttributes[GetModelAttributesAddress(nModel) + 1]
endfunction
function GetModelAcceRate takes integer nModel returns real
return udg_ModelAttributes[GetModelAttributesAddress(nModel) + 2]
endfunction
function GetModelMassDrag takes integer nModel returns real
return udg_ModelAttributes[GetModelAttributesAddress(nModel) + 3]
endfunction
function GetPowerUpTypeAddress takes integer nIndex returns integer
return nIndex * 4
endfunction
function GetPowerUpType takes integer nIndex, integer nSlot returns integer
return udg_PowerUpTypes[GetPowerUpTypeAddress(nIndex) + nSlot]
endfunction
function GetPowerUpTypeIndex takes integer nType returns integer
local integer nIndex = 0
local integer nSlot = 0
loop
exitwhen nIndex >= udg_PowerUpTypeNum
set nSlot = 0
loop
exitwhen nSlot >= 4
if ( GetPowerUpType( nIndex, nSlot ) == nType ) then
return nIndex
endif
set nSlot = nSlot + 1
endloop
set nIndex = nIndex + 1
endloop
return -1
endfunction
function GetPowerUpTypeSlot takes integer nType returns integer
local integer nIndex = 0
local integer nSlot = 0
loop
exitwhen nIndex >= udg_PowerUpTypeNum
set nSlot = 0
loop
exitwhen nSlot >= 4
if ( GetPowerUpType( nIndex, nSlot ) == nType ) then
return nSlot
endif
set nSlot = nSlot + 1
endloop
set nIndex = nIndex + 1
endloop
return -1
endfunction
function IsItACart takes integer nUnitId returns boolean
local integer nLoopId = 0
loop
exitwhen nLoopId >= udg_MODEL_NUM
if ( GetModelUnitType( nLoopId ) == nUnitId ) then
return true
endif
set nLoopId = nLoopId + 1
endloop
return false
endfunction
function GetPickModelIndex takes integer nUnitType returns integer
local integer nIndex = 0
loop
exitwhen nIndex >= udg_MODEL_NUM
if ( nUnitType == GetModelPickUnitType(nIndex) ) then
return nIndex
endif
set nIndex = nIndex + 1
endloop
return -1
endfunction
function GetCurrentPlayerNum takes nothing returns integer
local integer nPlayerIndex = 0
local integer nNum = 0
loop
exitwhen nPlayerIndex >= 23
if ( GetPlayerController(Player(nPlayerIndex)) == MAP_CONTROL_USER and GetPlayerSlotState(Player(nPlayerIndex)) == PLAYER_SLOT_STATE_PLAYING ) then
set nNum = nNum + 1
endif
set nPlayerIndex = nPlayerIndex + 1
endloop
return nNum
endfunction
function RealSpeed takes real rSpeed returns real
return rSpeed / 3
endfunction
function FakeSpeed takes real rSpeed returns real
return rSpeed * 3
endfunction
function IsCartVisible takes unit uCart returns boolean
return not UnitHasBuffBJ( uCart, 'Binv' ) and not UnitHasBuffBJ( uCart, 'B003' )
endfunction
function IsCartSpinning takes unit uCart returns boolean
return UnitHasBuffBJ( uCart, 'B000' )
endfunction
function IsCartTrapped takes unit uCart returns boolean
return UnitHasBuffBJ( uCart, 'Beng' )
endfunction
function IsCartStunned takes unit uCart returns boolean
return UnitHasBuffBJ( uCart, 'BPSE' )
endfunction
function IsCartLightened takes unit uCart returns boolean
return UnitHasBuffBJ( uCart, 'B004' )
endfunction
function SetCartInvulnerable takes unit uCart, boolean b returns nothing
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if ( nPlayerIndex < 0 ) then
return
endif
call SetUnitInvulnerable( uCart, b )
call SetItemInvulnerable( udg_VulnerableSignal[nPlayerIndex], b )
endfunction
function IsCartVulnerable takes unit uCart returns boolean
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
local boolean b = false
if ( nPlayerIndex < 0 ) then
return false
endif
set b = not UnitHasBuffBJ( uCart, 'Bvul' ) and not UnitHasBuffBJ( uCart, 'B005' )
set b = b and not UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'Btsp' ) //Tonado
set b = b and not UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'B007' ) //Frozen
return b and not IsItemInvulnerable( udg_VulnerableSignal[nPlayerIndex] )
endfunction
function Integer2String2 takes integer n returns string
local integer n1 = 0
local integer n2 = 0
if ( n > 99 ) then
set n = ModuloInteger( n, 100 )
endif
set n1 = n / 10
set n2 = n - n1 * 10
return I2S(n1) + I2S(n2)
endfunction
function Second2String takes integer nSeconds, boolean bHour returns string
local string str = null
if ( bHour ) then
set str = Integer2String2( nSeconds / 3600 ) + ":"
else
set str = ""
endif
set nSeconds = ModuloInteger( nSeconds, 3600 )
set str = str + Integer2String2( nSeconds / 60 )
set nSeconds = ModuloInteger( nSeconds, 60 )
set str = str + ":" + Integer2String2( nSeconds )
return str
endfunction
Name | Type | is_array | initial_value |
ACCELERATE_BACKWARD | integer | No | -1 |
ACCELERATE_COAST | integer | No | 0 |
ACCELERATE_FORWARD | integer | No | 1 |
Accelerating | integer | Yes | |
ActivesPLayers | boolean | Yes | |
Ai_Timer_usespell | timer | Yes | |
AllPowerUpNames | string | Yes | |
AMMO_MAX | integer | No | 50 |
AmmoWarning | boolean | Yes | |
Angle | real | Yes | |
ANIM_NONE | integer | No | -1 |
ANIM_STAND | integer | No | |
ANIM_STANDATTACK | integer | No | 2 |
ANIM_VICTORY | integer | No | 4 |
ANIM_WALK | integer | No | 1 |
ANIM_WALKATTACK | integer | No | 3 |
AntiReenter | boolean | No | |
AUTO_AI_START | boolean | Yes | |
BigGunLoadTimer | timer | No | |
BigGunSound | sound | Yes | |
BlizzardingFlag | integer | Yes | -1 |
BlizzardSound | sound | Yes | |
BlizzardSoundIsPlaying | boolean | Yes | |
BoardPlayerIndexes | integer | Yes | |
BoardTimer | timer | No | |
BoostActivateNumber | integer | Yes | |
BoostLag_ColdownBoolean | boolean | Yes | |
BossAttackSPam | unit | No | |
BOSSRACE1UNIT | unit | No | |
BOSSRACE2UNIT | unit | No | |
BOSSRACE3UNIT | unit | No | |
CAMERA_ACTIVATED | boolean | Yes | true |
CartAnimIndex | integer | Yes | -1 |
CartGun | unit | Yes | |
CartItemNum | integer | Yes | |
CartPostionSingle | integer | Yes | |
CartPowerUps | integer | Yes | |
CartPrePos | location | Yes | |
Carts | unit | Yes | |
CARTS_TEMP | unit | Yes | |
CartSndPlaying | integer | Yes | -1 |
CartSounds | sound | Yes | |
CaughtInTornado | boolean | Yes | |
CHALLENGEPASSED | boolean | No | |
ChampionDriver | unit | No | |
ChampionDriverAnim | string | No | |
ChampionDriverSound | sound | No | |
CheckPointsNum | integer | No | 3 |
CheckPointStatus | integer | Yes | |
CinematicUnitGrp | group | No | |
Crystall_unit | unit | Yes | |
CrystalTotalGrabed | integer | No | |
CutSceneActivated | boolean | Yes | |
DavilkaNar | unit | Yes | |
DistanceX | integer | Yes | |
DlgBtnLaps | button | Yes | |
DlgLapNumber | dialog | No | |
DriverAnimName | string | Yes | |
DriverSound | sound | Yes | |
DrivingTimer | timer | No | |
EffectInjured | effect | Yes | |
EffectWrongDir | effect | Yes | |
ExclamationUp | effect | No | |
ExclamationUp_Goldcoin | effect | No | |
ExclamationUpDoor1 | effect | No | |
FadeMask321 | integer | No | 5 |
FakePackage | unit | Yes | |
FinalLapInMinTotal | integer | Yes | |
FInalLapInSecondTotal | real | Yes | |
FlareGunA | unit | No | |
FlareGunB | unit | No | |
FlareSound | sound | Yes | |
Frozen | boolean | Yes | |
FrozenEffect | effect | Yes | |
FULLRACEInTotalMINandSEC | real | Yes | |
GAME_DRIVING | integer | No | 2 |
GAME_ENGINE_TIMER | timer | No | |
GAME_FINISHING | integer | No | 4 |
GAME_LEFT | integer | No | 6 |
GAME_OVER | integer | No | 5 |
GAME_PICKING | integer | No | |
GAME_PREPARING | integer | No | 1 |
GAME_REPAIRING | integer | No | 3 |
GameGoingStatus | integer | Yes | -1 |
GameOver | boolean | No | |
GameStartTimer | timer | No | |
GameTimer | timer | No | |
GameTipTextTag | texttag | Yes | |
GARAGE_NUM | integer | No | 4 |
GhostKartVar | unitcode | Yes | |
GhostKartVar_group | group | Yes | |
GoldCoinTotal | integer | Yes | |
GoldFakeCine | unit | No | |
GREENturtleAUTOSOUND | sound | Yes | |
GunAmmo | integer | Yes | |
GunAttackTick | integer | Yes | -1 |
HeroXPConstant | integer | No | |
HeroXPLevelFactor | integer | No | |
HeroXPPrevLevelFactor | integer | No | |
HeroXPRequired | integer | No | |
HOSTILE | player | No | PlayerNA |
HowManyPicked | integer | No | |
ICeChuckUnit | unit | Yes | |
ICeChuckUnit2 | unit | Yes | |
ICeChuckUnit3 | unit | Yes | |
ICeChuckUnit4 | unit | Yes | |
ICeChuckUnit5 | unit | Yes | |
IceTrunkCooldown | integer | Yes | -1 |
IceTrunkTrigger | trigger | Yes | |
IceTrunkTriggerNum | integer | No | |
ImFrozenTimer | timer | Yes | |
ImFROZENv2 | boolean | Yes | |
ImOnTheRoad | boolean | Yes | false |
ImSnowmanTimer | timer | Yes | |
ImSpining | boolean | Yes | |
ImSpiningTimer | timer | Yes | |
ImTraped | boolean | Yes | |
ImTrapTimer | timer | Yes | |
ISCarD | boolean | No | |
IslandLobbyTimer | timer | No | |
ItsForDebug | boolean | No | false |
JesuisBlueBoxBoostBoolean | boolean | Yes | |
JesuisGreenBoxMineBoolean | boolean | Yes | |
JesuisRedBoxMissileBoolean | boolean | Yes | |
JumpPassed | boolean | Yes | |
KartCinematicNPC | unit | No | |
Lap1InMinTotal | integer | Yes | |
Lap1InSecondTotal | real | Yes | |
Lap2BooleanForImage | boolean | Yes | |
Lap2InMinTotal | integer | Yes | |
Lap2InSecondTotal | real | Yes | |
Lap3BooleanForImage | boolean | Yes | |
Lap3InMinTotal | integer | Yes | |
Lap3InSecondTotal | real | Yes | |
Lap4BooleanForImage | boolean | Yes | |
Lap5BooleanForImage | boolean | Yes | |
LapInProgress | integer | Yes | 1 |
LapNumber | integer | No | 1 |
LapSound1 | sound | Yes | |
LightningResize | integer | Yes | |
LIGHTNINGRESIZE_MAX | integer | No | 7 |
LoadingTextCode | texttag | No | |
Local_integerCheckPoint | integer | Yes | |
LocalFiles_WarningMessage | string | No | |
LostControl | boolean | Yes | |
LostControlTickle | integer | Yes | |
MapName | string | No | |
MaxPlayerReach | integer | No | |
mb | multiboard | Yes | |
MineCartTimer | timer | No | |
MineCartTimerCount | integer | No | |
MinIntegerTimer | integer | Yes | |
MODEL_NUM | integer | No | 0 |
ModelAttributes | real | Yes | |
ModelDescription | string | Yes | |
ModelHonkDur | integer | Yes | |
ModelHonkPath | string | Yes | |
ModelIcons | string | Yes | |
Models | integer | Yes | |
ModelSpinDur | integer | Yes | |
ModelSpinPath | string | Yes | |
moved | unit | Yes | |
MovedAvtoFacing | boolean | Yes | |
MovedCaster | unit | Yes | |
MovedDamage | real | Yes | |
MovedDeath | boolean | Yes | |
MovedIsSnorads | boolean | Yes | |
MovedRang | real | Yes | |
MoveFacing | real | Yes | |
MultiTurtleCDs_Boolean | boolean | Yes | |
MurlocUnitSpam1 | unit | Yes | |
MurlocUnitSpam2 | unit | Yes | |
MurlocUnitSpam3 | unit | Yes | |
MurlocUnitSpam4 | unit | Yes | |
MurlocUnitSpam5 | unit | Yes | |
MurlocUnitSpam6 | unit | Yes | |
MurlocUnitSpam7 | unit | Yes | |
MurlocUnitSpam8 | unit | Yes | |
MurlocUnitSpam9 | unit | Yes | |
NbLifesTotal | integer | Yes | 4 |
NewFrozenNovaGLobal | effect | Yes | |
nIndex | integer | No | |
nIndexChance | integer | No | |
NormalCamera | boolean | Yes | |
NPC | player | No | PlayerNP |
number | integer | No | |
NUMBER_TURTLE_LEFT | integer | Yes | 10 |
OFFICIAL_FINISH_POS | integer | Yes | |
OfficialPlayerPosition1 | integer | No | |
Pandan_random | integer | No | |
PandaNPCCinem | unit | No | |
PasserleCheckPointBoolean1 | boolean | Yes | |
PasserleCheckPointBoolean10 | boolean | Yes | |
PasserleCheckPointBoolean11 | boolean | Yes | |
PasserleCheckPointBoolean12 | boolean | Yes | |
PasserleCheckPointBoolean13 | boolean | Yes | |
PasserleCheckPointBoolean14 | boolean | Yes | |
PasserleCheckPointBoolean15 | boolean | Yes | |
PasserleCheckPointBoolean16 | boolean | Yes | |
PasserleCheckPointBoolean17 | boolean | Yes | |
PasserleCheckPointBoolean18 | boolean | Yes | |
PasserleCheckPointBoolean19 | boolean | Yes | |
PasserleCheckPointBoolean2 | boolean | Yes | |
PasserleCheckPointBoolean3 | boolean | Yes | |
PasserleCheckPointBoolean4 | boolean | Yes | |
PasserleCheckPointBoolean5 | boolean | Yes | |
PasserleCheckPointBoolean6 | boolean | Yes | |
PasserleCheckPointBoolean7 | boolean | Yes | |
PasserleCheckPointBoolean8 | boolean | Yes | |
PasserleCheckPointBoolean9 | boolean | Yes | |
Path10Passed | boolean | Yes | |
Path11Passed | boolean | Yes | |
Path12Passed | boolean | Yes | |
Path13Passed | boolean | Yes | |
Path14Passed | boolean | Yes | |
Path15Passed | boolean | Yes | |
Path16Passed | boolean | Yes | |
Path17Passed | boolean | Yes | |
Path18Passed | boolean | Yes | |
Path19Passed | boolean | Yes | |
Path1Passed | boolean | Yes | |
Path20Passed | boolean | Yes | |
Path21Passed | boolean | Yes | |
Path22Passed | boolean | Yes | |
Path23Passed | boolean | Yes | |
Path24Passed | boolean | Yes | |
Path25Passed | boolean | Yes | |
Path26Passed | boolean | Yes | |
Path27Passed | boolean | Yes | |
Path28Passed | boolean | Yes | |
Path29Passed | boolean | Yes | |
Path2Passed | boolean | Yes | |
Path30Passed | boolean | Yes | |
Path31Passed | boolean | Yes | |
Path32Passed | boolean | Yes | |
Path33Passed | boolean | Yes | |
Path34Passed | boolean | Yes | |
Path3Passed | boolean | Yes | |
Path4Passed | boolean | Yes | |
Path5Passed | boolean | Yes | |
Path6Passed | boolean | Yes | |
Path7Passed | boolean | Yes | |
Path8Passed | boolean | Yes | |
Path9Passed | boolean | Yes | |
PickCartCamera | camerasetup | Yes | |
PickCartCameraUnits | unit | Yes | |
PickCartPlayerTimer | timer | Yes | |
PickCartPos | location | Yes | |
PickCarts | unit | Yes | |
PickCartTextTag | texttag | Yes | |
PickCartTimer | timer | No | |
PickCartTimerWnd | timerdialog | No | |
PickCartVisibility | fogmodifier | Yes | |
PitCrews | unit | Yes | |
PITGARAGE_NUM | integer | No | 4 |
PitGarageOccupied | boolean | Yes | |
PitGarages | unit | Yes | |
PlaceCheckPt | unit | Yes | |
PlaceCheckPtDir | real | Yes | |
PlaceCheckPtNum | integer | No | |
PlaceCheckPtPos | location | Yes | |
PlaceChkPtCross1 | integer | No | -1 |
PlaceChkPtCross2 | integer | No | -1 |
PlaceChkPtCur | integer | Yes | -1 |
PlaceChkPtCurBak | integer | Yes | -1 |
PlaceChkPtHowFar | real | Yes | |
PlaceChkPtHowFarBak | real | Yes | |
PlaceChkPtLap | integer | Yes | -1 |
PlaceChkPtLapBak | integer | Yes | -1 |
PlaceNum | integer | No | |
Places | integer | Yes | -1 |
PLAYER_MAXNUM | integer | No | 24 |
PlayerBlazeFlag | integer | Yes | |
PlayerBlazeFlag11 | integer | Yes | |
PlayerBlazeFlag2 | integer | Yes | |
PlayerBlazeFlag22 | integer | Yes | |
PlayerBlazeFlag3 | integer | Yes | |
PlayerBlazeFlag4 | integer | Yes | |
PlayerCameraIndex | integer | Yes | 2 |
PlayerCameraTarget | unit | Yes | |
PlayerColor | string | Yes | |
PlayerColorBlue | integer | Yes | |
PlayerColorGreen | integer | Yes | |
PlayerColorRed | integer | Yes | |
PlayerKartLoading | boolean | No | |
PlayerModels | integer | Yes | -1 |
portaleffect | effect | No | |
POrtalUNit1 | unit | No | |
POrtalUNit2 | unit | No | |
PositionKart | integer | Yes | 0 |
PositionOfficialRace | integer | Yes | |
PowerUpNames | string | Yes | |
PowerUpPickChance | integer | Yes | |
PowerUpTypeNum | integer | No | |
PowerUpTypes | abilcode | Yes | |
PowerUpUnitTypeNum | integer | No | |
PowerUpUnitTypes | unitcode | Yes | |
ProhibitAreaNum | integer | No | |
ProhibitAreas | rect | Yes | |
Quest1isdone | boolean | Yes | |
QuestworkP1Only | boolean | Yes | |
QUITLOOP | boolean | Yes | |
Race2HaveSTarted | boolean | No | |
Race3HaveSTarted | boolean | No | |
RaceDone | boolean | Yes | |
RaceHaveSTarted | boolean | No | |
RaceIsStartingSoon | boolean | Yes | |
RandomMurlocInteger | integer | No | |
realMove | real | Yes | |
realStop | real | Yes | |
REDturtleAUTOSOUND | sound | Yes | |
RunOrNO | boolean | Yes | |
SaveAbilityType | abilcode | Yes | |
SaveAbilityTypeMax | integer | No | |
SaveCodeColored | string | No | |
SaveCodeCompleteINTEGER | integer | No | |
SaveCodeCompleteSTRING | string | No | |
SaveCount | integer | No | |
SaveCurrentSlot | integer | Yes | |
SaveHeroName | boolean | No | |
SaveItemType | itemcode | Yes | |
SaveItemTypeMax | integer | No | |
SaveLoad_HeroName | boolean | No | |
SaveLoad_Slot | integer | No | |
SaveLoad_TriggerName | string | No | |
SaveLoadEvent | real | No | |
SaveLoadEvent_Code | string | No | |
SaveLoadEvent_Player | player | No | |
SaveLoadMaxLength | integer | No | |
SaveMaxValue | integer | Yes | |
SaveNameList | string | Yes | |
SaveNameMax | integer | No | |
SavePlayerHero | unit | Yes | |
SavePlayerLoading | boolean | Yes | |
SaveShowCode | boolean | No | |
SaveTempInt | integer | No | |
SaveTempReal | real | No | |
SaveTempString | string | No | |
SaveTempUnit | unit | No | |
SaveUnitMaxStat | integer | No | |
SaveUnitType | unitcode | Yes | |
SaveUnitTypeMax | integer | No | |
SaveUseGUI | boolean | No | |
SaveValue | integer | Yes | |
SecondRealTimer | real | Yes | |
SheepFled | boolean | No | |
SheepTimer | timer | No | |
ShipAttackTimer | timer | No | |
Ships | unit | Yes | |
ShipTargetPoint | location | Yes | |
SkillNumber_integer | integer | Yes | |
SkyboxTestp1 | effect | Yes | |
SNDINDEX_BRAKE | integer | No | 4 |
SNDINDEX_COAST | integer | No | 0 |
SNDINDEX_GOING1 | integer | No | 1 |
SNDINDEX_GOING2 | integer | No | 2 |
SNDINDEX_GOING3 | integer | No | 3 |
SNDINDEX_NONE | integer | No | -1 |
SPamBlizzActivated | boolean | No | |
SpamGuysTest | unit | No | |
SPAMKARTTEST | unit | No | |
SpamTimmyisReady | boolean | No | |
SpamTimmyisReadySTONE | boolean | No | |
SpamTimmyisReadyv2 | boolean | No | |
Speed | real | Yes | 0.00 |
START_ANGLE | real | No | 90.00 |
StartPoints | location | Yes | |
StartTimerPickCart | timer | Yes | |
STOP_TRIGGER_LOOP | boolean | No | |
StopFlares | boolean | No | |
StopRaceTimerLoop | boolean | Yes | |
StopSpamIce | boolean | No | |
StopSpamMurloc | boolean | No | |
StringRace1Progress | string | No | 10 |
StringRace2Progress | string | No | 10 |
StringRace3Progress | string | No | 10 |
StringRace4Progress | string | No | 10 |
StringRace5Progress | string | No | 10 |
StringRace6Progress | string | No | 10 |
StringRace7Progress | string | No | 10 |
StringRace8Progress | string | No | 10 |
StringRace9Progress | string | No | 10 |
StringTotalGoldA | string | No | 00 |
StringTotalGoldB | string | No | 00 |
StringTotalGoldC | string | No | 00 |
TempCalculatorGOLDXtot | integer | No | |
TempCalculatorXIntegerTot | integer | No | |
TempCodeA | integer | No | |
TempCodeB | integer | No | |
TempCodeC | integer | No | |
TempFlarePoint | location | No | |
TempGoldAllowedToT | integer | No | |
TempVolcanoPoint | location | No | |
TempVolcanoPoint2 | location | No | |
TempVolcanoPoint3 | location | No | |
TempVolcanoPoint4 | location | No | |
TempVolcanoPointNew1 | location | No | |
TempVolcanoPointNew2 | location | No | |
TempVolcanoPointNew3 | location | No | |
TempVolcanoPointNew4 | location | No | |
TempVolcanoPointNew5 | location | No | |
TempVolcanoPointNew6 | location | No | |
TempVolcanoPointNew7 | location | No | |
TempVolcanoPointNew8 | location | No | |
TempVolcanoPointNew9 | location | No | |
ThrowTurtleAngle | real | Yes | |
ThrowTurtleAngle1 | real | Yes | |
ThrowTurtleAngle10 | real | Yes | |
ThrowTurtleAngle2 | real | Yes | |
ThrowTurtleAngle3 | real | Yes | |
ThrowTurtleAngle4 | real | Yes | |
ThrowTurtleAngle5 | real | Yes | |
ThrowTurtleAngle6 | real | Yes | |
ThrowTurtleAngle7 | real | Yes | |
ThrowTurtleAngle8 | real | Yes | |
ThrowTurtleAngle9 | real | Yes | |
ThrowTurtleTimer | timer | Yes | |
ThrowTurtleTimer2 | timer | Yes | |
ThrowTurtleTimer3_10 | timer | Yes | |
ThrowTurtleTimer3_9 | timer | Yes | |
TickMedium | integer | No | |
TickSlow | integer | No | |
Timer_BoostLag | timer | Yes | |
Timer_Boosttozero | timer | Yes | |
Timer_EachLaps | timer | Yes | |
Timer_GlobalTimerRace | timer | Yes | |
Timer_Multiturtle | timer | Yes | |
Timer_String | string | Yes | |
TimerCutsceneReset | timer | Yes | |
TimerLapWaitEnd | timer | Yes | |
TimeUsed | real | Yes | |
ToonImpact | effect | Yes | |
Tornado_egod | unit | No | |
TotalCheckPointCul | integer | Yes | |
TOTALTIMERYET | real | Yes | |
TOTALTIMERYET_afterlap1 | real | Yes | |
TOTALTIMERYET_afterlap2 | real | Yes | |
TOTALTIMERYET_afterlap3 | real | Yes | |
TOTALTIMERYET_afterlapFinal | real | Yes | |
TOTALTIMERYET_XXXX | real | Yes | |
TrapMax | integer | No | |
Traps | unit | Yes | |
TrapTriggers | trigger | Yes | |
Turning | integer | Yes | |
TURNING_LEFT | integer | No | -1 |
TURNING_NOTURN | integer | No | 0 |
TURNING_RIGHT | integer | No | 1 |
TurnSpeed | real | Yes | |
TurtlePointGreen | location | Yes | |
TurtleThrown | unit | Yes | |
TurtleThrown3_1 | unit | Yes | |
TurtleThrown3_10 | unit | Yes | |
TurtleThrown3_2 | unit | Yes | |
TurtleThrown3_3 | unit | Yes | |
TurtleThrown3_4 | unit | Yes | |
TurtleThrown3_5 | unit | Yes | |
TurtleThrown3_6 | unit | Yes | |
TurtleThrown3_7 | unit | Yes | |
TurtleThrown3_8 | unit | Yes | |
TurtleThrown3_9 | unit | Yes | |
TurtleThrowTickle | integer | Yes | |
TurtleThrowTickle2 | integer | Yes | |
TurtleThrowTickle3_1 | integer | Yes | |
TurtleThrowTickle3_10 | integer | Yes | |
TurtleThrowTickle3_2 | integer | Yes | |
TurtleThrowTickle3_3 | integer | Yes | |
TurtleThrowTickle3_4 | integer | Yes | |
TurtleThrowTickle3_5 | integer | Yes | |
TurtleThrowTickle3_6 | integer | Yes | |
TurtleThrowTickle3_7 | integer | Yes | |
TurtleThrowTickle3_8 | integer | Yes | |
TurtleThrowTickle3_9 | integer | Yes | |
uca | unit | No | |
ucd | unit | Yes | |
UnitTypeforAnim | integer | Yes | |
Untitled_Variable_001 | real | No | |
UseInvulnerableIndex | integer | Yes | |
UyarrrGhost | unitcode | Yes | |
UyarrrGhostsGroup | group | No | |
ValidationCodeAccountABC | string | No | |
VictoryString | string | No | |
VolcanoRegion | rect | Yes | |
VolcanoSPam1 | unit | No | |
VolcanoSPam2 | unit | No | |
VolcanoSPam3 | unit | No | |
VolcanoSPam4 | unit | No | |
VolcanoSPam5 | unit | No | |
VolcanoSPam6 | unit | No | |
VolcanoSPam7 | unit | No | |
VolcanoSPam8 | unit | No | |
VolcanoUnit | unit | No | |
VolcanoUnit1 | unit | No | |
VolcanoUnit2 | unit | No | |
VolcanoUnit3 | unit | No | |
VolcanoUnit4 | unit | No | |
VolcanoUnit5 | unit | No | |
VolcanoUnit6 | unit | No | |
VolcanoUnit7 | unit | No | |
VolcanoUnit8 | unit | No | |
VolcanoUnit9 | unit | No | |
VulnerableSignal | item | Yes | |
WarningWrongDir | boolean | Yes | |
WeatherRain | weathereffect | No |
//TESH.scrollpos=74
//TESH.alwaysfold=0
function RemoveNotPlaying takes nothing returns nothing
if GetOwningPlayer(GetEnumUnit()) == RemoveOwn then
call RemoveUnit(GetEnumUnit())
endif
endfunction
function Trig_IniTest_Actions takes nothing returns nothing
globals
Car ct = 0
player RemoveOwn
endglobals
local group gr
local location l
//call CreateCar(gg_unit_h000_0056)
//set ct = CreateCar(gg_unit_h000_0056)
//if GetPlayerSlotState(GetOwningPlayer(gg_unit_h000_0056)) == PLAYER_SLOT_STATE_PLAYING then
// call CreateCar(gg_unit_h000_0056)
//else
// set l = GetUnitLoc(gg_unit_h000_0056)
// set gr = GetUnitsInRangeOfLocAll(1000,l)
// set RemoveOwn = GetOwningPlayer(gg_unit_h000_0056)
// call ForGroup( gr , function RemoveNotPlaying)
// call DestroyGroup(gr)
// call RemoveLocation(l)
// set gr = null
// set l = null
//endif
//if GetPlayerSlotState(GetOwningPlayer(gg_unit_h00S_0057)) == PLAYER_SLOT_STATE_PLAYING then
// call CreateCar(gg_unit_h00S_0057)
//else
// set l = GetUnitLoc(gg_unit_h00S_0057)
// set gr = GetUnitsInRangeOfLocAll(1000,l)
// set RemoveOwn = GetOwningPlayer(gg_unit_h00S_0057)
// call ForGroup( gr , function RemoveNotPlaying)
// call DestroyGroup(gr)
// call RemoveLocation(l)
// set gr = null
// set l = null
//endif
//if GetPlayerSlotState(GetOwningPlayer(gg_unit_h000_0093)) == PLAYER_SLOT_STATE_PLAYING then
// call CreateCar(gg_unit_h000_0093)
//else
// set l = GetUnitLoc(gg_unit_h000_0093)
// set gr = GetUnitsInRangeOfLocAll(1000,l)
// set RemoveOwn = GetOwningPlayer(gg_unit_h000_0093)
// call ForGroup( gr , function RemoveNotPlaying)
// call DestroyGroup(gr)
// call RemoveLocation(l)
// set gr = null
// set l = null
//endif
//if GetPlayerSlotState(GetOwningPlayer(gg_unit_h000_0094)) == PLAYER_SLOT_STATE_PLAYING then
// call CreateCar(gg_unit_h000_0094)
//else
// set l = GetUnitLoc(gg_unit_h000_0094)
// set gr = GetUnitsInRangeOfLocAll(1000,l)
// set RemoveOwn = GetOwningPlayer(gg_unit_h000_0094)
// call ForGroup( gr , function RemoveNotPlaying)
// call DestroyGroup(gr)
// call RemoveLocation(l)
// set gr = null
// set l = null
//endif
//if GetPlayerSlotState(GetOwningPlayer(gg_unit_h000_0095)) == PLAYER_SLOT_STATE_PLAYING then
// call CreateCar(gg_unit_h000_0095)
//else
// set l = GetUnitLoc(gg_unit_h000_0095)
// set gr = GetUnitsInRangeOfLocAll(1000,l)
// set RemoveOwn = GetOwningPlayer(gg_unit_h000_0095)
// call ForGroup( gr , function RemoveNotPlaying)
// call DestroyGroup(gr)
// call RemoveLocation(l)
// set gr = null
// set l = null
//endif
//if GetPlayerSlotState(GetOwningPlayer(gg_unit_h000_0096)) == PLAYER_SLOT_STATE_PLAYING then
// call CreateCar(gg_unit_h000_0096)
//else
// set l = GetUnitLoc(gg_unit_h000_0096)
// set gr = GetUnitsInRangeOfLocAll(1000,l)
// set RemoveOwn = GetOwningPlayer(gg_unit_h000_0096)
// call ForGroup( gr , function RemoveNotPlaying)
// call DestroyGroup(gr)
// call RemoveLocation(l)
// set gr = null
// set l = null
//endif
//if GetPlayerSlotState(GetOwningPlayer(gg_unit_h000_0097)) == PLAYER_SLOT_STATE_PLAYING then
// call CreateCar(gg_unit_h000_0097)
//else
// set l = GetUnitLoc(gg_unit_h000_0097)
// set gr = GetUnitsInRangeOfLocAll(1000,l)
// set RemoveOwn = GetOwningPlayer(gg_unit_h000_0097)
// call ForGroup( gr , function RemoveNotPlaying)
// call DestroyGroup(gr)
// call RemoveLocation(l)
// set gr = null
// set l = null
//endif
endfunction
//===========================================================================
function InitTrig_IniTest takes nothing returns nothing
set gg_trg_IniTest = CreateTrigger( )
call TriggerAddAction( gg_trg_IniTest, function Trig_IniTest_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Move_Func002A takes nothing returns nothing
if GetOwningPlayer(GetEnumUnit()) == GetTriggerPlayer() then
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_StartingZone1) )
endif
endfunction
function Trig_Move_Actions takes nothing returns nothing
local integer i = 0
local location l
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Move_Func002A )
loop
if GetOwningPlayer(Stek.S[i].u) == GetTriggerPlayer() then
set l = GetRandomLocInRect(gg_rct_StartingZone1)
set Stek.S[i].x = GetLocationX(l)
set Stek.S[i].y = GetLocationY(l)
call RemoveLocation(l)
endif
exitwhen i >= Stek.i
set i = i + 1
endloop
endfunction
//===========================================================================
function InitTrig_Move takes nothing returns nothing
set gg_trg_Move = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Move, Player(0), "-move3", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Move, Player(1), "-move3", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Move, Player(2), "-move3", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Move, Player(3), "-move3", true )
call TriggerAddAction( gg_trg_Move, function Trig_Move_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
//TESH.scrollpos=72
//TESH.alwaysfold=0
library FDLCLCarBase initializer InitCarBase
// Vehicle type database for FDL CarLib v2.0 and below. Please do not be afraid of arrays, cumbersome, but fast and reliable
globals
private constant integer Max =100
integer array FDLCL_UID [Max]
real array FDLCL_MV [Max]
real array FDLCL_BMV [Max]
real array FDLCL_TV [Max]
real array FDLCL_AC [Max]
real array FDLCL_CM [Max]
real array FDLCL_Smu [Max]
real array FDLCL_Anim [Max]
real array FDLCL_AnimW [Max]
integer FDLCL_CI = 1
endglobals
// Vehicle type registration, takes unit type, max. speed, max. reverse speed, turn rate, acceleration, mass, coefficient of friction, duration of walk and stand animations
function RegisterCar takes integer UnitID, real Speed, real BackSpeed, real TurnSpeed, real Accelerate, real mass, real Smu, real AnimW, real AnimS returns boolean
if FDLCL_CI > 100 then
return false
else
set FDLCL_UID[FDLCL_CI] = UnitID
set FDLCL_MV[FDLCL_CI] = Speed
set FDLCL_BMV[FDLCL_CI] = BackSpeed
set FDLCL_TV[FDLCL_CI] = TurnSpeed
set FDLCL_AC[FDLCL_CI] = Accelerate
set FDLCL_CM[FDLCL_CI] = mass
set FDLCL_Smu[FDLCL_CI] = Smu
set FDLCL_AnimW[FDLCL_CI] = AnimW
set FDLCL_Anim[FDLCL_CI] = AnimS
set FDLCL_CI = FDLCL_CI + 1
return true
endif
endfunction
function DeleteCarType takes integer i returns boolean
if FDLCL_UID[i] == 0 then
return false
else
set FDLCL_CI = FDLCL_CI - 1
set FDLCL_UID[i] = FDLCL_UID[FDLCL_CI]
set FDLCL_MV[i] = FDLCL_MV[FDLCL_CI]
set FDLCL_BMV[i] = FDLCL_BMV[FDLCL_CI]
set FDLCL_TV[i] = FDLCL_TV[FDLCL_CI]
set FDLCL_AC[i] = FDLCL_AC[FDLCL_CI]
set FDLCL_CM[i] = FDLCL_CM[FDLCL_CI]
set FDLCL_Smu[i] = FDLCL_Smu[FDLCL_CI]
set FDLCL_AnimW[i] = FDLCL_AnimW[FDLCL_CI]
set FDLCL_Anim[i] = FDLCL_Anim[FDLCL_CI]
set FDLCL_UID[FDLCL_CI] = 0
set FDLCL_MV[FDLCL_CI] = 0
set FDLCL_BMV[FDLCL_CI] = 0
set FDLCL_TV[FDLCL_CI] = 0
set FDLCL_AC[FDLCL_CI] = 0
set FDLCL_CM[FDLCL_CI] = 0
set FDLCL_Smu[FDLCL_CI] = 0
set FDLCL_AnimW[FDLCL_CI] = 0
set FDLCL_Anim[FDLCL_CI] = 0
return true
endif
endfunction
// Returns the database array index for the given machine type
function GetCarType takes integer CarId returns integer
local integer i = 0
loop
if FDLCL_UID[i] == CarId then
return i
endif
exitwhen i >= FDLCL_CI - 1
set i = i + 1
endloop
return 0
endfunction
// In order not to have many types of vehicles for the same type of unit, use this function
function IsInCarBase takes integer CarId returns boolean
local integer i = 0
loop
if FDLCL_UID[i] == CarId then
return true
endif
exitwhen i >= FDLCL_CI - 1
set i = i + 1
endloop
return false
endfunction
//===========================================================================
// Registration of basic types of machines
function InitCarBase takes nothing returns nothing
call RegisterCar('h000',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h00T',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h00S',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h00U',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h00X',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h010',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h00Z',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h00Y',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h00V',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h00W',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h011',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h012',360,160,5,30,1000,0.4,2.325,2.333)
call RegisterCar('h013',390,160,5,35,2000,0.4,2.325,2.333)
call RegisterCar('h014',390,200,7,45,2000,0.4,2.325,4.333)
call RegisterCar('h015',390,200,7,45,2000,0.4,2.325,4.333)
//Normal original = call RegisterCar('h012',320,170,5,25,1000,0.4,2.325,2.333)
endfunction
endlibrary
function InitTrig_FDLCL_CarBase takes nothing returns nothing
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
library FDLCLDestBase initializer InitDestBase
// Database of destructible objects (height, radius, mass) for FDL CarLib v2.0 and below, use special for decoration. blocker
globals
// Specialist. blocker, registration of its type goes below
integer FDLCL_BlokiratorId = 'YTpc'
private real BlokiratorH = 200 // his high
private real BlokiratorR = 130 // and radius
// I advise you not to touch
private constant integer Max = 100
integer array FDLCL_DID [Max]
real array FDLCL_DH [Max]
real array FDLCL_DR [Max]
integer FDLCL_DI = 1
real FDLCL_MaxDestrRadius = BlokiratorR
endglobals
// Registering the type of decoration takes the type of destra, its height, radius
function RegisterDest takes integer DestID, real height, real radius returns boolean
if FDLCL_DI > 100 then
return false
else
set FDLCL_DID[FDLCL_DI] = DestID
set FDLCL_DH[FDLCL_DI] = height
set FDLCL_DR[FDLCL_DI] = radius
set FDLCL_DI = FDLCL_DI + 1
if radius > FDLCL_MaxDestrRadius then
set FDLCL_MaxDestrRadius = radius
endif
return true
endif
endfunction
function DeleteDestType takes integer i returns boolean
if FDLCL_DID[i] == 0 then
return false
else
set FDLCL_DI = FDLCL_DI - 1
set FDLCL_DID[i] = FDLCL_DID[FDLCL_DI]
set FDLCL_DH[i] = FDLCL_DH[FDLCL_DI]
set FDLCL_DR[i] = FDLCL_DR[FDLCL_DI]
set FDLCL_DID[FDLCL_DI] = 0
set FDLCL_DH[FDLCL_DI] = 0
set FDLCL_DR[FDLCL_DI] = 0
set i = 1
loop
if FDLCL_DR[i] > FDLCL_MaxDestrRadius then
set FDLCL_MaxDestrRadius = FDLCL_DR[i]
endif
exitwhen i >= FDLCL_DI - 1
set i = i + 1
endloop
return true
endif
endfunction
//Returns the index of the destra type in the database
function GetDestType takes integer DestId returns integer
local integer i = 0
loop
if FDLCL_DID[i] == DestId then
return i
endif
exitwhen i >= FDLCL_DI - 1
set i = i + 1
endloop
return 0
endfunction
// In order to not have more than one assigned to 1 kind of destr in the database, use this function
function IsInDestBase takes integer DestId returns boolean
local integer i = 0
loop
if FDLCL_DID[i] == DestId then
return true
endif
exitwhen i >= FDLCL_DI - 1
set i = i + 1
endloop
return false
endfunction
//===========================================================================
// Registration of basic types of destructible objects
function InitDestBase takes nothing returns nothing
call RegisterDest('LTlt',350,50)
// Registration of a universal blocker
call RegisterDest(FDLCL_BlokiratorId,BlokiratorH,BlokiratorR)
endfunction
endlibrary
function InitTrig_FDLCL_DestBase takes nothing returns nothing
endfunction
//TESH.scrollpos=8
//TESH.alwaysfold=0
library FDLCarLib initializer InitCarLib uses FDL,FDLCLCarBase,FDLCLDestBase
// Vehicle movement system library, Fisics Dynamil Library, databases of vehicles, destructible objects are required
//=========================================================================================
//=
//= System Settings
//=
//=========================================================================================
globals
// System Settings
private real CustomCarG = 20.5 // Acceleration due to gravity, differs from that in FDL in that it does not apply to friction ORI=14.5
private real UnitFriction = 0.9 // Downed Unit Friction ORI=0.6
private real UnitElastic = 0.3 // Elasticity of a knocked down body (at 1 it jumps like a ball)ORI=0.9
private real VerticalHitUnitSpeed = 100 // Additional impulse up for the downed unitORI=100
private real DeafultUnitMass = 200 // Unit weight by defaultORI=100
private real DeafultUnitHeight = 60 // The height of the unit to be crushed (usually rabbits, etc. neutrals) ORI=30
private real HitUnitCanRunSpeed = 24 // The speed at which a downed unit can move itselfORI=24
private real HitEffectSpeed = 400 // The speed at which the impact effect appears (normal projection to the impact plane is taken) ORI=400
private real CarNotReadySmu = 0.3 // Friction of a parked car ORI=0.3
private real LeaveUnitCanRunS = 1 // The speed at which a passenger who has bounced out of the car can run again ORI=1
private real FindUnitRadius = 100 // Collision Search Radius ORI=100
private real HitDestrDamageK = 0.050 // Destram Damage Reduction Factor on Hit ORI=0.025
private real UnitHitDamageK = 0.030 // The coefficient of damage to the downed unit ORI=0.019
private real DestrHitResistK = 0.8 // Impact velocity reflection attenuation factor ORI=0.8
private real DestrHitMinSpeedAnim = 60 // The minimum speed at which the tree plays the animation stand hit ORI=60
private real MaxAddSmu = 1 //The maximum additional coefficient of friction when moving across the course of the machine ORI=1
// Camera settings
private real CAMERA_H = 120 //ORI=120
private real Distanse = 760 //ORI=1100
//120
//450
//30
private real AngleMaxH = 11
private real CamAngle = -20
// Further touching is not recommended.
private real MainTimerV = 0.025
Car array Cars [12]
Car array AllCars [500]
integer AllCarsI = 1
Body array PassBodyDestr [100]
integer PassBodyDestrI = 0
private Body CarHit
Body array CS_Victims [100]
integer CS_Vi = 0
Body DestHitB
timer Car_move_timer = CreateTimer()
timer Destroy_UnitHit_timer =CreateTimer()
endglobals
//=========================================================================================
//=
//= Object "car"
//=
//=========================================================================================
struct Car
boolean camera // does the car camera work
boolean IsReady = false //machine in working order
boolean up = false // Keys
boolean down = false
boolean left = false
boolean right = false
Body b // Physical body, FDL library
unit u2 = null // Passenger
real MaxV // Max speed
real BackV // Maximum reverse speed
real a // Acceleration
real TurnV // turning speed
real Smu // Friction
real AnimW = 1. // Tween Duration
real Anim = 1. // Rest Animation Duration
trigger enter = CreateTrigger() // Entry/exit triggers
trigger leave = CreateTrigger()
// Destroys the machine, takes a bool - whether to delete the physical body (the unit itself is not deleted)
method Destroy takes boolean DestrBody returns nothing
local integer i = 1
call TriggerClearActions(this.enter)
call TriggerClearActions(this.leave)
call DestroyTrigger(this.enter)
call DestroyTrigger(this.leave)
set Cars[GetPlayerId(GetOwningPlayer(this.b.u))] = 0
if DestrBody then
call this.b.Remove(false)
endif
loop
if AllCars[i].b.u == this.b.u then
set AllCars[i] = AllCars[AllCarsI]
set AllCars[AllCarsI] = 0
set AllCarsI = AllCarsI - 1
endif
exitwhen i >= 500
set i = i + 1
endloop
call this.destroy()
endmethod
endstruct
// For machine creation function, see "Utilities" section
//=========================================================================================
//=
//= Utility functions
//=
//=========================================================================================
function CheckplayP1 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP2 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP3 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP4 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP5 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP6 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP7 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP8 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP9 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP10 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(9)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP11 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(10)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP12 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(11)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP13 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(12)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP14 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(13)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP15 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(14)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP16 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(15)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP17 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(16)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP18 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(17)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP19 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(18)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckplayP20 takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(19)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function CheckCumP1 takes nothing returns boolean
if ( not ( GetPlayerController(Player(0)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP2 takes nothing returns boolean
if ( not ( GetPlayerController(Player(1)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP3 takes nothing returns boolean
if ( not ( GetPlayerController(Player(2)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP4 takes nothing returns boolean
if ( not ( GetPlayerController(Player(3)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP5 takes nothing returns boolean
if ( not ( GetPlayerController(Player(4)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP6 takes nothing returns boolean
if ( not ( GetPlayerController(Player(5)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP7 takes nothing returns boolean
if ( not ( GetPlayerController(Player(6)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP8 takes nothing returns boolean
if ( not ( GetPlayerController(Player(7)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP9 takes nothing returns boolean
if ( not ( GetPlayerController(Player(8)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP10 takes nothing returns boolean
if ( not ( GetPlayerController(Player(9)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP11 takes nothing returns boolean
if ( not ( GetPlayerController(Player(10)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP12 takes nothing returns boolean
if ( not ( GetPlayerController(Player(11)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP13 takes nothing returns boolean
if ( not ( GetPlayerController(Player(12)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP14 takes nothing returns boolean
if ( not ( GetPlayerController(Player(13)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP15 takes nothing returns boolean
if ( not ( GetPlayerController(Player(14)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP16 takes nothing returns boolean
if ( not ( GetPlayerController(Player(15)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP17 takes nothing returns boolean
if ( not ( GetPlayerController(Player(16)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP18 takes nothing returns boolean
if ( not ( GetPlayerController(Player(17)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP19 takes nothing returns boolean
if ( not ( GetPlayerController(Player(18)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CheckCumP20 takes nothing returns boolean
if ( not ( GetPlayerController(Player(19)) != MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function CAMERA_ACTIVATE takes integer i returns boolean
if ( not ( udg_CAMERA_ACTIVATED[i] == true ) ) then
return false
endif
return true
endfunction
// Finds a machine by unit, finds any created machines, whether their bodies are running or stopped
function FindCar takes unit u returns Car
local integer i = 1
loop
if AllCars[i].b.u == u then
return AllCars[i]
endif
exitwhen i >= 500
set i = i + 1
endloop
return 0
endfunction
// Camera function
private function Camera takes Body b, boolean camera, integer i returns nothing
local location loc
local real HeroZ
local unit v = b.u
local real s
//PLAYERXXXXXXXXXXXXX
if ( CheckplayP1() ) then
if ( CheckCumP1() ) then
if ( CAMERA_ACTIVATE(0)) then
if i == 0 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckplayP2() ) then
if ( CheckCumP2() ) then
if ( CAMERA_ACTIVATE(1)) then
if i == 1 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP3() ) then
if ( CheckplayP3() ) then
if ( CAMERA_ACTIVATE(2)) then
if i == 2 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP4() ) then
if ( CheckplayP4() ) then
if ( CAMERA_ACTIVATE(3)) then
if i == 3 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP5() ) then
if ( CheckplayP5() ) then
if ( CAMERA_ACTIVATE(4)) then
if i == 4 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP6() ) then
if ( CheckplayP6() ) then
if ( CAMERA_ACTIVATE(5)) then
if i == 5 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP7() ) then
if ( CheckplayP7() ) then
if ( CAMERA_ACTIVATE(6)) then
if i == 6 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP8() ) then
if ( CheckplayP8() ) then
if ( CAMERA_ACTIVATE(7)) then
if i == 7 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP9() ) then
if ( CheckplayP9() ) then
if ( CAMERA_ACTIVATE(8)) then
if i == 8 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP10() ) then
if ( CheckplayP10() ) then
if ( CAMERA_ACTIVATE(9)) then
if i == 9 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP11() ) then
if ( CheckplayP11() ) then
if ( CAMERA_ACTIVATE(10)) then
if i == 10 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP12() ) then
if ( CheckplayP12() ) then
if ( CAMERA_ACTIVATE(11)) then
if i == 11 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP13() ) then
if ( CheckplayP13() ) then
if ( CAMERA_ACTIVATE(12)) then
if i == 12 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP14() ) then
if ( CheckplayP14() ) then
if ( CAMERA_ACTIVATE(13)) then
if i == 13 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP15() ) then
if ( CheckplayP15() ) then
if ( CAMERA_ACTIVATE(14)) then
if i == 14 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP16() ) then
if ( CheckplayP16() ) then
if ( CAMERA_ACTIVATE(15)) then
if i == 15 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP17() ) then
if ( CheckplayP17() ) then
if ( CAMERA_ACTIVATE(16)) then
if i == 16 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP18() ) then
if ( CheckplayP18() ) then
if ( CAMERA_ACTIVATE(17)) then
if i == 17 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP19() ) then
if ( CheckplayP19() ) then
if ( CAMERA_ACTIVATE(18)) then
if i == 18 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
if ( CheckCumP20() ) then
if ( CheckplayP20() ) then
if ( CAMERA_ACTIVATE(19)) then
if i == 19 then
if ( v != null and camera) then
set loc = GetUnitLoc(v)
set HeroZ = GetZ(GetLocationX(loc),GetLocationY(loc)) + GetUnitFlyHeight(v)
// call MoveLocation(loc,PolarX(GetUnitX(v),-400, GetUnitFacing(v)),PolarY(GetUnitY(v),-400, GetUnitFacing(v)))
call SetCameraTargetControllerNoZForPlayer( Player(i), v, 0.00, 0.00, false )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_TARGET_DISTANCE, Distanse, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ZOFFSET, CAMERA_H + b.z, 0.25 )
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ROTATION, GetUnitFacing(v), 0.25 )
if -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH < -CamAngle then
call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -25 + GetUnitFlyHeight(v)/AngleMaxH + (HeroZ-GetZ(GetCameraEyePositionX(),GetCameraEyePositionY()))/AngleMaxH, 0.25 )
else
// call SetCameraFieldForPlayer( Player(i), CAMERA_FIELD_ANGLE_OF_ATTACK, -CamAngle , 0.25 )
endif
call RemoveLocation(loc)
set loc = null
endif
endif
endif
endif
endif
endfunction
// Landing Trigger Actions
private function Enter_A takes nothing returns nothing
local Car C
if IsInCarBase(GetUnitTypeId(GetTransportUnit())) then
set C = FindCar(GetTransportUnit())
call C.b.AddFriction(C.Smu)
set Cars[GetPlayerId(GetOwningPlayer(GetTransportUnit()))] = C
set C.IsReady = true
set C.camera = true
set C.u2 = GetLoadedUnit()
//call DisplayTextToForce( GetPlayersAll(), "JE LOAD UN CAR NOW1" )
endif
endfunction
// Removing the physical body of a disembarking passenger
private function DestroyBodyT_A takes nothing returns nothing
local integer i = 1
loop
if PassBodyDestr[i]!= 0 and (SquareRoot((PassBodyDestr[i].x -PassBodyDestr[i].kx)*(PassBodyDestr[i].x -PassBodyDestr[i].kx) + (PassBodyDestr[i].y -PassBodyDestr[i].ky)*(PassBodyDestr[i].y -PassBodyDestr[i].ky) + (PassBodyDestr[i].z -PassBodyDestr[i].kz)*(PassBodyDestr[i].z -PassBodyDestr[i].kz) ) < LeaveUnitCanRunS or GetUnitState(PassBodyDestr[i].u,UNIT_STATE_LIFE) <= 0) then
call PassBodyDestr[i].Remove(false)
if not IsTerrainPathable(PassBodyDestr[i].x,PassBodyDestr[i].y,PATHING_TYPE_FLOATABILITY) then
call KillUnit(PassBodyDestr[i].u)
endif
set PassBodyDestr[i] = PassBodyDestr[PassBodyDestrI]
set PassBodyDestr[PassBodyDestrI] = 0
set PassBodyDestrI = PassBodyDestrI - 1
call DestroyTimer(GetExpiredTimer())
endif
exitwhen i >= PassBodyDestrI
set i = i + 1
endloop
endfunction
// Deploy trigger actions
private function Leave_A takes nothing returns nothing
local Body b
local unit u
local timer DestroyBodyT
if (GetIssuedOrderId() == String2OrderIdBJ("unloadall") or GetIssuedOrderId() == String2OrderIdBJ("unload")) and GetOrderedUnit() == Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.u then
//call DisplayTextToForce( GetPlayersAll(), "JE UNNNNNNNNNNLOAD UN CAR NOW" )
call DisableTrigger(GetTriggeringTrigger())
call Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.AddFriction(CarNotReadySmu)
set Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].IsReady = false
set Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].camera = false
call Camera(Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b,false,GetPlayerId(GetOwningPlayer(GetOrderedUnit())))
call ResetToGameCameraForPlayer(GetOwningPlayer(GetOrderedUnit()), 0)
call SetUnitAnimation(Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.u,"stand")
call SetUnitTimeScale(Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.u,1)
set u = Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].u2
if not IsBodyExt(u) then
//call DisplayTextToForce( GetPlayersAll(), "BODY EXIST?????" )
set b = CreateBody(Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.x - 300*CosBJ(GetUnitFacing(Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.u)) ,Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.y - 300*SinBJ(GetUnitFacing(Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.u)),Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.z, u, 100)
call b.SetUpr(40)
call b.AddFriction(0.9)
call b.AddG()
call b.Start()
call b.SetSpeed(Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.v.vx,Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.v.vy,Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.v.vz)
set DestroyBodyT = CreateTimer()
set PassBodyDestrI = PassBodyDestrI + 1
set PassBodyDestr[PassBodyDestrI] = b
call TimerStart(DestroyBodyT,1,true, function DestroyBodyT_A)
else
//call DisplayTextToForce( GetPlayersAll(), "BODY DOESNT EXIST!" )
call b.SetSpeed(Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.v.vx,Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.v.vy,Cars[GetPlayerId(GetOwningPlayer(GetOrderedUnit()))].b.v.vz)
endif
call EnableTrigger(GetTriggeringTrigger())
endif
endfunction
// Function to create a car, but first you need to register the type of car
function CreateCar takes unit car returns Car
local Car C = Car.create()
local integer i = GetCarType(GetUnitTypeId(car))
set C.b = CreateBody(GetUnitX(car),GetUnitY(car),0,car,FDLCL_CM[i])
call C.b.SetUpr(70)
call C.b.AddCustomG(CustomCarG)
set C.MaxV = FDLCL_MV[i]
set C.BackV = FDLCL_BMV[i]
set C.TurnV = FDLCL_TV[i]
set C.a = FDLCL_AC[i]
set C.Smu = FDLCL_Smu[i]
set C.b.elastic = 1
call C.b.AddFriction(C.Smu)
call TriggerAddAction(C.enter,function Enter_A)
call TriggerAddAction(C.leave,function Leave_A)
call TriggerRegisterPlayerUnitEvent( C.enter, GetOwningPlayer(car), EVENT_PLAYER_UNIT_LOADED, null )
call TriggerRegisterPlayerUnitEvent( C.leave, GetOwningPlayer(car), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER, null)
call TriggerRegisterPlayerUnitEvent( C.leave, GetOwningPlayer(car), EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER, null)
set AllCars[AllCarsI] = C
set AllCarsI = AllCarsI + 1
if not Cars[GetPlayerId(GetOwningPlayer(car))].IsReady then
set Cars[GetPlayerId(GetOwningPlayer(car))] = C
endif
call AddUnitAnimationProperties( car, "walk", true )
call C.b.Start()
call EnableTrigger(C.b.OrderDropTr)
return C
endfunction
// Removing the physical body of a downed unit
private function DestroyBodyHit_A takes nothing returns nothing
local integer i = 1
loop
if (CS_Victims[i]!= 0) and (Module(CS_Victims[i].v) < HitUnitCanRunSpeed or (GetUnitState(CS_Victims[i].u,UNIT_STATE_LIFE) <= 0) or (CS_Victims[i].u == null)) then
call CS_Victims[i].Remove(false)
if IsTerrainPathable(CS_Victims[i].x,CS_Victims[i].y,PATHING_TYPE_WALKABILITY) then
call KillUnit(CS_Victims[i].u)
endif
set CS_Victims[i] = CS_Victims[CS_Vi]
set CS_Victims[CS_Vi] = 0
set CS_Vi = CS_Vi - 1
return
endif
exitwhen i >= CS_Vi
set i = i + 1
endloop
endfunction
// Shooting down a unit
private function HitUnit_CS takes nothing returns nothing
local Body b
local real cos
if CarHit.u != GetEnumUnit() then
if IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == false then
//JE DOIS METTRE TOUS LES OBJET INTERATIF EN STRUCTURE POUR EVITER UNE COLLISION
if GetUnitState( GetEnumUnit(), UNIT_STATE_LIFE) - Module(CarHit.v)*UnitHitDamageK > -4 then
if not IsBodyExt(GetEnumUnit()) then
//call UnitDamageTarget( CarHit.u, GetEnumUnit(), Module(CarHit.v)*UnitHitDamageK, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL, WEAPON_TYPE_WHOKNOWS )
if IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == false then
set b = CreateBody(GetUnitX(GetEnumUnit()),GetUnitY(GetEnumUnit()),GetUnitFlyHeight(GetEnumUnit()), GetEnumUnit(), DeafultUnitMass)
set CS_Vi = CS_Vi + 1
set CS_Victims[CS_Vi] = b
call b.SetUpr(20)
call b.AddFriction(UnitFriction)
call b.SetElastic(UnitElastic)
call b.AddG()
call b.Start()
if CarHit.z <= b.z then
set b.v.vz = VerticalHitUnitSpeed
endif
else
set cos = AngleBLoc(CarHit.x + CarHit.v.vx, CarHit.y + CarHit.v.vy, CarHit.x, CarHit.y)
call ParamColl(CarHit, CarHit.x+CarHit.v.vx + CosBJ(cos + 10),CarHit.y+CarHit.v.vy + SinBJ(cos + 10),0,CarHit.x+CarHit.v.vx + CosBJ(cos - 10),CarHit.y+CarHit.v.vy + SinBJ(cos - 10),0,CarHit.x+CarHit.v.vx + CosBJ(cos),CarHit.y+CarHit.v.vy + SinBJ(cos),1,0.8)
//call UnitDamageTarget( CarHit.u, GetEnumUnit(), 2*Module(CarHit.v)*UnitHitDamageK, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL, WEAPON_TYPE_WHOKNOWS )
endif
else
call UnitDamageTarget( CarHit.u, GetEnumUnit(), Module(CarHit.v)*UnitHitDamageK, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL, WEAPON_TYPE_WHOKNOWS )
endif
endif
// Unit squashed into mush
elseif CarHit.z < DeafultUnitHeight then
//call SetUnitExploded(GetEnumUnit(), true)
//call KillUnit(GetEnumUnit())
endif
endif
endfunction
// Blow on decor
private function DestrHit takes nothing returns nothing
local integer j
local destructable d = GetEnumDestructable()
local real ang = AngleBLoc(DestHitB.x, DestHitB.y, GetDestructableX(d), GetDestructableY(d))
local real r = DistanceBLocs(DestHitB.x, DestHitB.y, GetDestructableX(d), GetDestructableY(d))
set j = GetDestType(GetDestructableTypeId(d))
if GetDestructableLife(d) > 0 and DestHitB.z <= FDLCL_DH[j] then
if Module(DestHitB.v) >= DestrHitMinSpeedAnim then
call SetDestructableAnimation(d,"stand hit")
endif
if GetDestructableTypeId(d) != FDLCL_BlokiratorId then
call SetDestructableLife(d,GetDestructableLife(d) - Module(DestHitB.v)*HitDestrDamageK)
endif
if GetDestructableLife(d) > 0 then
call ParamColl(DestHitB, GetDestructableX(d) + Cos(ang/57.2948 + 0.17)*FDLCL_DR[j],GetDestructableY(d) + Sin(ang/57.2948 + 0.17)*FDLCL_DR[j],0,GetDestructableX(d) + Cos(ang/57.2948 - 0.17)*FDLCL_DR[j],GetDestructableY(d) + Sin(ang/57.2948 - 0.17)*FDLCL_DR[j],0,GetDestructableX(d) + Cos(ang*57.2948)*FDLCL_DR[j],GetDestructableY(d) + Sin(ang*57.2948)*FDLCL_DR[j],FDLCL_DH[j],DestrHitResistK)
else
call DestHitB.v.Multiply(DestHitB.elastic)
endif
if r <= FDLCL_DR[j] then
set DestHitB.x = GetDestructableX(d) - Cos(ang/57.2948)*(FDLCL_DR[j]+1)
set DestHitB.y = GetDestructableY(d) - Sin(ang/57.2948)*(FDLCL_DR[j]+1)
endif
endif
endfunction
//=========================================================================================
//=
//= Engine
//=
//=========================================================================================
function BoostCheckNumber takes integer i returns boolean
if ( not ( udg_BoostActivateNumber[i] == 0 ) ) then
return false
endif
return true
endfunction
function BoostCheckNumber1 takes integer i returns boolean
if ( not ( udg_BoostActivateNumber[i] == 1 ) ) then
return false
endif
return true
endfunction
function BoostCheckNumber2 takes integer i returns boolean
if ( not ( udg_BoostActivateNumber[i] == 2 ) ) then
return false
endif
return true
endfunction
function BoostCheckNumber3 takes integer i returns boolean
if ( not ( udg_BoostActivateNumber[i] == 3 ) ) then
return false
endif
return true
endfunction
function BoostCheckNumber4 takes integer i returns boolean
if ( not ( udg_BoostActivateNumber[i] == 4 ) ) then
return false
endif
return true
endfunction
function SPEED_LIMIT takes integer i returns boolean
if ( not ( udg_ImOnTheRoad[i] == true ) ) then
return false
endif
return true
endfunction
function ImFrozen takes integer i returns boolean
if ( not ( udg_ImFROZENv2[i] == true ) ) then
return false
endif
return true
endfunction
function ImTraped takes integer i returns boolean
if ( not ( udg_ImTraped[i] == true ) ) then
return false
endif
return true
endfunction
function ImSpining takes integer i returns boolean
if ( not ( udg_ImSpining[i] == true ) ) then
return false
endif
return true
endfunction
function Car_move_func takes nothing returns nothing
local integer i = 0
local integer j = 0
local Car C = 0
local real ang
local real spd
local real v
local real x
local real y
local Body db
local rect r
local group gr
local real smuV
loop
set C = Cars[i]
if C == 0 then
return
endif
// car died
if GetUnitState(C.b.u,UNIT_STATE_LIFE) <= 0 then
call C.b.AddFriction(0.5)
set C.IsReady = false
set C.camera = false
call Camera(C.b,false,i)
call ResetToGameCameraForPlayer(GetOwningPlayer(C.b.u), 0)
call SetUnitAnimation(C.b.u,"stand")
call SetUnitTimeScale(C.b.u,1)
call C.Destroy(false)
set Cars[i] = 0
return
endif
// main part
if Cars[i].IsReady then
set C = Cars[i]
set ang = GetUnitFacing(C.b.u)
call Camera(C.b,C.camera,i)
set v = Module(C.b.v)
set smuV = (C.b.mu*(C.b.m*Gravitational_acceleration - C.b.F.vz))/C.b.m
set spd = C.b.v.vx*Cos(ang/57.2958) + C.b.v.vy*Sin(ang/57.2958)
if ( SPEED_LIMIT(i)) then
//call DisplayTextToForce( GetPlayersAll(), "IM IN WATER?????" )
if C.up and v < 5*C.MaxV*0.65 and C.b.z <= 1 then
if C.b.Motionless then
call SetMotionless(C.b,false)
endif
if ( UnitHasBuffBJ(udg_Carts[i], 'Bspe' ) ) then //Speed Bonus
else
set udg_BoostActivateNumber[i] = 0
endif
if ( BoostCheckNumber1(i)) then
call C.b.AddSpeed((C.a+ smuV * 35)*Cos(ang/57.2958),(C.a+smuV* 35)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber2(i)) then
call C.b.AddSpeed((C.a+ smuV * 60)*Cos(ang/57.2958),(C.a+smuV* 60)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber3(i)) then
call C.b.AddSpeed((C.a+ smuV * 88)*Cos(ang/57.2958),(C.a+smuV* 88)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber4(i)) then
call C.b.AddSpeed((C.a+ smuV * 115)*Cos(ang/57.2958),(C.a+smuV* 115)*Sin(ang/57.2958),0)
else
call C.b.AddSpeed((C.a+ smuV)*Cos(ang/57.2958),(C.a+smuV)*Sin(ang/57.2958),0)
endif
endif
endif
endif
set C.b.NonStop = true
endif
else
if ( ImFrozen(i)) then
// call DisplayTextToForce( GetPlayersAll(), "FROZEN?????" )
if C.up and v < 5*C.MaxV*0.45 and C.b.z <= 1 then
if C.b.Motionless then
call SetMotionless(C.b,false)
endif
if ( UnitHasBuffBJ(udg_Carts[i], 'Bspe' ) ) then //Speed Bonus
else
set udg_BoostActivateNumber[i] = 0
endif
if ( BoostCheckNumber1(i)) then
call C.b.AddSpeed((C.a+ smuV * 35)*Cos(ang/57.2958),(C.a+smuV* 35)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber2(i)) then
call C.b.AddSpeed((C.a+ smuV * 60)*Cos(ang/57.2958),(C.a+smuV* 60)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber3(i)) then
call C.b.AddSpeed((C.a+ smuV * 88)*Cos(ang/57.2958),(C.a+smuV* 88)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber4(i)) then
call C.b.AddSpeed((C.a+ smuV * 115)*Cos(ang/57.2958),(C.a+smuV* 115)*Sin(ang/57.2958),0)
else
call C.b.AddSpeed((C.a+ smuV)*Cos(ang/57.2958),(C.a+smuV)*Sin(ang/57.2958),0)
endif
endif
endif
endif
set C.b.NonStop = true
endif
else
if ( ImTraped(i)) then
// call DisplayTextToForce( GetPlayersAll(), "IM TRAPPED?????" )
if C.up and v < 5*C.MaxV*0.10 and C.b.z <= 1 then
if C.b.Motionless then
call SetMotionless(C.b,false)
endif
if ( UnitHasBuffBJ(udg_Carts[i], 'Bspe' ) ) then //Speed Bonus
else
set udg_BoostActivateNumber[i] = 0
endif
if ( BoostCheckNumber1(i)) then
call C.b.AddSpeed((C.a+ smuV * 35)*Cos(ang/57.2958),(C.a+smuV* 35)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber2(i)) then
call C.b.AddSpeed((C.a+ smuV * 60)*Cos(ang/57.2958),(C.a+smuV* 60)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber3(i)) then
call C.b.AddSpeed((C.a+ smuV * 88)*Cos(ang/57.2958),(C.a+smuV* 88)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber4(i)) then
call C.b.AddSpeed((C.a+ smuV * 115)*Cos(ang/57.2958),(C.a+smuV* 115)*Sin(ang/57.2958),0)
else
call C.b.AddSpeed((C.a+ smuV)*Cos(ang/57.2958),(C.a+smuV)*Sin(ang/57.2958),0)
endif
endif
endif
endif
set C.b.NonStop = true
endif
else
if ( ImSpining(i)) then
// call DisplayTextToForce( GetPlayersAll(), "IM Spining?????" )
if C.up and v < 5*C.MaxV*0.10 and C.b.z <= 1 then
if C.b.Motionless then
call SetMotionless(C.b,false)
endif
if ( UnitHasBuffBJ(udg_Carts[i], 'Bspe' ) ) then //Speed Bonus
else
set udg_BoostActivateNumber[i] = 0
endif
if ( BoostCheckNumber1(i)) then
call C.b.AddSpeed((C.a+ smuV * 35)*Cos(ang/57.2958),(C.a+smuV* 35)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber2(i)) then
call C.b.AddSpeed((C.a+ smuV * 60)*Cos(ang/57.2958),(C.a+smuV* 60)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber3(i)) then
call C.b.AddSpeed((C.a+ smuV * 88)*Cos(ang/57.2958),(C.a+smuV* 88)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber4(i)) then
call C.b.AddSpeed((C.a+ smuV * 115)*Cos(ang/57.2958),(C.a+smuV* 115)*Sin(ang/57.2958),0)
else
call C.b.AddSpeed((C.a+ smuV)*Cos(ang/57.2958),(C.a+smuV)*Sin(ang/57.2958),0)
endif
endif
endif
endif
set C.b.NonStop = true
endif
else
// call DisplayTextToForce( GetPlayersAll(), "IM FREEEE?????" )
if C.up and v < 5*C.MaxV and C.b.z <= 1 then
if C.b.Motionless then
call SetMotionless(C.b,false)
endif
if ( UnitHasBuffBJ(udg_Carts[i], 'Bspe' ) ) then //Speed Bonus
else
set udg_BoostActivateNumber[i] = 0
endif
if ( BoostCheckNumber1(i)) then
call C.b.AddSpeed((C.a+ smuV * 35)*Cos(ang/57.2958),(C.a+smuV* 35)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber2(i)) then
call C.b.AddSpeed((C.a+ smuV * 60)*Cos(ang/57.2958),(C.a+smuV* 60)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber3(i)) then
call C.b.AddSpeed((C.a+ smuV * 88)*Cos(ang/57.2958),(C.a+smuV* 88)*Sin(ang/57.2958),0)
else
if ( BoostCheckNumber4(i)) then
call C.b.AddSpeed((C.a+ smuV * 115)*Cos(ang/57.2958),(C.a+smuV* 115)*Sin(ang/57.2958),0)
else
call C.b.AddSpeed((C.a+ smuV)*Cos(ang/57.2958),(C.a+smuV)*Sin(ang/57.2958),0)
endif
endif
endif
endif
set C.b.NonStop = true
endif
endif
endif
endif
endif
// reverse speed
if C.down and v < 5*C.BackV and C.b.z <= 1 then
if C.b.Motionless then
call SetMotionless(C.b,false)
endif
call C.b.AddSpeed(-(C.a+smuV)*Cos(ang/57.2958),-(C.a+smuV)*Sin(ang/57.2958),0)
set C.b.NonStop = true
endif
// Turn
if C.right and (v > C.a+ smuV) and C.b.z <= 1 then
set ang = ang - C.TurnV
call SetUnitFacing(C.b.u,ang)
endif
if C.left and (v > C.a+ smuV) and C.b.z <= 1 then
set ang = ang + C.TurnV
call SetUnitFacing(C.b.u,ang)
endif
// Friction from machine orientation
if (v > C.a+ smuV) and not C.down then
set C.b.mu= C.Smu + Abs(2*MaxAddSmu/3.141*Acos(spd/Module(C.b.v)))
else
set C.b.mu= C.Smu
endif
// Animation, depends on speed
if v < 23 then
call SetUnitAnimation(C.b.u,"stand")
set C.Anim = C.AnimW
else
if C.Anim >= C.AnimW then
set C.Anim = 0
if ( GetUnitTypeId(C.b.u) == 'h000' ) then
call SetUnitAnimationByIndex(C.b.u, 0)
endif
if ( GetUnitTypeId(C.b.u) == 'h00S' ) then
call SetUnitAnimationByIndex(C.b.u, 4)
endif
if ( GetUnitTypeId(C.b.u) == 'h00V' ) then
call SetUnitAnimationByIndex(C.b.u, 0)
endif
if ( GetUnitTypeId(C.b.u) == 'h00W' ) then
call SetUnitAnimationByIndex(C.b.u, 4)
endif
if ( GetUnitTypeId(C.b.u) == 'h00U' ) then
call SetUnitAnimationByIndex(C.b.u, 3)
endif
if ( GetUnitTypeId(C.b.u) == 'h00X' ) then
call SetUnitAnimationByIndex(C.b.u, 0)
endif
if ( GetUnitTypeId(C.b.u) == 'h00Y' ) then
call SetUnitAnimationByIndex(C.b.u, 0)
endif
if ( GetUnitTypeId(C.b.u) == 'h00T' ) then
call SetUnitAnimationByIndex(C.b.u, 0)
endif
if ( GetUnitTypeId(C.b.u) == 'h00Z' ) then
call SetUnitAnimationByIndex(C.b.u, 0)
endif
if ( GetUnitTypeId(C.b.u) == 'h010' ) then
call SetUnitAnimationByIndex(C.b.u, 3)
endif
if ( GetUnitTypeId(C.b.u) == 'h013' ) then
call SetUnitAnimationByIndex(C.b.u, 1)
endif
if ( GetUnitTypeId(C.b.u) == 'h014' ) then
call SetUnitAnimationByIndex(C.b.u, 4)
endif
if ( GetUnitTypeId(C.b.u) == 'h015' ) then
call SetUnitAnimationByIndex(C.b.u, 1)
endif
else
set C.Anim = C.Anim + MainTimerV
endif
if spd > 0 then
call SetUnitTimeScale(C.b.u, SquareRoot(spd)/30)
else
call SetUnitTimeScale(C.b.u, -SquareRoot(-spd)/30)
endif
endif
// Hitting the ground, the Hit parameter is set to false
if C.b.Hit then
set C.b.Hit = false
// call SetUnitState(C.b.u,UNIT_STATE_LIFE, GetUnitState(C.b.u,UNIT_STATE_LIFE) - v/60)
if GetUnitState(C.b.u,UNIT_STATE_LIFE) <= 0 then
set C.IsReady = false
set C.camera = false
call SetUnitAnimation(C.b.u,"stand")
call SetUnitTimeScale(C.b.u,1)
call ResetToGameCameraForPlayer(GetOwningPlayer(C.b.u), 0)
call C.Destroy(false)
endif
if v > HitEffectSpeed then
if IsTerrainPathable(C.b.x,C.b.y,PATHING_TYPE_FLOATABILITY) then
call DestroyEffect(AddSpecialEffect( "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" , C.b.x, C.b.y))
//call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[0], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
endif
endif
if not IsTerrainPathable(C.b.x,C.b.y,PATHING_TYPE_FLOATABILITY) then
call DestroyEffect(AddSpecialEffect( "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" , C.b.x, C.b.y))
endif
endif
// Collision with units and decor, decorations need to be registered in the database, or furnish special. blocker
set x = C.b.x + C.b.v.vx/v*C.b.r
set y = C.b.y + C.b.v.vy/v*C.b.r
// decor
set r = Rect(x-FDLCL_MaxDestrRadius,y-FDLCL_MaxDestrRadius,x+FDLCL_MaxDestrRadius,y+FDLCL_MaxDestrRadius)
set DestHitB = C.b
call EnumDestructablesInRect(r,null, function DestrHit)
call RemoveRect(r)
// units
set r = Rect(x-FindUnitRadius,y-FindUnitRadius,x+FindUnitRadius,y+FindUnitRadius)
set gr = CreateGroup()
set CarHit = C.b
call GroupEnumUnitsInRect(gr, r, null)
call ForGroup( gr , function HitUnit_CS)
call DestroyGroup(gr)
call RemoveRect(r)
set r = null
set gr = null
endif
exitwhen i >= 23
set i = i + 1
endloop
endfunction
// Keystroke logging
function Can_Command takes nothing returns nothing
local eventid ev = GetTriggerEventId()
local integer i = GetPlayerId(GetTriggerPlayer())
if ev == EVENT_PLAYER_ARROW_UP_DOWN then
if not Cars[i].up then
set Cars[i].up = true
endif
elseif ev == EVENT_PLAYER_ARROW_UP_UP then
if Cars[i].up then
set Cars[i].up = false
endif
endif
if ev == EVENT_PLAYER_ARROW_DOWN_DOWN then
if not Cars[i].down then
set Cars[i].down = true
endif
elseif ev == EVENT_PLAYER_ARROW_DOWN_UP then
if Cars[i].down then
set Cars[i].down = false
endif
endif
if ev == EVENT_PLAYER_ARROW_LEFT_DOWN then
if not Cars[i].left then
set Cars[i].left = true
endif
elseif ev == EVENT_PLAYER_ARROW_LEFT_UP then
if Cars[i].left then
set Cars[i].left = false
endif
endif
if ev == EVENT_PLAYER_ARROW_RIGHT_DOWN then
if not Cars[i].right then
set Cars[i].right = true
endif
elseif ev == EVENT_PLAYER_ARROW_RIGHT_UP then
if Cars[i].right then
set Cars[i].right = false
endif
endif
set ev = null
set i = 0
endfunction
// Initializing the Keystroke Logging Trigger
function InitTrig_Car_Commands takes nothing returns nothing
local trigger t = CreateTrigger()
local integer i = 0
loop
exitwhen i == 23
//push
call TriggerRegisterPlayerEvent(t, Player(i), EVENT_PLAYER_ARROW_LEFT_DOWN)
call TriggerRegisterPlayerEvent(t, Player(i), EVENT_PLAYER_ARROW_RIGHT_DOWN)
call TriggerRegisterPlayerEvent(t, Player(i), EVENT_PLAYER_ARROW_DOWN_DOWN)
call TriggerRegisterPlayerEvent(t, Player(i), EVENT_PLAYER_ARROW_UP_DOWN)
//call TriggerRegisterPlayerEvent(CreateTrigger(), Player(1), EVENT_PLAYER_ARROW_UP_DOWN)
//pull
call TriggerRegisterPlayerEvent(t, Player(i), EVENT_PLAYER_ARROW_LEFT_UP)
call TriggerRegisterPlayerEvent(t, Player(i), EVENT_PLAYER_ARROW_RIGHT_UP)
call TriggerRegisterPlayerEvent(t, Player(i), EVENT_PLAYER_ARROW_DOWN_UP)
call TriggerRegisterPlayerEvent(t, Player(i), EVENT_PLAYER_ARROW_UP_UP)
set i = i +1
endloop
call TriggerAddAction(t, function Can_Command)
//call TriggerAddAction(CreateTrigger(), function Can_Command)
set t = null
set i = 0
endfunction
//===========================================================================
// System initialization
function InitCarLib takes nothing returns nothing
call TimerStart(Car_move_timer,0.025,true,function Car_move_func)
call TimerStart(Destroy_UnitHit_timer,0.5,true,function DestroyBodyHit_A)
call InitTrig_Car_Commands()
endfunction
endlibrary
function InitTrig_FDL_CarLib takes nothing returns nothing
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
library FDL initializer StartEngine
//v 0.6 for FDL CarLib 2.1 © Гуща А.В. 2009, created with the support XGM.ru
//=========================================================================================
//=
//= System Settings
//=
//=========================================================================================
globals
real Gi = 6.673// *10^(-11) Gravitational constant, increased by more than a billion times ORI= 6.673// *10^(-11)
private real Height_max = 4000 // Map original=4000
real Gravitational_acceleration = 9.81 // Acceleration of gravity original=9.81
private real FDLTimer = 0.025 // Time between updates
private real FDLMaxSpeed = 9000 //Max speed
private real CliffDist = 50 // Terrain rise detection distance ORIGINAL = 50
private real FactorOfResist = 0.8 // Decreased speed when hitting the map border =0.8
private real EarthResist = 0.2 // Velocity damping when hitting the ground (i.e. the elasticity of the ground) ORIGINAL = 0.6
private real HitCondSpeed = 300 // Normal (from the word normal) speed of a strong blow ORIGINAL = 300
private real CollPlosk = 1 // The radius of calculation of the inclination of the plane when hitting the ground or cliff ORI = 1
private constant integer MaxStekSize = 100 // Maximum number of bodies in a stack and forces between them ORI = 100
private real AddVFrFactor = 100 // Calibration coefficient of viscous friction ORI = 100
private integer CollBodyMax = 6 // Maximum number of simultaneous body collisions ORI = 6
private real StopCollSpeed = 10 // The speed of calming bodies in a collision ORI = 10
private real OrderDistanceStop = 50 //Unit stop distance from order point ORI = 50
private real UnitCanRunMinHeight = 200 // The height at which the unit can move independently ORI= 200
endglobals
//=========================================================================================
//=
//= Utility functions
//=
//=========================================================================================
scope UFDL
// Vector length
function Module takes Vector r returns real
return SquareRoot(r.vx*r.vx+r.vy*r.vy+r.vz*r.vz)
endfunction
// The cosine of the angle between the vectors
function CosV takes Vector a, Vector b returns real
return (a.vx*b.vx + a.vy*b.vy + a.vz*b.vz)/(Module(a)*Module(b))
endfunction
// 2d function: returns the angle between points in radians
function AngleBLoc takes real xa, real ya, real xb, real yb returns real
return Atan2(yb - ya, xb - xa)
endfunction
// 2d function: returns the angle between points in degr+ees
function AngleBLocGr takes real xa, real ya, real xb, real yb returns real
return 57.29577951 * Atan2(yb - ya, xb - xa)
endfunction
// Angle between vectors in radians
function Angle takes Vector a, Vector b returns real
return Acos((a.vx*b.vx + a.vy*b.vy + a.vz*b.vz)/(Module(a)*Module(b)))
endfunction
// The angle between the vectors in degrees
function AngleGr takes Vector a, Vector b returns real
return Acos((a.vx*b.vx + a.vy*b.vy + a.vz*b.vz)/(Module(a)*Module(b)))*57.29577951
endfunction
// 2d distance between points
function DistanceBLocs takes real ax, real ay, real bx, real by returns real
return SquareRoot((bx - ax) * (bx - ax) + (by - ay) * (by - ay))
endfunction
// Distance between two points in space
function DistanceBL3D takes real ax, real ay, real az, real bx, real by, real bz returns real
return SquareRoot((bx - ax) * (bx - ax) + (by - ay) * (by - ay) + (bz - az) * (bz - az))
endfunction
// Dot product of vector by vector
function Scalar takes Vector a, Vector b returns real
return a.vx*b.vx + a.vy*b.vy + a.vz*b.vz
endfunction
// Returns the length of the projection of a vector onto a vector
function Proj takes Vector a, Vector b returns real
return (a.vx*b.vx + a.vy*b.vy + a.vz*b.vz)/SquareRoot(b.vx*b.vx + b.vy*b.vy + b.vz*b.vz)
endfunction
// Functions for calculating polar coordinates to Cartesian
function PolarX takes real x, real dist, real angle returns real
return x + dist * Cos(angle * 57.29577951)
endfunction
function PolarY takes real y, real dist, real angle returns real
return y + dist * Sin(angle * 57.29577951)
endfunction
// Enables changing the unit's flight altitude
function UnitFlyMod takes unit u returns nothing
call UnitAddAbility(u,'Amrf')
call UnitRemoveAbility(u,'Amrf')
endfunction
// Specifies the height of a terrain point
function GetZ takes real X, real Y returns real
globals
location GZL = Location(0,0)
endglobals
call MoveLocation(GZL,X,Y)
return GetLocationZ(GZL)
endfunction
// Determines the height of the body above sea level
// Copy-paste only together with the previous function
function GetZB takes Body b returns real
call MoveLocation(GZL,b.x,b.y)
return GetLocationZ(GZL)+b.z
endfunction
// Returns the absolute value of a number
function Abs takes real r returns real
if r > 0 then
return r
else
return -r
endif
endfunction
// Specifies the sign of a number
function Shgn takes real r returns real
if r > 0. then
return 1.
elseif r < 0 then
return -1.
else
return 0.
endif
endfunction
// Integer part of division
function DIV takes integer a, integer b returns integer
local integer i = 0
loop
exitwhen a < b
set i = i + 1
set a = a - b
endloop
return i
endfunction
// Finds body by unit
function FindBody takes unit u returns Body
local integer i = 0
loop
if Stek.S[i].u == u then
return Stek.S[i]
endif
exitwhen i >= Stek.i
set i = i + 1
endloop
set i = 0
loop
if Stek.BMotionless[i].u == u then
return Stek.BMotionless[i]
endif
exitwhen i >= Stek.k
set i = i + 1
endloop
return 0
endfunction
//ЕIf you need to pull the body from the stack of "calm bodies". use this function
function SetMotionless takes Body b, boolean bb returns nothing
local integer i = 1
if bb then
set b.Motionless = true
else
loop
exitwhen i > Stek.k
if (Stek.BMotionless[i] == b) then
set Stek.i= Stek.i +1
set Stek.S[Stek.i] = b
set Stek.BMotionless[i] = Stek.BMotionless[Stek.k]
set Stek.BMotionless[Stek.k] =0
set Stek.k = Stek.k - 1
endif
set i = i + 1
endloop
endif
endfunction
//Sends the body to a point (x,y,z) with a speed Speed
function SendBodyTo takes Body b,real x, real y, real z, real Speed returns nothing
local real kz = z - GetZ(b.x,b.y)
local real r = SquareRoot( (x-b.x)*(x-b.x) + (y-b.y)*(y-b.y) + (kz-b.z)*(kz-b.z))
set b.v.vx = (x-b.x)/r*Speed
set b.v.vy = (y-b.y)/r*Speed
set b.v.vz = (kz-b.z)/r*Speed
set b.Motionless = false
endfunction
//Increases the velocity vector of the body by scale times
function IncreaseBodySpeed takes Body b, real scale returns nothing
call b.v.Multiply(scale)
set b.Motionless = false
endfunction
//Increases the body's velocity vector by Spd times
function IncreaseBodySpeedV takes Body b, real Spd returns nothing
local real r = Module(b.v)
call b.v.Multiply(1 + Spd/r)
set b.Motionless = false
endfunction
//Checks for the existence of a body with base u, a body that is not running or stopped will not be found
function IsBodyExt takes unit u returns boolean
local integer i = 1
loop
if Stek.S[i].u == u then
return true
endif
exitwhen i >= Stek.i
set i = i + 1
endloop
set i = 1
loop
if Stek.BMotionless[i].u == u then
return true
endif
exitwhen i >= Stek.k
set i = i + 1
endloop
return false
endfunction
endscope
//=========================================================================================
//=
//= Vector object
//=
//=========================================================================================
struct Vector
real vx = 0
real vy = 0
real vz = 0
// Sets a vector by two points
method GetFrom2Loc takes real x1, real y1, real z1, real x2, real y2,real z2 returns nothing
set this.vx = x2-x1
set this.vy = y2-y1
set this.vz = z2-z1
endmethod
// Умножает вектор на число
method Multiply takes real c returns nothing
set this.vx = this.vx*c
set this.vy = this.vy*c
set this.vz = this.vz*c
endmethod
// Приплюсовывает к вектору вектор
method Summ takes Vector s returns nothing
set this.vx = this.vx + s.vx
set this.vy = this.vy + s.vy
set this.vz = this.vz + s.vz
endmethod
// Нормирование вектора, то есть он становится единичным, k - новая длина
method Norm takes real k returns nothing
set this.vx = k*this.vx/Module(this)
set this.vy = k*this.vy/Module(this)
set this.vz = k*this.vz/Module(this)
endmethod
// Возращает вектор-проекцию вектора на вектор, создает вектор
static method CreateProj takes Vector a, Vector b returns Vector
local Vector v = Vector.create()
call v.Multiply((a.vx*b.vx + a.vy*b.vy + a.vz*b.vz)/(b.vx*b.vx + b.vy*b.vy + b.vz*b.vz))
return v
endmethod
// Сумма векторов, создает вектор
static method CreateSumm takes Vector a, Vector b returns Vector
local Vector S = Vector.create()
set S.vx = a.vx + b.vx
set S.vy = a.vy + b.vy
set S.vz = a.vz + b.vz
return S
endmethod
// Умножение вектора на число,создает вектор
static method CreateMultiply takes Vector a, real const returns Vector
local Vector c = Vector.create()
set c.vx = a.vx*const
set c.vy = a.vy*const
set c.vz = a.vz*const
return c
endmethod
endstruct
//=========================================================================================
//=
//= Object "Strength"
//=
//=========================================================================================
struct Force
Vector v = 0
Body a = 0
Body b = 0
real cv = 0 // Угловая скорость
real at = 0 // Тангесальное ускорение
// The function of calculating the force of attraction between bodies, I do not advise changing
method Attraction takes nothing returns nothing
local Vector r = Vector.create()
local Vector F
call r.GetFrom2Loc(this.a.x,this.a.y,this.a.z,this.b.x,this.b.y,this.b.z)
set F = Vector.CreateMultiply(r,(Gi*this.a.m*this.b.m)/((Module(r))*(Module(r))*(Module(r))))
set this.v = F
call this.a.F.Summ(F)
call F.Multiply(-1)
call this.b.F.Summ(F)
call r.destroy()
call F.destroy()
set this.a.Motionless = false
set this.b.Motionless = false
endmethod
// Рассчет нормальной силы и тангенсального ускорения
method Circle takes nothing returns nothing
local Vector an = Vector.create()
local real x = this.v.vx - this.a.x
local real y = this.v.vy - this.a.y
set an.vx = x*this.cv*this.cv/(x*x + y*y)*this.a.m
set an.vy = y*this.cv*this.cv/(x*x + y*y)*this.a.m
call this.a.F.Summ(an)
if this.at > 0 then
set this.cv = this.cv + this.at/(1/FDLTimer)
endif
call an.destroy()
set this.a.Motionless = false
endmethod
// Удаление без утечек
method Remove takes nothing returns nothing
local integer j = 0
local integer k = 0
loop
if Stek.F[j] == this then
loop
set Stek.F[j+k] = Stek.F[j+k+1]
exitwhen k >= Stek.j - j - 1
set k = k + 1
endloop
set k = 0
set Stek.F[Stek.i] = 0
set Stek.j = Stek.j - 1
endif
exitwhen j >= Stek.j
set j = j + 1
endloop
call this.v.destroy()
call this.destroy()
endmethod
endstruct
//=========================================================================================
//=
//= Object "Mechanical body"
//=
//=========================================================================================
scope BodyFDL
// Service globals for delayed elastic radius setting
globals
timer SetRadiusFDLT = CreateTimer()
Body array SetRadiusFDLB [100]
real array SetRadiusFDLR [100]
integer SetRadiusFDLI = 0
endglobals
// The very function of delayed assignment of the radius to bodies, it is necessary that when creating a body in a body, the system does not crash
function SetRadiusFDL_Actions takes nothing returns nothing
local integer i = 0
local integer j = 0
local boolean b = false
if SetRadiusFDLI > 0 then
loop
loop
if SquareRoot(Stek.S[j].x - SetRadiusFDLB[i].x)*(Stek.S[j].x - SetRadiusFDLB[i].x) + (Stek.S[j].y - SetRadiusFDLB[i].y)*(Stek.S[j].y - SetRadiusFDLB[i].y) + (Stek.S[j].z - SetRadiusFDLB[i].z)*(Stek.S[j].z - SetRadiusFDLB[i].z) < SetRadiusFDLR[i] + Stek.S[j] then
set b = true
endif
exitwhen j >= Stek.i - 1
set j = j + 1
endloop
if not b then
set SetRadiusFDLB[i].r = SetRadiusFDLR[i]
set SetRadiusFDLB[i] = SetRadiusFDLB[SetRadiusFDLI-1]
set SetRadiusFDLB[SetRadiusFDLI-1] = 0
set SetRadiusFDLI = SetRadiusFDLI - 1
endif
exitwhen i >= SetRadiusFDLI - 1
set i = i + 1
endloop
endif
endfunction
// Order reset function
// If the unit tries to get into the transport-body, then the body does not try in vain to move from its place
private function OrderDropA takes nothing returns nothing
local Body b
if GetIssuedOrderId() == OrderId("smart") or GetIssuedOrderId() == OrderId("attack") or GetIssuedOrderId() == OrderId("move") or GetIssuedOrderId() == OrderId("patrol") or ( (GetIssuedOrderId() == OrderId("load")) and (SquareRoot( (GetWidgetX(GetOrderedUnit()) - GetWidgetX(GetOrderTargetUnit()) )*(GetWidgetX(GetOrderedUnit()) - GetWidgetX(GetOrderTargetUnit()) ) + (GetWidgetY(GetOrderedUnit()) - GetWidgetY(GetOrderTargetUnit()) )*(GetWidgetY(GetOrderedUnit()) - GetWidgetY(GetOrderTargetUnit())) ) > 500 ) ) then
if GetIssuedOrderId() == OrderId("load") then
call IssuePointOrder( GetOrderTargetUnit() , "move", GetUnitX(GetOrderedUnit()), GetUnitY(GetOrderedUnit()) )
endif
call PauseUnit(GetOrderedUnit(), true)
call IssueImmediateOrder(GetOrderedUnit(), "stop")
call PauseUnit(GetOrderedUnit(), false)
endif
endfunction
// Analogue of the previous function for body units
private function OrderDropCanRunA takes nothing returns nothing
local Body b = FindBody(GetOrderedUnit())
if (b != 0) then
if GetIssuedOrderId() == OrderId("smart") or GetIssuedOrderId() == OrderId("attack") or GetIssuedOrderId() == OrderId("move") or GetIssuedOrderId() == OrderId("patrol") or (GetIssuedOrderId() == OrderId("load")) then
if (b.Motionless) then
set b.Motionless = false
endif
set b.moving = true
set b.OrderX = GetOrderPointX()
set b.OrderY = GetOrderPointY()
set b.OrderTarget = GetOrderTargetUnit()
elseif (GetIssuedOrderId() == OrderId("stop")) or (GetIssuedOrderId() == 851973) then
set b.moving = false
set b.OrderX = b.x
set b.OrderY = b.y
set b.OrderTarget = null
endif
endif
endfunction
struct Body
// Body coordinates, independent of unit coordinates
real x = 0
real y = 0
real z = 0
// Previous body coordinates
real kx = 0
real ky = 0
real kz = 0
real m = 0 // Weight
real g = 0 // Acceleration of free fall, projection along the axis z
real mu = 0 // Dry friction coefficient
real k = 0 // Viscous friction coefficient
real r = 0 // Body radius needed for collisions
real elastic = GetRandomReal(0.7,1) // Body elasticity coefficient
unit u = null // Unit representing body position
trigger OrderDropTr // Order Reset Trigger
boolean Hit = false // There was a strong impact on the surface, switch to false yourself
boolean Fixation = false // Body fastening
boolean CanRun = false // Disabling independence of body coordinates from unit coordinates
boolean moving = false // Unit-body executes a move order
boolean NonStop = false // If "true", dry friction will not move the body and will set this flag to false
real OrderX // Order coordinates for body-unit
real OrderY
widget OrderTarget = null
real scale = 1 // Replaces function GetUnitCurrentScale, if you change the size of the unit model, then change this property
Vector v = 0 // Velocity vector
Vector a = 0 // Acceleration vector
Vector F = 0 // Force vector, usually zero as it resets to zero in the loop, refer to acceleration*mass for force value
boolean Motionless = false // If set to true, then the body is popped from the stack and placed in the array of calm bodies
// If you need to pull the body out of the "calm" group, then put false
// Sets the speed of the body
method SetSpeed takes real vx, real vy, real vz returns nothing
set this.v.vx = vx
set this.v.vy = vy
set this.v.vz = vz
set this.Motionless = false
endmethod
// Adds speed to the body
method AddSpeed takes real vx, real vy, real vz returns nothing
set this.v.vx = this.v.vx + vx
set this.v.vy = this.v.vy + vy
set this.v.vz = this.v.vz + vz
set this.Motionless = false
endmethod
// Sets the acceleration of the body, rarely used in practice
method SetAcceleration takes real ax, real ay, real az returns nothing
set this.a.vx = ax
set this.a.vy = ay
set this.a.vz = az
set this.Motionless = false
endmethod
// Adds acceleration to the body
method AddAcceleration takes real ax, real ay, real az returns nothing
set this.a.vx = this.a.vx + ax
set this.a.vy = this.a.vx + ay
set this.a.vz = this.a.vx + az
set this.Motionless = false
endmethod
// End of body initialization and pushing it onto the stack
// until then the body is not detected by the function IsBodyExt
method Start takes nothing returns nothing
if FindBody(this.u) == 0 then
set Stek.i= Stek.i +1
set Stek.S[Stek.i] = this
call EnableTrigger(this.OrderDropTr)
set this.Motionless = false
endif
endmethod
// Creates a Newtonian force of attraction between bodies, creates a "force" object
method AddAttractionForce takes Body B returns Force
local Force F = Force.create()
set F.a = this
set F.b = B
set Stek.j= Stek.j +1
set Stek.F[Stek.j] = F
return F
endmethod
// Sets the initial conditions for rotation in space, the z parameter for roll of the rotation plane
method StartCircleSimple takes Body b, real z returns nothing
local real a = Gi*b.m/((b.x-this.x)*(b.x-this.x) + (b.y-this.y)*(b.y-this.y))
local real V = 5*SquareRoot(a*SquareRoot((b.x-this.x)*(b.x-this.x) + (b.y-this.y)*(b.y-this.y)))
call this.SetSpeed(V*(b.x-this.x)/SquareRoot((b.x-this.x)*(b.x-this.x) + (b.y-this.y)*(b.y-this.y)),-V*(b.y-this.y)/SquareRoot((b.x-this.x)*(b.x-this.x) + (b.y-this.y)*(b.y-this.y)),z)
call this.AddAttractionForce(b)
set b.Fixation = true
set this.Motionless = false
endmethod
// Creates a force that rotates the body in a circle, with tangential acceleration, the radius of the circle also changes
// Takes the coordinates of the center of the circle and the initial speed
method StartCircle takes real x, real y, real V, real at returns Force
local Force F = Force.create()
set F.v = Vector.create()
call this.SetSpeed(5*V*(x-this.x)/SquareRoot((x-this.x)*(x-this.x) + (y-this.y)*(y-this.y)),-5*V*(y-this.y)/SquareRoot((x-this.x)*(x-this.x) + (y-this.y)*(y-this.y)),0)
set F.a = this
set F.cv = V
set F.at = at
set F.v.vx = x
set F.v.vy = y
set Stek.j= Stek.j +1
set Stek.F[Stek.j] = F
return F
endmethod
//Turns on attraction to the earth
method AddG takes nothing returns nothing
set this.g = -Gravitational_acceleration
set this.Motionless = false
endmethod
// Adds a non-standard gravity to the ground (norm 9.81)
method AddCustomG takes real g returns nothing
set this.g = -g
set this.Motionless = false
endmethod
// Adds viscous friction and normalizes for update rate
method AddVFriction takes real k returns nothing
set this.k = k*(0.04/FDLTimer)
endmethod
// Adds dry friction and normalizes for update rate
method AddFriction takes real mu returns nothing
set this.mu = mu*(0.04/FDLTimer)
endmethod
// Sets the elasticity of the body (0.1)
method SetElastic takes real e returns nothing
set this.elastic = e
endmethod
// Adds a collision radius to the body and prevents the system from crashing when
// "gluing" bodies
method SetUpr takes real r returns nothing
local integer i = 0
local boolean b = true
loop
if SquareRoot( (Stek.S[i].x - this.x)*(Stek.S[i].x - this.x) + (Stek.S[i].y - this.y)*(Stek.S[i].y - this.y) + (Stek.S[i].z - this.z)*(Stek.S[i].z - this.z) ) <= r + Stek.S[i].r then
set SetRadiusFDLB[SetRadiusFDLI] = this
set SetRadiusFDLR[SetRadiusFDLI] = r
set SetRadiusFDLI = SetRadiusFDLI + 1
set b = false
endif
exitwhen i >= Stek.i - 1
set i = i + 1
endloop
if b then
set this.r = r
endif
set this.Motionless = false
endmethod
// Toggles the dependence of body coordinates on unit coordinates
// Simply put, allows the unit to move at will.
method SCanRun takes boolean b returns nothing
set this.CanRun = b
call TriggerClearActions(this.OrderDropTr)
if b then
call TriggerAddAction(this.OrderDropTr,function OrderDropCanRunA)
call SetUnitMoveSpeed(this.u,1)
else
call TriggerAddAction(this.OrderDropTr,function OrderDropA)
call SetUnitMoveSpeed(this.u,GetUnitDefaultMoveSpeed(this.u))
endif
set this.Motionless = false
endmethod
// Pops the body from the stack, while maintaining the "principle of prescription" of this stack
// Simply put, the bodies are sorted by the time they were added.
method Stop takes nothing returns nothing
local integer j = 0
local integer k = 0
loop
if Stek.S[j] == this then
loop
set Stek.S[j+k] = Stek.S[j+k+1]
exitwhen k >= Stek.i - j - 1
set k = k + 1
endloop
set Stek.S[Stek.i] = 0
set Stek.i = Stek.i - 1
return
endif
exitwhen j >= Stek.i
set j = j + 1
endloop
set j = 1
loop
if Stek.BMotionless[j] == this then
set Stek.BMotionless[j] = Stek.BMotionless[Stek.k]
set Stek.BMotionless[Stek.k] =0
set Stek.k = Stek.k - 1
endif
exitwhen j >= Stek.k
set j = j + 1
endloop
call DisableTrigger(this.OrderDropTr)
endmethod
// Quick popping of the body from the stack, sorting of the array is broken
method StopQuick takes nothing returns nothing
local integer j = 0
loop
if Stek.S[j] == this then
set Stek.S[j] = Stek.S[Stek.i]
set Stek.S[Stek.i] = 0
set Stek.i = Stek.i - 1
return
endif
exitwhen j >= Stek.i
set j = j + 1
endloop
set j = 1
loop
if Stek.BMotionless[j] == this then
set Stek.BMotionless[j] = Stek.BMotionless[Stek.k]
set Stek.BMotionless[Stek.k] =0
set Stek.k = Stek.k - 1
endif
exitwhen j >= Stek.k
set j = j + 1
endloop
call DisableTrigger(this.OrderDropTr)
endmethod
// Correct removal of the body without creating leaks
method Remove takes boolean DeleteUnit returns nothing
call this.Stop()
if DeleteUnit then
call RemoveUnit(this.u)
set this.u = null
endif
call DisableTrigger(this.OrderDropTr)
call TriggerClearActions(this.OrderDropTr)
call DestroyTrigger(this.OrderDropTr)
call this.v.destroy()
call this.a.destroy()
call this.destroy()
endmethod
endstruct
// The function searches for the unit on the stack for the body and destroys it
// Will not work if the body is not yet running or stopped
function RemoveBody takes unit u returns nothing
local integer i = 0
loop
if Stek.S[i].u == u then
call Stek.S[i].Remove(false)
set i = Stek.i
endif
exitwhen i >= Stek.i
set i = i + 1
endloop
endfunction
// Creation of a body based on a unit, coordinates and mass are specified, an object "mechanical body" is created
globals
Body GUI_LastCreatedBody
endglobals
function CreateBody takes real x, real y, real z, unit u, real m returns Body
local Body B = Body.create()
set B.x = x
set B.y = y
set B.z = z
set B.u = u
set B.v = Vector.create()
set B.a = Vector.create()
set B.F = Vector.create()
set B.m = m
set GUI_LastCreatedBody = B
call UnitFlyMod(u)
set B.OrderDropTr = CreateTrigger()
call TriggerRegisterUnitEvent( B.OrderDropTr,u, EVENT_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterUnitEvent( B.OrderDropTr,u, EVENT_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterUnitEvent( B.OrderDropTr,u, EVENT_UNIT_ISSUED_ORDER )
call TriggerAddAction( B.OrderDropTr, function OrderDropA)
call DisableTrigger(B.OrderDropTr)
return B
endfunction
// Creation of a body based on a unit, coordinates are set according to the coordinates of the unit, mass is taken
function CreateBodySimple takes unit u, real m returns Body
local Body B = Body.create()
set B.x = GetWidgetX(u)
set B.y = GetWidgetY(u)
set B.z = GetUnitFlyHeight(u)
set B.u = u
set B.v = Vector.create()
set B.a = Vector.create()
set B.F = Vector.create()
set B.m = m
set GUI_LastCreatedBody = B
call UnitFlyMod(u)
set B.OrderDropTr = CreateTrigger()
call TriggerRegisterUnitEvent( B.OrderDropTr,u, EVENT_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterUnitEvent( B.OrderDropTr,u, EVENT_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterUnitEvent( B.OrderDropTr,u, EVENT_UNIT_ISSUED_ORDER )
call TriggerAddAction( B.OrderDropTr, function OrderDropA)
call DisableTrigger(B.OrderDropTr)
return B
endfunction
endscope
//=========================================================================================
//=
//= Collision calculation functions
//=
//=========================================================================================
scope CollFuncFDL
// Prevents bodies from sticking together in a collision
function Calibration takes Body a, Body b returns nothing
local real rs = SquareRoot( (b.x - a.x)*(b.x - a.x) + (b.y - a.y)*(b.y - a.y) + (b.z - a.z)*(b.z - a.z))
if Module(a.v) > Module(b.v) then
set a.x = b.x - (b.x - a.x)/rs*(a.r+b.r)*1.05
set a.y = b.y - (b.y - a.y)/rs*(a.r+b.r)*1.05
set a.z = b.z - (b.z - a.z)/rs*(a.r+b.r)*1.05
else
set b.x = a.x + (b.x - a.x)/rs*(a.r+b.r)*1.05
set b.y = a.y + (b.y - a.y)/rs*(a.r+b.r)*1.05
set b.z = a.z + (b.z - a.z)/rs*(a.r+b.r)*1.05
endif
endfunction
// Calculates speeds after collision
function AfterColl takes Body a, Body b returns nothing
local Vector V1t
local Vector V2t
local Vector V1n
local Vector V2n
local Vector r = Vector.create()
local Vector g
local real cosa
local real cosb
local real u
call r.GetFrom2Loc(a.x,a.y,a.z,b.x,b.y,b.z)
set cosa = CosV(a.v,r)
set cosb = CosV(b.v,r)
call r.Multiply(1/Module(r))
set g = Vector.CreateMultiply(r,-Module(a.v)*cosa)
set V1t = Vector.CreateSumm(a.v,g)
call g.destroy()
set g = Vector.CreateMultiply(r,-Module(b.v)*cosb)
set V2t = Vector.CreateSumm(b.v,g)
call g.destroy()
set u = (a.elastic*b.elastic)*(2*b.m*Module(b.v)*cosb + Module(a.v)*cosa*(a.m - b.m))/(a.m+b.m)
set V1n = Vector.CreateMultiply(r,u)
set u = (a.elastic*b.elastic)*(2*a.m*Module(a.v)*cosa - Module(b.v)*cosb*(a.m - b.m))/(a.m+b.m)
set V2n = Vector.CreateMultiply(r,u)
call a.v.destroy()
set a.v = Vector.CreateSumm(V1n,V1t)
call V1n.destroy()
call V1t.destroy()
//
call b.v.destroy()
set b.v = Vector.CreateSumm(V2n,V2t)
call V2n.destroy()
call V2t.destroy()
call r.destroy()
if Module(a.v) < StopCollSpeed then
set a.v.vx = 0
set a.v.vy = 0
set a.v.vz = 0
set a.Motionless = true
else
set a.Motionless = false
endif
if Module(a.v) < StopCollSpeed then
set a.v.vx = 0
set a.v.vy = 0
set a.v.vz = 0
set a.Motionless = true
else
set b.Motionless = false
endif
endfunction
// Parametric collision, takes 3 points defining impact plane and speed recovery factor
function ParamColl takes Body a, real x1, real y1, real z1, real x2, real y2, real z2, real x3, real y3, real z3,real Rest returns nothing
local real nx = ((y2-y1)*(z3-z1) - (y3-y1)*(z2-z1))/SquareRoot(((y2-y1)*(z3-z1) - (y3-y1)*(z2-z1))*((y2-y1)*(z3-z1) - (y3-y1)*(z2-z1)) + ((x3-x1)*(z2-z1) - (x2-x1)*(z3-z1))*((x3-x1)*(z2-z1) - (x2-x1)*(z3-z1)) +((x2-x1)*(y3-y1) - (x3-x1)*(y2-y1))*((x2-x1)*(y3-y1) - (x3-x1)*(y2-y1)))
local real ny = ((x3-x1)*(z2-z1) - (x2-x1)*(z3-z1))/SquareRoot(((y2-y1)*(z3-z1) - (y3-y1)*(z2-z1))*((y2-y1)*(z3-z1) - (y3-y1)*(z2-z1)) + ((x3-x1)*(z2-z1) - (x2-x1)*(z3-z1))*((x3-x1)*(z2-z1) - (x2-x1)*(z3-z1)) +((x2-x1)*(y3-y1) - (x3-x1)*(y2-y1))*((x2-x1)*(y3-y1) - (x3-x1)*(y2-y1)))
local real nz = ((x2-x1)*(y3-y1) - (x3-x1)*(y2-y1))/SquareRoot(((y2-y1)*(z3-z1) - (y3-y1)*(z2-z1))*((y2-y1)*(z3-z1) - (y3-y1)*(z2-z1)) + ((x3-x1)*(z2-z1) - (x2-x1)*(z3-z1))*((x3-x1)*(z2-z1) - (x2-x1)*(z3-z1)) +((x2-x1)*(y3-y1) - (x3-x1)*(y2-y1))*((x2-x1)*(y3-y1) - (x3-x1)*(y2-y1)))
local real vn = nx*a.v.vx + ny*a.v.vy + nz*a.v.vz
set a.v.vx = a.v.vx - 2*nx*vn*Rest
set a.v.vy = a.v.vy - 2*ny*vn*Rest
set a.v.vz = a.v.vz - 2*nz*vn*Rest
if Abs(vn) > HitCondSpeed then
set a.Hit = true
endif
set a.Motionless = false
endfunction
// Calculates the impact on the ground and does not allow you to simply climb the cliffs
function HitGround takes Body a returns nothing
local real z0 = GetZ(a.x,a.y)
local real z2 = GetZ(a.x+CollPlosk,a.y)
local real z1 = GetZ(a.x,a.y+CollPlosk)
local real nx = (z0-z2)/SquareRoot((z0-z2)*(z0-z2) + (z0-z1)*(z0-z1) + CollPlosk*CollPlosk)
local real ny = (z0-z1)/SquareRoot((z0-z2)*(z0-z2) + (z0-z1)*(z0-z1) + CollPlosk*CollPlosk)
local real nz = CollPlosk/SquareRoot((z0-z2)*(z0-z2) + (z0-z1)*(z0-z1) + CollPlosk*CollPlosk)
local real vn = nx*a.v.vx + ny*a.v.vy + nz*a.v.vz
local real cos = -CollPlosk/((z0-z2)*(z0-z2) + (z0-z1)*(z0-z1) + CollPlosk*CollPlosk)
if GetTerrainCliffLevel(a.x,a.y) - GetTerrainCliffLevel(a.x + CliffDist*a.v.vx/(Module(a.v)+0.001) ,a.y + CliffDist*a.v.vy/(Module(a.v)+0.001)) >= 0 then
set a.v.vx = a.v.vx - 2*nx*vn*EarthResist
set a.v.vy = a.v.vy - 2*ny*vn*EarthResist
set a.v.vz = a.v.vz - 2*nz*vn*EarthResist
set a.F.vx = a.F.vx + a.m*Gravitational_acceleration*nx*cos
set a.F.vy = a.F.vy + a.m*Gravitational_acceleration*ny*cos
set a.F.vz = a.F.vz + a.m*Gravitational_acceleration*nz*cos
else
set cos = AngleBLoc(a.x + a.v.vx, a.y + a.v.vy, a.x, a.y)
call ParamColl(a, a.x+a.v.vx + Cos(cos + 0.175),a.y+a.v.vy + Sin(cos + 0.175),0,a.x+a.v.vx + Cos(cos - 0.175),a.y+a.v.vy + Sin(cos - 0.175),0,a.x+a.v.vx + Cos(cos),a.y+a.v.vy + Sin(cos),1,0.8)
endif
if vn < -HitCondSpeed then
set a.Hit = true
endif
set a.Motionless = false
endfunction
struct CrackedBody
Body a
Body b
Body c
endstruct
// Splits the body into 2 parts, takes the body, the ratio of the size of the 1st piece to the original size, velocity vectors
// returns a structure with references to shard bodies
function Crack2b takes Body b, real massk, Vector v1, Vector v2, boolean scale returns CrackedBody
local real ang = Asin(b.v.vy/(Module(b.v)+0.001)) + 3.14159/2
local real x = b.x + Cos(ang)*b.r*massk
local real y = b.y + Sin(ang)*b.r*massk
local Body cc
local CrackedBody cb = CrackedBody.create()
if (b.r != 0) and (massk < 1) and (massk > 0) then
set cc = CreateBody(x,y, b.z, CreateUnit(GetOwningPlayer(b.u),GetUnitTypeId(b.u),x,y, GetRandomReal(0,360)) , b.m*massk)
call EnableTrigger(cc.OrderDropTr)
set cc.r = b.r*massk
set cc.k = b.k
set cc.mu = b.mu
set cc.g = b.g
set cc.elastic = b.elastic
call cc.SCanRun( b.CanRun )
set cb.a = cc
call cc.v.destroy()
set cc.v = v1
if scale then
call SetUnitScale(cc.u,massk*b.scale,massk*b.scale,massk*b.scale)
set cc.scale = massk*b.scale
endif
call cc.Start()
set x = b.x - Cos(ang)*b.r*(1-massk)
set y = b.y - Sin(ang)*b.r*(1-massk)
set cc = CreateBody(x,y, b.z, CreateUnit(GetOwningPlayer(b.u),GetUnitTypeId(b.u),x,y, GetRandomReal(0,360)) , b.m*(1-massk))
call EnableTrigger(cc.OrderDropTr)
set cc.r = b.r*(1-massk)
set cc.k = b.k
set cc.mu = b.mu
set cc.g = b.g
set cc.elastic = b.elastic
call cc.SCanRun( b.CanRun )
set cb.b = cc
call cc.v.destroy()
set cc.v = v2
if scale then
call SetUnitScale(cc.u,(1-massk)*b.scale,(1-massk)*b.scale,(1-massk)*b.scale)
set cc.scale =(1-massk)*b.scale
endif
call cc.Start()
if SquareRoot( ((cb.a.x + cb.a.v.vx) - (cb.b.x+cb.b.v.vx))*((cb.a.x + cb.a.v.vx) - (cb.b.x+cb.b.v.vx)) + ((cb.a.y + cb.a.v.vy) - (cb.b.y+cb.b.v.vy))*((cb.a.y + cb.a.v.vy) - (cb.b.y+cb.b.v.vy)) + ((cb.a.z + cb.a.v.vz) - (cb.b.z+cb.b.v.vz)*((cb.a.z + cb.a.v.vz) - (cb.b.z+cb.b.v.vz)) )) < cb.a.r + cb.b.r then
call Calibration(cb.a,cb.b)
call AfterColl(cb.a,cb.b)
endif
call b.Remove(true)
return cb
elseif b.r == 0 then
debug call BJDebugMsg("|c00BB0000FDL warning: tried to crack a body without radius |r")
call cb.destroy()
return 0
else
debug call BJDebugMsg("|c00BB0000FDL warning: tried to crack with invalid massk argument |r")
call cb.destroy()
return 0
endif
endfunction
endscope
//=========================================================================================
//=
//= Engine
//=
//=========================================================================================
scope EngineFDL
// Main stack
private struct TStek
Body array S [MaxStekSize]
Force array F [MaxStekSize]
Body array BMotionless [1000]
integer i = 0
integer j = 0
integer k = 0
endstruct
globals
private Body Collb
endglobals
private function Collusion takes nothing returns nothing
local Body b = FindBody(GetEnumUnit())
local integer i = 1
if b == Collb or b == 0 or b.r == 0 then
return
endif
if SquareRoot( (Collb.x-b.x)*(Collb.x-b.x) + (Collb.y-b.y)*(Collb.y-b.y) + (Collb.z-b.z)*(Collb.z-b.z)) < b.r + Collb.r then
if b.Motionless then
set b.Motionless = false
endif
call Calibration(Collb,b)
call AfterColl(Collb,b)
endif
endfunction
function Engine_Action takes nothing returns nothing
local integer i = 0
local integer j = 0
local integer k = 1
local Body a
local Body b
local group gr
local real z = 0
local real ang
local Vector V = 0
local Vector r = 0
local boolean moving = false
// We calculate the values of forces
if Stek.j > 0 then
loop
if (Stek.F[k].cv == 0) and (Stek.F[k].a.m > 0) and (Stek.F[k].b.m > 0) then
call Stek.F[k].Attraction()
elseif Stek.F[k].cv != 0 then
call Stek.F[k].Circle()
endif
exitwhen k>=Stek.j
set k = k + 1
endloop
endif
// Loop on the main stack of bodies
if Stek.i > 0 then
// Main Loop
set j = 1
loop
if not Stek.S[j].Motionless then
set b = Stek.S[j]
// Counting Collisions
if b.r > 0 then
set gr = CreateGroup()
call GroupEnumUnitsInRangeCounted(gr,b.x,b.y, b.r + Module(b.v)+1, null, CollBodyMax)
set Collb = b
call ForGroup( gr, function Collusion)
call DestroyGroup(gr)
set gr = null
endif
// The body has reached the floor, in fact when the unit is on the ground, z belongs to [-1.5,0]
if (b.z <= 0)then
call HitGround(b)
if b.moving then
call SetUnitX(b.u,b.x)
call SetUnitY(b.u,b.y)
endif
set b.z = 0
// Dry friction
if (b.mu > 0) and (b.m > 0) then
if SquareRoot(b.F.vx*b.F.vx + b.F.vy*b.F.vy) > b.mu*(b.m*Gravitational_acceleration - b.F.vz) then
if Abs(b.F.vx) > 0 then
set b.F.vx = b.F.vx - b.F.vx*b.mu*(b.m*Gravitational_acceleration - b.F.vz)/Module(b.F)
endif
if Abs(b.F.vy) > 0 then
set b.F.vy = b.F.vy - b.F.vy*b.mu*(b.m*Gravitational_acceleration - b.F.vz)/Module(b.F)
endif
elseif not b.NonStop and SquareRoot(b.v.vx*b.v.vx + b.v.vy*b.v.vy) < Abs(b.mu*(b.m*Gravitational_acceleration - b.F.vz))/b.m then
set b.v.vx = 0
set b.v.vy = 0
if not b.moving then
set b.Motionless = true
endif
else
set b.NonStop = false
if Abs(b.v.vx) > 0 then
set b.v.vx = b.v.vx - b.v.vx*b.mu*(b.m*Gravitational_acceleration - b.F.vz)/Module(b.v)/b.m
endif
if Abs(b.v.vy) > 0 then
set b.v.vy = b.v.vy - b.v.vy*b.mu*(b.m*Gravitational_acceleration - b.F.vz)/Module(b.v)/b.m
endif
endif
endif
endif
// If the unit is moving
if b.CanRun and b.moving then
if ((SquareRoot( (b.OrderX-b.x)*(b.OrderX-b.x) + (b.OrderY-b.y)*(b.OrderY-b.y) ) >= OrderDistanceStop) and (b.OrderTarget == null) ) or ( (b.OrderTarget != null) and ( SquareRoot( (b.x-GetWidgetX(b.OrderTarget))*(b.x-GetWidgetX(b.OrderTarget)) + (b.y-GetWidgetY(b.OrderTarget))*(b.y-GetWidgetY(b.OrderTarget)) ) >= OrderDistanceStop ) ) then
if b.z <= UnitCanRunMinHeight then
set ang = GetUnitFacing(b.u)/57.29577951
set b.x = b.x + Cos(ang)*GetUnitDefaultMoveSpeed(b.u)*FDLTimer
set b.y = b.y + Sin(ang)*GetUnitDefaultMoveSpeed(b.u)*FDLTimer
set b.moving = true
endif
else
if not (GetUnitCurrentOrder(b.u) == OrderId("attack")) then
set b.moving = false
call PauseUnit(b.u, true)
call IssueImmediateOrder(b.u, "stop")
call PauseUnit(b.u, false)
endif
endif
endif
// We consider the acceleration of the body
if b.m > 0 then
set b.a.vx = b.F.vx/b.m
set b.a.vy = b.F.vy/b.m
set b.a.vz = b.F.vz/b.m
// Viscous friction
if b.k > 0 then
set b.a.vx = b.a.vx - AddVFrFactor*b.k*b.v.vx/b.m
set b.a.vy = b.a.vy - AddVFrFactor*b.k*b.v.vy/b.m
set b.a.vz = b.a.vz - AddVFrFactor*b.k*b.v.vz/b.m
if Module(b.v) < 0.5 then
set b.Motionless = true
endif
endif
call b.F.Multiply(0)
endif
// We consider the speed
if not b.Fixation then
set b.v.vx = b.v.vx + b.a.vx
set b.v.vy = b.v.vy + b.a.vy
set b.v.vz = b.v.vz + b.a.vz + 1.1*b.g
endif
// Collision with the ceiling of the map
if b.z > Height_max then
set b.z = Height_max - 1
call b.v.Multiply(FactorOfResist-1)
endif
// Collision with the ceiling of the map
if b.x > GetRectMaxX(bj_mapInitialPlayableArea) then
set b.v.vx = -b.v.vx*(1-FactorOfResist)
set b.x = GetRectMaxX(bj_mapInitialPlayableArea) - 1
endif
if b.x < GetRectMinX(bj_mapInitialPlayableArea) then
set b.v.vx = -b.v.vx*(1-FactorOfResist)
set b.x = GetRectMinX(bj_mapInitialPlayableArea) + 1
endif
if b.y > GetRectMaxY(bj_mapInitialPlayableArea) then
set b.v.vy = -b.v.vy*(1-FactorOfResist)
set b.y = GetRectMaxY(bj_mapInitialPlayableArea) - 1
endif
if b.y < GetRectMinY(bj_mapInitialPlayableArea) then
set b.v.vy = -b.v.vy*(1-FactorOfResist)
set b.y = GetRectMinY(bj_mapInitialPlayableArea) + 1
endif
// Speed Limit
if Module(b.v) > FDLMaxSpeed then
call b.v.Multiply(FDLMaxSpeed/(Module(b.v)))
endif
// Add terrain height difference to body z
if b.moving then
set b.v.vx = b.v.vx + (b.x - b.kx)/FDLTimer
set b.v.vy = b.v.vy + (b.y - b.ky)/FDLTimer
endif
if (Abs(GetZ(b.x + b.v.vx*FDLTimer,b.y + b.v.vy*FDLTimer) - GetZ(b.x,b.y)) > 0) then
set b.z = b.z - GetZ(b.x + b.v.vx*FDLTimer,b.y + b.v.vy*FDLTimer) + GetZ(b.x,b.y)
endif
if b.moving then
set b.v.vx = b.v.vx - (b.x - b.kx)/FDLTimer
set b.v.vy = b.v.vy - (b.y - b.ky)/FDLTimer
endif
// Keeping the old coordinates
set b.kx = b.x
set b.ky = b.y
set b.kz = b.z
// We consider new coordinates and, if necessary, move the unit
set b.x = b.x + b.v.vx*FDLTimer
set b.y = b.y + b.v.vy*FDLTimer
set b.z = b.z + b.v.vz*FDLTimer
if b.u != null then
if b.kx != b.x then
call SetUnitX(b.u,b.x)
endif
if b.ky != b.y then
call SetUnitY(b.u,b.y)
endif
if b.kz != b.z then
call SetUnitFlyHeight(b.u, b.z, 0)
endif
endif
//We do not shortchange a calm body
if (Module(b.v) == 0) and not b.moving then
set b.Motionless = true
endif
else
set Stek.k = Stek.k + 1 // don't get confused, this array starts at 1 and the intiger points to the last element of the array
set Stek.BMotionless[Stek.k] = Stek.S[j]
set Stek.S[j] = Stek.S[Stek.i]
set Stek.S[Stek.i]=0
set Stek.i = Stek.i - 1
endif
exitwhen j >= Stek.i
set j = j +1
endloop
endif
endfunction
function Motionless_Action takes nothing returns nothing
local integer i = 1
loop
exitwhen i > Stek.k
if (Stek.BMotionless[i].Motionless == false) then
set Stek.i= Stek.i +1
set Stek.S[Stek.i] = Stek.BMotionless[i]
set Stek.BMotionless[i] = Stek.BMotionless[Stek.k]
set Stek.BMotionless[Stek.k] =0
set Stek.k = Stek.k - 1
endif
set i = i + 1
endloop
endfunction
// System start
globals
private timer Engine = CreateTimer()
private timer MotionlessT = CreateTimer()
TStek Stek = 0
endglobals
function StartEngine takes nothing returns nothing
set Stek = TStek.create()
call TimerStart(Engine, FDLTimer, true , function Engine_Action )
call TimerStart(MotionlessT, FDLTimer+0.01, true , function Motionless_Action )
call TimerStart(SetRadiusFDLT, 0.05 , true, function SetRadiusFDL_Actions)
endfunction
endscope
endlibrary
scope TemplateFrameDemo initializer init
globals
integer LocalPlayerId
UIFrame textTemplate
UIFrame inventoryFrame
UIFrame simpleTitle
UIFrame simpleCharacterBar50
UIFrame simpleCharacterBar2
UIFrame simpleNPCdialog
UIFrame simpleNPCdialog2
UIFrame RaceTimerUi
UIFrame simpleEEEbutton
UIFrame simpleItem_E
UIFrame simpleItem_Q
UIFrame footmanIcon
UIFrame testSimpleButton
UIFrame healthbarFrame
UIFrame testSliderH
UIFrame testSliderV
UIFrame GoldCoinUiCorner
UIFrame PositionFrameTopPlayer1
UIFrame ItemUiFrame
UIFrame TitleTimeTop
UIFrame LapMiddleUi
UIFrame TitleLapTop
UIFrame TitleZoneMiddle
UIFrame SelectStageUi
UIFrame TimeStringCase0
UIFrame TimeStringCase00
UIFrame TimeStringCase00i
UIFrame TimeStringCase00i0
UIFrame TimeStringCase00i00
UIFrame TimeStringCase00i00i
UIFrame TimeStringCase00i00i0
UIFrame TimeStringCase00i00i00
UIFrame TitleLapRow2Top
UIFrame TimeStringRow2Case0
UIFrame TimeStringRow2Case00
UIFrame TimeStringRow2Case00i
UIFrame TimeStringRow2Case00i0
UIFrame TimeStringRow2Case00i00
UIFrame TimeStringRow2Case00i00i
UIFrame TimeStringRow2Case00i00i0
UIFrame TimeStringRow2Case00i00i00
UIFrame TitleLapRow3Top
UIFrame TimeStringRow3Case0
UIFrame TimeStringRow3Case00
UIFrame TimeStringRow3Case00i
UIFrame TimeStringRow3Case00i0
UIFrame TimeStringRow3Case00i00
UIFrame TimeStringRow3Case00i00i
UIFrame TimeStringRow3Case00i00i0
UIFrame TimeStringRow3Case00i00i00
UIFrame TitleLapRow4Top
UIFrame TimeStringRow4Case0
UIFrame TimeStringRow4Case00
UIFrame TimeStringRow4Case00i
UIFrame TimeStringRow4Case00i0
UIFrame TimeStringRow4Case00i00
UIFrame TimeStringRow4Case00i00i
UIFrame TimeStringRow4Case00i00i0
UIFrame TimeStringRow4Case00i00i00
UIFrame PositionEndUiPlace
UIFrame PositionEndUiPosition
UIFrame PositionEndUiWait
UIFrame TopLockedZoneUi
UIFrame Crystal1
UIFrame Crystal2
UIFrame Crystal3
UIFrame Crystal4
UIFrame Crystal5
UIFrame Crystal6
UIFrame Crystal7
UIFrame Crystal8
UIFrame Crystal9
UIFrame Crystal10
endglobals
private function FrameEvent takes nothing returns boolean
local frameeventtype eventType = BlzGetTriggerFrameEvent()
if eventType == FRAMEEVENT_CONTROL_CLICK then
call BJDebugMsg("Click |cffffcc00[" + UIFrame.TriggerComponent.name + "]|r")
elseif eventType == FRAMEEVENT_MOUSE_ENTER then
call BJDebugMsg("Enter |cffffcc00[" + UIFrame.TriggerComponent.name + "]|r")
elseif eventType == FRAMEEVENT_MOUSE_LEAVE then
call BJDebugMsg("Leave |cffffcc00[" + UIFrame.TriggerComponent.name + "]|r")
elseif eventType == FRAMEEVENT_MOUSE_UP then
call BJDebugMsg("Mouse Up |cffffcc00[" + UIFrame.TriggerComponent.name + "]|r")
elseif eventType == FRAMEEVENT_MOUSE_DOWN then
call BJDebugMsg("Mouse Down |cffffcc00[" + UIFrame.TriggerComponent.name + "]|r")
elseif eventType == FRAMEEVENT_MOUSE_WHEEL then
call BJDebugMsg("Mouse Wheel |cffffcc00[" + UIFrame.TriggerComponent.name + "]|r")
//elseif eventType == FRAMEEVENT_SLIDER_VALUE_CHANGED then
//call BJDebugMsg("Value Changed |cffffcc00[" + UIFrame.TriggerComponent.name + "]|r")
endif
return false
endfunction
private function AddRandomItem takes integer row, integer col returns nothing
local UIFrame f
local real startX = 50.0
local real startY = -100.0
local real offset = 60.0
set f = UIFrame.create(false, UIFrame.TYPE_BUTTON, inventoryFrame, startX+offset*col, startY-offset*row, 0)
set f.name = "TemplateItem"
set f.texture = "war3mapImported\\item" + I2S(GetRandomInt(1, 4)) + ".blp"
set f.highlightTexture = "war3mapImported\\Selection.blp"
call f.setAnchorPoint(0.0, 1.0) // Top
call f.setPivotPoint(0.5, 0.5) // Center
call f.setSize(50.0, 50.0)
endfunction
private function createFrame takes nothing returns nothing
local integer i
local integer r
local integer c
// 1. Create simple text
// - Instantiate a new frame
// - Simple frame must let "isSimple" parameter be "true"
// - Set the parent to Null so it has no parent
//set textTemplate = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXT, UIFrame.Null, -200.0, -50.0, 0)
// - Change frame name for event identification (demo)
//set textTemplate.name = "Template Text"
// - Change text content
//set textTemplate.text = ""
// - Register event
//set textTemplate.onAnyEvent = function FrameEvent
// - Set anchor point to top right
// - This frame has no parent so it anchors at the screen's top right
//call textTemplate.setAnchorPoint(1.0, 1.0) // Top Right
// - Set pivot point to right
//call textTemplate.setPivotPoint(1.0, 0.5) // Right
// - Modify text alignment
//call textTemplate.setTextAlignment(TEXT_JUSTIFY_RIGHT, TEXT_JUSTIFY_TOP)
// 3. Create simple texture template
// - This is a simple frame type so it can go beyond the 4:3 bounds
set simpleCharacterBar50 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set simpleCharacterBar50.name = "Template Simple Texture"
set simpleCharacterBar50.texture = "war3mapImported\\logoIntro5v2.tga"
set simpleCharacterBar50.onAnyEvent = function FrameEvent
call simpleCharacterBar50.setAnchorPoint(0.315, 0.198) // Bottom Right
call simpleCharacterBar50.setPivotPoint(0.0, 0.0) // Bottom Right
call simpleCharacterBar50.setSize(512.0, 512.0)
set simpleCharacterBar50.visible = false
// 3. Create simple texture template
// - This is a simple frame type so it can go beyond the 4:3 bounds
set simpleCharacterBar2 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set simpleCharacterBar2.name = "Template Simple TextureDiablo"
set simpleCharacterBar2.texture = "war3mapImported\\logointro1v4.tga"
set simpleCharacterBar2.onAnyEvent = function FrameEvent
call simpleCharacterBar2.setAnchorPoint(0.315, 0.198) // Bottom Right
call simpleCharacterBar2.setPivotPoint(0.0, 0.0) // Bottom Right
call simpleCharacterBar2.setSize(512.0, 512.0)
set simpleCharacterBar2.visible = false
// 2222- This is a simple frame type so it can go beyond the 4:3 bounds
set SelectStageUi = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set SelectStageUi.name = "SelectStageUi"
set SelectStageUi.texture = "war3mapImported\\StageInfov3v2.tga"
set SelectStageUi.onAnyEvent = function FrameEvent
call SelectStageUi.setAnchorPoint(0.5, 0.5) // Bottom Right
call SelectStageUi.setPivotPoint(0.5, 0.5) // Bottom Right
call SelectStageUi.setSize(712.0, 712.0)
set SelectStageUi.visible = false
// 2222- This is a simple frame type so it can go beyond the 4:3 bounds
set LapMiddleUi = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set LapMiddleUi.name = "LapMiddleUi"
set LapMiddleUi.texture = "war3mapImported\\Lap2Image.tga"
set LapMiddleUi.onAnyEvent = function FrameEvent
call LapMiddleUi.setAnchorPoint(0.355, 0.395) // Bottom Right
call LapMiddleUi.setPivotPoint(0.0, 0.0) // Bottom Right
call LapMiddleUi.setSize(400.0, 400.0)
set LapMiddleUi.visible = false
// 3. Create simple texture template
// - This is a simple frame type so it can go beyond the 4:3 bounds
set TitleZoneMiddle = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TitleZoneMiddle.name = "TitleZoneMiddle"
set TitleZoneMiddle.texture = "war3mapImported\\opensourcetitlev2.tga"
set TitleZoneMiddle.onAnyEvent = function FrameEvent
call TitleZoneMiddle.setAnchorPoint(0.315, 0.400) // Bottom Right
call TitleZoneMiddle.setPivotPoint(0.0, 0.0) // Bottom Right
call TitleZoneMiddle.setSize(512.0, 256.0)
set TitleZoneMiddle.visible = false
// 3. Create simple texture template
// - This is a simple frame type so it can go beyond the 4:3 bounds
set RaceTimerUi = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set RaceTimerUi.name = "Template Simple TextureDiablo"
set RaceTimerUi.texture = "war3mapImported\\RaceTimer_3.tga"
set RaceTimerUi.onAnyEvent = function FrameEvent
call RaceTimerUi.setAnchorPoint(0.140, 0.198) // Bottom Right
call RaceTimerUi.setPivotPoint(0.0, 0.0) // Bottom Right
call RaceTimerUi.setSize(1024.0, 512.0)
set RaceTimerUi.visible = false
// 3. Create simple texture template
// - This is a simple frame type so it can go beyond the 4:3 bounds
set simpleNPCdialog = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set simpleNPCdialog.name = "Template Simple TextureEBUTTON"
set simpleNPCdialog.texture = "war3mapImported\\Please wait.tga"
set simpleNPCdialog.onAnyEvent = function FrameEvent
call simpleNPCdialog.setAnchorPoint(0.315, 0.198) // Bottom Right
call simpleNPCdialog.setPivotPoint(0.0, 0.0) // Bottom Right
call simpleNPCdialog.setSize(512.0, 256.0)
set simpleNPCdialog.visible = false
set simpleNPCdialog2 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set simpleNPCdialog2.name = "Template Simple TextureEBUTTON"
set simpleNPCdialog2.texture = "war3mapImported\\Hellotherev3.tga"
set simpleNPCdialog2.onAnyEvent = function FrameEvent
call simpleNPCdialog2.setAnchorPoint(0.315, 0.198) // Bottom Right
call simpleNPCdialog2.setPivotPoint(0.0, 0.0) // Bottom Right
call simpleNPCdialog2.setSize(512.0, 256.0)
set simpleNPCdialog2.visible = false
set GoldCoinUiCorner = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set GoldCoinUiCorner.name = "Template Simple TextureEBUTTON"
set GoldCoinUiCorner.texture = "war3mapImported\\GoldCoin_0v2.tga"
set GoldCoinUiCorner.onAnyEvent = function FrameEvent
call GoldCoinUiCorner.setAnchorPoint(0.750, 0.100) // Bottom Right
call GoldCoinUiCorner.setPivotPoint(0.0, 0.0) // Bottom Right
call GoldCoinUiCorner.setSize(156.0, 80.0)
set GoldCoinUiCorner.visible = false
set PositionFrameTopPlayer1 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set PositionFrameTopPlayer1.name = "PositionFrameTopPlayer1"
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
set PositionFrameTopPlayer1.onAnyEvent = function FrameEvent
call PositionFrameTopPlayer1.setAnchorPoint(0.150, 1.000) // Bottom Right
call PositionFrameTopPlayer1.setPivotPoint(0.5, 1.0) // Bottom Right
call PositionFrameTopPlayer1.setSize(256.0, 256.0)
set PositionFrameTopPlayer1.visible = false
set ItemUiFrame = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set ItemUiFrame.name = "PositionFrameTopPlayer1"
set ItemUiFrame.texture = "war3mapImported\\Button_Ev1.tga"
set ItemUiFrame.onAnyEvent = function FrameEvent
call ItemUiFrame.setAnchorPoint(0.580, 0.220) // Bottom Right
call ItemUiFrame.setPivotPoint(0.0, 0.0) // Bottom Right
call ItemUiFrame.setSize(165.0, 165.0)
set ItemUiFrame.visible = false
set TitleTimeTop = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TitleTimeTop.name = "TitleTimeTop"
set TitleTimeTop.texture = "war3mapImported\\Timev1.tga"
set TitleTimeTop.onAnyEvent = function FrameEvent
call TitleTimeTop.setAnchorPoint(0.900, 0.950) // Bottom Right
call TitleTimeTop.setPivotPoint(1.0, 0.5) // Bottom Right
call TitleTimeTop.setSize(128.0, 64.0)
set TitleTimeTop.visible = false
set TitleLapTop = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TitleLapTop.name = "TitleLapTop"
set TitleLapTop.texture = "war3mapImported\\Lap1v1.tga"
set TitleLapTop.onAnyEvent = function FrameEvent
call TitleLapTop.setAnchorPoint(0.820, 0.900) // Bottom Right
call TitleLapTop.setPivotPoint(1.0, 0.5) // Bottom Right
call TitleLapTop.setSize(74.0, 38.0)
set TitleLapTop.visible = false
set TimeStringCase0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringCase0.name = "TimeStringCase0"
set TimeStringCase0.texture = "war3mapImported\\0_v1.tga"
set TimeStringCase0.onAnyEvent = function FrameEvent
call TimeStringCase0.setAnchorPoint(0.846, 0.900) // Bottom Right
call TimeStringCase0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringCase0.setSize(44.0, 44.0)
set TimeStringCase0.visible = false
set TimeStringCase00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringCase00.name = "TimeStringCase00"
set TimeStringCase00.texture = "war3mapImported\\0_v1.tga"
set TimeStringCase00.onAnyEvent = function FrameEvent
call TimeStringCase00.setAnchorPoint(0.860, 0.900) // Bottom Right
call TimeStringCase00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringCase00.setSize(44.0, 44.0)
set TimeStringCase00.visible = false
set TimeStringCase00i = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringCase00i.name = "TimeStringCase00i"
set TimeStringCase00i.texture = "war3mapImported\\deuxpoint_v1.tga"
set TimeStringCase00i.onAnyEvent = function FrameEvent
call TimeStringCase00i.setAnchorPoint(0.874, 0.900) // Bottom Right
call TimeStringCase00i.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringCase00i.setSize(44.0, 44.0)
set TimeStringCase00i.visible = false
set TimeStringCase00i0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringCase00i0.name = "TimeStringCase00i0"
set TimeStringCase00i0.texture = "war3mapImported\\0_v1.tga"
set TimeStringCase00i0.onAnyEvent = function FrameEvent
call TimeStringCase00i0.setAnchorPoint(0.888, 0.900) // Bottom Right
call TimeStringCase00i0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringCase00i0.setSize(44.0, 44.0)
set TimeStringCase00i0.visible = false
set TimeStringCase00i00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringCase00i00.name = "TimeStringCase00i00"
set TimeStringCase00i00.texture = "war3mapImported\\0_v1.tga"
set TimeStringCase00i00.onAnyEvent = function FrameEvent
call TimeStringCase00i00.setAnchorPoint(0.902, 0.900) // Bottom Right
call TimeStringCase00i00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringCase00i00.setSize(44.0, 44.0)
set TimeStringCase00i00.visible = false
set TimeStringCase00i00i = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringCase00i00i.name = "TimeStringCase00i00i"
set TimeStringCase00i00i.texture = "war3mapImported\\deuxpoint_v1.tga"
set TimeStringCase00i00i.onAnyEvent = function FrameEvent
call TimeStringCase00i00i.setAnchorPoint(0.916, 0.900) // Bottom Right
call TimeStringCase00i00i.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringCase00i00i.setSize(44.0, 44.0)
set TimeStringCase00i00i.visible = false
set TimeStringCase00i00i0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringCase00i00i0.name = "TimeStringCase00i00i0"
set TimeStringCase00i00i0.texture = "war3mapImported\\0_v1.tga"
set TimeStringCase00i00i0.onAnyEvent = function FrameEvent
call TimeStringCase00i00i0.setAnchorPoint(0.930, 0.900) // Bottom Right
call TimeStringCase00i00i0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringCase00i00i0.setSize(44.0, 44.0)
set TimeStringCase00i00i0.visible = false
set TimeStringCase00i00i00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringCase00i00i00.name = "TimeStringCase00i00i00"
set TimeStringCase00i00i00.texture = "war3mapImported\\0_v1.tga"
set TimeStringCase00i00i00.onAnyEvent = function FrameEvent
call TimeStringCase00i00i00.setAnchorPoint(0.944, 0.900) // Bottom Right
call TimeStringCase00i00i00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringCase00i00i00.setSize(44.0, 44.0)
set TimeStringCase00i00i00.visible = false
set TitleLapRow2Top = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TitleLapRow2Top.name = "TitleLapRow2Top"
set TitleLapRow2Top.texture = "war3mapImported\\Lap1v1.tga"
set TitleLapRow2Top.onAnyEvent = function FrameEvent
call TitleLapRow2Top.setAnchorPoint(0.820, 0.862) // Bottom Right
call TitleLapRow2Top.setPivotPoint(1.0, 0.5) // Bottom Right
call TitleLapRow2Top.setSize(74.0, 38.0)
set TitleLapRow2Top.visible = false
set TimeStringRow2Case0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow2Case0.name = "TimeStringRow2Case0"
set TimeStringRow2Case0.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow2Case0.onAnyEvent = function FrameEvent
call TimeStringRow2Case0.setAnchorPoint(0.846, 0.862) // Bottom Right
call TimeStringRow2Case0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow2Case0.setSize(44.0, 44.0)
set TimeStringRow2Case0.visible = false
set TimeStringRow2Case00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow2Case00.name = "TimeStringRow2Case00"
set TimeStringRow2Case00.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow2Case00.onAnyEvent = function FrameEvent
call TimeStringRow2Case00.setAnchorPoint(0.860, 0.862) // Bottom Right
call TimeStringRow2Case00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow2Case00.setSize(44.0, 44.0)
set TimeStringRow2Case00.visible = false
set TimeStringRow2Case00i = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow2Case00i.name = "TimeStringRow2Case00i"
set TimeStringRow2Case00i.texture = "war3mapImported\\deuxpoint_v1.tga"
set TimeStringRow2Case00i.onAnyEvent = function FrameEvent
call TimeStringRow2Case00i.setAnchorPoint(0.874, 0.862) // Bottom Right
call TimeStringRow2Case00i.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow2Case00i.setSize(44.0, 44.0)
set TimeStringRow2Case00i.visible = false
set TimeStringRow2Case00i0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow2Case00i0.name = "TimeStringRow2Case00i0"
set TimeStringRow2Case00i0.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow2Case00i0.onAnyEvent = function FrameEvent
call TimeStringRow2Case00i0.setAnchorPoint(0.888, 0.862) // Bottom Right
call TimeStringRow2Case00i0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow2Case00i0.setSize(44.0, 44.0)
set TimeStringRow2Case00i0.visible = false
set TimeStringRow2Case00i00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow2Case00i00.name = "TimeStringRow2Case00i00"
set TimeStringRow2Case00i00.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow2Case00i00.onAnyEvent = function FrameEvent
call TimeStringRow2Case00i00.setAnchorPoint(0.902, 0.862) // Bottom Right
call TimeStringRow2Case00i00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow2Case00i00.setSize(44.0, 44.0)
set TimeStringRow2Case00i00.visible = false
set TimeStringRow2Case00i00i = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow2Case00i00i.name = "TimeStringRow2Case00i00i"
set TimeStringRow2Case00i00i.texture = "war3mapImported\\deuxpoint_v1.tga"
set TimeStringRow2Case00i00i.onAnyEvent = function FrameEvent
call TimeStringRow2Case00i00i.setAnchorPoint(0.916, 0.862) // Bottom Right
call TimeStringRow2Case00i00i.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow2Case00i00i.setSize(44.0, 44.0)
set TimeStringRow2Case00i00i.visible = false
set TimeStringRow2Case00i00i0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow2Case00i00i0.name = "TimeStringRow2Case00i00i0"
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow2Case00i00i0.onAnyEvent = function FrameEvent
call TimeStringRow2Case00i00i0.setAnchorPoint(0.930, 0.862) // Bottom Right
call TimeStringRow2Case00i00i0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow2Case00i00i0.setSize(44.0, 44.0)
set TimeStringRow2Case00i00i0.visible = false
set TimeStringRow2Case00i00i00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow2Case00i00i00.name = "TimeStringRow2Case00i00i00"
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow2Case00i00i00.onAnyEvent = function FrameEvent
call TimeStringRow2Case00i00i00.setAnchorPoint(0.944, 0.862) // Bottom Right
call TimeStringRow2Case00i00i00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow2Case00i00i00.setSize(44.0, 44.0)
set TimeStringRow2Case00i00i00.visible = false
set TitleLapRow3Top = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TitleLapRow3Top.name = "TitleLapRow3Top"
set TitleLapRow3Top.texture = "war3mapImported\\Lap2v1.tga"
set TitleLapRow3Top.onAnyEvent = function FrameEvent
call TitleLapRow3Top.setAnchorPoint(0.820, 0.824) // Bottom Right
call TitleLapRow3Top.setPivotPoint(1.0, 0.5) // Bottom Right
call TitleLapRow3Top.setSize(74.0, 38.0)
set TitleLapRow3Top.visible = false
set TimeStringRow3Case0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow3Case0.name = "TimeStringRow3Case0"
set TimeStringRow3Case0.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow3Case0.onAnyEvent = function FrameEvent
call TimeStringRow3Case0.setAnchorPoint(0.846, 0.824) // Bottom Right
call TimeStringRow3Case0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow3Case0.setSize(44.0, 44.0)
set TimeStringRow3Case0.visible = false
set TimeStringRow3Case00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow3Case00.name = "TimeStringRow3Case00"
set TimeStringRow3Case00.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow3Case00.onAnyEvent = function FrameEvent
call TimeStringRow3Case00.setAnchorPoint(0.860, 0.824) // Bottom Right
call TimeStringRow3Case00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow3Case00.setSize(44.0, 44.0)
set TimeStringRow3Case00.visible = false
set TimeStringRow3Case00i = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow3Case00i.name = "TimeStringRow3Case00i"
set TimeStringRow3Case00i.texture = "war3mapImported\\deuxpoint_v1.tga"
set TimeStringRow3Case00i.onAnyEvent = function FrameEvent
call TimeStringRow3Case00i.setAnchorPoint(0.874, 0.824) // Bottom Right
call TimeStringRow3Case00i.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow3Case00i.setSize(44.0, 44.0)
set TimeStringRow3Case00i.visible = false
set TimeStringRow3Case00i0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow3Case00i0.name = "TimeStringRow3Case00i0"
set TimeStringRow3Case00i0.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow3Case00i0.onAnyEvent = function FrameEvent
call TimeStringRow3Case00i0.setAnchorPoint(0.888, 0.824) // Bottom Right
call TimeStringRow3Case00i0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow3Case00i0.setSize(44.0, 44.0)
set TimeStringRow3Case00i0.visible = false
set TimeStringRow3Case00i00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow3Case00i00.name = "TimeStringRow3Case00i00"
set TimeStringRow3Case00i00.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow3Case00i00.onAnyEvent = function FrameEvent
call TimeStringRow3Case00i00.setAnchorPoint(0.902, 0.824) // Bottom Right
call TimeStringRow3Case00i00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow3Case00i00.setSize(44.0, 44.0)
set TimeStringRow3Case00i00.visible = false
set TimeStringRow3Case00i00i = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow3Case00i00i.name = "TimeStringRow3Case00i00i"
set TimeStringRow3Case00i00i.texture = "war3mapImported\\deuxpoint_v1.tga"
set TimeStringRow3Case00i00i.onAnyEvent = function FrameEvent
call TimeStringRow3Case00i00i.setAnchorPoint(0.916, 0.824) // Bottom Right
call TimeStringRow3Case00i00i.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow3Case00i00i.setSize(44.0, 44.0)
set TimeStringRow3Case00i00i.visible = false
set TimeStringRow3Case00i00i0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow3Case00i00i0.name = "TimeStringRow3Case00i00i0"
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow3Case00i00i0.onAnyEvent = function FrameEvent
call TimeStringRow3Case00i00i0.setAnchorPoint(0.930, 0.824) // Bottom Right
call TimeStringRow3Case00i00i0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow3Case00i00i0.setSize(44.0, 44.0)
set TimeStringRow3Case00i00i0.visible = false
set TimeStringRow3Case00i00i00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow3Case00i00i00.name = "TimeStringRow3Case00i00i00"
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow3Case00i00i00.onAnyEvent = function FrameEvent
call TimeStringRow3Case00i00i00.setAnchorPoint(0.944, 0.824) // Bottom Right
call TimeStringRow3Case00i00i00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow3Case00i00i00.setSize(44.0, 44.0)
set TimeStringRow3Case00i00i00.visible = false
set TitleLapRow4Top = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TitleLapRow4Top.name = "TitleLapRow4Top"
set TitleLapRow4Top.texture = "war3mapImported\\Lap3v1.tga"
set TitleLapRow4Top.onAnyEvent = function FrameEvent
call TitleLapRow4Top.setAnchorPoint(0.820, 0.786) // Bottom Right
call TitleLapRow4Top.setPivotPoint(1.0, 0.5) // Bottom Right
call TitleLapRow4Top.setSize(74.0, 38.0)
set TitleLapRow4Top.visible = false
set TimeStringRow4Case0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow4Case0.name = "TimeStringRow4Case0"
set TimeStringRow4Case0.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow4Case0.onAnyEvent = function FrameEvent
call TimeStringRow4Case0.setAnchorPoint(0.846, 0.786) // Bottom Right
call TimeStringRow4Case0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow4Case0.setSize(44.0, 44.0)
set TimeStringRow4Case0.visible = false
set TimeStringRow4Case00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow4Case00.name = "TimeStringRow4Case00"
set TimeStringRow4Case00.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow4Case00.onAnyEvent = function FrameEvent
call TimeStringRow4Case00.setAnchorPoint(0.860, 0.786) // Bottom Right
call TimeStringRow4Case00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow4Case00.setSize(44.0, 44.0)
set TimeStringRow4Case00.visible = false
set TimeStringRow4Case00i = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow4Case00i.name = "TimeStringRow4Case00i"
set TimeStringRow4Case00i.texture = "war3mapImported\\deuxpoint_v1.tga"
set TimeStringRow4Case00i.onAnyEvent = function FrameEvent
call TimeStringRow4Case00i.setAnchorPoint(0.874, 0.786) // Bottom Right
call TimeStringRow4Case00i.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow4Case00i.setSize(44.0, 44.0)
set TimeStringRow4Case00i.visible = false
set TimeStringRow4Case00i0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow4Case00i0.name = "TimeStringRow4Case00i0"
set TimeStringRow4Case00i0.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow4Case00i0.onAnyEvent = function FrameEvent
call TimeStringRow4Case00i0.setAnchorPoint(0.888, 0.786) // Bottom Right
call TimeStringRow4Case00i0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow4Case00i0.setSize(44.0, 44.0)
set TimeStringRow4Case00i0.visible = false
set TimeStringRow4Case00i00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow4Case00i00.name = "TimeStringRow4Case00i00"
set TimeStringRow4Case00i00.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow4Case00i00.onAnyEvent = function FrameEvent
call TimeStringRow4Case00i00.setAnchorPoint(0.902, 0.786) // Bottom Right
call TimeStringRow4Case00i00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow4Case00i00.setSize(44.0, 44.0)
set TimeStringRow4Case00i00.visible = false
set TimeStringRow4Case00i00i = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow4Case00i00i.name = "TimeStringRow4Case00i00i"
set TimeStringRow4Case00i00i.texture = "war3mapImported\\deuxpoint_v1.tga"
set TimeStringRow4Case00i00i.onAnyEvent = function FrameEvent
call TimeStringRow4Case00i00i.setAnchorPoint(0.916, 0.786) // Bottom Right
call TimeStringRow4Case00i00i.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow4Case00i00i.setSize(44.0, 44.0)
set TimeStringRow4Case00i00i.visible = false
set TimeStringRow4Case00i00i0 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow4Case00i00i0.name = "TimeStringRow4Case00i00i0"
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow4Case00i00i0.onAnyEvent = function FrameEvent
call TimeStringRow4Case00i00i0.setAnchorPoint(0.930, 0.786) // Bottom Right
call TimeStringRow4Case00i00i0.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow4Case00i00i0.setSize(44.0, 44.0)
set TimeStringRow4Case00i00i0.visible = false
set TimeStringRow4Case00i00i00 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TimeStringRow4Case00i00i00.name = "TimeStringRow4Case00i00i00"
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\0_v1.tga"
set TimeStringRow4Case00i00i00.onAnyEvent = function FrameEvent
call TimeStringRow4Case00i00i00.setAnchorPoint(0.944, 0.786) // Bottom Right
call TimeStringRow4Case00i00i00.setPivotPoint(1.0, 0.5) // Bottom Right
call TimeStringRow4Case00i00i00.setSize(44.0, 44.0)
set TimeStringRow4Case00i00i00.visible = false
// 3. Create simple texture template
// - This is a simple frame type so it can go beyond the 4:3 bounds
//set simpleQQQbutton = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
//set simpleQQQbutton.name = "Template Simple TextureQBUTTON"
//set simpleQQQbutton.texture = "war3mapImported\\Button_Ev1.tga"
//set simpleQQQbutton.onAnyEvent = function FrameEvent
//call simpleQQQbutton.setAnchorPoint(0.00, 0.00) // Bottom Right
//call simpleQQQbutton.setPivotPoint(0.9, 0.9) // Bottom Right
//call simpleQQQbutton.setSize(150.0, 150.0)
// 3. Create simple texture template
// - This is a simple frame type so it can go beyond the 4:3 bounds
set PositionEndUiPlace = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set PositionEndUiPlace.name = "PositionEndUiPlace"
set PositionEndUiPlace.texture = "war3mapImported\\place_v1.tga"
set PositionEndUiPlace.onAnyEvent = function FrameEvent
call PositionEndUiPlace.setAnchorPoint(0.500, 0.350) // Bottom Right
call PositionEndUiPlace.setPivotPoint(0.0, 0.0) // Bottom Right
call PositionEndUiPlace.setSize(300.0, 300.0)
set PositionEndUiPlace.visible = false
// 3. Create simple texture template
// - This is a simple frame type so it can go beyond the 4:3 bounds
set PositionEndUiPosition = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set PositionEndUiPosition.name = "PositionEndUiPosition"
set PositionEndUiPosition.texture = "war3mapImported\\1st_v2.tga"
set PositionEndUiPosition.onAnyEvent = function FrameEvent
call PositionEndUiPosition.setAnchorPoint(0.250, 0.350) // Bottom Right
call PositionEndUiPosition.setPivotPoint(0.0, 0.0) // Bottom Right
call PositionEndUiPosition.setSize(350.0, 350.0)
set PositionEndUiPosition.visible = false
set PositionEndUiWait = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set PositionEndUiWait.name = "PositionEndUiPosition"
set PositionEndUiWait.texture = "war3mapImported\\PLeaseendracev1.tga"
set PositionEndUiWait.onAnyEvent = function FrameEvent
call PositionEndUiWait.setAnchorPoint(0.300, 0.230) // Bottom Right
call PositionEndUiWait.setPivotPoint(0.0, 0.0) // Bottom Right
call PositionEndUiWait.setSize(512.0, 256.0)
set PositionEndUiWait.visible = false
set TopLockedZoneUi = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set TopLockedZoneUi.name = "TopLockedZoneUi"
set TopLockedZoneUi.texture = "war3mapImported\\PirateLagoonTitleLOCKv4.tga"
set TopLockedZoneUi.onAnyEvent = function FrameEvent
call TopLockedZoneUi.setAnchorPoint(0.695, 0.780) // Bottom Right
call TopLockedZoneUi.setPivotPoint(1.0, 0.5) // Bottom Right
call TopLockedZoneUi.setSize(512.0, 256.0)
set TopLockedZoneUi.visible = false
set Crystal1 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal1.name = "Crystal1"
set Crystal1.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal1.onAnyEvent = function FrameEvent
call Crystal1.setAnchorPoint(0.390, 0.190) // Bottom Right
// call Crystal1.setAnchorPoint(0.390, 0.910) // Bottom Right
call Crystal1.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal1.setSize(84.0, 84.0)
set Crystal1.visible = false
set Crystal2 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal2.name = "Crystal2"
set Crystal2.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal2.onAnyEvent = function FrameEvent
call Crystal2.setAnchorPoint(0.420, 0.190) // Bottom Right
call Crystal2.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal2.setSize(84.0, 84.0)
set Crystal2.visible = false
set Crystal3 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal3.name = "Crystal3"
set Crystal3.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal3.onAnyEvent = function FrameEvent
call Crystal3.setAnchorPoint(0.450, 0.190) // Bottom Right
call Crystal3.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal3.setSize(84.0, 84.0)
set Crystal3.visible = false
set Crystal4 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal4.name = "Crystal4"
set Crystal4.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal4.onAnyEvent = function FrameEvent
call Crystal4.setAnchorPoint(0.480, 0.190) // Bottom Right
call Crystal4.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal4.setSize(84.0, 84.0)
set Crystal4.visible = false
set Crystal5 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal5.name = "Crystal5"
set Crystal5.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal5.onAnyEvent = function FrameEvent
call Crystal5.setAnchorPoint(0.510, 0.190) // Bottom Right
call Crystal5.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal5.setSize(84.0, 84.0)
set Crystal5.visible = false
set Crystal6 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal6.name = "Crystal6"
set Crystal6.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal6.onAnyEvent = function FrameEvent
call Crystal6.setAnchorPoint(0.540, 0.190) // Bottom Right
call Crystal6.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal6.setSize(84.0, 84.0)
set Crystal6.visible = false
set Crystal7 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal7.name = "Crystal7"
set Crystal7.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal7.onAnyEvent = function FrameEvent
call Crystal7.setAnchorPoint(0.570, 0.190) // Bottom Right
call Crystal7.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal7.setSize(84.0, 84.0)
set Crystal7.visible = false
set Crystal8 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal8.name = "Crystal8"
set Crystal8.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal8.onAnyEvent = function FrameEvent
call Crystal8.setAnchorPoint(0.600, 0.190) // Bottom Right
call Crystal8.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal8.setSize(84.0, 84.0)
set Crystal8.visible = false
set Crystal9 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal9.name = "Crystal9"
set Crystal9.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal9.onAnyEvent = function FrameEvent
call Crystal9.setAnchorPoint(0.630, 0.190) // Bottom Right
call Crystal9.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal9.setSize(84.0, 84.0)
set Crystal9.visible = false
set Crystal10 = UIFrame.create(true, UIFrame.TYPE_SIMPLE_TEXTURE, UIFrame.Null, 0.0, 0.0, 0)
set Crystal10.name = "Crystal10"
set Crystal10.texture = "war3mapImported\\crystallEmptyv1.tga"
set Crystal10.onAnyEvent = function FrameEvent
call Crystal10.setAnchorPoint(0.660, 0.190) // Bottom Right
call Crystal10.setPivotPoint(1.0, 0.5) // Bottom Right
call Crystal10.setSize(84.0, 84.0)
set Crystal10.visible = false
endfunction
private function init takes nothing returns nothing
set LocalPlayerId = GetPlayerId(GetLocalPlayer())
call TimerStart(CreateTimer(), 0, false, function createFrame)
endfunction
endscope
// This is an example of how to put command buttons to the center of screen
function modify takes nothing returns nothing
// local integer i = 0
// local integer count = 0
// local real width = 49.0
// local real x
// local real y = 15.0*UIUtils.PXTODPI
//
// loop
// exitwhen i > 11
// if BlzFrameIsVisible(DefaultFrame.CommandButton[i]) then
// set count = count + 1
// endif
// set i = i + 1
// endloop
// set x = UIUtils.ResolutionWidth*0.5-(width+5.0)*(count-1)*0.5
// set i = 0
// loop
// exitwhen i > 11
// if BlzFrameIsVisible(DefaultFrame.CommandButton[i]) then
// call BlzFrameClearAllPoints(DefaultFrame.CommandButton[i])
// call BlzFrameSetAbsPoint(DefaultFrame.CommandButton[i], FRAMEPOINT_BOTTOM, UIUtils.GetScreenPosX(x), y)
// set x = x + width + 5.0
// endif
// set i = i + 1
// endloop
endfunction
function InitTrig_ModifyOriginFrameExample takes nothing returns nothing
set gg_trg_ModifyOriginFrameExample = CreateTrigger( )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(0), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(1), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(2), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(3), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(4), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(5), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(6), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(7), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(8), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(9), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(10), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(11), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(12), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(13), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(14), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(15), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(16), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(17), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(18), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(19), true )
call TriggerRegisterPlayerSelectionEventBJ( gg_trg_ModifyOriginFrameExample, Player(20), true )
call TriggerAddAction( gg_trg_ModifyOriginFrameExample, function modify )
endfunction
library UIUtils requires LinkedListModule
/*********************************************************************************
*
* UI Utils v1.04
*
* Create and manage user interface in highly convenient and intuitive way!
*
* Check for update at: https://www.hiveworkshop.com/threads/320005/
*
* Features:
* • Includes several primitive frame types (texture, text, slider, etc.)
* • Compatible with custom frame definition
* • Uses pixel as measurement unit
* • Friendly UI native wrappers
* • Custom hierarchy system with in-depth inheritance control
* • Automatically prevents non-simple frame from going out of the 4:3 bounds
* • Enhanced frame pivot & anchor point feature for all-resolution support
* • Automatic create context handling
* • Extra security measures (prevents UI native related crashes out of the box)
* • Customizable full-screen mode
* • Essential default/original frames container
* • Includes all available built-in fdf files
*
* I. System requirements:
* • LinkedListModule : http://hiveworkshop.com/threads/snippet-linkedlistmodule.206552/
* • Warcraft III version 1.31+
*
* II. Installation:
* • Import LinkedListModule
* • Copy UIUtils trigger to your map
* • Go to Import Manager and import following files to your map:
* - UIUtils.toc
* - UIUtils.fdf
* • Configure the system below
* • For true fullscreen you might need to manually remove the inventory cover texture
*
* III. Credits:
* • Tasyen | UI tutorials & researches
* • Dirac | LinkedListModule
*
* IV. API - (Complete manual: https://www.hiveworkshop.com/threads/320046/)
*
* struct UIFrame */static if FOLD then /*
1. Ctor & dtor
- Let "isSimple" be "true" if it is a simple frame type
| static method create takes boolean isSimple, string frameType, UIFrame parent, real x, real y, integer level returns UIFrame
- Dispose the frame
| method destroy takes nothing returns nothing
2. Wrappers
- Set & get frame's textures
• Might not be compatible with custom frame definition
• Some only work for specific type of primitive frames
• Some might not work properly just yet (blizzard limitation)
> Default main texture
| method operator texture= takes string filePath returns nothing
| method operator texture takes nothing returns string
> Texture displayed when frame is disabled
| method operator disabledTexture= takes string filePath returns nothing
| method operator disabledTexture takes nothing returns string
> Highlighter texture
| method operator highlightTexture= takes string filePath returns nothing
| method operator highlightTexture takes nothing returns string
> Texture displayed when frame is pressed
| method operator pushedTexture= takes string filePath returns nothing
| method operator pushedTexture takes nothing returns string
> Background texture for the frame
| method operator backgroundTexture= takes string filePath returns nothing
| method operator backgroundTexture takes nothing returns string
> Border texture for the frame
| method operator borderTexture= takes string filePath returns nothing
| method operator borderTexture takes nothing returns string
- Set & get frame's parent
| method operator parent= takes UIFrame frame returns nothing
| method operator parent takes nothing returns UIFrame
- Get frame's screen space position
• Values might be affected by frame's parent anchor point
| method operator screenPosX takes nothing returns real
| method operator screenPosY takes nothing returns real
- Get frame's bounds
| method operator left takes nothing returns real
| method operator right takes nothing returns real
| method operator top takes nothing returns real
| method operator bottom takes nothing returns real
- Get frame's true (scaled) size in pixel
| method operator width takes nothing returns real
| method operator height takes nothing returns real
- Set & get frame's scale factor
> Frame's independent scale factor
| method operator localScale= takes real r returns nothing
| method operator localScale takes nothing returns real
> Frame's true scale
| method operator scale takes nothing returns real
- Set & get frame's visibility state
| method operator visible= takes boolean state returns nothing
| method operator visible takes nothing returns boolean
- Set & get frame's transparency (0-255)
| method operator opacity= takes integer amount returns nothing
| method operator opacity takes nothing returns integer
- Set & get enable state of the frame
| method operator enabled= takes boolean state returns nothing
| method operator enabled takes nothing returns boolean
- Set & get frame's self sorting/layering order
| method operator level= takes integer level returns nothing
| method operator level takes nothing returns integer
> Get frame's actual sorting/layering order
| method operator trueLevel takes nothing returns integer
- Set & get frame's text content
| method operator text= takes string str returns nothing
| method operator text takes nothing returns string
- Set & get frame's text content length limit
| method operator maxLength= takes integer length returns nothing
| method operator maxLength takes nothing returns integer
- Set frame's text color
> Use "BlzConvertColor" function to convert ARGB color
| method operator textColor= takes integer color returns nothing
- Set & get frame's model file
| method operator model= takes string filePath returns nothing
| method operator model takes nothing returns string
- Set vertex color of the model frame
> Use "BlzConvertColor" function to convert ARGB color
| method operator vertexColor= takes integer color returns nothing
- Set & get value of slider frame
| method operator value= takes real r returns nothing
| method operator value takes nothing returns real
- Step size is increment of slider bar relative to its min max value
| method operator stepSize= takes real r returns nothing
| method operator stepSize takes nothing returns real
- Set & get tooltips frame
| method operator tooltips= takes UIFrame frame returns nothing
| method operator tooltips takes nothing returns UIFrame
- Get sub-frame handle based on passed name
• Usage: tempFrame.subFrame["tempFrameText"] => returns subframe handle of "tempFrame" by name of "tempFrameText"
| method operator subFrame[] takes string name returns framehandle
- Register any event happen to the frame (click, mouse enter/leave, etc.)
• Use "UIFrame.TriggerComponent" to get the triggering frame
• Use "BlzGetTriggerFrameEvent()" function to get the event type
| method operator onAnyEvent= takes code func returns triggercondition
2. Methods
- Iterates through all child frames of the frame
• Use "UIFrame.EnumChild" to get the iterated child frame
| method forEachChild takes code func returns nothing
- Set frame's text properties
| method setTextAlignment takes textaligntype vertical, textaligntype horizontal returns nothing
| method setFont takes string fontType, real fontSize, integer flags returns nothing
- Set slider min max values
| method setMinMaxValue takes real min, real max returns nothing
- Animate frame texture
| method setSpriteAnimate takes integer primaryProp, integer flags returns nothing
- Give focus to the frame
| method setFocus takes boolean state returns nothing
- Cage mouse inside the frame's boundaries
| method cageMouse takes boolean state returns nothing
- Emulate click on the frame
| method click takes nothing returns nothing
- Force update the frame
| method refresh takes nothing returns nothing
- Modify frame's position
> Set frame's local position
| method move takes real x, real y returns nothing
> Set frame's screen position (ignores parent position)
| method moveEx takes real x, real y returns nothing
> Set frame position relative to other specified frame
| method relate takes UIFrame relative, real x, real y returns nothing
- Set dimension of the frame
| method setSize takes real width, real height returns nothing
- Set frame's anchor & pivot point
| method setPivotPoint takes real x, real y returns nothing
| method setAnchorPoint takes real x, real y returns nothing
3. Members
- Main frame handle
| readonly framehandle frame
- Set & get frame's name
| string name
- Set & get property inheritance
• Frame refresh is recommended after modifying inheritance
| boolean inheritScale
| boolean inheritOpacity
| boolean inheritVisibility
| boolean inheritEnableState
| boolean inheritPosition
| boolean inheritLevel
| boolean scalePosition
- Frame's type name
| readonly string frameType
- Frame's local space position
| readonly real localPosX
| readonly real localPosY
- Frame's anchor & pivot points
| readonly real anchorX
| readonly real anchorY
| readonly real pivotX
| readonly real pivotY
- Frame's unscaled size
| readonly real unscaledWidth
| readonly real unscaledHeight
- Get frame text font properties
| readonly integer fontFlags
| readonly real fontSize
| readonly string fontType
- Slider frame's min max value
| readonly real valueMin
| readonly real valueMax
- Create context index of the frame
| readonly integer context
- Local states of the frame
| readonly boolean visibleSelf
| readonly boolean enabledSelf
- Is the frame a simple frame type or not
| readonly boolean isSimple
- Local transparency of the frame
| readonly integer localOpacity
4. Static Members
- Representation for null frame
| readonly static UIFrame Null
- Currently iterated frame of "forEachChild" method
| readonly static UIFrame EnumChild
- Triggerer of the "onAnyEvent"
| readonly static UIFrame TriggerComponent
- Primitive frame names
| readonly static string TYPE_TEXT
| readonly static string TYPE_SIMPLE_TEXT
| readonly static string TYPE_TEXTURE
| readonly static string TYPE_SIMPLE_TEXTURE
| readonly static string TYPE_BUTTON
| readonly static string TYPE_SIMPLE_BUTTON
| readonly static string TYPE_BAR
| readonly static string TYPE_H_SLIDER
| readonly static string TYPE_V_SLIDER
*/
endif
/* struct UIUtils */static if FOLD then /*
1. Static Methods
- Calculate aspect ratio height
| static method CalcAspectRatio takes real w, real h, real aspectWidth returns integer
- Convert pixel unit to DPI and vice versa
• Usage: [value]*UIUtils.PXTODPI
[value]*UIUtils.DPITOPX
| static method operator PXTODPI takes nothing returns real
| static method operator DPITOPX takes nothing returns real
- Width of the 4:3 bound
| static method operator FrameBoundWidth takes nothing returns real
- Convert from pixel to screen x/y coordinate (in DPI unit)
| static method GetScreenPosX takes real x returns real
| static method GetScreenPosY takes real y returns real
- Force update default frames
| static method RefreshDefaultFrames takes nothing returns nothing
- Force update resolution
| static method RefreshResolution takes nothing returns nothing
- Resolution change event
| static method RegisterOnResolutionChangeEvent takes code func returns triggercondition
| static method RemoveOnResolutionChangeEvent takes triggercondition cond returns nothing
2. Static Members
- Updated after resolution change event
• Values might be async between clients
| readonly static integer ResolutionWidth
| readonly static integer ResolutionHeight
| readonly static integer AspectWidth
| readonly static integer AspectHeight
*/
endif
/* struct DefaultFrame (singleton) */static if FOLD then /*
- Origin frames
| readonly static framehandle Game
| readonly static framehandle World
| readonly static framehandle HeroBar
| readonly static framehandle array HeroButton [0 - 6]
| readonly static framehandle array HeroHPBar [0 - 6]
| readonly static framehandle array HeroMPBar [0 - 6]
| readonly static framehandle array HeroIndicator [0 - 6]
| readonly static framehandle array ItemButton [0 - 5]
| readonly static framehandle array CommandButton [0 - 11]
| readonly static framehandle array SystemButton [0 - 3]
| readonly static framehandle Portrait
| readonly static framehandle Minimap
| readonly static framehandle array MinimapButton [0 - 4]
| readonly static framehandle Tooltip
| readonly static framehandle UberTooltip
| readonly static framehandle ChatMsg
| readonly static framehandle UnitMsg
| readonly static framehandle TopMsg
- Other frames
| readonly static framehandle Console
| readonly static framehandle GoldText
| readonly static framehandle LumberText
| readonly static framehandle FoodText
| readonly static framehandle UnitNameText
| readonly static framehandle ResourceBar
| readonly static framehandle UpperButtonBar
*/
endif
/*
* V. Configurations
* */globals
// 1. TOC file path
private constant string TOC_FILE = "war3mapimported\\UIUtils.toc"
// 2. Temporary cache name
private constant string CACHE_NAME = "UIUtils.w3v"
// 3. Resolution change detection interval
private constant real RESOLUTION_CHECK_INTERVAL = 0.1
// 4. true : hides console frames on map init (full screen)
private constant boolean HIDE_CONSOLE_FRAME = true
// 5. true : frame's properties will be retained when it changes parent
private constant boolean PERSISTENT_CHILD_PROPERTIES = true
// 6. true : helps to prevent non-simple frame from going beyond the 4:3 bounds
private constant boolean REFRAIN_NON_SIMPLE_FRAME = true
// 7. Reference resolution, as which is used to design the interface
private constant integer RESOLUTION_WIDTH = 1360
private constant integer RESOLUTION_HEIGHT = 768
// 8. Configure in-game message frame
private constant boolean MESSAGE_FRAME_VISIBLE = true
private constant real MESSAGE_FRAME_ANCHOR_X = 0.0
private constant real MESSAGE_FRAME_ANCHOR_Y = 1.0
private constant real MESSAGE_FRAME_PIVOT_X = 0.0
private constant real MESSAGE_FRAME_PIVOT_Y = 1.0
private constant real MESSAGE_FRAME_POS_X = 100.0
private constant real MESSAGE_FRAME_POS_Y = -150.0
// 9. Configure in-game chat frame
private constant boolean CHAT_FRAME_VISIBLE = true
private constant real CHAT_FRAME_ANCHOR_X = 0.0
private constant real CHAT_FRAME_ANCHOR_Y = 0.0
private constant real CHAT_FRAME_PIVOT_X = 0.0
private constant real CHAT_FRAME_PIVOT_Y = 0.0
private constant real CHAT_FRAME_POS_X = 10.0
private constant real CHAT_FRAME_POS_Y = 100.0
// 10. Configure tooltips frame
private constant boolean TOOLTIPS_FRAME_VISIBLE = true
private constant real TOOLTIPS_FRAME_ANCHOR_X = 1.0
private constant real TOOLTIPS_FRAME_ANCHOR_Y = 0.0
private constant real TOOLTIPS_FRAME_PIVOT_X = 1.0
private constant real TOOLTIPS_FRAME_PIVOT_Y = 0.0
private constant real TOOLTIPS_FRAME_POS_X = -50.0
private constant real TOOLTIPS_FRAME_POS_Y = 0.0
// 11. Configure minimap frame
private constant boolean MINIMAP_FRAME_VISIBLE = false
private constant real MINIMAP_FRAME_ANCHOR_X = 1.0
private constant real MINIMAP_FRAME_ANCHOR_Y = 1.0
private constant real MINIMAP_FRAME_PIVOT_X = 1.0
private constant real MINIMAP_FRAME_PIVOT_Y = 1.0
private constant real MINIMAP_FRAME_POS_X = 0.0
private constant real MINIMAP_FRAME_POS_Y = 0.0
// 12. Configure unit portrait frame
private constant boolean PORTRAIT_FRAME_VISIBLE = false
private constant real PORTRAIT_FRAME_ANCHOR_X = 0.0
private constant real PORTRAIT_FRAME_ANCHOR_Y = 0.0
private constant real PORTRAIT_FRAME_PIVOT_X = 0.0
private constant real PORTRAIT_FRAME_PIVOT_Y = 0.0
private constant real PORTRAIT_FRAME_POS_X = 0.0
private constant real PORTRAIT_FRAME_POS_Y = 0.0
// 13. Configure other frame visibility
private constant boolean RESOURCE_FRAME_VISIBLE = false
private constant boolean CMD_BUTTON_FRAME_VISIBLE = false
endglobals
/*
* END OF DOCUMENT ----- Modify following codes on your own risk
*
*********************************************************************************/
private module DefaultFrameInit
private static method onInit takes nothing returns nothing
local integer i
set Game = BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0)
set World = BlzGetOriginFrame(ORIGIN_FRAME_WORLD_FRAME, 0)
set HeroBar = BlzGetOriginFrame(ORIGIN_FRAME_HERO_BAR, 0)
set Portrait = BlzGetOriginFrame(ORIGIN_FRAME_PORTRAIT, 0)
set Minimap = BlzGetOriginFrame(ORIGIN_FRAME_MINIMAP, 0)
set Tooltip = BlzGetOriginFrame(ORIGIN_FRAME_TOOLTIP, 0)
set UberTooltip = BlzGetOriginFrame(ORIGIN_FRAME_UBERTOOLTIP, 0)
set ChatMsg = BlzGetOriginFrame(ORIGIN_FRAME_CHAT_MSG, 0)
set UnitMsg = BlzGetOriginFrame(ORIGIN_FRAME_UNIT_MSG, 0)
set TopMsg = BlzGetOriginFrame(ORIGIN_FRAME_TOP_MSG, 0)
set i = 0
loop
exitwhen i > 11
set HeroButton[i] = BlzGetOriginFrame(ORIGIN_FRAME_HERO_BUTTON, i)
set HeroHPBar[i] = BlzGetOriginFrame(ORIGIN_FRAME_HERO_HP_BAR, i)
set HeroMPBar[i] = BlzGetOriginFrame(ORIGIN_FRAME_HERO_MANA_BAR, i)
set HeroIndicator[i] = BlzGetOriginFrame(ORIGIN_FRAME_HERO_BUTTON_INDICATOR, i)
set ItemButton[i] = BlzGetOriginFrame(ORIGIN_FRAME_ITEM_BUTTON, i)
set CommandButton[i] = BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, i)
set SystemButton[i] = BlzGetOriginFrame(ORIGIN_FRAME_SYSTEM_BUTTON, i)
set MinimapButton[i] = BlzGetOriginFrame(ORIGIN_FRAME_MINIMAP_BUTTON, i)
set i = i + 1
endloop
set Console = BlzGetFrameByName("ConsoleUI", 0)
set GoldText = BlzGetFrameByName("ResourceBarGoldText", 0)
set LumberText = BlzGetFrameByName("ResourceBarLumberText", 0)
set FoodText = BlzGetFrameByName("ResourceBarSupplyText", 0)
set ResourceBar = BlzGetFrameByName("ResourceBarFrame", 0)
set UnitNameText = BlzGetFrameByName("SimpleNameValue", 0)
set UpperButtonBar = BlzGetFrameByName("UpperButtonBarFrame", 0)
endmethod
endmodule
private module UIUtilsInit
private static method onInit takes nothing returns nothing
local integer i
call RefreshResolution()
static if HIDE_CONSOLE_FRAME then
call BlzEnableUIAutoPosition(false)
call BlzFrameClearAllPoints(DefaultFrame.World)
call BlzFrameClearAllPoints(DefaultFrame.Console)
call BlzFrameSetAllPoints(DefaultFrame.World, DefaultFrame.Game)
call BlzFrameSetAbsPoint(DefaultFrame.Console, FRAMEPOINT_TOPRIGHT, -999.0, -999.0)
call RefreshDefaultFrames()
static if not RESOURCE_FRAME_VISIBLE then
call BlzFrameClearAllPoints(DefaultFrame.GoldText)
call BlzFrameSetAbsPoint(DefaultFrame.GoldText, FRAMEPOINT_BOTTOMLEFT, -999.0, -999.0)
call BlzFrameClearAllPoints(DefaultFrame.LumberText)
call BlzFrameSetAbsPoint(DefaultFrame.LumberText, FRAMEPOINT_BOTTOMLEFT, -999.0, -999.0)
call BlzFrameClearAllPoints(DefaultFrame.FoodText)
call BlzFrameSetAbsPoint(DefaultFrame.FoodText, FRAMEPOINT_BOTTOMLEFT, -999.0, -999.0)
call BlzFrameClearAllPoints(DefaultFrame.ResourceBar)
call BlzFrameSetAbsPoint(DefaultFrame.ResourceBar, FRAMEPOINT_BOTTOMLEFT, -999.0, -999.0)
endif
static if not CMD_BUTTON_FRAME_VISIBLE then
set i = 0
loop
exitwhen DefaultFrame.CommandButton[i] == null
call BlzFrameClearAllPoints(DefaultFrame.CommandButton[i])
call BlzFrameSetAbsPoint(DefaultFrame.CommandButton[i], FRAMEPOINT_BOTTOMLEFT, -999.0, -999.0)
set i = i + 1
endloop
endif
endif
call TimerStart(CreateTimer(), RESOLUTION_CHECK_INTERVAL, true, function thistype.CheckResolution)
endmethod
endmodule
struct DefaultFrame extends array
readonly static framehandle Game = null
readonly static framehandle World = null
readonly static framehandle HeroBar = null
readonly static framehandle array HeroButton
readonly static framehandle array HeroHPBar
readonly static framehandle array HeroMPBar
readonly static framehandle array HeroIndicator
readonly static framehandle array ItemButton
readonly static framehandle array CommandButton
readonly static framehandle array SystemButton
readonly static framehandle Portrait = null
readonly static framehandle Minimap = null
readonly static framehandle array MinimapButton
readonly static framehandle Tooltip = null
readonly static framehandle UberTooltip = null
readonly static framehandle ChatMsg = null
readonly static framehandle UnitMsg = null
readonly static framehandle TopMsg = null
readonly static framehandle Console = null
readonly static framehandle GoldText = null
readonly static framehandle LumberText = null
readonly static framehandle FoodText = null
readonly static framehandle UnitNameText = null
readonly static framehandle ResourceBar = null
readonly static framehandle UpperButtonBar = null
implement DefaultFrameInit
endstruct
private keyword AllComponents
struct UIUtils extends array
readonly static integer ResolutionWidth = RESOLUTION_WIDTH
readonly static integer ResolutionHeight = RESOLUTION_HEIGHT
readonly static integer AspectWidth = 0
readonly static integer AspectHeight = 0
readonly static real ScaleFactor = 1
private static trigger resolutionChangeTrigg = CreateTrigger()
static method CalcAspectRatio takes real w, real h, real aspectWidth returns integer
return R2I(aspectWidth*h/w+0.5)
endmethod
static method operator PXTODPI takes nothing returns real
return 0.6/ResolutionHeight
endmethod
static method operator DPITOPX takes nothing returns real
return ResolutionHeight/0.6
endmethod
static method operator FrameBoundWidth takes nothing returns real
return (ResolutionWidth-ResolutionHeight/600.*800.)/2.
endmethod
static method GetScreenPosX takes real x returns real
return (-FrameBoundWidth+x)*PXTODPI
endmethod
static method GetScreenPosY takes real y returns real
return y*PXTODPI
endmethod
static method RefreshDefaultFrames takes nothing returns nothing
static if MESSAGE_FRAME_VISIBLE then
call BlzFrameClearAllPoints(DefaultFrame.UnitMsg)
call BlzFrameSetAbsPoint(DefaultFrame.UnitMsg, FRAMEPOINT_BOTTOMLEFT,/*
*/ GetScreenPosX(MESSAGE_FRAME_POS_X+ResolutionWidth*MESSAGE_FRAME_ANCHOR_X-BlzFrameGetWidth(DefaultFrame.UnitMsg)*DPITOPX*MESSAGE_FRAME_PIVOT_X),/*
*/ GetScreenPosY(MESSAGE_FRAME_POS_Y+ResolutionHeight*MESSAGE_FRAME_ANCHOR_Y-BlzFrameGetHeight(DefaultFrame.UnitMsg)*DPITOPX*MESSAGE_FRAME_PIVOT_Y))
endif
static if CHAT_FRAME_VISIBLE then
call BlzFrameSetAbsPoint(DefaultFrame.ChatMsg, FRAMEPOINT_BOTTOMLEFT,/*
*/ GetScreenPosX(CHAT_FRAME_POS_X+ResolutionWidth*CHAT_FRAME_ANCHOR_X-BlzFrameGetWidth(DefaultFrame.ChatMsg)*DPITOPX*CHAT_FRAME_PIVOT_X),/*
*/ GetScreenPosY(CHAT_FRAME_POS_Y+ResolutionHeight*CHAT_FRAME_ANCHOR_Y-BlzFrameGetHeight(DefaultFrame.ChatMsg)*DPITOPX*CHAT_FRAME_PIVOT_Y))
endif
static if TOOLTIPS_FRAME_VISIBLE then
call BlzFrameClearAllPoints(DefaultFrame.UberTooltip)
call BlzFrameSetAbsPoint(DefaultFrame.UberTooltip, FRAMEPOINT_BOTTOMLEFT,/*
*/ GetScreenPosX(TOOLTIPS_FRAME_POS_X+ResolutionWidth*TOOLTIPS_FRAME_ANCHOR_X-BlzFrameGetWidth(DefaultFrame.UberTooltip)*DPITOPX*TOOLTIPS_FRAME_PIVOT_X),/*
*/ GetScreenPosY(TOOLTIPS_FRAME_POS_Y+ResolutionHeight*TOOLTIPS_FRAME_ANCHOR_Y-BlzFrameGetHeight(DefaultFrame.UberTooltip)*DPITOPX*TOOLTIPS_FRAME_PIVOT_Y))
endif
call BlzFrameClearAllPoints(DefaultFrame.Minimap)
static if MINIMAP_FRAME_VISIBLE then
call BlzFrameSetAbsPoint(DefaultFrame.Minimap, FRAMEPOINT_BOTTOMLEFT,/*
*/ GetScreenPosX(MINIMAP_FRAME_POS_X+ResolutionWidth*MINIMAP_FRAME_ANCHOR_X-BlzFrameGetWidth(DefaultFrame.Minimap)*DPITOPX*MINIMAP_FRAME_PIVOT_X),/*
*/ GetScreenPosY(MINIMAP_FRAME_POS_Y+ResolutionHeight*MINIMAP_FRAME_ANCHOR_Y-BlzFrameGetHeight(DefaultFrame.Minimap)*DPITOPX*MINIMAP_FRAME_PIVOT_Y))
else
call BlzFrameSetAbsPoint(DefaultFrame.Minimap, FRAMEPOINT_BOTTOMLEFT, -999.0, -999.0)
endif
call BlzFrameClearAllPoints(DefaultFrame.Portrait)
static if PORTRAIT_FRAME_VISIBLE then
call BlzFrameSetAbsPoint(DefaultFrame.Portrait, FRAMEPOINT_BOTTOMLEFT,/*
*/ GetScreenPosX(PORTRAIT_FRAME_POS_X+ResolutionWidth*PORTRAIT_FRAME_ANCHOR_X-BlzFrameGetWidth(DefaultFrame.Portrait)*DPITOPX*PORTRAIT_FRAME_PIVOT_X),/*
*/ GetScreenPosY(PORTRAIT_FRAME_POS_Y+ResolutionHeight*PORTRAIT_FRAME_ANCHOR_Y-BlzFrameGetHeight(DefaultFrame.Portrait)*DPITOPX*PORTRAIT_FRAME_PIVOT_Y))
else
call BlzFrameSetAbsPoint(DefaultFrame.Portrait, FRAMEPOINT_BOTTOMLEFT, -999.0, -999.0)
endif
endmethod
static method RefreshResolution takes nothing returns nothing
local AllComponents node
set ResolutionWidth = BlzGetLocalClientWidth()
set ResolutionHeight = BlzGetLocalClientHeight()
set ScaleFactor = I2R(ResolutionHeight)/I2R(RESOLUTION_HEIGHT)
if CalcAspectRatio(ResolutionWidth, ResolutionHeight, 4) == 3 then
set AspectWidth = 4
set AspectHeight = 3
elseif CalcAspectRatio(ResolutionWidth, ResolutionHeight, 16) == 9 then
set AspectWidth = 16
set AspectHeight = 9
elseif CalcAspectRatio(ResolutionWidth, ResolutionHeight, 16) == 10 then
set AspectWidth = 16
set AspectHeight = 10
elseif CalcAspectRatio(ResolutionWidth, ResolutionHeight, 21) == 9 then
set AspectWidth = 21
set AspectHeight = 9
elseif CalcAspectRatio(ResolutionWidth, ResolutionHeight, 32) == 9 then
set AspectWidth = 32
set AspectHeight = 9
else
set AspectWidth = 0
set AspectHeight = 0
endif
set node = AllComponents.base.next
loop
exitwhen node.head or node == 0
if UIFrame(node).parent == UIFrame.Null then
call UIFrame(node).refresh()
endif
set node = node.next
endloop
endmethod
private static method CheckResolution takes nothing returns nothing
if BlzGetLocalClientWidth() != ResolutionWidth or BlzGetLocalClientHeight() != ResolutionHeight then
call RefreshResolution()
call RefreshDefaultFrames()
call TriggerEvaluate(resolutionChangeTrigg)
endif
endmethod
static method RegisterOnResolutionChangeEvent takes code func returns triggercondition
return TriggerAddCondition(resolutionChangeTrigg, Condition(func))
endmethod
static method RemoveOnResolutionChangeEvent takes triggercondition cond returns nothing
call TriggerRemoveCondition(resolutionChangeTrigg, cond)
endmethod
implement UIUtilsInit
endstruct
private struct UISubFrame
static UIFrame frame = 0
method operator [] takes string s returns framehandle
return BlzGetFrameByName(s, frame.context)
endmethod
endstruct
struct UIFrame extends array
implement LinkedList
string name
boolean inheritScale
boolean inheritOpacity
boolean inheritVisibility
boolean inheritEnableState
boolean inheritPosition
boolean inheritLevel
boolean scalePosition
readonly string frameType
readonly real localPosX
readonly real localPosY
readonly real anchorX
readonly real anchorY
readonly real pivotX
readonly real pivotY
readonly real unscaledWidth
readonly real unscaledHeight
readonly real valueMin
readonly real valueMax
readonly real fontSize
readonly string fontType
readonly integer fontFlags
readonly integer context
readonly boolean isSimple
readonly boolean visibleSelf
readonly boolean enabledSelf
readonly integer localOpacity
private real m_localScale
private real m_stepSize
private integer m_level
private thistype m_parent
private thistype m_childs
private thistype m_tooltips
private string mainTextureFile
private string disabledTextureFile
private string pushedTextureFile
private string highlightTextureFile
private string backgroundTextureFile
private string borderTextureFile
private string modelFile
private trigger anyEventTrigg
readonly framehandle frame
private framehandle textFrameH
private framehandle modelFrameH
private framehandle mainTextureH
private framehandle disabledTextureH
private framehandle pushedTextureH
private framehandle highlightTextureH
private framehandle backgroundTextureH
private framehandle borderTextureH
readonly static thistype Null = 0
readonly static thistype EnumChild = 0
readonly static thistype TriggerComponent = 0
readonly static string TYPE_TEXT = "UIUtilsText"
readonly static string TYPE_SIMPLE_TEXT = "UIUtilsSimpleText"
readonly static string TYPE_TEXTURE = "UIUtilsTexture"
readonly static string TYPE_SIMPLE_TEXTURE = "UIUtilsSimpleTexture"
readonly static string TYPE_BUTTON = "UIUtilsButton"
readonly static string TYPE_SIMPLE_BUTTON = "UIUtilsSimpleButton"
readonly static string TYPE_BAR = "UIUtilsBar"
readonly static string TYPE_H_SLIDER = "UIUtilsSliderH"
readonly static string TYPE_V_SLIDER = "UIUtilsSliderV"
private static trigger ExecTrigg = CreateTrigger()
private static gamecache GC
private static hashtable HT
private static method IsSimple takes string frameType, boolean isSimple returns boolean
return frameType == TYPE_SIMPLE_TEXT or frameType == TYPE_SIMPLE_TEXTURE or frameType == TYPE_BAR or isSimple and not (frameType == TYPE_TEXT or frameType == TYPE_TEXTURE or frameType == TYPE_BUTTON or frameType == TYPE_H_SLIDER or frameType == TYPE_V_SLIDER)
endmethod
private static method GetTriggerComponent takes nothing returns boolean
set TriggerComponent = LoadInteger(HT, GetHandleId(BlzGetTriggerFrame()), 0)
return false
endmethod
method operator subFrame takes nothing returns UISubFrame
set UISubFrame.frame = this
return 0
endmethod
method operator onAnyEvent= takes code func returns triggercondition
local integer i
if .anyEventTrigg == null then
set .anyEventTrigg = CreateTrigger()
set i = 1
loop
exitwhen i > 16
call BlzTriggerRegisterFrameEvent(.anyEventTrigg, .frame, ConvertFrameEventType(i))
set i = i + 1
endloop
call TriggerAddCondition(.anyEventTrigg, Condition(function thistype.GetTriggerComponent))
endif
return TriggerAddCondition(.anyEventTrigg, Condition(func))
endmethod
method operator parent= takes thistype frm returns nothing
if frm != Null then
if .m_parent != frm then
call .removeNode()
endif
call frm.m_childs.insertNode(this)
endif
static if not PERSISTENT_CHILD_PROPERTIES then
if .m_parent != Null then
set .localScale = .localScale*.m_parent.localScale
endif
set .localPosX = .screenPosX - frm.screenPosX
set .localPosY = .screenPosY - frm.screenPosY
endif
set .m_parent = frm
call refresh()
endmethod
method operator parent takes nothing returns thistype
return .m_parent
endmethod
method operator text= takes string str returns nothing
call BlzFrameSetText(.textFrameH, str)
endmethod
method operator text takes nothing returns string
return BlzFrameGetText(.textFrameH)
endmethod
method operator maxLength= takes integer length returns nothing
call BlzFrameSetTextSizeLimit(.textFrameH, length)
endmethod
method operator maxLength takes nothing returns integer
return BlzFrameGetTextSizeLimit(.textFrameH)
endmethod
method operator textColor= takes integer color returns nothing
call BlzFrameSetTextColor(.textFrameH, color)
endmethod
method operator texture= takes string filePath returns nothing
set .mainTextureFile = filePath
call BlzFrameSetTexture(.mainTextureH, filePath, 0, true)
if StringLength(.disabledTextureFile) == 0 then
set .disabledTexture = filePath
endif
if StringLength(.pushedTextureFile) == 0 then
set .pushedTexture = filePath
endif
endmethod
method operator texture takes nothing returns string
return .mainTextureFile
endmethod
method operator disabledTexture= takes string filePath returns nothing
set .disabledTextureFile = filePath
call BlzFrameSetTexture(.disabledTextureH, filePath, 0, true)
endmethod
method operator disabledTexture takes nothing returns string
return .disabledTextureFile
endmethod
method operator highlightTexture= takes string filePath returns nothing
set .highlightTextureFile = filePath
call BlzFrameSetTexture(.highlightTextureH, filePath, 0, true)
endmethod
method operator highlightTexture takes nothing returns string
return .highlightTextureFile
endmethod
method operator pushedTexture= takes string filePath returns nothing
set .pushedTextureFile = filePath
call BlzFrameSetTexture(.pushedTextureH, filePath, 0, true)
endmethod
method operator pushedTexture takes nothing returns string
return .pushedTextureFile
endmethod
method operator backgroundTexture= takes string filePath returns nothing
set .backgroundTextureFile = filePath
call BlzFrameSetTexture(.backgroundTextureH, filePath, 0, true)
endmethod
method operator backgroundTexture takes nothing returns string
return .backgroundTextureFile
endmethod
method operator borderTexture= takes string filePath returns nothing
set .borderTextureFile = filePath
call BlzFrameSetTexture(.borderTextureH, filePath, 0, true)
endmethod
method operator borderTexture takes nothing returns string
return .borderTextureFile
endmethod
method operator model= takes string filePath returns nothing
set .modelFile = filePath
call BlzFrameSetModel(.modelFrameH, filePath, 0)
endmethod
method operator model takes nothing returns string
return .modelFile
endmethod
method operator width takes nothing returns real
return .unscaledWidth*.scale
endmethod
method operator height takes nothing returns real
return .unscaledHeight*.scale
endmethod
method operator localScale= takes real r returns nothing
local thistype node = .m_childs.next
set .m_localScale = RMaxBJ(r, 0.0001)
call setSize(.unscaledWidth, .unscaledHeight)
call setFont(.fontType, .fontSize, .fontFlags)
call move(.localPosX, .localPosY)
loop
exitwhen node.head or node == 0
set node.localScale = node.localScale
set node = node.next
endloop
endmethod
method operator localScale takes nothing returns real
return .m_localScale
endmethod
method operator scale takes nothing returns real
if .parent == Null or not .inheritScale then
return .localScale
else
return .localScale*.parent.scale
endif
endmethod
method operator opacity= takes integer amount returns nothing
local thistype node = .m_childs.next
set .localOpacity = amount
call BlzFrameSetAlpha(.frame, .opacity)
loop
exitwhen node.head or node == 0
set node.opacity = node.localOpacity
set node = node.next
endloop
endmethod
method operator opacity takes nothing returns integer
if .parent == Null or not .inheritOpacity then
return .localOpacity
else
return R2I(I2R(.localOpacity)*I2R(.parent.opacity)/255.)
endif
endmethod
method operator level= takes integer level returns nothing
local thistype node = .m_childs.next
set .m_level = level
call BlzFrameSetLevel(.frame, .trueLevel)
loop
exitwhen node.head or node == 0
set node.level = node.m_level
set node = node.next
endloop
endmethod
method operator level takes nothing returns integer
return .m_level
endmethod
method operator trueLevel takes nothing returns integer
if .parent == Null or not .inheritLevel then
return .m_level
else
return .m_level+.parent.level
endif
endmethod
method operator visible= takes boolean state returns nothing
local thistype node = .m_childs.next
set .visibleSelf = state
call BlzFrameSetVisible(.frame, .visible)
loop
exitwhen node.head or node == 0
set node.visible = node.visibleSelf
set node = node.next
endloop
endmethod
method operator visible takes nothing returns boolean
if .parent == Null or not .inheritVisibility then
return .visibleSelf
else
return .visibleSelf and .parent.visible
endif
endmethod
method operator enabled= takes boolean state returns nothing
local thistype node = .m_childs.next
set .enabledSelf = state
call BlzFrameSetEnable(.frame, .enabled)
loop
exitwhen node.head or node == 0
set node.enabled = node.enabledSelf
set node = node.next
endloop
endmethod
method operator enabled takes nothing returns boolean
if .parent == Null or not .inheritEnableState then
return .enabledSelf
else
return .enabledSelf and .parent.enabled
endif
endmethod
method operator vertexColor= takes integer color returns nothing
call BlzFrameSetVertexColor(.modelFrameH, color)
endmethod
method operator value= takes real r returns nothing
call BlzFrameSetValue(.frame, r)
endmethod
method operator value takes nothing returns real
return BlzFrameGetValue(.frame)
endmethod
method operator stepSize= takes real r returns nothing
set .m_stepSize = RMaxBJ(r, 0.0001)
call BlzFrameSetStepSize(.frame, .m_stepSize)
endmethod
method operator stepSize takes nothing returns real
return .m_stepSize
endmethod
method operator tooltips= takes thistype frame returns nothing
set .m_tooltips = frame
call BlzFrameSetTooltip(.frame, frame.frame)
endmethod
method operator tooltips takes nothing returns thistype
return .m_tooltips
endmethod
method operator left takes nothing returns real
return .screenPosX-.width*.pivotX
endmethod
method operator right takes nothing returns real
return .left+.width
endmethod
method operator bottom takes nothing returns real
return .screenPosY-.height*.pivotY
endmethod
method operator top takes nothing returns real
return .bottom+.height
endmethod
private method normalizePosX takes real x returns real
return RMinBJ(RMaxBJ(x, UIUtils.FrameBoundWidth+.width*.pivotX), UIUtils.ResolutionWidth-UIUtils.FrameBoundWidth-.width*(1.-.pivotX))
endmethod
method operator screenPosX takes nothing returns real
if .parent == Null or not .inheritPosition then
if not .isSimple then
return normalizePosX(.localPosX+UIUtils.ResolutionWidth*.anchorX)
else
return .localPosX+UIUtils.ResolutionWidth*.anchorX
endif
elseif .scalePosition then
return .parent.left+.parent.width*.anchorX+.localPosX*.parent.scale
else
return .parent.left+.parent.width*.anchorX+.localPosX
endif
endmethod
method operator screenPosY takes nothing returns real
if .parent == Null or not .inheritPosition then
return .localPosY+UIUtils.ResolutionHeight*.anchorY
elseif .scalePosition then
return .parent.bottom+.parent.height*.anchorY+.localPosY*.parent.scale
else
return .parent.bottom+.parent.height*.anchorY+.localPosY
endif
endmethod
private method normalizeScaledPosX takes real x returns real
return RMinBJ(RMaxBJ(x, UIUtils.FrameBoundWidth+.width*.pivotX*UIUtils.ScaleFactor), UIUtils.ResolutionWidth-UIUtils.FrameBoundWidth-.width*(1.-.pivotX)*UIUtils.ScaleFactor)
endmethod
private method operator scaledLeft takes nothing returns real
return .scaledScreenPosX-.width*.pivotX*UIUtils.ScaleFactor
endmethod
private method operator scaledBottom takes nothing returns real
return .scaledScreenPosY-.height*.pivotY*UIUtils.ScaleFactor
endmethod
private method operator scaledScreenPosX takes nothing returns real
if .parent == Null or not .inheritPosition then
if not .isSimple then
return normalizeScaledPosX(.localPosX*UIUtils.ScaleFactor+UIUtils.ResolutionWidth*.anchorX)
else
return .localPosX*UIUtils.ScaleFactor+UIUtils.ResolutionWidth*.anchorX
endif
elseif .scalePosition then
return .parent.scaledLeft+(.parent.width*.anchorX+.localPosX*.parent.scale)*UIUtils.ScaleFactor
else
return .parent.scaledLeft+(.parent.width*.anchorX+.localPosX)*UIUtils.ScaleFactor
endif
endmethod
private method operator scaledScreenPosY takes nothing returns real
if .parent == Null or not .inheritPosition then
return .localPosY*UIUtils.ScaleFactor+UIUtils.ResolutionHeight*.anchorY
elseif .scalePosition then
return .parent.scaledBottom+(.parent.height*.anchorY+.localPosY*.parent.scale)*UIUtils.ScaleFactor
else
return .parent.scaledBottom+(.parent.height*.anchorY+.localPosY)*UIUtils.ScaleFactor
endif
endmethod
method setAnchorPoint takes real x, real y returns nothing
set .anchorX = x
set .anchorY = y
call move(.localPosX, .localPosY)
endmethod
method setPivotPoint takes real x, real y returns nothing
set .pivotX = x
set .pivotY = y
call move(.localPosX, .localPosY)
endmethod
method setSize takes real width, real height returns nothing
set .unscaledWidth = RMaxBJ(width, 0)
set .unscaledHeight = RMaxBJ(height, 0)
call BlzFrameSetSize(frame, .width*UIUtils.ScaleFactor*UIUtils.PXTODPI, .height*UIUtils.ScaleFactor*UIUtils.PXTODPI)
if .pivotX + .pivotY + .anchorX + .anchorY != 0 then
call move(.localPosX, .localPosY)
endif
endmethod
method move takes real x, real y returns nothing
local thistype node = .m_childs.next
set .localPosX = x
set .localPosY = y
if not .isSimple then
set x = normalizeScaledPosX(.scaledScreenPosX-.width*.pivotX*UIUtils.ScaleFactor)
else
set x = .scaledScreenPosX-.width*.pivotX*UIUtils.ScaleFactor
endif
call BlzFrameSetAbsPoint(.frame, FRAMEPOINT_BOTTOMLEFT, UIUtils.GetScreenPosX(x), UIUtils.GetScreenPosY(.scaledScreenPosY-.height*.pivotY*UIUtils.ScaleFactor))
loop
exitwhen node.head or node == 0
call node.move(node.localPosX, node.localPosY)
set node = node.next
endloop
endmethod
method moveEx takes real x, real y returns nothing
if .parent == Null or not .inheritPosition then
call move(x, y)
else
call move((x-.parent.screenPosX)/.parent.localScale, (y-.parent.screenPosY)/.parent.localScale)
endif
endmethod
method relate takes thistype relative, real x, real y returns nothing
if .parent == Null then
call move(relative.screenPosX+x, relative.screenPosY+y)
else
call moveEx(relative.screenPosX+x, relative.screenPosY+y)
endif
endmethod
method refresh takes nothing returns nothing
set .visible = .visibleSelf
set .enabled = .enabledSelf
set .opacity = .localOpacity
set .level = .m_level
set .localScale = .localScale
call setFont(.fontType, .fontSize, .fontFlags)
endmethod
method click takes nothing returns nothing
call BlzFrameClick(.frame)
endmethod
method cageMouse takes boolean state returns nothing
call BlzFrameCageMouse(.frame, state)
endmethod
method setFocus takes boolean state returns nothing
call BlzFrameSetFocus(.frame, state)
endmethod
method setSpriteAnimate takes integer primaryProp, integer flags returns nothing
call BlzFrameSetSpriteAnimate(.frame, primaryProp, flags)
endmethod
method setMinMaxValue takes real min, real max returns nothing
set .valueMin = min
set .valueMax = max
call BlzFrameSetMinMaxValue(.frame, min, max)
endmethod
method setFont takes string fontType, real fontSize, integer flags returns nothing
set .fontSize = fontSize
set .fontType = fontType
set .fontFlags = flags
if .frameType == TYPE_SIMPLE_TEXT then
call BlzFrameSetFont(.textFrameH, fontType, fontSize*.scale, flags)
endif
endmethod
method setTextAlignment takes textaligntype vertical, textaligntype horizontal returns nothing
call BlzFrameSetTextAlignment(.textFrameH, vertical, horizontal)
endmethod
private method getSubFrame takes string name returns framehandle
local framehandle h = BlzGetFrameByName(name, .context)
if h == null then
return .frame
else
return h
endif
endmethod
method forEachChild takes code func returns nothing
local thistype node = .m_childs.next
call TriggerAddAction(ExecTrigg, func)
loop
exitwhen node.head or node == 0
set EnumChild = node
call TriggerExecute(ExecTrigg)
set node = node.next
endloop
call TriggerClearActions(ExecTrigg)
endmethod
method destroy takes nothing returns nothing
local thistype node = .m_childs.next
loop
exitwhen node.head or node == 0
call node.destroy()
set node = node.next
endloop
call BlzDestroyFrame(.frame)
call DestroyTrigger(.anyEventTrigg)
call StoreInteger(GC, name, I2S(.context), GetStoredInteger(GC, name, "0"))
call StoreInteger(GC, name, "0", .context)
call AllComponents.remove(this)
call .m_childs.flushNode()
call removeNode()
call deallocate()
set .anyEventTrigg = null
set .mainTextureH = null
set .disabledTextureH = null
set .highlightTextureH = null
set .pushedTextureH = null
set .backgroundTextureH = null
set .borderTextureH = null
set .textFrameH = null
set .modelFrameH = null
set .frame = null
set .name = null
set .frameType = null
set .m_parent = Null
set .m_childs = 0
endmethod
static method create takes boolean isSimple, string frameType, thistype parent, real x, real y, integer level returns thistype
local thistype this = allocate()
local integer tempInt
set .context = GetStoredInteger(GC, frameType, "0")
set tempInt = GetStoredInteger(GC, frameType, I2S(context))
if tempInt == 0 then
call StoreInteger(GC, frameType, "0", context+1)
else
call StoreInteger(GC, frameType, "0", tempInt)
endif
set .parent = parent
set .m_childs = createNode()
set .isSimple = IsSimple(frameType, isSimple)
if .isSimple then
set .frame = BlzCreateSimpleFrame(frameType, DefaultFrame.Game, .context)
else
set .frame = BlzCreateFrame(frameType, DefaultFrame.Game, 0, .context)
endif
set .mainTextureH = getSubFrame(frameType + "Texture")
set .disabledTextureH = getSubFrame(frameType + "Disabled")
set .highlightTextureH = getSubFrame(frameType + "Highlight")
set .pushedTextureH = getSubFrame(frameType + "Pushed")
set .backgroundTextureH = getSubFrame(frameType + "Background")
set .borderTextureH = getSubFrame(frameType + "Border")
set .textFrameH = getSubFrame(frameType + "Text")
set .modelFrameH = getSubFrame(frameType + "Model")
set .inheritScale = true
set .inheritOpacity = true
set .inheritVisibility = true
set .inheritEnableState = true
set .inheritPosition = true
set .inheritLevel = true
set .scalePosition = true
set .unscaledWidth = BlzFrameGetWidth(.frame)*(RESOLUTION_HEIGHT/0.6)
set .unscaledHeight = BlzFrameGetHeight(.frame)*(RESOLUTION_HEIGHT/0.6)
set .frameType = frameType
set .name = frameType + I2S(.context)
set .level = level
set .visibleSelf = true
set .enabledSelf = true
set .fontType = "Fonts\\FRIZQT__.TTF"
set .fontSize = 0.013
set .fontFlags = 0
set .value = 0.0
set .localScale = 1.0
set .anchorX = 0.0
set .anchorY = 0.0
set .pivotX = 0.0
set .pivotY = 0.0
set .opacity = 255
set .mainTextureFile = ""
set .disabledTextureFile = ""
set .pushedTextureFile = ""
set .highlightTextureFile = ""
set .backgroundTextureFile = ""
set .borderTextureFile = ""
set .modelFile = ""
call move(x, y)
call setMinMaxValue(0.0, 1.0)
call AllComponents.add(this)
call SaveInteger(HT, GetHandleId(.frame), 0, this)
return this
endmethod
private static method onInit takes nothing returns nothing
set HT = InitHashtable()
set GC = InitGameCache(CACHE_NAME)
call BlzLoadTOCFile(TOC_FILE)
endmethod
endstruct
private struct AllComponents extends array
implement LinkedList
static method add takes thistype this returns nothing
call base.insertNode(this)
endmethod
static method remove takes thistype this returns nothing
call removeNode()
endmethod
endstruct
endlibrary
library LinkedListModule /* v2.3.1
Easy implementation of linked lists into structs.
***********************************************************************
*
* module LinkedList
*
* - Implement at the top of your struct, must extend array
*
* thistype next
* thistype prev
* boolean head
*
* readonly static thistype base
* - Precreated head, useful for non-dynamic lists.
*
* static method allocate takes nothing returns thistype
* method deallocate takes nothing returns nothing
*
* static method createNode takes nothing returns thistype
* - Allocates a new node pointing towards itself.
* - These nodes are considered "heads" therefore it's head
* - boolean member is set to true.
* method insertNode takes thistype toInsert returns thistype
* - Inserts the instance before the node.
* method removeNode takes nothing returns nothing
* - Removes the node from the list.
* method clearNode takes nothing returns nothing
* - Deallocates all the instances within the node's range.
* method flushNode takes nothing returns nothing
* - Clears and deallocates the node.
*
* module LinkedListLite
* - Only has the members and the allocation methods.
* - To be used with the provided textmacros.
*
* textmacro LINKED_LIST_HEAD takes node
* - Turns the node into a head.
* textmacro LINKED_LIST_INSERT takes node, toInsert
* - Inserts the instance before the node.
* textmacro LINKED_LIST_REMOVE takes node
* - Removes the node from the list.
* textmacro LINKED_LIST_CLEAR takes node
* - Deallocates all the instances within the node's range.
* textmacro LINKED_LIST_FLUSH takes node
* - Clears and deallocates the node.
* textmacro LINKED_LIST_MERGE takes nodeA, nodeB
* - Merges two lists together (Don't merge loose nodes!)
*
**********************************************************************/
module LinkedListLite
private static integer instanceCount = 0
thistype next
thistype prev
boolean head
static method allocate takes nothing returns thistype
local thistype this = thistype(0).prev
if this==0 then
debug if instanceCount==8190 then
debug call BJDebugMsg("[LinkedList] Error: attempted to allocate too many instances.")
debug return 0
debug endif
set instanceCount = instanceCount+1
return instanceCount
endif
set thistype(0).prev = prev
return this
endmethod
method deallocate takes nothing returns nothing
set this.prev=thistype(0).prev
set thistype(0).prev=this
set this.head=false
endmethod
endmodule
module LinkedList
implement LinkedListLite
static method operator base takes nothing returns thistype
return 8190
endmethod
static method createNode takes nothing returns thistype
local thistype this=allocate()
//! runtextmacro LINKED_LIST_HEAD("this")
return this
endmethod
method clearNode takes nothing returns nothing
//! runtextmacro LINKED_LIST_CLEAR("this")
endmethod
method flushNode takes nothing returns nothing
//! runtextmacro LINKED_LIST_FLUSH("this")
endmethod
method insertNode takes thistype toInsert returns nothing
//! runtextmacro LINKED_LIST_INSERT("this","toInsert")
endmethod
method removeNode takes nothing returns nothing
//! runtextmacro LINKED_LIST_REMOVE("this")
endmethod
private static method onInit takes nothing returns nothing
set thistype(8190).next = 8190
set thistype(8190).prev = 8190
set thistype(8190).head = true
endmethod
static if DEBUG_MODE then
method print takes nothing returns nothing
local string s=""
local thistype exit=this
loop
set s=s+I2S(this)
set this = next
exitwhen this==exit
set s = s+" - "
endloop
call BJDebugMsg("[ "+s+" ]")
endmethod
endif
endmodule
//! textmacro LINKED_LIST_HEAD takes node
set $node$.next = this
set $node$.prev = this
set $node$.head = true
//! endtextmacro
//! textmacro LINKED_LIST_CLEAR takes node
if $node$!=$node$.next then
set $node$.next.prev = thistype(0).prev
set thistype(0).prev = $node$.prev
set $node$.next = $node$
set $node$.prev = $node$
endif
//! endtextmacro
//! textmacro LINKED_LIST_FLUSH takes node
set $node$.next.prev = thistype(0).prev
set thistype(0).prev = $node$
set $node$.head = false
//! endtextmacro
//! textmacro LINKED_LIST_INSERT takes node, toInsert
set $node$.prev.next = $toInsert$
set $toInsert$.prev = $node$.prev
set $node$.prev = $toInsert$
set $toInsert$.next = $node$
//! endtextmacro
//! textmacro LINKED_LIST_REMOVE takes node
set $node$.prev.next = $node$.next
set $node$.next.prev = $node$.prev
//! endtextmacro
//! textmacro LINKED_LIST_MERGE takes nodeA, nodeB
set $nodeA$.next.prev = $nodeB$.prev
set $nodeB$.prev.next = $nodeA$.next
set $nodeA$.next = $nodeB$
set $nodeB$.prev = $nodeA$
//! endtextmacro
endlibrary
function RaceisStarting takes integer nPlayerIndex returns boolean
return ( udg_RaceIsStartingSoon[nPlayerIndex] == true )
endfunction
function CreateHonkSound takes integer nIndex returns sound
local string strPath = udg_ModelHonkPath[nIndex]
local sound snd = CreateSound( strPath, false, true, false, 10, 10, "DefaultEAXON" )
call SetSoundDuration( snd, udg_ModelHonkDur[nIndex] )
call SetSoundChannel( snd, 0 )
call SetSoundVolume( snd, 127 )
call SetSoundPitch( snd, 1.0 )
call SetSoundDistances( snd, 1000.0, 10000.0 )
call SetSoundDistanceCutoff( snd, 3000.0 )
call SetSoundConeAngles( snd, 0.0, 0.0, 127 )
call SetSoundConeOrientation( snd, 0.0, 0.0, 0.0 )
return snd
endfunction
function CreateSpinSound takes integer nIndex returns sound
local string strPath = udg_ModelSpinPath[nIndex]
local sound snd = CreateSound( strPath, false, true, false, 10, 10, "DefaultEAXON" )
call SetSoundDuration( snd, udg_ModelSpinDur[nIndex] )
call SetSoundChannel( snd, 0 )
call SetSoundVolume( snd, 127 )
call SetSoundPitch( snd, 1.0 )
call SetSoundDistances( snd, 1000.0, 10000.0 )
call SetSoundDistanceCutoff( snd, 3000.0 )
call SetSoundConeAngles( snd, 0.0, 0.0, 127 )
call SetSoundConeOrientation( snd, 0.0, 0.0, 0.0 )
return snd
endfunction
function GetCartSoundIndex takes integer nPlayerIndex, integer nSound returns integer
return nSound * udg_PLAYER_MAXNUM + nPlayerIndex
endfunction
function GetCartSound takes integer nPlayerIndex, integer nSound returns sound
return udg_CartSounds[GetCartSoundIndex(nPlayerIndex, nSound)]
endfunction
function SetCartSound takes integer nPlayerIndex, integer nSound, sound sndCart returns nothing
set udg_CartSounds[GetCartSoundIndex(nPlayerIndex, nSound)] = sndCart
endfunction
function ChangeCartSound takes integer nPlayerIndex, integer nSound returns nothing
if ( udg_CartSndPlaying[nPlayerIndex] == nSound ) then
return
endif
if ( udg_CartSndPlaying[nPlayerIndex] != udg_SNDINDEX_NONE ) then
call StopSoundBJ( GetCartSound( nPlayerIndex, udg_CartSndPlaying[nPlayerIndex] ), true )
endif
set udg_CartSndPlaying[nPlayerIndex] = nSound
if ( nSound != udg_SNDINDEX_NONE ) then
if ( RaceisStarting(nPlayerIndex) ) then
call PlaySoundOnUnitBJ( GetCartSound( nPlayerIndex, udg_CartSndPlaying[nPlayerIndex] ), 7, udg_Carts[nPlayerIndex] )
else
call PlaySoundOnUnitBJ( GetCartSound( nPlayerIndex, udg_CartSndPlaying[nPlayerIndex] ), 7, udg_Carts[nPlayerIndex] )
endif
endif
endfunction
//===========================================================================
function InitTrig_Sound_Functions takes nothing returns nothing
endfunction
function InitializePlayer takes nothing returns nothing
local integer nPlayerIndex = 0
loop
exitwhen nPlayerIndex >= 23
call SetPlayerAbilityAvailable( Player(nPlayerIndex), 'A01V', false )
set nPlayerIndex = nPlayerIndex + 1
endloop
set nPlayerIndex = 0
set udg_PlaceNum = 0
loop
exitwhen nPlayerIndex >= udg_PLAYER_MAXNUM
if ( GetPlayerController(Player(nPlayerIndex)) == MAP_CONTROL_USER and GetPlayerSlotState(Player(nPlayerIndex)) == PLAYER_SLOT_STATE_PLAYING ) then
set udg_Places[udg_PlaceNum] = nPlayerIndex
set udg_PlaceNum = udg_PlaceNum + 1
endif
set nPlayerIndex = nPlayerIndex + 1
endloop
set nPlayerIndex = 0
loop
exitwhen nPlayerIndex >= udg_PLAYER_MAXNUM
set udg_VulnerableSignal[nPlayerIndex] = CreateItem( 'I000', GetRectCenterX(gg_rct_VulnerableArea), GetRectCenterY(gg_rct_VulnerableArea) )
set nPlayerIndex = nPlayerIndex + 1
endloop
endfunction
function InitializeModelArray takes nothing returns nothing
local integer nIndex = 0
local integer nIndex1 = 0
set udg_MODEL_NUM = 0
set udg_DriverAnimName[0] = "Spell Slam"
set udg_DriverAnimName[1] = "Stand - 3"
set udg_DriverAnimName[2] = "Stand Victory"
set udg_DriverAnimName[3] = "Spell"
set udg_DriverAnimName[4] = "Stand Alternate"
set udg_DriverSound[0] = gg_snd_VictoryDiablo
set udg_DriverSound[1] = gg_snd_VictoryGrunt
set udg_DriverSound[2] = gg_snd_VictoryLich
set udg_DriverSound[3] = gg_snd_VictoryDwarf
//Diablo
set udg_Models[nIndex1] = 'h000'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00B'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00H'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 3
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 1
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 0
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 2
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 3
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 5
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00P'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 4
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 0
set nIndex1 = nIndex1 + 1
set udg_ModelIcons[udg_MODEL_NUM] = "ReplaceableTextures\\CommandButtons\\BTNDiabloCar.blp"
set udg_ModelDescription[udg_MODEL_NUM] = ""
set udg_ModelAttributes[nIndex] = 175.00
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 1.
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 8
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 0.006
set nIndex = nIndex + 1
set udg_MODEL_NUM = udg_MODEL_NUM + 1
//Orc
set udg_Models[nIndex1] = 'h002'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h001'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00C'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 0
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 2
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 0
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 3
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 1
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 5
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00O'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 4
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 1
set nIndex1 = nIndex1 + 1
set udg_ModelIcons[udg_MODEL_NUM] = "ReplaceableTextures\\CommandButtons\\BTNOrcCar.blp"
set udg_ModelDescription[udg_MODEL_NUM] = ""
set udg_ModelAttributes[nIndex] = 200.00
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 1.
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 7.2
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 0.006
set nIndex = nIndex + 1
set udg_MODEL_NUM = udg_MODEL_NUM + 1
//Undead
set udg_Models[nIndex1] = 'h004'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h007'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00F'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 1
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 0
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 3
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 2
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 5
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 1
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00N'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 4
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 2
set nIndex1 = nIndex1 + 1
set udg_ModelIcons[udg_MODEL_NUM] = "ReplaceableTextures\\CommandButtons\\BTNUndeadCar.blp"
set udg_ModelDescription[udg_MODEL_NUM] = ""
set udg_ModelAttributes[nIndex] = 210.00
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 1.
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 6.5
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 0.006
set nIndex = nIndex + 1
set udg_MODEL_NUM = udg_MODEL_NUM + 1
//Dwarf
set udg_Models[nIndex1] = 'h008'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h009'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00G'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 2
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 0
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 2
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 3
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 4
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 1
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00M'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 4
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 3
set nIndex1 = nIndex1 + 1
set udg_ModelIcons[udg_MODEL_NUM] = "ReplaceableTextures\\CommandButtons\\BTNDwarfCar.blp"
set udg_ModelDescription[udg_MODEL_NUM] = ""
set udg_ModelAttributes[nIndex] = 195.00
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 1.
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 7.5
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 0.006
set nIndex = nIndex + 1
set udg_MODEL_NUM = udg_MODEL_NUM + 1
return
//Night Elf
set udg_Models[nIndex1] = 'h006'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h003'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00D'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 1
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 0
set nIndex1 = nIndex1 + 1
set udg_ModelIcons[udg_MODEL_NUM] = "ReplaceableTextures\\CommandButtons\\BTNGlaiveThrower.blp"
set udg_ModelAttributes[nIndex] = 220.00
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 1.
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 8.
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 0.006
set nIndex = nIndex + 1
set udg_MODEL_NUM = udg_MODEL_NUM + 1
//Judge
set udg_Models[nIndex1] = 'h00A'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h005'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 'h00E'
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 2
set nIndex1 = nIndex1 + 1
set udg_Models[nIndex1] = 3
set nIndex1 = nIndex1 + 1
set udg_ModelIcons[udg_MODEL_NUM] = "ReplaceableTextures\\CommandButtons\\BTNInfernalFlameCannon.blp"
set udg_ModelAttributes[nIndex] = 200.00
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 1.
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 7.
set nIndex = nIndex + 1
set udg_ModelAttributes[nIndex] = 0.006
set nIndex = nIndex + 1
set udg_MODEL_NUM = udg_MODEL_NUM + 1
endfunction
function InitializePlayerColor takes nothing returns nothing
set udg_PlayerColorRed[0] = 255
set udg_PlayerColorGreen[0] = 0
set udg_PlayerColorBlue[0] = 0
set udg_PlayerColor[0] = "|cffff0000"
// ----------------------------------------------------------------------------------------------------------------------------------------
set udg_PlayerColorRed[1] = 0
set udg_PlayerColorGreen[1] = 0
set udg_PlayerColorBlue[1] = 255
set udg_PlayerColor[1] = "|cff0000ff"
// ----------------------------------------------------------------------------------------------------------------------------------------
set udg_PlayerColorRed[2] = 0
set udg_PlayerColorGreen[2] = 255
set udg_PlayerColorBlue[2] = 255
set udg_PlayerColor[2] = "|cff00ffff"
// ----------------------------------------------------------------------------------------------------------------------------------------
set udg_PlayerColorRed[3] = 128
set udg_PlayerColorGreen[3] = 0
set udg_PlayerColorBlue[3] = 128
set udg_PlayerColor[3] = "|cff800080"
// ----------------------------------------------------------------------------------------------------------------------------------------
set udg_PlayerColorRed[4] = 255
set udg_PlayerColorGreen[4] = 255
set udg_PlayerColorBlue[4] = 0
set udg_PlayerColor[4] = "|cffffff00"
// ----------------------------------------------------------------------------------------------------------------------------------------
set udg_PlayerColorRed[5] = 255
set udg_PlayerColorGreen[5] = 128
set udg_PlayerColorBlue[5] = 0
set udg_PlayerColor[5] = "|cffff8000"
// ----------------------------------------------------------------------------------------------------------------------------------------
set udg_PlayerColorRed[6] = 0
set udg_PlayerColorGreen[6] = 255
set udg_PlayerColorBlue[6] = 0
set udg_PlayerColor[6] = "|cff00ff00"
// ----------------------------------------------------------------------------------------------------------------------------------------
set udg_PlayerColorRed[7] = 255
set udg_PlayerColorGreen[7] = 0
set udg_PlayerColorBlue[7] = 255
set udg_PlayerColor[7] = "|cffff00ff"
endfunction
function InitializePitCrews takes real rFace returns nothing
local integer nIndex = 0
loop
exitwhen nIndex >= udg_PITGARAGE_NUM
call SetUnitFacing( udg_PitCrews[nIndex], rFace )
set nIndex = nIndex + 1
endloop
endfunction
function InitializeCartPowerUps takes nothing returns nothing
local integer nPlayerIndex = 0
local integer nSlot = 0
local integer nIndex = 0
loop
exitwhen nPlayerIndex >= udg_PLAYER_MAXNUM
set nSlot = 0
loop
exitwhen nSlot >= 4
set udg_CartPowerUps[nIndex] = 0
set nIndex = nIndex + 1
set nSlot = nSlot + 1
endloop
set nPlayerIndex = nPlayerIndex + 1
endloop
endfunction
function InitializeSound takes nothing returns nothing
set udg_BigGunSound[0] = gg_snd_GyrocopterImpactHit100
set udg_BigGunSound[1] = gg_snd_GyrocopterImpactHit101
set udg_BigGunSound[2] = gg_snd_GyrocopterImpactHit102
set udg_BigGunSound[3] = gg_snd_GyrocopterImpactHit103
set udg_BigGunSound[4] = gg_snd_GyrocopterImpactHit104
set udg_BigGunSound[5] = gg_snd_GyrocopterImpactHit105
set udg_BigGunSound[6] = gg_snd_GyrocopterImpactHit106
set udg_BigGunSound[7] = gg_snd_GyrocopterImpactHit107
set udg_BigGunSound[8] = gg_snd_GyrocopterImpactHit108
set udg_BigGunSound[9] = gg_snd_GyrocopterImpactHit109
set udg_BigGunSound[10] = gg_snd_GyrocopterImpactHit110
set udg_BigGunSound[11] = gg_snd_GyrocopterImpactHit111
set udg_BigGunSound[12] = gg_snd_GyrocopterImpactHit112
set udg_BigGunSound[13] = gg_snd_GyrocopterImpactHit113
set udg_BigGunSound[14] = gg_snd_GyrocopterImpactHit114
set udg_BigGunSound[15] = gg_snd_GyrocopterImpactHit115
set udg_BigGunSound[16] = gg_snd_GyrocopterImpactHit116
set udg_BigGunSound[17] = gg_snd_GyrocopterImpactHit117
set udg_BigGunSound[18] = gg_snd_GyrocopterImpactHit118
set udg_BigGunSound[19] = gg_snd_GyrocopterImpactHit119
set udg_BigGunSound[20] = gg_snd_GyrocopterImpactHit120
set udg_BigGunSound[21] = gg_snd_GyrocopterImpactHit121
set udg_BigGunSound[22] = gg_snd_GyrocopterImpactHit122
set udg_BigGunSound[23] = gg_snd_GyrocopterImpactHit123
set udg_BlizzardSound[0] = gg_snd_BlizzardLoop100
set udg_BlizzardSound[1] = gg_snd_BlizzardLoop101
set udg_BlizzardSound[2] = gg_snd_BlizzardLoop102
set udg_BlizzardSound[3] = gg_snd_BlizzardLoop103
set udg_BlizzardSound[4] = gg_snd_BlizzardLoop104
set udg_BlizzardSound[5] = gg_snd_BlizzardLoop105
set udg_BlizzardSound[6] = gg_snd_BlizzardLoop106
set udg_BlizzardSound[7] = gg_snd_BlizzardLoop107
set udg_BlizzardSound[8] = gg_snd_BlizzardLoop108
set udg_BlizzardSound[9] = gg_snd_BlizzardLoop109
set udg_BlizzardSound[10] = gg_snd_BlizzardLoop110
set udg_BlizzardSound[11] = gg_snd_BlizzardLoop111
set udg_BlizzardSound[12] = gg_snd_BlizzardLoop112
set udg_BlizzardSound[13] = gg_snd_BlizzardLoop113
set udg_BlizzardSound[14] = gg_snd_BlizzardLoop114
set udg_BlizzardSound[15] = gg_snd_BlizzardLoop115
set udg_BlizzardSound[16] = gg_snd_BlizzardLoop116
set udg_BlizzardSound[17] = gg_snd_BlizzardLoop117
set udg_BlizzardSound[18] = gg_snd_BlizzardLoop118
set udg_BlizzardSound[19] = gg_snd_BlizzardLoop119
set udg_BlizzardSound[20] = gg_snd_BlizzardLoop120
set udg_BlizzardSound[21] = gg_snd_BlizzardLoop121
set udg_BlizzardSound[22] = gg_snd_BlizzardLoop122
set udg_BlizzardSound[23] = gg_snd_BlizzardLoop123
call SetCartSound( 0, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop0 )
call SetCartSound( 1, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop1 )
call SetCartSound( 2, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop2 )
call SetCartSound( 3, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop3 )
call SetCartSound( 4, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop4 )
call SetCartSound( 5, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop5 )
call SetCartSound( 6, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop6 )
call SetCartSound( 7, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop7 )
call SetCartSound( 8, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop )
call SetCartSound( 9, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop01 )
call SetCartSound( 10, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop02 )
call SetCartSound( 11, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop03 )
call SetCartSound( 12, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop04 )
call SetCartSound( 13, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop05 )
call SetCartSound( 14, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop06 )
call SetCartSound( 15, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop07 )
call SetCartSound( 16, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop08 )
call SetCartSound( 17, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop09 )
call SetCartSound( 18, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop10 )
call SetCartSound( 19, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop11 )
call SetCartSound( 20, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop12 )
call SetCartSound( 21, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop13 )
call SetCartSound( 22, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop14 )
call SetCartSound( 23, udg_SNDINDEX_COAST, gg_snd_W3RaceCarLoop15 )
call SetCartSound( 0, udg_SNDINDEX_GOING1, gg_snd_W3RaceCarGoing1_0 )
call SetCartSound( 1, udg_SNDINDEX_GOING1, gg_snd_W3RaceCarGoing1_1 )
call SetCartSound( 2, udg_SNDINDEX_GOING1, gg_snd_W3RaceCarGoing1_2 )
call SetCartSound( 3, udg_SNDINDEX_GOING1, gg_snd_W3RaceCarGoing1_3 )
call SetCartSound( 4, udg_SNDINDEX_GOING1, gg_snd_W3RaceCarGoing1_4 )
call SetCartSound( 5, udg_SNDINDEX_GOING1, gg_snd_W3RaceCarGoing1_5 )
call SetCartSound( 6, udg_SNDINDEX_GOING1, gg_snd_W3RaceCarGoing1_6 )
call SetCartSound( 7, udg_SNDINDEX_GOING1, gg_snd_W3RaceCarGoing1_7 )
call SetCartSound( 8, udg_SNDINDEX_GOING1, gg_snd_CarLoop1 )
call SetCartSound( 9, udg_SNDINDEX_GOING1, gg_snd_CarLoop101 )
call SetCartSound( 10, udg_SNDINDEX_GOING1, gg_snd_CarLoop102 )
call SetCartSound( 11, udg_SNDINDEX_GOING1, gg_snd_CarLoop103 )
call SetCartSound( 12, udg_SNDINDEX_GOING1, gg_snd_CarLoop104 )
call SetCartSound( 13, udg_SNDINDEX_GOING1, gg_snd_CarLoop105 )
call SetCartSound( 14, udg_SNDINDEX_GOING1, gg_snd_CarLoop106 )
call SetCartSound( 15, udg_SNDINDEX_GOING1, gg_snd_CarLoop107 )
call SetCartSound( 16, udg_SNDINDEX_GOING1, gg_snd_CarLoop108 )
call SetCartSound( 17, udg_SNDINDEX_GOING1, gg_snd_CarLoop109 )
call SetCartSound( 18, udg_SNDINDEX_GOING1, gg_snd_CarLoop110 )
call SetCartSound( 19, udg_SNDINDEX_GOING1, gg_snd_CarLoop111 )
call SetCartSound( 20, udg_SNDINDEX_GOING1, gg_snd_CarLoop112 )
call SetCartSound( 21, udg_SNDINDEX_GOING1, gg_snd_CarLoop113 )
call SetCartSound( 22, udg_SNDINDEX_GOING1, gg_snd_CarLoop114 )
call SetCartSound( 23, udg_SNDINDEX_GOING1, gg_snd_CarLoop115 )
call SetCartSound( 0, udg_SNDINDEX_GOING2, gg_snd_W3RaceCarGoing2_0 )
call SetCartSound( 1, udg_SNDINDEX_GOING2, gg_snd_W3RaceCarGoing2_1 )
call SetCartSound( 2, udg_SNDINDEX_GOING2, gg_snd_W3RaceCarGoing2_2 )
call SetCartSound( 3, udg_SNDINDEX_GOING2, gg_snd_W3RaceCarGoing2_3 )
call SetCartSound( 4, udg_SNDINDEX_GOING2, gg_snd_W3RaceCarGoing2_4 )
call SetCartSound( 5, udg_SNDINDEX_GOING2, gg_snd_W3RaceCarGoing2_5 )
call SetCartSound( 6, udg_SNDINDEX_GOING2, gg_snd_W3RaceCarGoing2_6 )
call SetCartSound( 7, udg_SNDINDEX_GOING2, gg_snd_W3RaceCarGoing2_7 )
call SetCartSound( 8, udg_SNDINDEX_GOING2, gg_snd_CarLoop2 )
call SetCartSound( 9, udg_SNDINDEX_GOING2, gg_snd_CarLoop201 )
call SetCartSound( 10, udg_SNDINDEX_GOING2, gg_snd_CarLoop202 )
call SetCartSound( 11, udg_SNDINDEX_GOING2, gg_snd_CarLoop203 )
call SetCartSound( 12, udg_SNDINDEX_GOING2, gg_snd_CarLoop204 )
call SetCartSound( 13, udg_SNDINDEX_GOING2, gg_snd_CarLoop205 )
call SetCartSound( 14, udg_SNDINDEX_GOING2, gg_snd_CarLoop206 )
call SetCartSound( 15, udg_SNDINDEX_GOING2, gg_snd_CarLoop207 )
call SetCartSound( 16, udg_SNDINDEX_GOING2, gg_snd_CarLoop208 )
call SetCartSound( 17, udg_SNDINDEX_GOING2, gg_snd_CarLoop209 )
call SetCartSound( 18, udg_SNDINDEX_GOING2, gg_snd_CarLoop210 )
call SetCartSound( 19, udg_SNDINDEX_GOING2, gg_snd_CarLoop211 )
call SetCartSound( 20, udg_SNDINDEX_GOING2, gg_snd_CarLoop212 )
call SetCartSound( 21, udg_SNDINDEX_GOING2, gg_snd_CarLoop213 )
call SetCartSound( 22, udg_SNDINDEX_GOING2, gg_snd_CarLoop214 )
call SetCartSound( 23, udg_SNDINDEX_GOING2, gg_snd_CarLoop215 )
call SetCartSound( 0, udg_SNDINDEX_GOING3, gg_snd_W3RaceCarGoing3_0 )
call SetCartSound( 1, udg_SNDINDEX_GOING3, gg_snd_W3RaceCarGoing3_1 )
call SetCartSound( 2, udg_SNDINDEX_GOING3, gg_snd_W3RaceCarGoing3_2 )
call SetCartSound( 3, udg_SNDINDEX_GOING3, gg_snd_W3RaceCarGoing3_3 )
call SetCartSound( 4, udg_SNDINDEX_GOING3, gg_snd_W3RaceCarGoing3_4 )
call SetCartSound( 5, udg_SNDINDEX_GOING3, gg_snd_W3RaceCarGoing3_5 )
call SetCartSound( 6, udg_SNDINDEX_GOING3, gg_snd_W3RaceCarGoing3_6 )
call SetCartSound( 7, udg_SNDINDEX_GOING3, gg_snd_W3RaceCarGoing3_7 )
call SetCartSound( 8, udg_SNDINDEX_GOING3, gg_snd_CarLoop3 )
call SetCartSound( 9, udg_SNDINDEX_GOING3, gg_snd_CarLoop301 )
call SetCartSound( 10, udg_SNDINDEX_GOING3, gg_snd_CarLoop302 )
call SetCartSound( 11, udg_SNDINDEX_GOING3, gg_snd_CarLoop303 )
call SetCartSound( 12, udg_SNDINDEX_GOING3, gg_snd_CarLoop304 )
call SetCartSound( 13, udg_SNDINDEX_GOING3, gg_snd_CarLoop305 )
call SetCartSound( 14, udg_SNDINDEX_GOING3, gg_snd_CarLoop306 )
call SetCartSound( 15, udg_SNDINDEX_GOING3, gg_snd_CarLoop307 )
call SetCartSound( 16, udg_SNDINDEX_GOING3, gg_snd_CarLoop308 )
call SetCartSound( 17, udg_SNDINDEX_GOING3, gg_snd_CarLoop309 )
call SetCartSound( 18, udg_SNDINDEX_GOING3, gg_snd_CarLoop310 )
call SetCartSound( 19, udg_SNDINDEX_GOING3, gg_snd_CarLoop311 )
call SetCartSound( 20, udg_SNDINDEX_GOING3, gg_snd_CarLoop312 )
call SetCartSound( 21, udg_SNDINDEX_GOING3, gg_snd_CarLoop313 )
call SetCartSound( 22, udg_SNDINDEX_GOING3, gg_snd_CarLoop314 )
call SetCartSound( 23, udg_SNDINDEX_GOING3, gg_snd_CarLoop315 )
set udg_ModelHonkPath[0] = "war3mapImported\\War3CarHonk02.wav"
set udg_ModelHonkDur[0] = 784
set udg_ModelHonkPath[1] = "war3mapImported\\War3CarHonk03.wav"
set udg_ModelHonkDur[1] = 678
set udg_ModelHonkPath[2] = "war3mapImported\\War3CarHonk05.wav"
set udg_ModelHonkDur[2] = 1401
set udg_ModelHonkPath[3] = "war3mapImported\\War3CarHonk08.wav"
set udg_ModelHonkDur[3] = 1324
set udg_ModelHonkPath[4] = "war3mapImported\\War3CarHonk02.wav"
set udg_ModelHonkDur[4] = 784
set udg_ModelHonkPath[5] = "war3mapImported\\War3CarHonk03.wav"
set udg_ModelHonkDur[5] = 678
set udg_ModelHonkPath[6] = "war3mapImported\\War3CarHonk05.wav"
set udg_ModelHonkDur[6] = 1401
set udg_ModelHonkPath[7] = "war3mapImported\\War3CarHonk08.wav"
set udg_ModelHonkDur[7] = 1324
set udg_ModelHonkPath[8] = "war3mapImported\\War3CarHonk02.wav"
set udg_ModelHonkDur[8] = 784
set udg_ModelHonkPath[9] = "war3mapImported\\War3CarHonk03.wav"
set udg_ModelHonkDur[9] = 678
set udg_ModelHonkPath[10] = "war3mapImported\\War3CarHonk05.wav"
set udg_ModelHonkDur[10] = 1401
set udg_ModelHonkPath[11] = "war3mapImported\\War3CarHonk08.wav"
set udg_ModelHonkDur[12] = 1324
set udg_ModelHonkPath[13] = "war3mapImported\\War3CarHonk02.wav"
set udg_ModelHonkDur[13] = 784
set udg_ModelHonkPath[14] = "war3mapImported\\War3CarHonk03.wav"
set udg_ModelHonkDur[14] = 678
set udg_ModelHonkPath[15] = "war3mapImported\\War3CarHonk05.wav"
set udg_ModelHonkDur[15] = 1401
set udg_ModelHonkPath[16] = "war3mapImported\\War3CarHonk08.wav"
set udg_ModelHonkDur[16] = 1324
set udg_ModelHonkPath[17] = "war3mapImported\\War3CarHonk02.wav"
set udg_ModelHonkDur[17] = 784
set udg_ModelHonkPath[18] = "war3mapImported\\War3CarHonk03.wav"
set udg_ModelHonkDur[18] = 678
set udg_ModelHonkPath[19] = "war3mapImported\\War3CarHonk05.wav"
set udg_ModelHonkDur[19] = 1401
set udg_ModelHonkPath[20] = "war3mapImported\\War3CarHonk08.wav"
set udg_ModelHonkDur[20] = 1324
set udg_ModelSpinPath[0] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[0] = 1401
set udg_ModelSpinPath[1] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[1] = 1401
set udg_ModelSpinPath[2] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[2] = 1401
set udg_ModelSpinPath[3] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[3] = 1401
set udg_ModelSpinPath[4] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[4] = 1401
set udg_ModelSpinPath[5] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[5] = 1401
set udg_ModelSpinPath[6] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[6] = 1401
set udg_ModelSpinPath[7] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[7] = 1401
set udg_ModelSpinPath[8] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[8] = 1401
set udg_ModelSpinPath[9] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[9] = 1401
set udg_ModelSpinPath[10] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[10] = 1401
set udg_ModelSpinPath[11] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[11] = 1401
set udg_ModelSpinPath[12] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[12] = 1401
set udg_ModelSpinPath[13] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[13] = 1401
set udg_ModelSpinPath[14] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[14] = 1401
set udg_ModelSpinPath[15] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[15] = 1401
set udg_ModelSpinPath[16] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[16] = 1401
set udg_ModelSpinPath[17] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[17] = 1401
set udg_ModelSpinPath[18] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[18] = 1401
set udg_ModelSpinPath[19] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[19] = 1401
set udg_ModelSpinPath[20] = "war3mapImported\\SpinSOundv5.wav"
set udg_ModelSpinDur[20] = 1401
set udg_REDturtleAUTOSOUND[0] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[1] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[2] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[3] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[4] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[5] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[6] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[7] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[8] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[9] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[10] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[11] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[12] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[13] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[14] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[15] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[16] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[17] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[18] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[19] = gg_snd_RedShellFollow3Dv3
set udg_REDturtleAUTOSOUND[20] = gg_snd_RedShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[0] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[1] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[2] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[3] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[4] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[5] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[6] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[7] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[8] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[9] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[10] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[11] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[12] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[13] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[14] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[15] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[16] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[17] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[18] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[19] = gg_snd_GreenShellFollow3Dv3
set udg_GREENturtleAUTOSOUND[20] = gg_snd_GreenShellFollow3Dv3
endfunction
function IceTrunkFilter takes nothing returns boolean
return GetUnitTypeId( GetFilterUnit() ) == 'n00M' and IsUnitAliveBJ( GetFilterUnit() )
endfunction
function Trig_IceTrunk_Conditions takes nothing returns boolean
if ( not IsItACart( GetUnitTypeId( GetTriggerUnit() ) ) ) then
return false
elseif ( not IsUnitAliveBJ( GetTriggerUnit() ) ) then
return false
elseif ( not IsCartVisible( GetTriggerUnit() ) ) then
return false
elseif ( not IsCartVulnerable( GetTriggerUnit() ) ) then
return false
endif
return true
endfunction
function Trig_IceTrunk_Actions takes nothing returns nothing
local unit uAttacker
local unit uCart
local location loc
local group g
local unit uIceTrunk
local integer nIndex
local integer nPlayerIndex
local effect eff
call ShowDebugMsg( "Trig_IceTrunk_Actions" )
set uCart = GetTriggerUnit()
set nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if ( nPlayerIndex < 0 ) then
return
endif
if ( udg_IceTrunkCooldown[nPlayerIndex] >= 0 ) then
return
endif
set loc = GetUnitLoc( uCart )
set udg_Frozen[nPlayerIndex] = true
set udg_Speed[nPlayerIndex] = 0
call SetUnitTimeScale( udg_Carts[nPlayerIndex], 1 )
call SetCartInvulnerable( udg_Carts[nPlayerIndex], true )
set uAttacker = CreateUnit( udg_HOSTILE, 'n00N', GetUnitX(uCart), GetUnitY(uCart), 0 )
call IssueTargetOrder( uAttacker, "attack", uCart )
call UnitApplyTimedLife( uAttacker, 'BTLF', 2 )
set eff = AddSpecialEffectTarget( "Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl", udg_Carts[nPlayerIndex], "origin" )
call DestroyEffect( eff )
set g = GetUnitsInRangeOfLocMatching( 400, loc, Condition(function IceTrunkFilter) )
call RemoveLocation( loc )
loop
set uIceTrunk = FirstOfGroup( g )
exitwhen uIceTrunk == null
set nIndex = GetUnitUserData( uIceTrunk)
if ( udg_IceTrunkTrigger[nIndex] == GetTriggeringTrigger() ) then
call DestroyTrigger( udg_IceTrunkTrigger[nIndex] )
set udg_IceTrunkTrigger[nIndex] = null
call KillUnit( uIceTrunk )
exitwhen true
endif
call GroupRemoveUnit( g, uIceTrunk )
endloop
call DestroyGroup( g )
endfunction
function CreateIceTrunk takes location loc returns nothing
local integer nIndex
local trigger t
local unit u = CreateUnitAtLoc( udg_NPC, 'n00M', loc, I2R(GetRandomInt(0, 359)) )
set t = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( t, 60, u )
call TriggerAddCondition( t, Condition( function Trig_IceTrunk_Conditions ) )
call TriggerAddAction( t, function Trig_IceTrunk_Actions )
set nIndex = 0
loop
exitwhen nIndex >= udg_IceTrunkTriggerNum
exitwhen udg_IceTrunkTrigger[nIndex] == null
set nIndex = nIndex + 1
endloop
set udg_IceTrunkTrigger[nIndex] = t
call SetUnitUserData( u, nIndex )
if ( nIndex >= udg_IceTrunkTriggerNum ) then
set udg_IceTrunkTriggerNum = udg_IceTrunkTriggerNum + 1
endif
endfunction
function InitIceTrunk takes nothing returns nothing
local group g = null
local unit u
local location loc
set g = GetUnitsInRectMatching( gg_rct_IceTrunkArea, Condition(function IceTrunkFilter) )
loop
set u = FirstOfGroup( g )
exitwhen u == null
set loc = GetUnitLoc( u )
call RemoveUnit( u )
call CreateIceTrunk( loc )
call RemoveLocation( loc )
call GroupRemoveUnit( g, u )
endloop
call DestroyGroup( g )
endfunction
function FakeSheepFilter takes nothing returns boolean
return GetUnitTypeId( GetFilterUnit() ) == 'n00H' and IsUnitAliveBJ( GetFilterUnit() )
endfunction
function InitSheep takes nothing returns nothing
local group g = null
local unit u
set g = GetUnitsInRectMatching( gg_rct_SheepAreaFake, Condition(function FakeSheepFilter) )
loop
set u = FirstOfGroup( g )
exitwhen u == null
call SetUnitPathing( u, false )
call SetUnitFacing( u, GetRandomReal(0., 359.) )
call GroupRemoveUnit( g, u )
endloop
call DestroyGroup( g )
endfunction
//===========================================================================
function InitTrig_Initialization_Functions takes nothing returns nothing
endfunction
function Trig_RestartEngine_Actions takes nothing returns nothing
local integer nIndex = 0
call EnableTrigger( gg_trg_Move_Cart )
// -----------------------
call TimerStart( udg_GameTimer, 1000000000.00, false, null )
loop
exitwhen nIndex >= 24
set udg_GameGoingStatus[nIndex] = udg_GAME_DRIVING
set nIndex = nIndex + 1
endloop
return
// -----------------------
call TimerStart( udg_DrivingTimer, 0.05, true, null )
endfunction
//===========================================================================
function InitTrig_RestartEngine takes nothing returns nothing
set gg_trg_RestartEngine = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_RestartEngine, Player(0), "-start", true )
call TriggerAddAction( gg_trg_RestartEngine, function Trig_RestartEngine_Actions )
endfunction
function ResetCameraForPick takes integer nPlayerIndex returns nothing
call SetCameraTargetControllerNoZForPlayer( Player(nPlayerIndex), udg_PickCartCameraUnits[nPlayerIndex], 0, 0, true )
call SetCameraFieldForPlayer( Player(nPlayerIndex), CAMERA_FIELD_TARGET_DISTANCE, 443.50, 0 )
call SetCameraFieldForPlayer( Player(nPlayerIndex), CAMERA_FIELD_FIELD_OF_VIEW, 70, 0 )
call SetCameraFieldForPlayer( Player(nPlayerIndex), CAMERA_FIELD_ROTATION, 268.57, 0 )
call SetCameraFieldForPlayer( Player(nPlayerIndex), CAMERA_FIELD_ZOFFSET, 53, 0 )
call SetCameraFieldForPlayer( Player(nPlayerIndex), CAMERA_FIELD_ANGLE_OF_ATTACK, 356.00, 0 )
call SetCameraFieldForPlayer( Player(nPlayerIndex), CAMERA_FIELD_FARZ, 1500.00, 0 )
endfunction
function GetCartDescription takes unit uCart returns string
local integer nModelId = GetPickModelIndex( GetUnitTypeId( uCart ) )
return udg_ModelDescription[nModelId]
endfunction
function DestroyGameTipTag takes integer nPlayerIndex returns nothing
if ( udg_PickCartTextTag[nPlayerIndex] == null ) then
return
endif
call DestroyTextTag( udg_GameTipTextTag[nPlayerIndex] )
set udg_GameTipTextTag[nPlayerIndex] = null
endfunction
function ResetPickCartTextTag takes integer nPlayerIndex returns nothing
if ( udg_PickCarts[nPlayerIndex] != null ) then
if ( udg_PickCartTextTag[nPlayerIndex] != null ) then
call DestroyTextTag( udg_PickCartTextTag[nPlayerIndex] )
endif
set udg_PickCartTextTag[nPlayerIndex] = CreateTextTag()
call SetTextTagText( udg_PickCartTextTag[nPlayerIndex], GetCartDescription(udg_PickCarts[nPlayerIndex]), 0.023 )
call SetTextTagColor( udg_PickCartTextTag[nPlayerIndex], 200, 255, 0, 255 )
call SetTextTagVelocity( udg_PickCartTextTag[nPlayerIndex], 0, 0 )
call ShowTextTagForceBJ( true, udg_PickCartTextTag[nPlayerIndex], GetForceOfPlayer(Player(nPlayerIndex)) )
call SetTextTagPos( udg_PickCartTextTag[nPlayerIndex], GetLocationX(udg_PickCartPos[nPlayerIndex]) + 0, GetLocationY(udg_PickCartPos[nPlayerIndex]) + 200, 56)
else
if ( udg_PickCartTextTag[nPlayerIndex] != null ) then
call DestroyTextTag( udg_PickCartTextTag[nPlayerIndex] )
set udg_PickCartTextTag[nPlayerIndex] = null
endif
endif
endfunction
function PreparePickingCartPlayer takes integer nPlayerIndex returns nothing
local unit uCamera = null
local unit uCart = null
local location loc = null
local rect rc = null
set udg_GameGoingStatus[nPlayerIndex] = udg_GAME_PICKING
set udg_PickCartCameraUnits[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00K', udg_PickCartPos[nPlayerIndex], 0 )
set loc = PolarProjectionBJ( udg_PickCartPos[nPlayerIndex], 80, 0 )
set udg_PickCarts[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), GetModelPickUnitType(0), loc, 90 )
call RemoveLocation( loc )
call ClearSelectionForPlayer( Player(nPlayerIndex) )
call SelectUnitForPlayerSingle( udg_PickCarts[nPlayerIndex], Player(nPlayerIndex) )
set rc = Rect( GetLocationX(udg_PickCartPos[nPlayerIndex]) - 500, GetLocationY(udg_PickCartPos[nPlayerIndex]) - 500, GetLocationX(udg_PickCartPos[nPlayerIndex]) + 500, GetLocationY(udg_PickCartPos[nPlayerIndex]) + 500 )
set udg_PickCartVisibility[nPlayerIndex] = CreateFogModifierRectBJ( true, Player(nPlayerIndex), FOG_OF_WAR_VISIBLE, rc )
call RemoveRect( rc )
call TimerStart( udg_PickCartPlayerTimer[nPlayerIndex], 0.05, true, null )
call ResetPickCartTextTag( nPlayerIndex )
call ResetCameraForPick( nPlayerIndex )
endfunction
function RotatePickCart takes integer nPlayerIndex returns nothing
local location loc = null
local real rAngle = 0
if ( udg_PickCarts[nPlayerIndex] == null ) then
return
endif
set loc = GetUnitLoc( udg_PickCarts[nPlayerIndex] )
set rAngle = GetUnitFacing( udg_PickCarts[nPlayerIndex] ) + 5
call SetUnitFacing( udg_PickCarts[nPlayerIndex], rAngle )
call SetUnitPositionLoc( udg_PickCarts[nPlayerIndex], loc )
call RemoveLocation( loc )
endfunction
function StartPickingCart takes nothing returns nothing
local boolean bContinue = false
local integer nPlayerIndex = 0
loop
exitwhen nPlayerIndex >= 23
if ( GetPlayerController(Player(nPlayerIndex)) == MAP_CONTROL_USER and GetPlayerSlotState(Player(nPlayerIndex)) == PLAYER_SLOT_STATE_PLAYING ) then
call PreparePickingCartPlayer(nPlayerIndex)
else
call DestroyTimer( udg_PickCartPlayerTimer[nPlayerIndex] )
call DestroyTextTag( udg_PickCartTextTag[nPlayerIndex] )
set udg_PickCartTextTag[nPlayerIndex] = null
endif
set nPlayerIndex = nPlayerIndex + 1
endloop
endfunction
function PickCartNavigate takes unit uCartPick, boolean bForward returns nothing
local location loc = null
local real rAngle = 0
local integer nModelIndex = GetPickModelIndex( GetUnitTypeId( uCartPick ) )
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer(uCartPick) )
if ( nModelIndex < 0 or nPlayerIndex < 0 ) then
return
endif
if ( uCartPick != udg_PickCarts[nPlayerIndex] ) then
return
endif
if ( bForward ) then
set nModelIndex = nModelIndex + 1
if ( nModelIndex >= udg_MODEL_NUM ) then
set nModelIndex = 0
endif
if (nModelIndex == 0) then
endif
if (nModelIndex == 2) then
endif
else
set nModelIndex = nModelIndex - 1
if ( nModelIndex < 0 ) then
set nModelIndex = udg_MODEL_NUM - 1
endif
if (nModelIndex == 0) then
endif
if (nModelIndex == 2) then
endif
endif
set loc = GetUnitLoc( udg_PickCarts[nPlayerIndex] )
set rAngle = GetUnitFacing( udg_PickCarts[nPlayerIndex] )
call RemoveUnit( udg_PickCarts[nPlayerIndex] )
set udg_PickCarts[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), GetModelPickUnitType( nModelIndex ), loc, rAngle )
call RemoveLocation( loc )
call ClearSelectionForPlayer( Player(nPlayerIndex) )
call SelectUnitForPlayerSingle( udg_PickCarts[nPlayerIndex], Player(nPlayerIndex) )
call ResetPickCartTextTag( nPlayerIndex )
endfunction
function PickCartSimple takes player plPlayer, integer nModelIndex returns nothing
local integer nPlayerIndex = -1
local rect rc = null
set nPlayerIndex = GetPlayerIndex( plPlayer )
if ( nPlayerIndex < 0 ) then
return
endif
if ( udg_GameGoingStatus[nPlayerIndex] != udg_GAME_PICKING ) then
return
endif
call DestroyTimer( udg_PickCartPlayerTimer[nPlayerIndex] )
call RemoveUnit( udg_PickCarts[nPlayerIndex] )
set udg_PickCarts[nPlayerIndex] = null
call RemoveUnit( udg_PickCartCameraUnits[nPlayerIndex] )
set udg_PickCartCameraUnits[nPlayerIndex] = null
call DestroyGameTipTag( nPlayerIndex )
call ResetPickCartTextTag( nPlayerIndex )
set udg_PlayerModels[nPlayerIndex] = nModelIndex
set udg_Carts[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), GetModelUnitType( udg_PlayerModels[nPlayerIndex] ), udg_StartPoints[udg_HowManyPicked], udg_START_ANGLE )
set udg_CartPrePos[nPlayerIndex] = udg_StartPoints[udg_HowManyPicked]
call ClearSelectionForPlayer( Player(nPlayerIndex) )
call SelectUnitForPlayerSingle( udg_Carts[nPlayerIndex], Player(nPlayerIndex) )
set udg_Angle[nPlayerIndex] = udg_START_ANGLE
call ChangeCartSound( nPlayerIndex, udg_SNDINDEX_COAST )
set udg_HowManyPicked = udg_HowManyPicked + 1
call DestroyFogModifier( udg_PickCartVisibility[nPlayerIndex] )
set rc = Rect( GetLocationX(udg_PickCartPos[nPlayerIndex]) - 200, GetLocationY(udg_PickCartPos[nPlayerIndex]) - 200, GetLocationX(udg_PickCartPos[nPlayerIndex]) + 200, GetLocationY(udg_PickCartPos[nPlayerIndex]) + 200 )
set udg_PickCartVisibility[nPlayerIndex] = CreateFogModifierRectBJ( true, Player(nPlayerIndex), FOG_OF_WAR_MASKED, rc )
call RemoveRect( rc )
call CreateFogModifierRectBJ( true, Player(nPlayerIndex), FOG_OF_WAR_VISIBLE, gg_rct_VisibleRgn )
endfunction
function PickingEnded takes nothing returns nothing
local location loc = null
local real rAngle = 0
local integer nModelIndex = 1
local integer nPlayerIndex = 0
if ( udg_PickCartTimer == null ) then
return
endif
// call DestroyTrigger( gg_trg_Picking_Cart_TimerP1 )
call DestroyTimerDialogBJ( udg_PickCartTimerWnd )
call DestroyTimer( udg_PickCartTimer )
set udg_PickCartTimer = null
set nPlayerIndex = 0
loop
exitwhen nPlayerIndex >= 23
if ( udg_PickCarts[nPlayerIndex] != null ) then
set loc = GetUnitLoc( udg_PickCarts[nPlayerIndex] )
set rAngle = GetUnitFacing( udg_PickCarts[nPlayerIndex] )
set udg_PickCarts[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), GetModelPickUnitType( 1 ), loc, rAngle )
call PickCartSimple( Player(nPlayerIndex), GetPickModelIndex( GetUnitTypeId( udg_PickCarts[nPlayerIndex] ) ) )
endif
set nPlayerIndex = nPlayerIndex + 1
endloop
// --------------------------------------------------
call DestroyTrigger( gg_trg_Pick_Cart_Functions )
call DestroyTrigger( gg_trg_Start_Picking_Cart )
call DestroyTrigger( gg_trg_Picking_Cart_Player_Timer )
call DestroyTrigger( gg_trg_Select_Other_Unit_Than_Picking_Cart )
call DestroyTrigger( gg_trg_Deselect_Picking_Cart )
call DestroyTrigger( gg_trg_View_Previous_Cart )
call DestroyTrigger( gg_trg_View_Next_Cart )
call DestroyTrigger( gg_trg_Pick_Cart )
// --------------------------------------------------
call TimerStart( udg_GameStartTimer, 1.00, true, null )
// --------------------------------------------------
call TimerStart( udg_DrivingTimer, 0.05, true, null )
// --------------------------------------------------
set nPlayerIndex = 0
loop
exitwhen nPlayerIndex >= 23
if ( udg_Carts[nPlayerIndex] != null ) then
call SetPlayerAbilityAvailable( Player(nPlayerIndex), 'A01V', true )
call IssueImmediateOrder( udg_Carts[nPlayerIndex], "cannibalize" )
endif
set nPlayerIndex = nPlayerIndex + 1
endloop
call TimerStart( udg_BigGunLoadTimer, 15, false, null )
// --------------------------------------------------
set nPlayerIndex = 0
loop
exitwhen nPlayerIndex >= 23
set udg_GameGoingStatus[nPlayerIndex] = udg_GAME_PREPARING
set nPlayerIndex = nPlayerIndex + 1
endloop
//call ShowTipMsg( "Arrow keys - Drive your cart" )
//call PolledWait( 10 )
//call ShowTipMsg( "'A' 'S' 'D' 'F' - Use items" )
//call PolledWait( 10 )
//call ShowTipMsg( "'W' - Fire machine gun" )
//call PolledWait( 10 )
//call ShowTipMsg( "'Q' - Honk" )
endfunction
function PickCart takes player plPlayer, integer nModelIndex returns nothing
local integer nPlayerIndex = 0
call PickCartSimple( plPlayer, nModelIndex )
set nPlayerIndex = 0
loop
exitwhen nPlayerIndex >= 23
if ( udg_PickCarts[nPlayerIndex] != null ) then
return
endif
set nPlayerIndex = nPlayerIndex + 1
endloop
//All picked? Time for fun
call PickingEnded()
return
endfunction
//===========================================================================
function InitTrig_Pick_Cart_Functions takes nothing returns nothing
endfunction
function GameStartTimer takes nothing returns nothing
local integer nIndex = 0
if ( udg_FadeMask321 == 3 ) then
// call CameraSetupApplyForPlayer( true, gg_cam_normalviewegod,Player(0), 4.2 )
// call CameraSetupApplyForPlayer( true, gg_cam_normalviewegod,Player(1), 4.2 )
// call CameraSetupApplyForPlayer( true, gg_cam_normalviewegod,Player(2), 4.2 )
// call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.6, "war3mapImported\\Special3Mask.blp", 90.00, 0, 0, 15.00 )
// call PlaySoundBJ( gg_snd_AnnouncerThreeProcessed )
// elseif ( udg_FadeMask321 == 2 ) then
// call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.6, "war3mapImported\\Special2Mask.blp", 90.00, 0, 0, 15.00 )
// call PlaySoundBJ( gg_snd_AnnouncerTwoProcessed )
// elseif ( udg_FadeMask321 == 1 ) then
// call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.6, "war3mapImported\\Special1Mask.blp", 90.00, 0, 0, 15.00 )
// call PlaySoundBJ( gg_snd_AnnouncerOneProcessed )
// elseif ( udg_FadeMask321 == 0 ) then
// call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 3, "war3mapImported\\SpecialGoMask.blp", 90.00, 0, 0, 15.00 )
// call PlaySoundBJ( gg_snd_AnnouncerGoProcessed )
call DestroyTimer( udg_GameStartTimer )
// --------------------------------------------------
// call TriggerExecute( gg_trg_Create_Board )
// --------------------------------------------------
call TimerStart( udg_GameTimer, 1000000000.00, false, null )
// call TimerStart( udg_MineCartTimer, 0.75, true, null )
// call TimerStart( udg_SheepTimer, 80.00, false, null )
loop
exitwhen nIndex >= 24
set udg_GameGoingStatus[nIndex] = udg_GAME_DRIVING
set nIndex = nIndex + 1
endloop
return
endif
set udg_FadeMask321 = udg_FadeMask321 - 1
endfunction
function ChargeBigGunSingle takes integer nPlayerIndex returns nothing
if ( udg_Carts[nPlayerIndex] != null ) then
call UnitRemoveAbility( udg_Carts[nPlayerIndex], 'A01V' )
//call UnitAddAbility( udg_Carts[nPlayerIndex], 'A01U' )
set udg_GunAmmo[nPlayerIndex] = udg_AMMO_MAX
endif
endfunction
function ChargeBigGun takes nothing returns nothing
local integer nPlayerIndex = 0
call DestroyTimer( udg_BigGunLoadTimer )
loop
exitwhen nPlayerIndex >= 24
//call ChargeBigGunSingle( nPlayerIndex )
set nPlayerIndex = nPlayerIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Game_Start_Functions takes nothing returns nothing
endfunction
function Trig_CheckpointPassed1_Copy_Func003C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed1_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed1_Copy_Func003C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Func004Func001C takes nothing returns boolean
if ( not ( udg_PasserleCheckPointBoolean1[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed1_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed1_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed1_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed1_Copy_Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean1[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
set udg_PasserleCheckPointBoolean17[GetForLoopIndexA()] = false
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed1_Copy_Func004Func001Func004Func001Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed1_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed1_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed1_Copy, gg_rct_Race1CheckPoint1 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed1_Copy, gg_rct_Race2CheckPoint1 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed1_Copy, gg_rct_Race3CheckPoint1 )
call TriggerAddCondition( gg_trg_CheckpointPassed1_Copy, Condition( function Trig_CheckpointPassed1_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed1_Copy, function Trig_CheckpointPassed1_Copy_Actions )
endfunction
function Trig_CheckpointPassed2_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed2_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed2_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean1[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean2[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed2_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed2_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed2_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed2_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean2[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed2_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed2_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed2_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed2_Copy, gg_rct_Race1CheckPoint2 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed2_Copy, gg_rct_Race2CheckPoint2 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed2_Copy, gg_rct_Race3CheckPoint2 )
call TriggerAddCondition( gg_trg_CheckpointPassed2_Copy, Condition( function Trig_CheckpointPassed2_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed2_Copy, function Trig_CheckpointPassed2_Copy_Actions )
endfunction
function Trig_CheckpointPassed3_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed3_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed3_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean2[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean3[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed3_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed3_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed3_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed3_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean3[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed3_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed3_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed3_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed3_Copy, gg_rct_Race1CheckPoint3 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed3_Copy, gg_rct_Race2CheckPoint3 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed3_Copy, gg_rct_Race3CheckPoint3 )
call TriggerAddCondition( gg_trg_CheckpointPassed3_Copy, Condition( function Trig_CheckpointPassed3_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed3_Copy, function Trig_CheckpointPassed3_Copy_Actions )
endfunction
function Trig_CheckpointPassed4_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed4_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed4_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean3[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean4[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed4_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed4_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed4_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed4_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean4[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed4_Copy_Func003Func001Func004Func001Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed4_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed4_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed4_Copy, gg_rct_Race1CheckPoint4 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed4_Copy, gg_rct_Race2CheckPoint4 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed4_Copy, gg_rct_Race3CheckPoint4 )
call TriggerAddCondition( gg_trg_CheckpointPassed4_Copy, Condition( function Trig_CheckpointPassed4_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed4_Copy, function Trig_CheckpointPassed4_Copy_Actions )
endfunction
function Trig_CheckpointPassed5_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed5_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed5_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean4[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean5[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed5_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed5_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed5_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed5_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean5[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed5_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed5_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed5_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed5_Copy, gg_rct_Race1CheckPoint5 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed5_Copy, gg_rct_Race2CheckPoint5 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed5_Copy, gg_rct_Race3CheckPoint5 )
call TriggerAddCondition( gg_trg_CheckpointPassed5_Copy, Condition( function Trig_CheckpointPassed5_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed5_Copy, function Trig_CheckpointPassed5_Copy_Actions )
endfunction
function Trig_CheckpointPassed6_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed6_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed6_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean5[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean6[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed6_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed6_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed6_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed6_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean6[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed6_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed6_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed6_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed6_Copy, gg_rct_Race1CheckPoint6 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed6_Copy, gg_rct_Race2CheckPoint6 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed6_Copy, gg_rct_Race3CheckPoint6 )
call TriggerAddCondition( gg_trg_CheckpointPassed6_Copy, Condition( function Trig_CheckpointPassed6_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed6_Copy, function Trig_CheckpointPassed6_Copy_Actions )
endfunction
function Trig_CheckpointPassed7_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed7_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed7_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean6[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean7[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed7_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed7_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed7_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed7_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean7[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed7_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed7_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed7_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed7_Copy, gg_rct_Race1CheckPoint7 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed7_Copy, gg_rct_Race2CheckPoint7 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed7_Copy, gg_rct_Race3CheckPoint7 )
call TriggerAddCondition( gg_trg_CheckpointPassed7_Copy, Condition( function Trig_CheckpointPassed7_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed7_Copy, function Trig_CheckpointPassed7_Copy_Actions )
endfunction
function Trig_CheckpointPassed8_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed8_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed8_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean7[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean8[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed8_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed8_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed8_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed8_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean8[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed8_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed8_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed8_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed8_Copy, gg_rct_Race1CheckPoint8 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed8_Copy, gg_rct_Race2CheckPoint8 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed8_Copy, gg_rct_Race3CheckPoint8 )
call TriggerAddCondition( gg_trg_CheckpointPassed8_Copy, Condition( function Trig_CheckpointPassed8_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed8_Copy, function Trig_CheckpointPassed8_Copy_Actions )
endfunction
function Trig_CheckpointPassed9_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed9_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed9_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean8[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean9[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed9_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed9_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed9_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed9_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean9[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed9_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed9_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed9_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed9_Copy, gg_rct_Race1CheckPoint9 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed9_Copy, gg_rct_Race2CheckPoint9 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed9_Copy, gg_rct_Race3CheckPoint9 )
call TriggerAddCondition( gg_trg_CheckpointPassed9_Copy, Condition( function Trig_CheckpointPassed9_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed9_Copy, function Trig_CheckpointPassed9_Copy_Actions )
endfunction
function Trig_CheckpointPassed10_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed10_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed10_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean9[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean10[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed10_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed10_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed10_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed10_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean10[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed10_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed10_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed10_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed10_Copy, gg_rct_Race1CheckPoint10 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed10_Copy, gg_rct_Race2CheckPoint10 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed10_Copy, gg_rct_Race3CheckPoint10 )
call TriggerAddCondition( gg_trg_CheckpointPassed10_Copy, Condition( function Trig_CheckpointPassed10_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed10_Copy, function Trig_CheckpointPassed10_Copy_Actions )
endfunction
function Trig_CheckpointPassed11_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed11_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed11_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean10[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean11[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed11_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed11_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed11_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed11_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean11[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed11_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed11_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed11_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed11_Copy, gg_rct_Race1CheckPoint11 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed11_Copy, gg_rct_Race2CheckPoint11 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed11_Copy, gg_rct_Race3CheckPoint11 )
call TriggerAddCondition( gg_trg_CheckpointPassed11_Copy, Condition( function Trig_CheckpointPassed11_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed11_Copy, function Trig_CheckpointPassed11_Copy_Actions )
endfunction
function Trig_CheckpointPassed12_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed12_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed12_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean11[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean12[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed12_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed12_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed12_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed12_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean12[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed12_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed12_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed12_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed12_Copy, gg_rct_Race1CheckPoint12 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed12_Copy, gg_rct_Race2CheckPoint12 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed12_Copy, gg_rct_Race3CheckPoint12 )
call TriggerAddCondition( gg_trg_CheckpointPassed12_Copy, Condition( function Trig_CheckpointPassed12_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed12_Copy, function Trig_CheckpointPassed12_Copy_Actions )
endfunction
function Trig_CheckpointPassed13_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed13_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed13_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean12[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean13[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed13_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed13_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed13_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed13_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean13[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed13_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed13_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed13_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed13_Copy, gg_rct_Race1CheckPoint13 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed13_Copy, gg_rct_Race2CheckPoint13 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed13_Copy, gg_rct_Race3CheckPoint13 )
call TriggerAddCondition( gg_trg_CheckpointPassed13_Copy, Condition( function Trig_CheckpointPassed13_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed13_Copy, function Trig_CheckpointPassed13_Copy_Actions )
endfunction
function Trig_CheckpointPassed14_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed14_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed14_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean13[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean14[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed14_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed14_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed14_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed14_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean14[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed14_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed14_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed14_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed14_Copy, gg_rct_Race1CheckPoint14 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed14_Copy, gg_rct_Race2CheckPoint14 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed14_Copy, gg_rct_Race3CheckPoint14 )
call TriggerAddCondition( gg_trg_CheckpointPassed14_Copy, Condition( function Trig_CheckpointPassed14_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed14_Copy, function Trig_CheckpointPassed14_Copy_Actions )
endfunction
function Trig_CheckpointPassed15_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed15_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed15_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean14[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean15[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed15_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed15_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed15_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed15_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean15[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed15_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed15_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed15_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed15_Copy, gg_rct_Race1CheckPoint15 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed15_Copy, gg_rct_Race2CheckPoint15 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed15_Copy, gg_rct_Race3CheckPoint15 )
call TriggerAddCondition( gg_trg_CheckpointPassed15_Copy, Condition( function Trig_CheckpointPassed15_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed15_Copy, function Trig_CheckpointPassed15_Copy_Actions )
endfunction
function Trig_CheckpointPassed16_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassed16_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassed16_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean15[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean16[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassed16_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassed16_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassed16_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassed16_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean16[GetForLoopIndexA()] = true
set udg_Lap2BooleanForImage[GetForLoopIndexA()] = true
set udg_Lap3BooleanForImage[GetForLoopIndexA()] = false
set udg_Lap4BooleanForImage[GetForLoopIndexA()] = false
set udg_Lap5BooleanForImage[GetForLoopIndexA()] = false
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
else
if ( Trig_CheckpointPassed16_Copy_Func003Func001Func004Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassed16_Copy takes nothing returns nothing
set gg_trg_CheckpointPassed16_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed16_Copy, gg_rct_Race1CheckPoint16 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed16_Copy, gg_rct_Race2CheckPoint16 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassed16_Copy, gg_rct_Race3CheckPoint16 )
call TriggerAddCondition( gg_trg_CheckpointPassed16_Copy, Condition( function Trig_CheckpointPassed16_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassed16_Copy, function Trig_CheckpointPassed16_Copy_Actions )
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h014' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'h015' ) ) then
return true
endif
return false
endfunction
function Trig_CheckpointPassedFINISH_Copy_Conditions takes nothing returns boolean
if ( not Trig_CheckpointPassedFINISH_Copy_Func004C() ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(19) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(18) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(17) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(16) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(15) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(14) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(13) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(12) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_LapInProgress[GetForLoopIndexA()] == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002C takes nothing returns boolean
if ( not ( udg_Lap3InSecondTotal[GetForLoopIndexA()] >= 10 ) ) then
return false
endif
if ( not ( udg_Lap3InSecondTotal[GetForLoopIndexA()] < 60.00 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap3InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021C takes nothing returns boolean
if ( not ( udg_Lap3InSecondTotal[GetForLoopIndexA()] < 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 2, 2)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001C takes nothing returns boolean
if ( not ( udg_Lap3InMinTotal[GetForLoopIndexA()] < 60 ) ) then
return false
endif
if ( not ( udg_Lap3InMinTotal[GetForLoopIndexA()] >= 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap3InMinTotal[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023C takes nothing returns boolean
if ( not ( udg_Lap3InMinTotal[GetForLoopIndexA()] < 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( udg_LapInProgress[GetForLoopIndexA()] == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 2, 2)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002C takes nothing returns boolean
if ( not ( udg_Lap2InSecondTotal[GetForLoopIndexA()] >= 10 ) ) then
return false
endif
if ( not ( udg_Lap2InSecondTotal[GetForLoopIndexA()] < 60.00 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 4, 4)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 3, 3)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_Lap2InSecondTotal[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021C takes nothing returns boolean
if ( not ( udg_Lap2InSecondTotal[GetForLoopIndexA()] < 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 2, 2)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001C takes nothing returns boolean
if ( not ( udg_Lap2InMinTotal[GetForLoopIndexA()] < 60 ) ) then
return false
endif
if ( not ( udg_Lap2InMinTotal[GetForLoopIndexA()] >= 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_Lap2InMinTotal[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023C takes nothing returns boolean
if ( not ( udg_Lap2InMinTotal[GetForLoopIndexA()] < 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001C takes nothing returns boolean
if ( not ( udg_LapInProgress[GetForLoopIndexA()] == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 5, 5)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(udg_Timer_String[GetForLoopIndexA()], 4, 4)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 2, 2)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002C takes nothing returns boolean
if ( not ( udg_SecondRealTimer[GetForLoopIndexA()] >= 10 ) ) then
return false
endif
if ( not ( udg_SecondRealTimer[GetForLoopIndexA()] < 60.00 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 4, 4)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 3, 3)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(R2S(udg_SecondRealTimer[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017C takes nothing returns boolean
if ( not ( udg_SecondRealTimer[GetForLoopIndexA()] < 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 2, 2)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001C takes nothing returns boolean
if ( not ( udg_MinIntegerTimer[GetForLoopIndexA()] < 60 ) ) then
return false
endif
if ( not ( udg_MinIntegerTimer[GetForLoopIndexA()] >= 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003C takes nothing returns boolean
if ( not ( S2I(SubStringBJ(I2S(udg_MinIntegerTimer[GetForLoopIndexA()]), 1, 1)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019C takes nothing returns boolean
if ( not ( udg_MinIntegerTimer[GetForLoopIndexA()] < 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005C takes nothing returns boolean
if ( not ( udg_LapInProgress[GetForLoopIndexA()] == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 20 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 19 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 18 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 17 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 16 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 15 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 14 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 13 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 12 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 11 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 10 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 9 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 8 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 7 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 6 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 5 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 4 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 3 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 2 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005C takes nothing returns boolean
if ( not ( GetForLoopIndexB() == 1 ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001C takes nothing returns boolean
if ( not ( udg_TotalCheckPointCul[GetForLoopIndexA()] > udg_PositionOfficialRace[GetForLoopIndexB()] ) ) then
return false
endif
if ( not ( udg_QUITLOOP[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_2_Func003Func001Func010C takes nothing returns boolean
if ( not ( udg_Lap2BooleanForImage[GetForLoopIndexA()] == true ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_2_Func003Func001Func011C takes nothing returns boolean
if ( not ( udg_Lap3BooleanForImage[GetForLoopIndexA()] == true ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_2_Func003Func001Func012C takes nothing returns boolean
if ( not ( udg_Lap4BooleanForImage[GetForLoopIndexA()] == true ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_2_Func003Func001Func013C takes nothing returns boolean
if ( not ( udg_Lap5BooleanForImage[GetForLoopIndexA()] == true ) ) then
return false
endif
return true
endfunction
function RaceDone takes nothing returns boolean
if ( not ( udg_RaceDone[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
//FINISH RACE QUESTTTTTTTTTTTTTTTTTTTTTTTTTTT
//FINISH RACE QUESTTTTTTTTTTTTTTTTTTTTTTTTTTT
function Trig_CheckpointPassedFINISH_Copy_Func003Func001C takes nothing returns boolean
if ( not ( GetEnteringUnit() == udg_Carts[GetForLoopIndexA()] ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean16[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_PasserleCheckPointBoolean17[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_CheckpointPassedFINISH_Copy_Actions takes nothing returns nothing
local integer nPlayerIndex = 0
if ( Trig_CheckpointPassedFINISH_Copy_Func002C() ) then
set nPlayerIndex= 0
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001C() ) then
set nPlayerIndex= 1
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001C() ) then
set nPlayerIndex= 2
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001C() ) then
set nPlayerIndex= 3
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001C() ) then
set nPlayerIndex= 4
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 5
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 6
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 7
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 8
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 9
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 10
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 11
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 12
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 13
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 14
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 15
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 16
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 17
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 18
else
if ( Trig_CheckpointPassedFINISH_Copy_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set nPlayerIndex= 19
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex = nPlayerIndex
set bj_forLoopAIndexEnd = nPlayerIndex
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean17[GetForLoopIndexA()] = true
set udg_TotalCheckPointCul[GetForLoopIndexA()] = ( udg_TotalCheckPointCul[GetForLoopIndexA()] + 1 )
// THIS IS LAP TIME AND FINISH UPDATE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005C() ) then
set udg_LapInProgress[GetForLoopIndexA()] = ( udg_LapInProgress[GetForLoopIndexA()] + 1 )
//call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1107" )
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
set TitleLapTop.texture = "war3mapImported\\Lap2v1.tga"
set TitleLapRow2Top.visible = true
set TimeStringRow2Case0.visible = true
set TimeStringRow2Case00.visible = true
set TimeStringRow2Case00i.visible = true
set TimeStringRow2Case00i0.visible = true
set TimeStringRow2Case00i00.visible = true
set TimeStringRow2Case00i00i.visible = true
set TimeStringRow2Case00i00i0.visible = true
set TimeStringRow2Case00i00i00.visible = true
call PlaySoundOnUnitBJ( gg_snd_LapSoundNewv1, 100, udg_Carts[GetForLoopIndexA()] )
// CHECK SECOND + MILLISECOND ENGINE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017C() ) then
// MILLISECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func004Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
// SECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002C() ) then
// MILLISECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00i0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
// SECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func017Func002Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00i0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
endif
// CHECK MIN ENGINE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019C() ) then
// MIN CASE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001C() ) then
// MIN CASE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func019Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow2Case00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
endif
// SAVE THE LAP TIME
set udg_TOTALTIMERYET_afterlap1[GetForLoopIndexA()] = udg_TOTALTIMERYET[GetForLoopIndexA()]
set udg_Lap1InSecondTotal[GetForLoopIndexA()] = udg_SecondRealTimer[GetForLoopIndexA()]
set udg_Lap1InMinTotal[GetForLoopIndexA()] = udg_MinIntegerTimer[GetForLoopIndexA()]
//set udg_Lap2BooleanForImage[GetForLoopIndexA()] = true
//set udg_Lap3BooleanForImage[GetForLoopIndexA()] = false
//set udg_Lap4BooleanForImage[GetForLoopIndexA()] = false
//set udg_Lap5BooleanForImage[GetForLoopIndexA()] = false
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001C() ) then
set udg_LapInProgress[GetForLoopIndexA()] = ( udg_LapInProgress[GetForLoopIndexA()] + 1 )
//call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1106" )
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
set TitleLapTop.texture = "war3mapImported\\Lap3v1.tga"
set TitleLapRow3Top.visible = true
set TimeStringRow3Case0.visible = true
set TimeStringRow3Case00.visible = true
set TimeStringRow3Case00i.visible = true
set TimeStringRow3Case00i0.visible = true
set TimeStringRow3Case00i00.visible = true
set TimeStringRow3Case00i00i.visible = true
set TimeStringRow3Case00i00i0.visible = true
set TimeStringRow3Case00i00i00.visible = true
call PlaySoundOnUnitBJ( gg_snd_LapSoundNewv1, 100, udg_Carts[GetForLoopIndexA()] )
// Calculate the lap only Extract from total lap
set udg_TOTALTIMERYET_XXXX[GetForLoopIndexA()] = ( udg_TOTALTIMERYET[GetForLoopIndexA()] - udg_TOTALTIMERYET_afterlap1[GetForLoopIndexA()] )
set udg_Lap2InSecondTotal[GetForLoopIndexA()] = ModuloReal(udg_TOTALTIMERYET_XXXX[GetForLoopIndexA()], 60.00)
set udg_Lap2InMinTotal[GetForLoopIndexA()] = R2I(( udg_TOTALTIMERYET_XXXX[GetForLoopIndexA()] / 60.00 ))
set udg_TOTALTIMERYET_afterlap2[GetForLoopIndexA()] = udg_TOTALTIMERYET[GetForLoopIndexA()]
// CHECK SECOND + MILLISECOND ENGINE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021C() ) then
// MILLISECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
// SECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002C() ) then
// MILLISECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00i00i0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
// SECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func005Func001Func002Func002Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func021Func002Func006Func001Func002Func002Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow3Case00i0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
endif
// CHECK MIN ENGINE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023C() ) then
// MIN CASE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001C() ) then
// MIN CASE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func023Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow3Case00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
endif
// SAVE THE LAP TIME
//set udg_Lap2BooleanForImage[GetForLoopIndexA()] = false
//set udg_Lap3BooleanForImage[GetForLoopIndexA()] = true
//set udg_Lap4BooleanForImage[GetForLoopIndexA()] = false
//set udg_Lap5BooleanForImage[GetForLoopIndexA()] = false
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001C() ) then
set udg_LapInProgress[GetForLoopIndexA()] = ( udg_LapInProgress[GetForLoopIndexA()] + 1 )
//call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1105" )
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
set TitleLapTop.texture = "war3mapImported\\FInallapv1.tga"
set TitleLapRow4Top.visible = true
set TimeStringRow4Case0.visible = true
set TimeStringRow4Case00.visible = true
set TimeStringRow4Case00i.visible = true
set TimeStringRow4Case00i0.visible = true
set TimeStringRow4Case00i00.visible = true
set TimeStringRow4Case00i00i.visible = true
set TimeStringRow4Case00i00i0.visible = true
set TimeStringRow4Case00i00i00.visible = true
call PlaySoundOnUnitBJ( gg_snd_FInalLapSound, 100, udg_Carts[GetForLoopIndexA()] )
call PlaySoundBJ( gg_snd_AnnouncerFinalLap01 )
// Calculate the lap only Extract from total lap
set udg_TOTALTIMERYET_XXXX[GetForLoopIndexA()] = ( udg_TOTALTIMERYET[GetForLoopIndexA()] - udg_TOTALTIMERYET_afterlap2[GetForLoopIndexA()] )
set udg_Lap3InSecondTotal[GetForLoopIndexA()] = ModuloReal(udg_TOTALTIMERYET_XXXX[GetForLoopIndexA()], 60.00)
set udg_Lap3InMinTotal[GetForLoopIndexA()] = R2I(( udg_TOTALTIMERYET_XXXX[GetForLoopIndexA()] / 60.00 ))
set udg_TOTALTIMERYET_afterlap3[GetForLoopIndexA()] = udg_TOTALTIMERYET[GetForLoopIndexA()]
// CHECK SECOND + MILLISECOND ENGINE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021C() ) then
// MILLISECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func003Func001Func002Func002Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func004Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
// SECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002C() ) then
// MILLISECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00i0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
// SECOND
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func021Func002Func006Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00i0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
endif
// CHECK MIN ENGINE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023C() ) then
// MIN CASE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001C() ) then
// MIN CASE
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set TimeStringRow4Case0.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\0_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\1_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\2_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\3_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\4_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\5_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\6_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\7_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\8_v1.tga"
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func023Func001Func003Func001Func002Func002Func002Func002Func002Func002Func002Func002C() ) then
set TimeStringRow4Case00.texture = "war3mapImported\\9_v1.tga"
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
endif
// SAVE THE LAP TIME
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func005Func001Func001Func001C() ) then
set udg_LapInProgress[GetForLoopIndexA()] = ( udg_LapInProgress[GetForLoopIndexA()] + 1 )
//call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1104" )
// SAVE THE LAP TIME
set udg_TOTALTIMERYET_afterlapFinal[GetForLoopIndexA()] = ( udg_TOTALTIMERYET[GetForLoopIndexA()] - udg_TOTALTIMERYET_afterlap3[GetForLoopIndexA()] )
set udg_FULLRACEInTotalMINandSEC[GetForLoopIndexA()] = udg_TOTALTIMERYET[GetForLoopIndexA()]
set udg_FInalLapInSecondTotal[GetForLoopIndexA()] = udg_SecondRealTimer[GetForLoopIndexA()]
set udg_FinalLapInMinTotal[GetForLoopIndexA()] = udg_MinIntegerTimer[GetForLoopIndexA()]
call PauseTimerBJ( true, udg_Timer_GlobalTimerRace[GetForLoopIndexA()] )
set udg_StopRaceTimerLoop[GetForLoopIndexA()] = true
//SOUND EFFET
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
call PlaySoundOnUnitBJ( gg_snd_LApFinishFirstv2, 100, udg_Carts[GetForLoopIndexA()] )
endif
else
endif
endif
endif
endif
// THIS IS POSITION UPDATE
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 20
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
//call DisplayTextToForce( GetPlayersAll(), "POSITIONNNNNNNNNNNNNNNNNNNNNNNNNUPDAE" )
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001C() ) then
set udg_QUITLOOP[GetForLoopIndexA()] = true
set udg_PositionOfficialRace[GetForLoopIndexB()] = udg_TotalCheckPointCul[GetForLoopIndexA()]
set udg_CartPostionSingle[GetForLoopIndexA()] = GetForLoopIndexB()
if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\1st_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\1st_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 1
set udg_OfficialPlayerPosition1 = GetForLoopIndexB()
//call DisplayTextToForce( GetPlayersAll(), I2S(udg_OfficialPlayerPosition1) )
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\2nd_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\2nd_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 2
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\3rd_v3.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\3rd_v3"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 3
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\4th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\4th_v2"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 4
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\5th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\5th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 5
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\6th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\6th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 6
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\7th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\7th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 7
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\8th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\8th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 8
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\9th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\9th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 9
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\10th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\10th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 10
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\11th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\11th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 11
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\12th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\12th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 12
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\13th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\13th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 13
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\14th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\14th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 14
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\15th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\15th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 15
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\16th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\16th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 16
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\17th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\17th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 17
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\18th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\18th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 18
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\19th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\19th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 19
endif
else
if ( Trig_CheckpointPassedFINISH_Copy_Func003Func001Func007Func001Func005Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set PositionFrameTopPlayer1.texture = "war3mapImported\\20th_v2.tga"
if ( RaceDone() ) then
set PositionEndUiPosition.texture = "war3mapImported\\20th_v2.tga"
set udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()] = 20
endif
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set udg_PasserleCheckPointBoolean1[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean2[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean3[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean4[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean5[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean6[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean7[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean8[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean9[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean10[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean11[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean12[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean13[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean14[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean15[GetForLoopIndexA()] = false
set udg_PasserleCheckPointBoolean16[GetForLoopIndexA()] = false
//call DisplayTextToForce( GetPlayersAll(), I2S(udg_OFFICIAL_FINISH_POS[GetForLoopIndexA()]) )
else
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
// PUT TEST UI HERE
// if ( Trig_CheckpointPassedFINISH_Copy_2_Func003Func001Func010C() ) then
// if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
// set LapMiddleUi.texture = "war3mapImported\\Lap2Image.tga"
// set LapMiddleUi.visible = true
// call PolledWait( 3.00 )
// set LapMiddleUi.visible = false
//endif
// else
// endif
// if ( Trig_CheckpointPassedFINISH_Copy_2_Func003Func001Func011C() ) then
//call DisplayTextToForce( GetPlayersAll(), "SONS2" )
// if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
// set LapMiddleUi.texture = "war3mapImported\\Lap3Image.tga"
// set LapMiddleUi.visible = true
// call PolledWait( 3.00 )
// set LapMiddleUi.visible = false
// endif
// else
// endif
// if ( Trig_CheckpointPassedFINISH_Copy_2_Func003Func001Func012C() ) then
//call DisplayTextToForce( GetPlayersAll(), "SONS3" )
// if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
// set LapMiddleUi.texture = "war3mapImported\\Lap4Image.tga"
// set LapMiddleUi.visible = true
// call PolledWait( 3.00 )
// set LapMiddleUi.visible = false
// endif
// else
// endif
// if ( Trig_CheckpointPassedFINISH_Copy_2_Func003Func001Func013C() ) then
// if ( GetOwningPlayer(GetEnteringUnit()) == GetLocalPlayer()) then
// set LapMiddleUi.texture = "war3mapImported\\FinishImage.tga"
// set LapMiddleUi.visible = true
// call PolledWait( 3.00 )
// set LapMiddleUi.visible = false
// endif
// else
// endif
// else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_CheckpointPassedFINISH_Copy takes nothing returns nothing
set gg_trg_CheckpointPassedFINISH_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassedFINISH_Copy, gg_rct_LINEENDCHECKPOINT )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassedFINISH_Copy, gg_rct_LINEENDCHECKPOINT2 )
// call TriggerRegisterEnterRectSimple( gg_trg_CheckpointPassedFINISH_Copy, gg_rct_LINEENDCHECKPOINT3 )
call TriggerAddCondition( gg_trg_CheckpointPassedFINISH_Copy, Condition( function Trig_CheckpointPassedFINISH_Copy_Conditions ) )
call TriggerAddAction( gg_trg_CheckpointPassedFINISH_Copy, function Trig_CheckpointPassedFINISH_Copy_Actions )
endfunction
function Trig_TurtleGreenSHOT1_Copy_Actions takes nothing returns nothing
call StartTimerBJ( udg_Timer_Multiturtle[0], false, 3.00 )
endfunction
//===========================================================================
function InitTrig_TurtleGreenSHOT1_Copy takes nothing returns nothing
set gg_trg_TurtleGreenSHOT1_Copy = CreateTrigger( )
call TriggerAddAction( gg_trg_TurtleGreenSHOT1_Copy, function Trig_TurtleGreenSHOT1_Copy_Actions )
endfunction
function Trig_gametexttest_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1030" )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1031" )
endfunction
//===========================================================================
function InitTrig_gametexttest takes nothing returns nothing
set gg_trg_gametexttest = CreateTrigger( )
call TriggerAddAction( gg_trg_gametexttest, function Trig_gametexttest_Actions )
endfunction
function Trig_redbox_Copy_2_Actions takes nothing returns nothing
call GroupAddUnitSimple( udg_Carts[2], udg_GhostKartVar_group[1] )
endfunction
//===========================================================================
function InitTrig_redbox_Copy_2 takes nothing returns nothing
set gg_trg_redbox_Copy_2 = CreateTrigger( )
call TriggerAddAction( gg_trg_redbox_Copy_2, function Trig_redbox_Copy_2_Actions )
endfunction
function Trig_Randomnumbersdasd_Actions takes nothing returns nothing
call StartTimerBJ( udg_Ai_Timer_usespell[0], false, GetRandomReal(3.00, 30.00) )
endfunction
//===========================================================================
function InitTrig_Randomnumbersdasd takes nothing returns nothing
set gg_trg_Randomnumbersdasd = CreateTrigger( )
call TriggerAddAction( gg_trg_Randomnumbersdasd, function Trig_Randomnumbersdasd_Actions )
endfunction
function CheckifBoss takes nothing returns boolean
if ( not ( udg_ActivesPLayers[0] == false ) ) then
return false
endif
return true
endfunction
function ImTraped2 takes integer nPlayerIndex returns boolean
if ( not ( udg_ImTraped[nPlayerIndex] == false ) ) then
return false
endif
return true
endfunction
function CheckAutoAiGrab1 takes integer nPlayerIndex returns boolean
if ( not ( udg_AUTO_AI_START[nPlayerIndex] == false ) ) then
return false
endif
return true
endfunction
function CHeckProgressQ1 takes nothing returns boolean
if ( not ( udg_StringRace1Progress == "10" ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] <= 0 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck1 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] <= 1 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck2 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] == 2 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck3 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] == 3 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck4 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] == 4 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck5 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] == 5 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck6 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] == 6 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck7 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] == 7 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck8 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] == 8 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck9 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] == 9 ) ) then
return false
endif
return true
endfunction
function NumberGreenTurtleCheck10 takes integer nPlayerIndex returns boolean
if ( not ( udg_NUMBER_TURTLE_LEFT[nPlayerIndex] == 10 ) ) then
return false
endif
return true
endfunction
//function MultiturtleCds takes integer nPlayerIndex returns boolean
// return ( udg_MultiTurtleCDs_Boolean[nPlayerIndex] == false )
//endfunction
function Cutsceneactivated takes integer nPlayerIndex returns boolean
return ( udg_CutSceneActivated[0] == false )
endfunction
function Quest1isdone takes integer nPlayerIndex returns boolean
return ( udg_Quest1isdone[0] == false )
endfunction
function RedBoxCheck takes integer nPlayerIndex returns boolean
return ( udg_JesuisRedBoxMissileBoolean[nPlayerIndex] == true )
endfunction
function BlueBoxCheck takes integer nPlayerIndex returns boolean
return ( udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] == true )
endfunction
function GreenBoxCheck takes integer nPlayerIndex returns boolean
return ( udg_JesuisGreenBoxMineBoolean[nPlayerIndex] == true )
endfunction
function OnlyP1canQuest takes integer nPlayerIndex returns boolean
return ( udg_QuestworkP1Only[nPlayerIndex] == true )
endfunction
function SkillNumberCheck0 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 0 )
endfunction
function SkillNumberCheck1 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 1 )
endfunction
function SkillNumberCheck2 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 2 )
endfunction
function SkillNumberCheck3 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 3 )
endfunction
function SkillNumberCheck4 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] < 4 )
endfunction
function SkillNumberCheck5 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 4 )
endfunction
function SkillNumberCheck6 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 5 )
endfunction
function SkillNumberCheck7 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 6 )
endfunction
function SkillNumberCheck8 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] < 7 )
endfunction
function SkillNumberCheck9 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 7 )
endfunction
function SkillNumberCheck10 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 8 )
endfunction
function SkillNumberCheck11 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] == 9 )
endfunction
function SkillNumberCheck12 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] >= 4 )
endfunction
function SkillNumberCheck13 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] <= 6 )
endfunction
function SkillNumberCheck14 takes integer nPlayerIndex returns boolean
return ( udg_SkillNumber_integer[nPlayerIndex] > 6 )
endfunction
function StopCart takes integer nPlayerIndex returns nothing
set udg_Speed[nPlayerIndex] = 0
set udg_TurnSpeed[nPlayerIndex] = 0
if ( udg_CartPrePos[nPlayerIndex] != null ) then
call RemoveLocation( udg_CartPrePos[nPlayerIndex] )
endif
set udg_CartPrePos[nPlayerIndex] = GetUnitLoc( udg_Carts[nPlayerIndex] )
endfunction
function CameraBoost takes integer nPlayerIndex returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_CamBoost1,Player(nPlayerIndex), 0.8 )
call PolledWait( 1.2 )
call CameraSetupApplyForPlayer( true, gg_cam_CamBoost2,Player(nPlayerIndex), 1.2 )
call PolledWait( 1.6 )
call CameraSetupApplyForPlayer( true, gg_cam_normalviewegod,Player(nPlayerIndex), 1.2 )
endfunction
function GetCartPowerUpAddress takes integer nPlayerIndex returns integer
return nPlayerIndex * 4
endfunction
function GetCartSlotPowerUp takes integer nPlayerIndex, integer nSlot returns integer
return udg_CartPowerUps[ GetCartPowerUpAddress(nPlayerIndex) + nSlot ]
endfunction
function IsCartSlotEmpty takes integer nPlayerIndex, integer nSlot returns boolean
return GetCartSlotPowerUp(nPlayerIndex, nSlot) == 0
endfunction
function SetCartSlotPowerUp takes integer nPlayerIndex, integer nSlot, integer nType returns nothing
set udg_CartPowerUps[ GetCartPowerUpAddress(nPlayerIndex) + nSlot ] = nType
endfunction
function AddCartSlotPowerUp takes integer nPlayerIndex, integer nSlot, integer nType returns nothing
if ( not IsCartSlotEmpty(nPlayerIndex, nSlot) ) then
return
endif
call SetCartSlotPowerUp(nPlayerIndex, nSlot, nType )
set udg_CartItemNum[nPlayerIndex] = udg_CartItemNum[nPlayerIndex] + 1
endfunction
function RemoveCartSlotPowerUp takes integer nPlayerIndex, integer nSlot returns nothing
if ( IsCartSlotEmpty(nPlayerIndex, nSlot) ) then
return
endif
call SetCartSlotPowerUp(nPlayerIndex, nSlot, 0 )
set udg_CartItemNum[nPlayerIndex] = udg_CartItemNum[nPlayerIndex] - 1
endfunction
function CheckItemPickFilter takes nothing returns boolean
local integer nType = 0
local integer nIndex = 0
if ( IsUnitDeadBJ(GetFilterUnit()) ) then
return false
endif
set nType = GetUnitTypeId( GetFilterUnit() )
//THIS IS WHERE I PUT ALL MY COLISION ID (ITEMS WITH SNOWMAN, ETC) Recherche by ID type (n00L)
loop
exitwhen nIndex >= udg_PowerUpUnitTypeNum
if ( nType == udg_PowerUpUnitTypes[nIndex] ) then
return true
endif
if ( nType == 'nshe' or nType == 'n00L' ) then
return true
endif
set nIndex = nIndex + 1
endloop
return false
endfunction
function PowerUpDice takes integer nDiceType returns integer
local integer nIndex = 0
local integer nIndex1 = 0
local integer nTotal = 0
local integer nDice = 0
set nIndex = 0
set nIndex1 = nDiceType - 1
set nTotal = 0
loop
exitwhen nIndex >= udg_PowerUpTypeNum
set nTotal = nTotal + udg_PowerUpPickChance[nIndex1]
set nIndex = nIndex + 1
set nIndex1 = nIndex1 + 3
endloop
set nDice = GetRandomInt( 1, nTotal )
set nIndex = 0
set nIndex1 = nDiceType - 1
set nTotal = 0
loop
exitwhen nIndex > udg_PowerUpTypeNum
set nTotal = nTotal + udg_PowerUpPickChance[nIndex1]
if ( udg_PowerUpPickChance[nIndex1] > 0 and nDice <= nTotal ) then
return nIndex
endif
set nIndex = nIndex + 1
set nIndex1 = nIndex1 + 3
endloop
return -1
endfunction
function PickItem takes integer nPlayerIndex, unit uItem returns boolean
local integer n = 0
local integer nIndex = 0
local effect effPicking = null
local location loc = null
local integer nPlace
local integer nDiceType = 0
// if ( udg_CartItemNum[nPlayerIndex] >= 4 ) then
// return false
// endif
// if ( udg_ItsForDebug ) then
// set n = 10
// else
// set nPlace = 10
//
// if ( udg_PlaceNum <= 4 ) then
// if ( nPlace == 0 ) then
// set nDiceType = 1
// elseif ( nPlace == udg_PlaceNum - 1 ) then
// set nDiceType = 3
// else
// set nDiceType = 2
// endif
// else
// if ( nPlace <= 1 ) then
// set nDiceType = 1
// elseif ( nPlace >= udg_PlaceNum - 2 ) then
// set nDiceType = 3
// else
// set nDiceType = 2
// endif
// endif
//
// set n = PowerUpDice( nDiceType )
// if ( n < 0 ) then
// return false
// endif
// endif
// set nIndex = 0
// loop
// exitwhen nIndex >= 1
// if ( IsCartSlotEmpty( nPlayerIndex, nIndex ) ) then
// exitwhen true
// endif
//
// set nIndex = nIndex + 1
// call DisplayTextToForce( GetPlayersAll(), I2S(nIndex) )
// endloop
// if ( nIndex >= 1 ) then
// set nIndex = nIndex + 1
// return false
// endif
//NOOTHING = 0
//BOOST n1 = 1
//BOOST n2 = 2
//BOOST n3 = 3
//TURTLE N1 = 4
//TURTLE N2 = 5
//TURTLE N3 = 6
//NET N1 = 7
//NET N2 = 8
//NET N3 = 9
//call DisplayTextToForce( GetPlayersAll(), "222222222222" )
// call DisplayTextToForce( GetPlayersAll(), I2S(nIndex) )
//call DisplayTextToForce( GetPlayersAll(), "PICK ITEM ENTER" )
call AddCartSlotPowerUp( nPlayerIndex, 4, GetPowerUpType( n, nIndex ) )
if ( RedBoxCheck(nPlayerIndex) ) then
if ( SkillNumberCheck0(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 1
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 0, nIndex ) )
set udg_JesuisRedBoxMissileBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_BoostN1v1.tga"
endif
elseif ( SkillNumberCheck1(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 2
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 1, nIndex ) )
set udg_JesuisRedBoxMissileBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_BoostN2v1.tga"
endif
elseif ( SkillNumberCheck2(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 3
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 2, nIndex ) )
set udg_JesuisRedBoxMissileBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_BoostN3v1.tga"
endif
elseif ( SkillNumberCheck3(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 3
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 2, nIndex ) )
set udg_JesuisRedBoxMissileBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_BoostN3v1.tga"
endif
elseif ( SkillNumberCheck12(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 1
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 0, nIndex ) )
set udg_JesuisRedBoxMissileBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_BoostN1v1.tga"
endif
endif
elseif ( BlueBoxCheck(nPlayerIndex) ) then
if ( SkillNumberCheck4(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 4
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 3, nIndex ) )
set udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleVERTEv2.tga"
endif
elseif ( SkillNumberCheck5(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 5
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 4, nIndex ) )
set udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_Q_coquilleROUGEv2.tga"
endif
elseif ( SkillNumberCheck6(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 6
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 5, nIndex ) )
set udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_10v2.tga"
endif
elseif ( SkillNumberCheck7(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 6
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 5, nIndex ) )
set udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] = false
//MULTI-VERTE CHECK WHERE I AM WITH NUMBER CHANGE UI IN CONSEQUENCE
//CHECK ON NUMBER OF MISSILE LEFT
if ( NumberGreenTurtleCheck10(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_10v2.tga"
endif
else
if ( NumberGreenTurtleCheck9(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_9v2.tga"
endif
else
if ( NumberGreenTurtleCheck8(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_8v2.tga"
endif
else
if ( NumberGreenTurtleCheck7(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_7v2.tga"
endif
else
if ( NumberGreenTurtleCheck6(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_6v2.tga"
endif
else
if ( NumberGreenTurtleCheck5(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_5v2.tga"
endif
else
if ( NumberGreenTurtleCheck4(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_4v2.tga"
endif
else
if ( NumberGreenTurtleCheck3(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_3v2.tga"
endif
else
if ( NumberGreenTurtleCheck2(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_2v2.tga"
endif
else
if ( NumberGreenTurtleCheck1(nPlayerIndex) ) then
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_1v2.tga"
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
//ENDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD//////////////////
elseif ( SkillNumberCheck4(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 4
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 3, nIndex ) )
set udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleVERTEv2.tga"
endif
elseif ( SkillNumberCheck14(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 4
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 3, nIndex ) )
set udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleVERTEv2.tga"
endif
endif
elseif ( GreenBoxCheck(nPlayerIndex) ) then
//call DisplayTextToForce( GetPlayersAll(), "PICK ITEM JE SUIS UN BLOCK VERT" )
if ( SkillNumberCheck8(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 7
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 6, nIndex ) )
set udg_JesuisGreenBoxMineBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_Giftv1.tga"
endif
elseif ( SkillNumberCheck9(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 8
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 7, nIndex ) )
set udg_JesuisGreenBoxMineBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleWebv1.tga"
endif
elseif ( SkillNumberCheck10(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 9
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 8, nIndex ) )
set udg_JesuisGreenBoxMineBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_FrostNovav1.tga"
endif
elseif ( SkillNumberCheck11(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 9
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 8, nIndex ) )
set udg_JesuisGreenBoxMineBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_FrostNovav1.tga"
endif
elseif ( SkillNumberCheck13(nPlayerIndex) ) then
set udg_SkillNumber_integer[nPlayerIndex] = 7
call UnitAddAbility( udg_Carts[nPlayerIndex], GetPowerUpType( 6, nIndex ) )
set udg_JesuisGreenBoxMineBoolean[nPlayerIndex] = false
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_Giftv1.tga"
endif
endif
endif
//call ShowPowerUpMsgPlayer( Player(nPlayerIndex), "You picked up " + udg_PowerUpNames[n] + "." )
call StartTimerBJ( udg_Ai_Timer_usespell[nPlayerIndex], false, GetRandomReal(1.00, 5.00) )
set loc = GetUnitLoc( uItem )
set effPicking = AddSpecialEffectLoc( "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl", loc)
call RemoveLocation( loc )
call DestroyEffect( effPicking )
set effPicking = AddSpecialEffectTarget( "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl", udg_Carts[nPlayerIndex], "origin" )
call DestroyEffect( effPicking )
return true
endfunction
function CreateAssistant takes integer nPlayerIndex, real rLifeLength returns unit
local location loc = GetRectCenter( gg_rct_AssistantArea )
local unit uAssistant = CreateUnitAtLoc( Player(nPlayerIndex), 'n005', loc, 0 )
call SetUnitPathing( uAssistant, false )
call UnitApplyTimedLife( uAssistant, 'BTLF', rLifeLength )
call RemoveLocation( loc )
return uAssistant
endfunction
function CreateAssistant1 takes integer nPlayerIndex, real rLifeLength returns unit
local location loc = GetRectCenter( gg_rct_AssistantArea )
local unit uAssistant = CreateUnitAtLoc( Player(nPlayerIndex), 'n00I', loc, 0 )
call SetUnitPathing( uAssistant, false )
call UnitApplyTimedLife( uAssistant, 'BTLF', rLifeLength )
call RemoveLocation( loc )
return uAssistant
endfunction
function ItemPicked takes integer nPlayerIndex, unit uItem returns nothing
local integer nType = GetUnitTypeId( uItem )
local unit uAssistant = null
local boolean bInside = false
local boolean bPicked = false
local boolean bUsed = false
local location loc = null
local location locCart = null
local real rAngle = 0
local real rDistance = 0
local unit uDumy = null
local effect effSnowManDeath = null
local unit uBlaze = null
local unit uBlaze2 = null
local unit uBlaze3 = null
local location loc1 = null
local location loc2 = null
local group grp = null
local unit uCart = null
local integer nBlazeFlag = 0
local integer nBlazeFlag2 = 0
set loc = GetUnitLoc( uItem )
set locCart = GetUnitLoc( udg_Carts[nPlayerIndex] )
set rDistance = DistanceBetweenPoints( loc, locCart )
set rAngle = RAbsBJ( StandardAngle( AngleBetweenPoints( locCart, loc ) - udg_Angle[nPlayerIndex] ) )
call RemoveLocation( loc )
call RemoveLocation( locCart )
call ShowDebugMsg( "Distance = " + R2SW(rDistance, 1, 1) )
call ShowDebugMsg( "Angle = " + R2SW(rAngle, 1, 1) )
call ShowDebugMsg( "DisH = " + R2SW(rDistance * SinBJ( rAngle ), 1, 1) )
call ShowDebugMsg( "DisV = " + R2SW(rDistance * CosBJ( rAngle ), 1, 1) )
// if ( rDistance * SinBJ( rAngle ) >= 100 ) then
// return
// endif
// if ( rAngle < 90 ) then
// if ( rDistance * CosBJ( rAngle ) >= 175 ) then
// return
// endif
// endif
//call DisplayTextToForce( GetPlayersAll(), "rentre dans le trigger" )
if ( nType == 'n003' ) then //mushroom
if ( not UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'Buhf' ) ) then
set udg_BoostActivateNumber[nPlayerIndex] = 1
set uAssistant = CreateAssistant( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "unholyfrenzy", udg_Carts[nPlayerIndex] )
endif
set rAngle = udg_Angle[nPlayerIndex]
if ( udg_Speed[nPlayerIndex] >= 0 ) then
set rAngle = rAngle + 180
endif
//StartSpecialeffect (choisi boost 1-2-3 ou 4)
set udg_PlayerBlazeFlag[nPlayerIndex] = udg_PlayerBlazeFlag[nPlayerIndex] + 1
set nBlazeFlag = udg_PlayerBlazeFlag[nPlayerIndex]
//SOUND EFFECT BOOST
call PlaySoundOnUnitBJ( gg_snd_BoostSound2v2, 80, udg_Carts[nPlayerIndex] )
call PolledWait( 2.8 )
if ( udg_PlayerBlazeFlag[nPlayerIndex] == nBlazeFlag ) then
set udg_PlayerBlazeFlag[nPlayerIndex] = 0
endif
elseif ( nType == 'n00C' ) then //random power up
call UnitRemoveAbilityBJ( 'A01P', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02C', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02D', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A00C', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02A', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02B', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A01I', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02E', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02G', udg_Carts[nPlayerIndex] )
call RemoveCartSlotPowerUp( nPlayerIndex, 4 )
set udg_JesuisRedBoxMissileBoolean[nPlayerIndex] = true
set udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] = false
set udg_JesuisGreenBoxMineBoolean[nPlayerIndex] = false
set bPicked = PickItem( nPlayerIndex, uItem )
elseif ( nType == 'n00V' ) then //random power up
if ( NumberGreenTurtleCheck(nPlayerIndex) ) then
set udg_NUMBER_TURTLE_LEFT[nPlayerIndex] = 10
endif
call UnitRemoveAbilityBJ( 'A01P', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02C', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02D', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A00C', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02A', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02B', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A01I', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02E', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02G', udg_Carts[nPlayerIndex] )
call RemoveCartSlotPowerUp( nPlayerIndex, 4 )
set udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] = true
set udg_JesuisRedBoxMissileBoolean[nPlayerIndex] = false
set udg_JesuisGreenBoxMineBoolean[nPlayerIndex] = false
set bPicked = PickItem( nPlayerIndex, uItem )
elseif ( nType == 'n00W' ) then //random power up
// call DisplayTextToForce( GetPlayersAll(), "BlocVErt" )
call UnitRemoveAbilityBJ( 'A01P', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02C', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02D', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A00C', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02A', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02B', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A01I', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02E', udg_Carts[nPlayerIndex] )
call UnitRemoveAbilityBJ( 'A02G', udg_Carts[nPlayerIndex] )
call RemoveCartSlotPowerUp( nPlayerIndex, 4 )
set udg_JesuisGreenBoxMineBoolean[nPlayerIndex] = true
set udg_JesuisRedBoxMissileBoolean[nPlayerIndex] = false
set udg_JesuisBlueBoxBoostBoolean[nPlayerIndex] = false
set bPicked = PickItem( nPlayerIndex, uItem )
//CRYSTALL STUFF
elseif ( nType == 'n011' ) then
if ( CheckAutoAiGrab1(nPlayerIndex) ) then
set udg_CrystalTotalGrabed = ( udg_CrystalTotalGrabed + 1 )
call PlaySoundAtPointBJ( gg_snd_QuestLog, 100, GetUnitLoc(uItem), 0 )
call KillUnit( uItem )
call RemoveUnit( uItem )
call RemoveLocation( loc )
call ConditionalTriggerExecute( gg_trg_CheckCrystalui )
else
endif
elseif ( nType == 'Npbm' ) then
if ( OnlyP1canQuest(nPlayerIndex) ) then
if ( Quest1isdone(0) ) then
if ( Cutsceneactivated(0) ) then
call StartTimerBJ( udg_TimerCutsceneReset[0], false, 25.00 )
set udg_CutSceneActivated[0] = true
//call DisplayTextToForce( GetPlayersAll(), "HELLO PANDA" )
// call ConditionalTriggerExecute( gg_trg_cutcamZOOMNPC ) //Panda
endif
endif
endif
//SPamSpecialEffectbackkart
// call DisplayTextToForce( GetPlayersAll(), "Avent PoisonSMoke" )
elseif ( nType == 'n002' ) then //poison smoke
if ( not UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'Bslo' ) and IsCartVulnerable(udg_Carts[nPlayerIndex]) ) then
set uAssistant = CreateAssistant( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "slow", udg_Carts[nPlayerIndex] )
set bUsed = true
endif
elseif ( nType == 'nshe' and udg_SheepFled ) then //Sheep
call KillUnit( uItem )
if ( IsCartVulnerable(udg_Carts[nPlayerIndex]) ) then
set uAssistant = CreateAssistant( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "slow", udg_Carts[nPlayerIndex] )
endif
elseif ( nType == 'n00L' ) then //Snowman
set loc = GetUnitLoc( uItem )
call KillUnit( uItem )
call StartTimerBJ( udg_ImFrozenTimer[nPlayerIndex], false, 1.20 )
set udg_ImFROZENv2[nPlayerIndex] = true
set effSnowManDeath = AddSpecialEffectLoc( "Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl", loc)
call RemoveLocation( loc )
call DestroyEffect( effSnowManDeath )
elseif ( nType == 'n00M' ) then //ICeChuck
if ( nPlayerIndex == 18 or nPlayerIndex == 19 or nPlayerIndex == 20) then
//donothing
elseif ( ImTraped2(nPlayerIndex) ) then
set loc = GetUnitLoc( uItem )
call PlaySoundOnUnitBJ( gg_snd_FreezingBreathTarget1, 100, udg_Carts[nPlayerIndex] )
call KillUnit( uItem )
set effSnowManDeath = AddSpecialEffectLoc( "Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl", loc)
set udg_FrozenEffect[nPlayerIndex] = AddSpecialEffectTarget( "Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathTargetArt.mdl", udg_Carts[nPlayerIndex], "origin" )
call StartTimerBJ( udg_ImTrapTimer[nPlayerIndex], false, 4.00 )
set udg_ImTraped[nPlayerIndex] = true
call RemoveLocation( loc )
call DestroyEffect( effSnowManDeath )
endif
// if ( not UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'B007' ) ) then
// if ( udg_Frozen[nPlayerIndex] ) then
// if ( udg_FrozenEffect[nPlayerIndex] != null ) then
// call DestroyEffect( udg_FrozenEffect[nPlayerIndex] )
// set udg_FrozenEffect[nPlayerIndex] = null
// endif
// set udg_Frozen[nPlayerIndex] = false
// call SetCartInvulnerable( udg_Carts[nPlayerIndex], false )
// set udg_IceTrunkCooldown[nPlayerIndex] = 0
// endif
// return false
// endif
// Haha, Frozen
// set udg_Frozen[nPlayerIndex] = true
// set udg_Speed[nPlayerIndex] = 0
// call SetUnitTimeScale( udg_Carts[nPlayerIndex], 1 )
// call SetCartInvulnerable( udg_Carts[nPlayerIndex], true )
//
// if ( udg_FrozenEffect[nPlayerIndex] == null ) then
// call PlaySoundOnUnitBJ( gg_snd_FreezingBreathTarget1, 100, udg_Carts[nPlayerIndex] )
// set udg_FrozenEffect[nPlayerIndex] = AddSpecialEffectTarget( "Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathTargetArt.mdl", udg_Carts[nPlayerIndex], "origin" )
// endif
//
// return true
//endfunction
elseif ( nType == 'n00Z' ) then
if ( OnlyP1canQuest(nPlayerIndex) ) then
set loc = GetUnitLoc( uItem )
call PlaySoundAtPointBJ( gg_snd_QuestLog, 100, GetUnitLoc(uItem), 0 )
call PlaySoundAtPointBJ( gg_snd_ReceiveGold, 100, GetUnitLoc(uItem), 0 )
call DestroyEffectBJ( udg_ExclamationUp_Goldcoin )
call KillUnit( uItem )
call RemoveUnit( uItem )
call RemoveLocation( loc )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_TestFloatingText), "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 5.00 )
set udg_ExclamationUpDoor1 = GetLastCreatedEffectBJ()
if ( CHeckProgressQ1() ) then
set udg_StringRace1Progress = "90"
set udg_GoldCoinTotal[0] = ( udg_GoldCoinTotal[0] + 1 )
set GoldCoinUiCorner.texture = "war3mapImported\\GoldCoin_1v2.tga"
//SAVING HERE
// call ConditionalTriggerExecute( gg_trg_SavingTest )
else
//call DisplayTextToForce( bj_FORCE_PLAYER[0], "TRIGSTR_1125" )
endif
//openzone
// call EnableTrigger( gg_trg_OpenDoor1ZoneEnter )
endif
endif
//Used to create a respawn event
if ( bUsed or bPicked ) then
//call DisplayTextToForce( GetPlayersAll(), "JE DETRUIT UN BLOCK" )
set loc = GetUnitLoc( uItem )
call RemoveUnit( uItem )
set uDumy = CreateUnitAtLoc( udg_NPC, 'n00K', loc, 0 )
call RemoveLocation( loc )
call SetUnitUserData( uDumy, nType )
call KillUnit( uDumy )
endif
endfunction
function CheckItemPick takes integer nPlayerIndex returns nothing
local location loc = null
local group g = null
local unit uItem = null
local real rSpeed
local real rRange
if ( nPlayerIndex < 0 ) then
return
endif
// NOT SURE I REMOVE THIS THINKING ITS A BUG FROM ITEM PICK WITH PLAYER TEST ONLINE
if ( udg_Carts[nPlayerIndex] == null or IsUnitDeadBJ( udg_Carts[nPlayerIndex] ) ) then
return
endif
set loc = GetUnitLoc( udg_Carts[nPlayerIndex] )
// set rSpeed = RealSpeed( udg_Speed[nPlayerIndex] )
// set rRange = SquareRoot( rSpeed * rSpeed + 120 * 120 )
set g = GetUnitsInRangeOfLocMatching( 225, loc, Condition(function CheckItemPickFilter) )
call RemoveLocation( loc )
loop
set uItem = FirstOfGroup( g )
exitwhen uItem == null
call ItemPicked( nPlayerIndex, uItem )
call GroupRemoveUnit( g, uItem )
endloop
call DestroyGroup( g )
endfunction
function SpinVehicle takes integer nPlayerIndex returns nothing
local unit uAssistant = null
set uAssistant = CreateAssistant1( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "bloodlust", udg_Carts[nPlayerIndex] )
endfunction
function DoLightningHit takes integer nPlayerIndex returns nothing
local location loc = null
local group grp = null
local unit uCart = null
local boolean bHit = false
if ( not IsCartLightened( udg_Carts[nPlayerIndex] ) or not IsCartVulnerable( udg_Carts[nPlayerIndex] ) ) then
return
endif
if ( IsCartTrapped( udg_Carts[nPlayerIndex] ) or IsCartSpinning( udg_Carts[nPlayerIndex] ) or IsCartStunned( udg_Carts[nPlayerIndex] ) ) then
return
endif
set loc = GetUnitLoc( udg_Carts[nPlayerIndex] )
set grp = GetUnitsInRangeOfLocAll( 200, loc )
call RemoveLocation( loc )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsItACart( GetUnitTypeId( uCart ) ) and IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( not IsCartLightened( uCart ) and not UnitHasBuffBJ( uCart, 'Btsp' ) and not IsCartSpinning( uCart ) ) then
set bHit = true
exitwhen true
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
if ( bHit ) then
call SpinVehicle( nPlayerIndex )
endif
endfunction
function DoLightningResize takes integer nPlayerIndex returns nothing
local unit uCart = udg_Carts[nPlayerIndex]
local real rResize = 0
if ( not IsCartLightened( uCart ) ) then
call SetUnitScale( uCart, 1, 1, 1 )
if ( udg_LightningResize[nPlayerIndex] > 0 ) then
set udg_LightningResize[nPlayerIndex] = 0
endif
return
endif
if ( udg_LightningResize[nPlayerIndex] < udg_LIGHTNINGRESIZE_MAX ) then
set udg_LightningResize[nPlayerIndex] = udg_LightningResize[nPlayerIndex] + 1
endif
set rResize = ( 10. - udg_LightningResize[nPlayerIndex] ) / 10.
call SetUnitScale( uCart, rResize, rResize, rResize )
endfunction
function DoLightningSingle takes integer nAttackerIndex, integer nPlayerIndex returns nothing
local unit uAssistant = null
local unit uCart = udg_Carts[nPlayerIndex]
local location loc = GetUnitLoc( uCart )
local unit uLightning = CreateUnitAtLoc( Player(nAttackerIndex), 'n000', loc, 0 )
call RemoveLocation( loc )
call SetUnitPathing( uLightning, false )
call UnitApplyTimedLife( uLightning, 'BTLF', 2 )
call IssueTargetOrder( uLightning, "attack", uCart )
set uAssistant = CreateAssistant( nAttackerIndex, 2 )
call IssueTargetOrder( uAssistant, "purge", uCart )
call ShowHitMsg( Player(nPlayerIndex), nAttackerIndex, "Lightning" )
endfunction
function Lightning takes unit uCart returns nothing
local integer nPlayerIndexUse = GetPlayerIndex( GetOwningPlayer( uCart ) )
local integer nPlayerIndex = 0
if (nPlayerIndexUse < 0 ) then
return
endif
call StartSound( gg_snd_MonsoonLightningHit )
loop
exitwhen nPlayerIndex >= 8
if ( nPlayerIndex != nPlayerIndexUse and GetPlayerController(Player(nPlayerIndex)) == MAP_CONTROL_USER and GetPlayerSlotState(Player(nPlayerIndex)) == PLAYER_SLOT_STATE_PLAYING ) then
if ( udg_Carts[nPlayerIndex] != null and IsUnitAliveBJ(udg_Carts[nPlayerIndex]) and IsCartVulnerable(udg_Carts[nPlayerIndex]) and IsCartVisible(udg_Carts[nPlayerIndex]) ) then
call DoLightningSingle( nPlayerIndexUse, nPlayerIndex )
endif
endif
set nPlayerIndex = nPlayerIndex + 1
endloop
endfunction
function DoStarHit takes integer nPlayerIndex returns nothing
local location loc = null
local group grp = null
local unit uCart = null
local integer nIndexHit
if ( not UnitHasBuffBJ( udg_Carts[nPlayerIndex], 'B005' ) ) then
return
endif
set loc = GetUnitLoc( udg_Carts[nPlayerIndex] )
set grp = GetUnitsInRangeOfLocAll( 200, loc )
call RemoveLocation( loc )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsItACart( GetUnitTypeId( uCart ) ) and IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( IsCartVulnerable( uCart ) ) then
set nIndexHit = GetPlayerIndex( GetOwningPlayer( uCart ) )
call ShowHitMsg( Player(nIndexHit), nPlayerIndex, "Cart" )
call SpinVehicle( nIndexHit )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
endfunction
function UseStar takes unit uCart returns nothing
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
local unit uAssistant = null
local integer nUseIndex = 0
if (nPlayerIndex < 0 ) then
return
endif
set udg_UseInvulnerableIndex[nPlayerIndex] = udg_UseInvulnerableIndex[nPlayerIndex] + 1
set nUseIndex = udg_UseInvulnerableIndex[nPlayerIndex]
set uAssistant = CreateAssistant1( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "innerfire", uCart )
call SetCartInvulnerable( uCart, true )
call PolledWait( 6. )
if ( nUseIndex == udg_UseInvulnerableIndex[nPlayerIndex] ) then
call SetCartInvulnerable( uCart, false )
endif
endfunction
function EatMushroom takes unit uCart returns nothing
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
local unit uAssistant = null
local integer nBlazeFlag = 0
if (nPlayerIndex < 0 ) then
return
endif
set udg_BoostActivateNumber[nPlayerIndex] = 2
set uAssistant = CreateAssistant( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "unholyfrenzy", uCart )
//StartSpecialeffect (choisi boost 1-2-3 ou 4)
set udg_PlayerBlazeFlag2[nPlayerIndex] = udg_PlayerBlazeFlag2[nPlayerIndex] + 1
set nBlazeFlag = udg_PlayerBlazeFlag2[nPlayerIndex]
//SOUND EFFECT BOOST
call PlaySoundOnUnitBJ( gg_snd_BoostSound2v2, 50, udg_Carts[nPlayerIndex] )
// call CameraBoost( nPlayerIndex )
call PolledWait( 2.8 )
//call PolledWait( 1.5 )
if ( udg_PlayerBlazeFlag2[nPlayerIndex] == nBlazeFlag ) then
set udg_PlayerBlazeFlag2[nPlayerIndex] = 0
endif
endfunction
function EatMushroom2 takes unit uCart returns nothing
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
local unit uAssistant = null
local integer nBlazeFlag = 0
if (nPlayerIndex < 0 ) then
return
endif
set udg_BoostActivateNumber[nPlayerIndex] = 3
set uAssistant = CreateAssistant( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "unholyfrenzy", uCart )
//StartSpecialeffect (choisi boost 1-2-3 ou 4)
set udg_PlayerBlazeFlag3[nPlayerIndex] = udg_PlayerBlazeFlag3[nPlayerIndex] + 1
set nBlazeFlag = udg_PlayerBlazeFlag3[nPlayerIndex]
//SOUND EFFECT BOOST
call PlaySoundOnUnitBJ( gg_snd_BoostSound2v2, 80, udg_Carts[nPlayerIndex] )
// call CameraBoost( nPlayerIndex )
call PolledWait( 2.8 )
//call PolledWait( 1.5 )
if ( udg_PlayerBlazeFlag3[nPlayerIndex] == nBlazeFlag ) then
set udg_PlayerBlazeFlag3[nPlayerIndex] = 0
endif
endfunction
function EatMushroom3 takes unit uCart returns nothing
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
local unit uAssistant = null
local integer nBlazeFlag = 0
if (nPlayerIndex < 0 ) then
return
endif
set udg_BoostActivateNumber[nPlayerIndex] = 4
set uAssistant = CreateAssistant( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "unholyfrenzy", uCart )
//StartSpecialeffect (choisi boost 1-2-3 ou 4)
set udg_PlayerBlazeFlag4[nPlayerIndex] = udg_PlayerBlazeFlag4[nPlayerIndex] + 1
set nBlazeFlag = udg_PlayerBlazeFlag4[nPlayerIndex]
//SOUND EFFECT BOOST
call PlaySoundOnUnitBJ( gg_snd_BoostSound2v2, 65, udg_Carts[nPlayerIndex] )
// call CameraBoost( nPlayerIndex )
call PolledWait( 2.8 )
//call PolledWait( 1.5 )
if ( udg_PlayerBlazeFlag4[nPlayerIndex] == nBlazeFlag ) then
set udg_PlayerBlazeFlag4[nPlayerIndex] = 0
endif
endfunction
function LayMine takes unit uCart returns nothing
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
local location loc = null
local location loc1 = null
local unit uMine = null
local unit uFake = null
local integer nIndex
if (nPlayerIndex < 0 ) then
return
endif
set loc = GetUnitLoc( uCart )
set loc1 = PolarProjectionBJ( loc, 100, udg_Angle[nPlayerIndex] + 180 )
call RemoveLocation( loc )
set uMine = CreateUnitAtLoc( Player(nPlayerIndex), 'n00G', loc1, 0 )
set uFake = CreateUnitAtLoc( Player(nPlayerIndex), 'n001', loc1, 0 )
call PlaySoundOnUnitBJ( gg_snd_VolcanicRockLaunch1, 100, udg_Carts[nPlayerIndex] )
call RemoveLocation( loc1 )
set nIndex = 0
loop
exitwhen udg_FakePackage[nIndex] == null
set nIndex = nIndex + 1
endloop
set udg_FakePackage[nIndex] = uFake
call SetUnitUserData( uMine, nIndex )
call SetUnitAnimation( uFake, "birth" )
endfunction
function MineExplorded takes unit uMine returns nothing
local location loc = null
local group grp = null
local unit uCart = null
local player plPlayer = GetOwningPlayer( uMine )
local integer nPlayerIndex = GetPlayerIndex( plPlayer )
local integer nPlayerHit
local sound sndSpin = null
local integer nSpinIndex
local integer nFake = -1
if ( nPlayerIndex < 0 ) then
return
endif
set nFake = GetUnitUserData( uMine )
if ( udg_FakePackage[nFake] != null ) then
call KillUnit( udg_FakePackage[nFake] )
set udg_FakePackage[nFake] = null
endif
set loc = GetUnitLoc( uMine )
set grp = GetUnitsInRangeOfLocAll( 200, loc )
call RemoveLocation( loc )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR(plPlayer, GetOwningPlayer( uCart ) ) ) then
set nPlayerHit = GetPlayerIndex( GetOwningPlayer( uCart ) )
call ShowHitMsg( Player(nPlayerHit), nPlayerIndex, "Mine" )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerHit], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerHit], false, 2.00 )
set udg_ImSpining[nPlayerHit] = true
call SpinVehicle( nPlayerHit )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerHit] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerHit] )
call KillSoundWhenDone(sndSpin)
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
endfunction
function DoBlaze takes integer nPlayerIndex returns nothing
local unit uBlaze = null
local location loc = null
local location loc1 = null
local location loc2 = null
local real rAngle = 0
if ( udg_Carts[nPlayerIndex] == null or IsUnitDeadBJ(udg_Carts[nPlayerIndex]) ) then
return
endif
set rAngle = udg_Angle[nPlayerIndex]
if ( udg_Speed[nPlayerIndex] >= 0 ) then
set rAngle = rAngle + 180
endif
set loc = GetUnitLoc( udg_Carts[nPlayerIndex] )
set loc1 = PolarProjectionBJ( loc, 50, rAngle )
call RemoveLocation( loc )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( loc1, "Abilities\\Weapons\\LordofFlameMissile\\LordofFlameMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndex], "Abilities\\Weapons\\LordofFlameMissile\\LordofFlameMissile.mdl" )
// set uBlaze = CreateUnitAtLoc( Player(nPlayerIndex), 'n009', loc1, 0 )
// call SetUnitPathing( uBlaze, false )
// call UnitApplyTimedLife( uBlaze, 'BTLF', 1 )
//set loc2 = PolarProjectionBJ( loc1, 50, rAngle )
//call RemoveLocation( loc1 )
//set uBlaze = CreateUnitAtLoc( Player(nPlayerIndex), 'n009', loc2, 0 )
//call RemoveLocation( loc2 )
//call SetUnitPathing( uBlaze, false )
//call UnitApplyTimedLife( uBlaze, 'BTLF', 1 )
endfunction
function DoBlaze2 takes integer nPlayerIndex returns nothing
local unit uBlaze = null
local location loc = null
local location loc1 = null
local location loc2 = null
local real rAngle = 0
if ( udg_Carts[nPlayerIndex] == null or IsUnitDeadBJ(udg_Carts[nPlayerIndex]) ) then
return
endif
set rAngle = udg_Angle[nPlayerIndex]
if ( udg_Speed[nPlayerIndex] >= 0 ) then
set rAngle = rAngle + 180
endif
set loc = GetUnitLoc( udg_Carts[nPlayerIndex] )
set loc1 = PolarProjectionBJ( loc, 50, rAngle )
call RemoveLocation( loc )
call AddSpecialEffectLocBJ( loc1, "Abilities\\Spells\\NightElf\\FaerieDragonInvis\\FaerieDragon_Invis.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// set uBlaze = CreateUnitAtLoc( Player(nPlayerIndex), 'n00S', loc1, 0 )
// call SetUnitPathing( uBlaze, false )
// call UnitApplyTimedLife( uBlaze, 'BTLF', 1 )
//set loc2 = PolarProjectionBJ( loc1, 50, rAngle )
//call RemoveLocation( loc1 )
//set uBlaze = CreateUnitAtLoc( Player(nPlayerIndex), 'n00S', loc2, 0 )
//call RemoveLocation( loc2 )
//call SetUnitPathing( uBlaze, false )
//call UnitApplyTimedLife( uBlaze, 'BTLF', 1 )
endfunction
function DoBlaze3 takes integer nPlayerIndex returns nothing
local unit uBlaze = null
local location loc = null
local location loc1 = null
local location loc2 = null
local real rAngle = 0
if ( udg_Carts[nPlayerIndex] == null or IsUnitDeadBJ(udg_Carts[nPlayerIndex]) ) then
return
endif
set rAngle = udg_Angle[nPlayerIndex]
if ( udg_Speed[nPlayerIndex] >= 0 ) then
set rAngle = rAngle + 180
endif
set loc = GetUnitLoc( udg_Carts[nPlayerIndex] )
set loc1 = PolarProjectionBJ( loc, 50, rAngle )
call RemoveLocation( loc )
call AddSpecialEffectLocBJ( loc1, "Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// set uBlaze = CreateUnitAtLoc( Player(nPlayerIndex), 'n00T', loc1, 0 )
// call SetUnitPathing( uBlaze, false )
// call UnitApplyTimedLife( uBlaze, 'BTLF', 1 )
//set loc2 = PolarProjectionBJ( loc1, 50, rAngle )
//call RemoveLocation( loc1 )
//set uBlaze = CreateUnitAtLoc( Player(nPlayerIndex), 'n00T', loc2, 0 )
//call RemoveLocation( loc2 )
//call SetUnitPathing( uBlaze, false )
//call UnitApplyTimedLife( uBlaze, 'BTLF', 1 )
endfunction
function DoBlaze4 takes integer nPlayerIndex returns nothing
local unit uBlaze = null
local location loc = null
local location loc1 = null
local location loc2 = null
local real rAngle = 0
if ( udg_Carts[nPlayerIndex] == null or IsUnitDeadBJ(udg_Carts[nPlayerIndex]) ) then
return
endif
set rAngle = udg_Angle[nPlayerIndex]
if ( udg_Speed[nPlayerIndex] >= 0 ) then
set rAngle = rAngle + 180
endif
set loc = GetUnitLoc( udg_Carts[nPlayerIndex] )
set loc1 = PolarProjectionBJ( loc, 50, rAngle )
call RemoveLocation( loc )
call AddSpecialEffectLocBJ( loc1, "Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// set uBlaze = CreateUnitAtLoc( Player(nPlayerIndex), 'n00U', loc1, 0 )
// call SetUnitPathing( uBlaze, false )
// call UnitApplyTimedLife( uBlaze, 'BTLF', 1 )
//set loc2 = PolarProjectionBJ( loc1, 50, rAngle )
//call RemoveLocation( loc1 )
//set uBlaze = CreateUnitAtLoc( Player(nPlayerIndex), 'n00U', loc2, 0 )
//call RemoveLocation( loc2 )
//call SetUnitPathing( uBlaze, false )
//call UnitApplyTimedLife( uBlaze, 'BTLF', 1 )
endfunction
function UseBlaze takes unit uCart returns nothing
local integer nBlazeFlag = 0
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
set udg_PlayerBlazeFlag[nPlayerIndex] = udg_PlayerBlazeFlag[nPlayerIndex] + 1
set nBlazeFlag = udg_PlayerBlazeFlag[nPlayerIndex]
call PolledWait( 3 )
if ( udg_PlayerBlazeFlag[nPlayerIndex] == nBlazeFlag ) then
set udg_PlayerBlazeFlag[nPlayerIndex] = 0
endif
endfunction
function DoFireCoatSlow takes integer nPlayerIndex returns nothing
local location loc = null
local group grp = null
local unit uCart = null
local unit uAssistant = null
if ( not UnitHasBuffBJ( udg_Carts[nPlayerIndex], 'B001' ) ) then
return
endif
set loc = GetUnitLoc( udg_Carts[nPlayerIndex] )
set grp = GetUnitsInRangeOfLocAll( 300, loc )
call RemoveLocation( loc )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsItACart( GetUnitTypeId( uCart ) ) and IsUnitAliveBJ( uCart ) and IsPlayerEnemy( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( IsCartVulnerable( uCart) and not UnitHasBuffBJ( uCart, 'B002' ) ) then
set uAssistant = CreateAssistant1( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "faeriefire", uCart )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
endfunction
function Trig_Trap_Actions takes nothing returns nothing
local integer nLoopIndex = 0
local trigger trgTrap = GetTriggeringTrigger()
local unit uCart = GetTriggerUnit()
local integer CartGetHitIndex = 0
set nLoopIndex = 0
loop
exitwhen nLoopIndex >= udg_TrapMax
exitwhen udg_TrapTriggers[nLoopIndex] == trgTrap
set nLoopIndex = nLoopIndex + 1
endloop
if ( nLoopIndex >= udg_TrapMax ) then
return
endif
if ( udg_Traps[nLoopIndex] == null or IsUnitDeadBJ( udg_Traps[nLoopIndex] ) ) then
return
endif
if ( IsUnitDeadBJ( uCart ) ) then
return
endif
if ( not IsPlayerEnemyCR( GetOwningPlayer(udg_Traps[nLoopIndex]), GetOwningPlayer( uCart ) ) ) then
return
endif
call DestroyTrigger( trgTrap )
set udg_TrapTriggers[nLoopIndex] = null
call UnitAddAbility( udg_Traps[nLoopIndex], 'Aloc' )
call UnitAddAbility( udg_Traps[nLoopIndex], 'A000' )
call IssueTargetOrder( udg_Traps[nLoopIndex], "cripple", uCart )
call UnitApplyTimedLife( udg_Traps[nLoopIndex], 'BTLF', 2 )
set CartGetHitIndex = GetPlayerIndex(GetOwningPlayer(uCart))
call StartTimerBJ( udg_ImTrapTimer[CartGetHitIndex], false, 4.00 )
set udg_ImTraped[CartGetHitIndex] = true
call PlaySoundOnUnitBJ( gg_snd_EnsnareMissile, 100, udg_Carts[nLoopIndex] )
call ShowHitMsg( GetOwningPlayer(uCart), GetPlayerIndex(GetOwningPlayer(udg_Traps[nLoopIndex])), "Trap" )
endfunction
function SetupTrap takes unit uCart returns nothing
local trigger trgTrap = null
local unit uTrap = null
local integer nLoopIndex = 0
local location loc = null
local location loc1 = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
set loc = GetUnitLoc( uCart )
set loc1 = PolarProjectionBJ( loc, 100, udg_Angle[nPlayerIndex] + 180 )
call RemoveLocation( loc )
set uTrap = CreateUnitAtLoc( Player(nPlayerIndex), 'n00A', loc1, 0 )
call PlaySoundOnUnitBJ( gg_snd_EnsnareTarget, 100, udg_Carts[nPlayerIndex] )
call UnitApplyTimedLife( uTrap, 'BTLF', 120 )
call RemoveLocation( loc1 )
set trgTrap = CreateTrigger()
set nLoopIndex = 0
loop
exitwhen nLoopIndex >= udg_TrapMax
exitwhen udg_Traps[nLoopIndex] == null
set nLoopIndex = nLoopIndex + 1
endloop
set udg_Traps[nLoopIndex] = uTrap
set udg_TrapTriggers[nLoopIndex] = trgTrap
if ( nLoopIndex == udg_TrapMax ) then
set udg_TrapMax = udg_TrapMax + 1
endif
call TriggerRegisterUnitInRangeSimple( trgTrap, 125.00, uTrap )
call TriggerAddAction( trgTrap, function Trig_Trap_Actions )
endfunction
function TrapExpired takes unit uWeb returns nothing
local integer nLoopIndex = 0
set nLoopIndex = 0
loop
exitwhen nLoopIndex >= udg_TrapMax
if ( udg_Traps[nLoopIndex] == uWeb ) then
if ( udg_TrapTriggers[nLoopIndex] != null ) then
call DestroyTrigger( udg_TrapTriggers[nLoopIndex] )
set udg_TrapTriggers[nLoopIndex] = null
endif
set udg_Traps[nLoopIndex] = null
return
endif
set nLoopIndex = nLoopIndex + 1
endloop
endfunction
//RED TURTLE
function ThrowTurtle takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( udg_TurtleThrown[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown[nPlayerIndex] )
set udg_TurtleThrown[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00J', locNext, udg_ThrowTurtleAngle[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown[nPlayerIndex], 2 )
set udg_TurtleThrowTickle[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer[nPlayerIndex], 0.05, true, null )
endfunction
//GREEN TURTLE
function ThrowTurtle2 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( udg_TurtleThrown[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer2[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown[nPlayerIndex] )
set udg_TurtleThrown[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown[nPlayerIndex], 2 )
set udg_TurtleThrowTickle2[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer2[nPlayerIndex], 0.05, true, null )
endfunction
//GREEN TURTLE_MULTISHOT 10 -----------------------------------------------
function ThrowTurtle3_10 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck10(nPlayerIndex) ) then
if ( udg_TurtleThrown3_10[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_10[nPlayerIndex] )
set udg_TurtleThrown3_10[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle10[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle10[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_10[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle10[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_10[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_10[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_10[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_10[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_10[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_10[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
//GREEN TURTLE_MULTISHOT 9 -----------------------------------------------
function ThrowTurtle3_9 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck9(nPlayerIndex) ) then
if ( udg_TurtleThrown3_9[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_9[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_9[nPlayerIndex] )
set udg_TurtleThrown3_9[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle9[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle9[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_9[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle9[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_9[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_9[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_9[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_9[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_9[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_9[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
//GREEN TURTLE_MULTISHOT 8 -----------------------------------------------
function ThrowTurtle3_8 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck8(nPlayerIndex) ) then
if ( udg_TurtleThrown3_8[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_8[nPlayerIndex] )
set udg_TurtleThrown3_8[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle8[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle8[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_8[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle8[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_8[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_8[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_8[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_8[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_8[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_8[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
//GREEN TURTLE_MULTISHOT 7 -----------------------------------------------
function ThrowTurtle3_7 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck7(nPlayerIndex) ) then
if ( udg_TurtleThrown3_7[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_7[nPlayerIndex] )
set udg_TurtleThrown3_7[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_7[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_7[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_7[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_7[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_7[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_7[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_7[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
//GREEN TURTLE_MULTISHOT 6 -----------------------------------------------
function ThrowTurtle3_6 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck6(nPlayerIndex) ) then
if ( udg_TurtleThrown3_6[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_6[nPlayerIndex] )
set udg_TurtleThrown3_6[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_6[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_6[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_6[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_6[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_6[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_6[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_6[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
//GREEN TURTLE_MULTISHOT 5 -----------------------------------------------
function ThrowTurtle3_5 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck5(nPlayerIndex) ) then
if ( udg_TurtleThrown3_5[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_5[nPlayerIndex] )
set udg_TurtleThrown3_5[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_5[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_5[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_5[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_5[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_5[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_5[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_5[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
//GREEN TURTLE_MULTISHOT 4 -----------------------------------------------
function ThrowTurtle3_4 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck4(nPlayerIndex) ) then
if ( udg_TurtleThrown3_4[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_4[nPlayerIndex] )
set udg_TurtleThrown3_4[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_4[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_4[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_4[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_4[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_4[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_4[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_4[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
//GREEN TURTLE_MULTISHOT 3 -----------------------------------------------
function ThrowTurtle3_3 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck3(nPlayerIndex) ) then
if ( udg_TurtleThrown3_3[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_3[nPlayerIndex] )
set udg_TurtleThrown3_3[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_3[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_3[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_3[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_3[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_3[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_3[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_3[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
//GREEN TURTLE_MULTISHOT 2 -----------------------------------------------
function ThrowTurtle3_2 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck2(nPlayerIndex) ) then
if ( udg_TurtleThrown3_2[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_2[nPlayerIndex] )
set udg_TurtleThrown3_2[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_2[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_2[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_2[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_2[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_2[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_2[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_2[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
//GREEN TURTLE_MULTISHOT 1 -----------------------------------------------
function ThrowTurtle3_1 takes unit uCart returns nothing
local location loc = null
local location locNext = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
if ( NumberGreenTurtleCheck1(nPlayerIndex) ) then
if ( udg_TurtleThrown3_1[nPlayerIndex] != null ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
call RemoveUnit( udg_TurtleThrown3_1[nPlayerIndex] )
set udg_TurtleThrown3_1[nPlayerIndex] = null
endif
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( GetUnitFacing(uCart) )
set loc = GetUnitLoc( uCart )
set locNext = PolarProjectionBJ( loc, 200, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call PlaySoundOnUnitBJ( gg_snd_ShootShell1GREENv3, 100, udg_Carts[nPlayerIndex] )
set udg_TurtleThrown3_1[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), 'n00X', locNext, udg_ThrowTurtleAngle[nPlayerIndex] )
call PlaySoundOnUnitBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], 100, udg_TurtleThrown3_1[nPlayerIndex] )
call RemoveLocation( locNext)
call SetUnitPathing( udg_TurtleThrown3_1[nPlayerIndex], false )
call UnitApplyTimedLife( udg_TurtleThrown3_1[nPlayerIndex], 'BTLF', 2 )
call SetUnitAnimationByIndex( udg_TurtleThrown3_1[nPlayerIndex], 8 )
call SetUnitTimeScale( udg_TurtleThrown3_1[nPlayerIndex], 2 )
set udg_TurtleThrowTickle3_1[nPlayerIndex] = 0
call TimerStart( udg_ThrowTurtleTimer3_10[nPlayerIndex], 0.05, true, null )
endif
endfunction
function TurtleBump takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown[nPlayerIndex] )
//set rHP = GetUnitState( uCart, UNIT_STATE_LIFE )
//if ( rHP <= 150 ) then
// call KillUnit( uCart )
// call RemoveLocation( locCart )
// return
//endif
//set rHP = rHP - 150
//call SetUnitState( uCart, UNIT_STATE_LIFE, rHP )
//set effBite = AddSpecialEffectTarget( "Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl", uCart, "chest" )
//call DestroyEffect( effBite )
//if ( rTemp < 0 ) then
// set rAngle = udg_ThrowTurtleAngle[nPlayerIndex] - 60
//elseif ( rTemp > 0 ) then
// set rAngle = udg_ThrowTurtleAngle[nPlayerIndex] + 60
//endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
set udg_Angle[nPlayerIndexCart] = rAngle
set loc = PolarProjectionBJ( locCart, 50, rAngle)
call RemoveLocation( locCart )
call SetUnitFacing( uCart, udg_Angle[nPlayerIndexCart] )
call SetUnitPositionLoc( uCart, loc )
call RemoveLocation( loc )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump10 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_10[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle10[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_10[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call SpinVehicle( nPlayerIndexCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump9 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_9[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle9[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle9[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_9[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump8 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_8[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle8[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle8[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_8[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump7 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_7[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_7[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump6 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_6[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_6[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump5 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_5[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_5[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump4 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_4[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_4[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump3 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_3[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_3[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump2 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_2[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_2[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function TurtleBump1 takes integer nPlayerIndex, unit uCart returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( uCart ) or not IsCartVisible( uCart ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( uCart ) ) then
return
endif
set locTurtle = GetUnitLoc( udg_TurtleThrown3_1[nPlayerIndex] )
set locCart = GetUnitLoc( uCart )
set rAngle = AngleBetweenPoints( locTurtle, locCart )
set rDistance = DistanceBetweenPoints( locTurtle, locCart )
call RemoveLocation( locTurtle )
call ShowDebugMsg( "Throw Angle = " + R2S(udg_ThrowTurtleAngle[nPlayerIndex]) )
call ShowDebugMsg( "Relat Angle = " + R2S(rAngle) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp > 90 or rTemp < -90 ) then
call RemoveLocation( locCart )
return
endif
set rDistance = RAbsBJ( rDistance * SinBJ(rTemp) )
if ( rDistance > 100 ) then
call RemoveLocation( locCart )
return
endif
call KillUnit( udg_TurtleThrown3_1[nPlayerIndex] )
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( uCart ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call StopSoundBJ( udg_GREENturtleAUTOSOUND[nPlayerIndex], false )
call StopSoundBJ( udg_REDturtleAUTOSOUND[nPlayerIndex], false )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
endfunction
function LocateTurtleTarget takes location loc, real rAngle, integer nPlayerIndex returns integer
local integer nIndex = 0
local integer nIndexPick = -1
local location loc1 = null
local real rAngle1
local boolean bContinue
local real rDisMin = 0
local real rDis
loop
exitwhen nIndex >= udg_PLAYER_MAXNUM
set bContinue = nIndex != nPlayerIndex and udg_Carts[nIndex] != null
if ( bContinue ) then
if ( IsUnitDeadBJ( udg_Carts[nIndex] ) or not IsCartVulnerable( udg_Carts[nIndex] ) ) then
set bContinue = false
endif
endif
call ShowDebugMsg( "Locate Target 1" )
if ( bContinue ) then
set loc1 = GetUnitLoc( udg_Carts[nIndex] )
set rAngle1 = StandardAngle( AngleBetweenPoints( loc, loc1 ) - rAngle )
call ShowDebugMsg( "Angle = " + R2S(rAngle1) )
if ( rAngle1 > 90 or rAngle1 < -90 ) then
set bContinue = false
endif
endif
call ShowDebugMsg( "Locate Target 2" )
if ( bContinue ) then
set rDis = DistanceBetweenPoints( loc, loc1 )
if ( rDis > 6000 or rDis <= 0 ) then
set bContinue = false
endif
call ShowDebugMsg( "Locate Target 3" )
if ( bContinue ) then
if ( nIndexPick >= 0 ) then
if ( rDis >= rDisMin ) then
set bContinue = false
endif
endif
endif
call ShowDebugMsg( "Locate Target 4" )
if ( bContinue ) then
set nIndexPick = nIndex
set rDisMin = rDis
endif
endif
if ( loc1 != null ) then
call RemoveLocation( loc1 )
endif
set nIndex = nIndex + 1
endloop
return nIndexPick
endfunction
//RED TURTLE
function ThrowTurtleGoGoGo takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 4.8
local real rTemp
if ( udg_TurtleThrown[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer[nPlayerIndex] )
set udg_TurtleThrown[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
//call DisplayTextToForce( GetPlayersAll(), I2S(CountUnitsInGroup(grp)) )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
// call DisplayTextToForce( GetPlayersAll(), "ENTER LOOP" )
if (IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
// call DisplayTextToForce( GetPlayersAll(), "DETECTION PLAYER" )
call TurtleBump( nPlayerIndex, uCart )
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle[nPlayerIndex] = udg_TurtleThrowTickle[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo2 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
if ( udg_TurtleThrown[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer2[nPlayerIndex] )
set udg_TurtleThrown[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle2[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle2[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if (IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
call TurtleBump( nPlayerIndex, uCart )
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle2[nPlayerIndex] = udg_TurtleThrowTickle2[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_10 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_10[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_10[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
set udg_TurtleThrown3_10[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_10[nPlayerIndex] )
//set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle10[nPlayerIndex], nPlayerIndex )
//call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_10[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_10[nPlayerIndex] * 0.8
endif
//if ( nTarget >= 0 ) then
// set locNext = GetUnitLoc( udg_Carts[nTarget] )
// set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
// set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle10[nPlayerIndex] )
// if ( rTemp < 0 ) then
// if ( rTemp > -3 ) then
// set udg_ThrowTurtleAngle10[nPlayerIndex] = rAngle
// else
// set udg_ThrowTurtleAngle10[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle10[nPlayerIndex] - rChange )
// endif
// elseif ( rTemp > 0 ) then
// if ( rTemp < 3 ) then
//
// set udg_ThrowTurtleAngle10[nPlayerIndex] = rAngle
// else
// set udg_ThrowTurtleAngle10[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle10[nPlayerIndex] + rChange )
// endif
// endif
// call RemoveLocation( locNext )
//endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle10[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_10[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
call TurtleBump10( nPlayerIndex, uCart )
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_10[nPlayerIndex] = udg_TurtleThrowTickle3_10[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_9 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_9[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_9[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_9[nPlayerIndex] )
set udg_TurtleThrown3_9[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_9[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle9[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_9[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_9[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle9[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle9[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle9[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle9[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle9[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle9[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle9[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle9[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_9[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
call TurtleBump9( nPlayerIndex, uCart )
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_9[nPlayerIndex] = udg_TurtleThrowTickle3_9[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_8 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_8[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_8[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
set udg_TurtleThrown3_8[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_8[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle8[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_8[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_8[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle8[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle8[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle8[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle8[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle8[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle8[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle8[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle8[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_8[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( udg_TurtleThrown3_8[nPlayerIndex] == null ) then
//do nothing
else
call TurtleBump8( nPlayerIndex, uCart )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_8[nPlayerIndex] = udg_TurtleThrowTickle3_8[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_7 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_7[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_7[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
set udg_TurtleThrown3_7[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_7[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_7[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_7[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_7[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( udg_TurtleThrown3_7[nPlayerIndex] == null ) then
//do nothing
else
call TurtleBump7( nPlayerIndex, uCart )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_7[nPlayerIndex] = udg_TurtleThrowTickle3_7[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_6 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_6[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_6[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
set udg_TurtleThrown3_6[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_6[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_6[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_6[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_6[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( udg_TurtleThrown3_6[nPlayerIndex] == null ) then
//do nothing
else
call TurtleBump6( nPlayerIndex, uCart )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_6[nPlayerIndex] = udg_TurtleThrowTickle3_6[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_5 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_5[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_5[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
set udg_TurtleThrown3_5[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_5[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_5[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_5[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_5[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( udg_TurtleThrown3_5[nPlayerIndex] == null ) then
//do nothing
else
call TurtleBump5( nPlayerIndex, uCart )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_5[nPlayerIndex] = udg_TurtleThrowTickle3_5[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_4 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_4[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_4[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
set udg_TurtleThrown3_4[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_4[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_4[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_4[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_4[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( udg_TurtleThrown3_4[nPlayerIndex] == null ) then
//do nothing
else
call TurtleBump4( nPlayerIndex, uCart )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_4[nPlayerIndex] = udg_TurtleThrowTickle3_4[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_3 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_3[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_3[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
set udg_TurtleThrown3_3[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_3[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_3[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_3[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_3[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( udg_TurtleThrown3_3[nPlayerIndex] == null ) then
//do nothing
else
call TurtleBump3( nPlayerIndex, uCart )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_3[nPlayerIndex] = udg_TurtleThrowTickle3_3[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_2 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_2[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_2[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
set udg_TurtleThrown3_2[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_2[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_2[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_2[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_2[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( udg_TurtleThrown3_2[nPlayerIndex] == null ) then
//do nothing
else
call TurtleBump2( nPlayerIndex, uCart )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_2[nPlayerIndex] = udg_TurtleThrowTickle3_2[nPlayerIndex] + 1
endfunction
function ThrowTurtleGoGoGo3_1 takes integer nPlayerIndex returns nothing
local location loc = null
local location locNext = null
local group grp = null
local unit uCart = null
local integer nTarget
local real rAngle
local real rChange = 0.0
local real rTemp
//call DisplayTextToForce( GetPlayersAll(), "OMGOMGOGMOGMGOMGOMGOGMOGMGOMGOGMOGMGOMGOGM" )
if ( udg_TurtleThrown3_1[nPlayerIndex] == null or IsUnitDeadBJ( udg_TurtleThrown3_1[nPlayerIndex] ) ) then
call PauseTimer( udg_ThrowTurtleTimer3_10[nPlayerIndex] )
set udg_TurtleThrown3_1[nPlayerIndex] = null
return
endif
set loc = GetUnitLoc( udg_TurtleThrown3_1[nPlayerIndex] )
set nTarget = LocateTurtleTarget( loc, udg_ThrowTurtleAngle[nPlayerIndex], nPlayerIndex )
call ShowDebugMsg( "Target = " + I2S(nTarget) )
if ( udg_TurtleThrowTickle3_1[nPlayerIndex] < 6 ) then
set rChange = udg_TurtleThrowTickle3_1[nPlayerIndex] * 0.8
endif
if ( nTarget >= 0 ) then
set locNext = GetUnitLoc( udg_Carts[nTarget] )
set rAngle = StandardAngle( AngleBetweenPoints( loc, locNext ) )
set rTemp = StandardAngle( rAngle - udg_ThrowTurtleAngle[nPlayerIndex] )
if ( rTemp < 0 ) then
if ( rTemp > -3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] - rChange )
endif
elseif ( rTemp > 0 ) then
if ( rTemp < 3 ) then
set udg_ThrowTurtleAngle[nPlayerIndex] = rAngle
else
set udg_ThrowTurtleAngle[nPlayerIndex] = StandardAngle( udg_ThrowTurtleAngle[nPlayerIndex] + rChange )
endif
endif
call RemoveLocation( locNext )
endif
set locNext = PolarProjectionBJ( loc, 150, udg_ThrowTurtleAngle[nPlayerIndex] )
call RemoveLocation( loc )
call SetUnitPositionLoc( udg_TurtleThrown3_1[nPlayerIndex], locNext )
set grp = GetUnitsInRangeOfLocAll( 200, locNext )
call RemoveLocation( locNext )
loop
set uCart = FirstOfGroup( grp )
exitwhen uCart == null
if ( IsUnitAliveBJ( uCart ) and IsPlayerEnemyCR( Player(nPlayerIndex), GetOwningPlayer( uCart ) ) ) then
if ( udg_TurtleThrown3_1[nPlayerIndex] == null ) then
//do nothing
else
call TurtleBump1( nPlayerIndex, uCart )
endif
endif
call GroupRemoveUnit( grp, uCart )
endloop
call DestroyGroup( grp )
set udg_TurtleThrowTickle3_1[nPlayerIndex] = udg_TurtleThrowTickle3_1[nPlayerIndex] + 1
endfunction
function SummonGhost takes unit uCart returns nothing
local unit uAssistant = null
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if (nPlayerIndex < 0 ) then
return
endif
set uAssistant = CreateAssistant1( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "invisibility", uCart )
endfunction
function UseRepairKit takes unit uCart returns nothing
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
local real rHP = GetUnitState( uCart, UNIT_STATE_LIFE )
local real rHPMax = GetUnitState( uCart, UNIT_STATE_MAX_LIFE )
local effect effHeal = null
if (nPlayerIndex < 0 ) then
return
endif
set udg_GunAmmo[nPlayerIndex] = udg_GunAmmo[nPlayerIndex] + 25
if ( udg_GunAmmo[nPlayerIndex] > udg_AMMO_MAX ) then
set udg_GunAmmo[nPlayerIndex] = udg_AMMO_MAX
endif
set rHP = rHP + 150
if ( rHP > rHPMax ) then
set rHP = rHPMax
endif
call SetUnitState( uCart, UNIT_STATE_LIFE, rHP )
set effHeal = AddSpecialEffectTarget( "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl", uCart, "origin" )
call PolledWait( 0.1 )
call DestroyEffect( effHeal )
endfunction
function BlizzardCartFilter takes nothing returns boolean
local unit u = GetFilterUnit()
return IsUnitAliveBJ( u ) and IsCartVulnerable( u )
endfunction
function DoBlizzard takes integer nPlayerIndex returns nothing
local real rRadius
local real rAngle
local location locCart
local location locCenter
local location loc
local effect eff
local group g
local unit uCart
local integer nPlayerIndexTarget
local real rHP
local unit uAssistant = null
if ( udg_BlizzardingFlag[nPlayerIndex] < 0 ) then
return
endif
if ( udg_Carts[nPlayerIndex] == null or IsUnitDeadBJ( udg_Carts[nPlayerIndex] ) or udg_GameGoingStatus[nPlayerIndex] != udg_GAME_DRIVING ) then
set udg_BlizzardingFlag[nPlayerIndex] = -1
// if ( udg_BlizzardSoundIsPlaying[nPlayerIndex] ) then
// set udg_BlizzardSoundIsPlaying[nPlayerIndex] = false
// call StopSound( udg_BlizzardSound[nPlayerIndex], false, true )
// endif
// return
endif
// if ( not udg_BlizzardSoundIsPlaying[nPlayerIndex] ) then
// set udg_BlizzardSoundIsPlaying[nPlayerIndex] = true
// call PlaySoundOnUnitBJ( udg_BlizzardSound[nPlayerIndex], 100, udg_Carts[nPlayerIndex] )
// endif
set locCart = GetUnitLoc( udg_Carts[nPlayerIndex] )
set rRadius = udg_Speed[nPlayerIndex] * 5
set rAngle = GetUnitFacing( udg_Carts[nPlayerIndex] )
if ( rRadius < 0 ) then
set rRadius = -rRadius
set rAngle = rAngle + 180
endif
set locCenter = PolarProjectionBJ( locCart, rRadius, rAngle )
call RemoveLocation( locCart )
set rRadius = GetRandomReal( 50., 500. )
set rAngle = GetRandomReal( 0., 359. )
set loc = PolarProjectionBJ( locCenter, rRadius, rAngle )
set g = GetUnitsInRangeOfLocMatching( 1000, locCenter, Condition(function BlizzardCartFilter) )
call RemoveLocation( loc )
loop
set uCart = FirstOfGroup( g )
exitwhen uCart == null
set nPlayerIndexTarget = GetPlayerIndex( GetOwningPlayer(uCart) )
if ( nPlayerIndexTarget != nPlayerIndex ) then
set udg_Frozen[nPlayerIndexTarget] = true
set udg_Speed[nPlayerIndexTarget] = 0
call SetUnitTimeScale( udg_Carts[nPlayerIndexTarget], 2 )
// call SetCartInvulnerable( udg_Carts[nPlayerIndexTarget], true )
if ( udg_FrozenEffect[nPlayerIndexTarget] == null ) then
call PlaySoundOnUnitBJ( gg_snd_FreezingBreathTarget1, 100, udg_Carts[nPlayerIndexTarget] )
set udg_FrozenEffect[nPlayerIndexTarget] = AddSpecialEffectTarget( "Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathTargetArt.mdl", udg_Carts[nPlayerIndexTarget], "origin" )
set udg_Frozen[nPlayerIndexTarget] = true
call StartTimerBJ( udg_ImFrozenTimer[nPlayerIndexTarget], false, 5.00 )
set udg_ImFROZENv2[nPlayerIndexTarget] = true
call StopCart( nPlayerIndexTarget )
if ( IsCartVulnerable(udg_Carts[nPlayerIndexTarget]) ) then
set uAssistant = CreateAssistant( nPlayerIndexTarget, 2 )
call IssueTargetOrder( uAssistant, "slow", udg_Carts[nPlayerIndexTarget] )
endif
endif
endif
call GroupRemoveUnit( g, uCart )
endloop
call DestroyGroup( g )
call RemoveLocation( locCenter )
endfunction
function Blizzard takes unit uCart returns nothing
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
local integer nBlizzardingFlag
if (nPlayerIndex < 0 ) then
return
endif
set udg_BlizzardingFlag[nPlayerIndex] = udg_BlizzardingFlag[nPlayerIndex] + 1
set nBlizzardingFlag = udg_BlizzardingFlag[nPlayerIndex]
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndex], "Doodads\\Cinematic\\Campaign_Human09\\FrostShockwave.mdx" )
// call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndex], "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl" )
call PlaySoundOnUnitBJ( gg_snd_FrostNovaTarget1, 100, udg_Carts[nPlayerIndex] )
set udg_NewFrozenNovaGLobal[nPlayerIndex] = GetLastCreatedEffectBJ()
call BlzSetSpecialEffectScale( udg_NewFrozenNovaGLobal[nPlayerIndex], 1.80 )
call DestroyEffectBJ( udg_NewFrozenNovaGLobal[nPlayerIndex] )
call PolledWait( 2 )
if ( nBlizzardingFlag == udg_BlizzardingFlag[nPlayerIndex] ) then
set udg_BlizzardingFlag[nPlayerIndex] = -1
// if ( udg_BlizzardSoundIsPlaying[nPlayerIndex] ) then
// set udg_BlizzardSoundIsPlaying[nPlayerIndex] = false
// call StopSound( udg_BlizzardSound[nPlayerIndex], false, true )
// endif
endif
endfunction
function FrozenNova takes unit uCart returns boolean
// if ( not UnitHasBuffBJ(udg_Carts[0], 'B007' ) ) then
// if ( udg_Frozen[0] ) then
// if ( udg_FrozenEffect[0] != null ) then
// call DestroyEffect( udg_FrozenEffect[0] )
// set udg_FrozenEffect[0] = null
// endif
// set udg_Frozen[0] = false
// call SetCartInvulnerable( udg_Carts[0], false )
// set udg_IceTrunkCooldown[0] = 0
// endif
// return false
// endif
// Haha, Frozen
// set udg_Frozen[0] = true
// set udg_Speed[0] = 0
// call SetUnitTimeScale( udg_Carts[0], 1 )
// call SetCartInvulnerable( udg_Carts[0], true )
// if ( udg_FrozenEffect[0] == null ) then
// call PlaySoundOnUnitBJ( gg_snd_FreezingBreathTarget1, 100, udg_Carts[0] )
// set udg_FrozenEffect[0] = AddSpecialEffectTarget( "Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathTargetArt.mdl", udg_Carts[0], "origin" )
// endif
return true
endfunction
function CarrionSwarm takes unit uCart returns nothing
local integer nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
local location loc = null
local location locSource = null
local location locTarget = null
local unit uCaster = null
local real rAngle = 0
local real rSpeed
if (nPlayerIndex < 0 ) then
return
endif
set loc = GetUnitLoc( uCart )
set rAngle = GetUnitFacing( uCart )
set locSource = PolarProjectionBJ( loc, 20, rAngle + 180 )
call RemoveLocation( loc )
set uCaster = CreateUnit( Player(nPlayerIndex), 'n00O', GetLocationX(locSource), GetLocationY(locSource), rAngle )
call SetUnitPathing( uCaster, false )
set locTarget = PolarProjectionBJ( locSource, 50, rAngle )
call RemoveLocation( locSource )
call IssuePointOrder( uCaster, "carrionswarm", GetLocationX(locTarget), GetLocationY(locTarget) )
call RemoveLocation( locTarget )
call PolledWait(3)
call RemoveUnit( uCaster )
endfunction
function UnitCatchGunFire takes location locGun, real rAngleGun, location locTarget, location locVH returns boolean
local boolean bContinue = false
local real rAngle = AngleBetweenPoints( locGun, locTarget )
local real rAngleDif = RAbsBJ( StandardAngle( rAngle - rAngleGun ) )
local real rDis
local real rDisH
local real rDisV
if ( rAngleDif > -90 and rAngleDif < 90 ) then
set rDis = DistanceBetweenPoints( locGun, locTarget )
set rDisH = rDis * Sin(rAngleDif * bj_DEGTORAD)
if ( rDisH < 100 ) then
set rDisV = rDis * Cos(rAngleDif * bj_DEGTORAD)
if ( rDisV <= 1500 ) then
set bContinue = true
endif
endif
endif
if ( bContinue ) then
set bContinue = false
if ( GetLocationY( locVH ) < 0 or rDisV < GetLocationY( locVH ) ) then //First one
set bContinue = true
elseif ( rDisV == GetLocationY( locVH ) and ( GetLocationX( locVH ) < 0 or rDisH < GetLocationX( locVH ) ) ) then
set bContinue = true
endif
endif
if ( bContinue ) then
call MoveLocation( locVH, rDisH, rDisV )
endif
return bContinue
endfunction
function CheckSheepFilter takes nothing returns boolean
return ( GetUnitTypeId( GetFilterUnit() ) == 'nshe' or GetUnitTypeId( GetFilterUnit() ) == 'n00H' ) and IsUnitAliveBJ( GetFilterUnit() )
endfunction
function CheckWagonFilter takes nothing returns boolean
return ( GetUnitTypeId( GetFilterUnit() ) == 'h00K' or GetUnitTypeId( GetFilterUnit() ) == 'h003' or GetUnitTypeId( GetFilterUnit() ) == 'h005' or GetUnitTypeId( GetFilterUnit() ) == 'h006' ) and IsUnitAliveBJ( GetFilterUnit() )
endfunction
//function BigGun takes unit uCart returns nothing
// local integer nPlayerIndex = 0
// local integer nPlayerSelf = -1
// local integer nPlayerTarget = -1
// local real rAngle = 0
//
// local boolean bContinue = false
//
// local location loc = null
// local location loc1 = null
// local location locVH = Location( -1, -1 )
//
// local group g = null
// local unit uSheep
// local unit uSheepTarget
// local unit uWagon
//
// local effect effShoot = null
// local real rHP = 0
// local integer nLoopIndex = 0
//
// set nPlayerSelf = GetPlayerIndex( GetOwningPlayer(uCart) )
// if ( nPlayerSelf < 0 ) then
// return
// endif
//
// if ( udg_GunAmmo[nPlayerSelf] <= 0 ) then
// if ( not udg_AmmoWarning[nPlayerSelf] ) then
// set udg_AmmoWarning[nPlayerSelf] = true
// call ShowWarningMsg( Player(nPlayerSelf), "Out of Ammo!!! Reload ammo at pit stop." )
// call PolledWait( 5 )
// set udg_AmmoWarning[nPlayerSelf] = false
// endif
// return
// endif
// set udg_GunAmmo[nPlayerSelf] = udg_GunAmmo[nPlayerSelf] - 1
// set udg_GunAttackTick[nPlayerSelf] = 0
//
// set loc = GetUnitLoc( uCart )
// set rAngle = GetUnitFacing( uCart )
// set nLoopIndex = 0
// call StopSound( udg_BigGunSound[nPlayerSelf], false, false )
// call PlaySoundOnUnitBJ( udg_BigGunSound[nPlayerSelf], 100, uCart )
// loop
// exitwhen nLoopIndex >= 4
//
// set loc1 = PolarProjectionBJ( loc, 350 + RealSpeed(udg_Speed[nPlayerSelf]) * 5 + nLoopIndex * 50, rAngle )
// set effShoot = AddSpecialEffectLoc( "Abilities\\Weapons\\GyroCopter\\GyroCopterImpact.mdl", loc1 )
// call RemoveLocation( loc1 )
// call DestroyEffect( effShoot )
//
// set nLoopIndex = nLoopIndex + 1
// endloop
//Killing Sheep
// set g = GetUnitsInRangeOfLocMatching( 1500, loc, Condition(function CheckSheepFilter) )
// loop
// set uSheep = FirstOfGroup( g )
// exitwhen uSheep == null
//
// set loc1 = GetUnitLoc( uSheep )
// if ( UnitCatchGunFire( loc, rAngle, loc1, locVH ) ) then
// call KillUnit( uSheep )
// endif
// call RemoveLocation( loc1 )
// call GroupRemoveUnit( g, uSheep )
// endloop
// call DestroyGroup( g )
//
//Killing Wagon
// set g = GetUnitsInRangeOfLocMatching( 1520, loc, Condition(function CheckWagonFilter) )
// loop
// set uWagon = FirstOfGroup( g )
// exitwhen uWagon == null
//
// set loc1 = GetUnitLoc( uWagon )
// if ( UnitCatchGunFire( loc, rAngle, loc1, locVH ) ) then
// set rHP = GetUnitState( uWagon, UNIT_STATE_LIFE )
// if ( rHP <= 25 ) then
// call KillUnit( uWagon )
// else
// call SetUnitState( uWagon, UNIT_STATE_LIFE, rHP - 25 )
// set effShoot = AddSpecialEffectTarget( "Abilities\\Weapons\\GyroCopter\\GyroCopterImpact.mdl", uWagon, "chest" )
// call DestroyEffect( effShoot )
// set effShoot = AddSpecialEffectTarget( "Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl", uWagon, "chest" )
// call DestroyEffect( effShoot )
// endif
// endif
// call RemoveLocation( loc1 )
// call GroupRemoveUnit( g, uWagon )
// endloop
// call DestroyGroup( g )
//
// call MoveLocation( locVH, -1, -1 )
//
// loop
// exitwhen nPlayerIndex >= 24
//
// set bContinue = false
// if ( nPlayerIndex != nPlayerSelf and udg_Carts[nPlayerIndex] != null and IsUnitAliveBJ( udg_Carts[nPlayerIndex] ) ) then
// set bContinue = true
// endif
//
// if ( bContinue and IsCartVulnerable( udg_Carts[nPlayerIndex] ) ) then
// set bContinue = false
// set loc1 = GetUnitLoc( udg_Carts[nPlayerIndex] )
// set bContinue = UnitCatchGunFire( loc, rAngle, loc1, locVH )
// call RemoveLocation( loc1 )
// if ( bContinue ) then
// set nPlayerTarget = nPlayerIndex
// endif
// endif
//
// set nPlayerIndex = nPlayerIndex + 1
// endloop
//
// if ( nPlayerTarget >= 0 ) then
// set rHP = GetUnitState( udg_Carts[nPlayerTarget], UNIT_STATE_LIFE )
// if ( rHP <= 25 ) then
// call KillUnit( udg_Carts[nPlayerTarget] )
// else
// call SetUnitState( udg_Carts[nPlayerTarget], UNIT_STATE_LIFE, rHP - 25 )
// set effShoot = AddSpecialEffectTarget( "Abilities\\Weapons\\GyroCopter\\GyroCopterImpact.mdl", udg_Carts[nPlayerTarget], "chest" )
// call DestroyEffect( effShoot )
// set effShoot = AddSpecialEffectTarget( "Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl", udg_Carts[nPlayerTarget], "chest" )
// call DestroyEffect( effShoot )
// endif
// else
// set loc1 = PolarProjectionBJ( loc, 1450, rAngle )
// set effShoot = AddSpecialEffectLoc( "Abilities\\Weapons\\GyroCopter\\GyroCopterImpact.mdl", loc1 )
// call RemoveLocation( loc1 )
// call DestroyEffect( effShoot )
// endif
//
// call RemoveLocation( loc )
// call RemoveLocation( locVH )
//endfunction
function CartUseSpell takes unit uCart, integer nSpellId returns nothing
local integer nPlayerIndex = 0
local integer nIndex = 0
local integer nSlot = 0
local sound sndHonk = null
local integer nHonkIndex
set nPlayerIndex = GetPlayerIndex( GetOwningPlayer( uCart ) )
if ( nPlayerIndex < 0 ) then
return
endif
if ( nSpellId == 'A01X' ) then //honk
//call DisplayTextToForce( GetPlayersAll(), "CLAXON" )
set nHonkIndex = GetModelHonk( udg_PlayerModels[nPlayerIndex] )
set sndHonk = CreateHonkSound( nHonkIndex )
call PlaySoundOnUnitBJ( sndHonk, 100, udg_Carts[nPlayerIndex] )
call KillSoundWhenDone(sndHonk)
call PolledWait( 0.1 )
set udg_CartAnimIndex[nPlayerIndex] = udg_ANIM_NONE
return
endif
if ( udg_GameGoingStatus[nPlayerIndex] != udg_GAME_DRIVING ) then
return
endif
set nIndex = GetPowerUpTypeIndex( nSpellId )
if ( nIndex < 0 ) then
if ( nSpellId == 'A003' ) then
if ( udg_PlayerCameraIndex[nPlayerIndex] == 4 ) then
set udg_PlayerCameraIndex[nPlayerIndex] = 0
else
set udg_PlayerCameraIndex[nPlayerIndex] = udg_PlayerCameraIndex[nPlayerIndex] + 1
endif
elseif ( nSpellId == 'A01U' ) then //OKay, machine gun then
// call BigGun( uCart )
endif
endif
call PolledWait( 0.1 )
set udg_CartAnimIndex[nPlayerIndex] = udg_ANIM_NONE
if ( nIndex < 0 ) then
return
endif
if ( GetUnitAbilityLevel( uCart, nSpellId ) <= 0 ) then
return
endif
set nSlot = GetPowerUpTypeSlot( nSpellId )
if ( udg_PowerUpNames[nIndex] == "|cff80ff80Sheepedo3|r" ) then
// if ( MultiturtleCds(nPlayerIndex) ) then
// set udg_MultiTurtleCDs_Boolean[nPlayerIndex] = true
// call StartTimerBJ( udg_Timer_Multiturtle[nPlayerIndex], false, 3.00 )
//CHECK ON NUMBER OF MISSILE LEFT
if ( NumberGreenTurtleCheck10(nPlayerIndex) ) then
call ThrowTurtle3_10( uCart )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_9v2.tga"
endif
else
if ( NumberGreenTurtleCheck9(nPlayerIndex) ) then
call ThrowTurtle3_9( uCart )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_8v2.tga"
endif
else
if ( NumberGreenTurtleCheck8(nPlayerIndex) ) then
call ThrowTurtle3_8( uCart )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_7v2.tga"
endif
else
if ( NumberGreenTurtleCheck7(nPlayerIndex) ) then
call ThrowTurtle3_7( uCart )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_6v2.tga"
endif
else
if ( NumberGreenTurtleCheck6(nPlayerIndex) ) then
call ThrowTurtle3_6( uCart )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_5v2.tga"
endif
else
if ( NumberGreenTurtleCheck5(nPlayerIndex) ) then
call ThrowTurtle3_5( uCart )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_4v2.tga"
endif
else
if ( NumberGreenTurtleCheck4(nPlayerIndex) ) then
call ThrowTurtle3_4( uCart )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_3v2.tga"
endif
else
if ( NumberGreenTurtleCheck3(nPlayerIndex) ) then
call ThrowTurtle3_3( uCart )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_2v2.tga"
endif
else
if ( NumberGreenTurtleCheck2(nPlayerIndex) ) then
call ThrowTurtle3_2( uCart )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_E_coquilleMULTIVERT_1v2.tga"
endif
else
if ( NumberGreenTurtleCheck1(nPlayerIndex) ) then
//call DisplayTextToForce( GetPlayersAll(), "Zero" )
call ThrowTurtle3_1( uCart )
set udg_SkillNumber_integer[nPlayerIndex] = 0
call UnitRemoveAbility( uCart, nSpellId )
call RemoveCartSlotPowerUp( nPlayerIndex, nSlot )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_Ev1.tga"
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set udg_NUMBER_TURTLE_LEFT[nPlayerIndex] = udg_NUMBER_TURTLE_LEFT[nPlayerIndex] - 1
else
set udg_SkillNumber_integer[nPlayerIndex] = 0
set udg_NUMBER_TURTLE_LEFT[nPlayerIndex] = 10
call UnitRemoveAbility( uCart, nSpellId )
call RemoveCartSlotPowerUp( nPlayerIndex, nSlot )
call ShowDebugMsg( "how many left? " + I2S(udg_CartItemNum[nPlayerIndex]) )
if ( ConvertedPlayer(( nPlayerIndex + 1 )) == GetLocalPlayer()) then
set ItemUiFrame.texture = "war3mapImported\\Button_Ev1.tga"
endif
//ENDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
if ( udg_PowerUpNames[nIndex] == "|cff80ff80Engine Boost|r" ) then
//SHAKECAM EFFECT
//CAST ABILITIES
call EatMushroom( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Engine Boost2|r" ) then
//CAST ABILITIES
call EatMushroom2( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Engine Boost3|r" ) then
//CAST ABILITIES
call EatMushroom3( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Repair Kit|r" ) then
call UseRepairKit( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Blaze|r" ) then
call UseBlaze( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Ethereal Cloak|r" ) then
call SummonGhost( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Mine|r" ) then
call LayMine( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Sheepedo|r" ) then
call ThrowTurtle2( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Sheepedo2|r" ) then
call ThrowTurtle( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Web|r" ) then
call LayMine( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Web2|r" ) then
call SetupTrap( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Web3|r" ) then
call Blizzard( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Blizzard|r" ) then
call Blizzard( uCart )
elseif ( udg_PowerUpNames[nIndex] == "|cff80ff80Carrion Swarm|r" ) then
call CarrionSwarm( uCart )
endif
endif
endfunction
//===========================================================================
function InitTrig_Abilities_Functions takes nothing returns nothing
endfunction
function StartCDsBoost takes integer nPlayerIndex returns boolean
return ( udg_BoostLag_ColdownBoolean[nPlayerIndex] == false )
endfunction
function Frozen takes integer nPlayerIndex returns boolean
return ( udg_Frozen[nPlayerIndex] == true )
endfunction
function CalcTurnSpeed takes integer nModel, real nCurTurnSpeed, integer nTurning, real rSpeed, integer nAcceleration returns real
if ( rSpeed == 0 ) then
return 0.
endif
if ( nTurning == udg_TURNING_LEFT ) then
if ( rSpeed >= 0 ) then
return GetModelTurnRate( nModel )
else
return -GetModelTurnRate( nModel )
endif
elseif ( nTurning == udg_TURNING_RIGHT ) then
if ( rSpeed >= 0 ) then
return -GetModelTurnRate( nModel )
else
return GetModelTurnRate( nModel )
endif
endif
return 0.0
endfunction
function CalcDirection takes real rCurAngle, real rCurTurnSpeed returns real
return rCurAngle + rCurTurnSpeed * 3
endfunction
function CalcDrag takes integer nModel, real rSpeed, real rTurnSpeed returns real
if ( rSpeed == 0 ) then
return 0.0
endif
if ( rTurnSpeed < 0 ) then
set rTurnSpeed = -rTurnSpeed
endif
if ( rSpeed < 0 ) then
return -0.5 + rSpeed * ( GetModelMassDrag(nModel) - rTurnSpeed * 0.003 )
else
return 0.5 + rSpeed * ( GetModelMassDrag(nModel) + rTurnSpeed * 0.003 )
endif
endfunction
function GetModelMaxSpeedAfterBuff takes integer nPlayerIndex, location locMax returns boolean
local boolean bInjured = false
local real rMaxSpeed = GetModelMaxSpeed( udg_PlayerModels[nPlayerIndex] )
if ( UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'Bspe' ) ) then //Speed Bonus
set rMaxSpeed = rMaxSpeed * 1.5
endif
if ( UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'B008' ) ) then //Pit Stop
set rMaxSpeed = rMaxSpeed * 1.2
endif
if ( UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'B005' ) ) then //Invulnerable
set rMaxSpeed = rMaxSpeed * 1.3
endif
if ( UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'Bslo' ) or UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'Basl' ) or UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'B004' ) ) then
set rMaxSpeed = rMaxSpeed / 2
endif
if ( GetUnitLifePercent( udg_Carts[nPlayerIndex] ) <= 33 ) then
set rMaxSpeed = rMaxSpeed * 3 / 4
set bInjured = true
endif
call MoveLocation( locMax, rMaxSpeed, -rMaxSpeed / 3 )
return bInjured
endfunction
function CalcCurSpeed takes integer nPlayerIndex returns real
local location loc = null
local real rSpeed = 0
local real rAngle = 0
local real rAngle1 = 0
local real r
local location locMax
local boolean bSlide = false
if ( udg_GameGoingStatus[nPlayerIndex] != udg_GAME_DRIVING ) then
set rSpeed = udg_Speed[nPlayerIndex]
else
set loc = GetUnitLoc( udg_Carts[nPlayerIndex] )
set rSpeed = 3 + FakeSpeed( DistanceBetweenPoints( loc, udg_CartPrePos[nPlayerIndex] ) )
if ( rSpeed != 0 ) then
set rAngle = AngleBetweenPoints( udg_CartPrePos[nPlayerIndex], loc )
set rAngle1 = udg_Angle[nPlayerIndex]
if ( udg_Speed[nPlayerIndex] < 0 ) then
set rAngle1 = rAngle1 + 180
endif
set r = StandardAngle( rAngle1 - rAngle )
if ( r > 2 or r < -2 ) then
set bSlide = true
endif
if ( CosBJ( rAngle - udg_Angle[nPlayerIndex] ) < 0 ) then
set rSpeed = -rSpeed
endif
endif
call RemoveLocation( loc )
set locMax = Location( 0, 0 )
call GetModelMaxSpeedAfterBuff( nPlayerIndex, locMax )
if ( bSlide ) then
call MoveLocation( locMax, GetLocationX(locMax) / 3, GetLocationY(locMax) / 3 )
endif
if ( rSpeed > GetLocationX(locMax) ) then
set rSpeed = GetLocationX(locMax)
elseif ( rSpeed < GetLocationY(locMax) ) then
set rSpeed = GetLocationY(locMax)
endif
call RemoveLocation( locMax )
endif
return rSpeed
endfunction
function CalcSpeed takes integer nPlayerIndex, real rCurSpeed, integer nAcceleration, real rCurTurnSpeed returns real
local real rSpeed = rCurSpeed
local integer nModel = udg_PlayerModels[nPlayerIndex]
local location locMax
if ( ( rSpeed < 0 and nAcceleration > 0 ) or ( rSpeed > 0 and nAcceleration < 0 ) ) then
set nAcceleration = nAcceleration * 2
endif
set rSpeed = rSpeed + nAcceleration * GetModelAcceRate(nModel)
if ( rSpeed < 0 ) then
set rSpeed = rSpeed - CalcDrag( nModel, rCurSpeed, rCurTurnSpeed )
if ( rSpeed > 0 ) then
set rSpeed = 0
endif
elseif ( rSpeed > 0 ) then
set rSpeed = rSpeed - CalcDrag( nModel, rCurSpeed, rCurTurnSpeed )
if ( rSpeed < 0 ) then
set rSpeed = 0
endif
endif
set locMax = Location( 0, 0 )
call GetModelMaxSpeedAfterBuff( nPlayerIndex, locMax )
if ( rSpeed > GetLocationX(locMax) ) then
set rSpeed = GetLocationX(locMax)
elseif ( rSpeed < GetLocationY(locMax) ) then
set rSpeed = GetLocationY(locMax)
endif
call RemoveLocation( locMax )
return rSpeed
endfunction
function CalcFinishingSpeed takes integer nModel, real rCurSpeed returns real
if ( rCurSpeed < 10 ) then
return 0.0
else
return rCurSpeed * 19 / 20
endif
endfunction
function IsValidLocForVehicle takes location loc returns boolean
local boolean bValid = true
local integer nIndex = 0
if ( GetTerrainCliffLevel( GetLocationX( loc ), GetLocationY( loc ) ) != 4 ) then
set bValid = false
else
set nIndex = 0
loop
exitwhen nIndex >= udg_ProhibitAreaNum
if ( RectContainsLoc( udg_ProhibitAreas[nIndex], loc ) ) then
set bValid = false
exitwhen true
endif
set nIndex = nIndex + 1
endloop
endif
return bValid
endfunction
function CaughtInTornado takes integer nPlayerIndex returns boolean
if ( not UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'Btsp' ) ) then
if ( udg_CaughtInTornado[nPlayerIndex] ) then
set udg_CaughtInTornado[nPlayerIndex] = false
set udg_Angle[nPlayerIndex] = udg_PlaceCheckPtDir[udg_PlaceChkPtCur[nPlayerIndex]]
call SetUnitFacing( udg_Carts[nPlayerIndex], udg_Angle[nPlayerIndex] )
call SetUnitPosition( udg_Carts[nPlayerIndex], GetUnitX(udg_Carts[nPlayerIndex]), GetUnitY(udg_Carts[nPlayerIndex]))
endif
return false
endif
// Haha, caught in tornado
set udg_CaughtInTornado[nPlayerIndex] = true
set udg_Speed[nPlayerIndex] = 0
call SetUnitTimeScale( udg_Carts[nPlayerIndex], 1 )
set udg_Angle[nPlayerIndex] = udg_Angle[nPlayerIndex] + 28
return true
endfunction
function FrozenByIce takes integer nPlayerIndex returns boolean
if ( not UnitHasBuffBJ(udg_Carts[nPlayerIndex], 'B007' ) ) then
if ( udg_Frozen[nPlayerIndex] ) then
if ( udg_FrozenEffect[nPlayerIndex] != null ) then
call DestroyEffect( udg_FrozenEffect[nPlayerIndex] )
set udg_FrozenEffect[nPlayerIndex] = null
endif
set udg_Frozen[nPlayerIndex] = false
call SetCartInvulnerable( udg_Carts[nPlayerIndex], false )
set udg_IceTrunkCooldown[nPlayerIndex] = 0
endif
return false
endif
// Haha, Frozen
set udg_Frozen[nPlayerIndex] = true
set udg_Speed[nPlayerIndex] = 0
call SetUnitTimeScale( udg_Carts[nPlayerIndex], 1 )
call SetCartInvulnerable( udg_Carts[nPlayerIndex], true )
if ( udg_FrozenEffect[nPlayerIndex] == null ) then
call PlaySoundOnUnitBJ( gg_snd_FreezingBreathTarget1, 100, udg_Carts[nPlayerIndex] )
set udg_FrozenEffect[nPlayerIndex] = AddSpecialEffectTarget( "Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathTargetArt.mdl", udg_Carts[nPlayerIndex], "origin" )
endif
return true
endfunction
function LostControl takes integer nPlayerIndex returns boolean
local real rAngle = 0
local location loc = null
local location locPre = null
local real rSpeed = 0
local real scale = 0
local sound sndSpin = null
local integer nSpinIndex
if ( not IsCartSpinning(udg_Carts[nPlayerIndex] ) ) then
if ( udg_LostControl[nPlayerIndex] ) then
// call SetUserControlForceOff( bj_FORCE_PLAYER[nPlayerIndex] )
if ( udg_LostControlTickle[nPlayerIndex] < 20 ) then
set udg_Angle[nPlayerIndex] = udg_PlaceCheckPtDir[udg_PlaceChkPtCur[nPlayerIndex]]
call SetUnitPosition( udg_Carts[nPlayerIndex], GetUnitX(udg_Carts[nPlayerIndex]), GetUnitY(udg_Carts[nPlayerIndex]) )
call SetUnitFacingTimed( udg_Carts[nPlayerIndex], udg_Angle[nPlayerIndex], 0 )
set udg_LostControlTickle[nPlayerIndex] = udg_LostControlTickle[nPlayerIndex] + 1
return true
endif
set udg_LostControl[nPlayerIndex] = false
// call SetUserControlForceOn( bj_FORCE_PLAYER[nPlayerIndex] )
endif
return false
endif
set udg_LostControl[nPlayerIndex] = true
set udg_LostControlTickle[nPlayerIndex] = 0
// set locPre = GetUnitLoc(udg_Carts[nPlayerIndex])
// set udg_Speed[nPlayerIndex] = udg_Speed[nPlayerIndex] * 50 / 40
// set rSpeed = udg_Speed[nPlayerIndex] / 3
//call PlaySoundAtPointBJ( gg_snd_SpinSOundv5, 100, GetUnitLoc(udg_Carts[nPlayerIndex]), 0 )
// set loc = PolarProjectionBJ( locPre, rSpeed, udg_Angle[nPlayerIndex])
// call RemoveLocation( locPre )
// if ( IsValidLocForVehicle( loc ) ) then
// call SetUnitPositionLoc( udg_Carts[nPlayerIndex], loc )
// endif
// call RemoveLocation( loc )
set rAngle = GetUnitFacing( udg_Carts[nPlayerIndex] ) + 5
//call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndex], "Abilities\Spells\Human\Polymorph\PolyMorphDoneGround.mdl" )
//set udg_ToonImpact[nPlayerIndex] = GetLastCreatedEffectBJ()
//call BlzSetSpecialEffectScale( udg_ToonImpact[nPlayerIndex], 1.03 )
call SetUnitFacingTimed( udg_Carts[nPlayerIndex], rAngle, 0 )
call ShowDebugMsg( R2S(rAngle) )
return true
endfunction
function Move takes integer nPlayerIndex returns nothing
local location loc = null
local real rSpeed = 0
local real scale = 0
if ( nPlayerIndex < 0 ) then
return
endif
set rSpeed = RealSpeed( udg_Speed[nPlayerIndex] )
// set loc = PolarProjectionBJ( udg_CartPrePos[nPlayerIndex], rSpeed, udg_Angle[nPlayerIndex])
// if ( IsValidLocForVehicle( loc ) ) then
// if ( GetPlayerController(Player(nPlayerIndex)) == MAP_CONTROL_USER and GetPlayerSlotState(Player(nPlayerIndex)) == PLAYER_SLOT_STATE_PLAYING ) then
// else
// call SetUnitPositionLoc( udg_Carts[nPlayerIndex], loc )
// if not Cars[nPlayerIndex].up then
// call DisplayTextToForce( GetPlayersAll(), "POP 1 TIME MOVE UP" )
// set Cars[nPlayerIndex].up = true
// endif
// set Cars[nPlayerIndex].up = true
// endif
// call BlzSetSpecialEffectPositionLoc(udg_SkyboxTestp1[nPlayerIndex], loc)
// else
// call StopCart( nPlayerIndex )
// endif
// call RemoveLocation( loc )
// call SetUnitFacingTimed( udg_Carts[nPlayerIndex], udg_Angle[nPlayerIndex], 0.01 )
//Check whether the cart are near enough to an item
if ( udg_TickSlow == 0 ) then
// call DisplayTextToForce( GetPlayersAll(), "TICKSLOW NOT BROKEN" )
endif
// if ( rSpeed > 0 ) then
if ( udg_PlayerBlazeFlag[nPlayerIndex] > 0 ) then
if ( StartCDsBoost(nPlayerIndex) ) then
set udg_BoostLag_ColdownBoolean[nPlayerIndex] = true
call StartTimerBJ( udg_Timer_BoostLag[nPlayerIndex], false, 0.03 )
call DoBlaze( nPlayerIndex )
endif
endif
if ( udg_PlayerBlazeFlag2[nPlayerIndex] > 0 ) then
if ( StartCDsBoost(nPlayerIndex) ) then
set udg_BoostLag_ColdownBoolean[nPlayerIndex] = true
call StartTimerBJ( udg_Timer_BoostLag[nPlayerIndex], false, 0.03 )
call DoBlaze2( nPlayerIndex )
endif
endif
if ( udg_PlayerBlazeFlag3[nPlayerIndex] > 0 ) then
if ( StartCDsBoost(nPlayerIndex) ) then
set udg_BoostLag_ColdownBoolean[nPlayerIndex] = true
call StartTimerBJ( udg_Timer_BoostLag[nPlayerIndex], false, 0.03 )
call DoBlaze3( nPlayerIndex )
endif
endif
if ( udg_PlayerBlazeFlag4[nPlayerIndex] > 0 ) then
if ( StartCDsBoost(nPlayerIndex) ) then
set udg_BoostLag_ColdownBoolean[nPlayerIndex] = true
call StartTimerBJ( udg_Timer_BoostLag[nPlayerIndex], false, 0.03 )
call DoBlaze4( nPlayerIndex )
endif
endif
// endif
endfunction
function DoInjureEffect takes integer nPlayerIndex returns nothing
if ( udg_Carts[nPlayerIndex] != null and IsUnitAliveBJ( udg_Carts[nPlayerIndex] ) and GetUnitLifePercent( udg_Carts[nPlayerIndex] ) <= 33 ) then
if ( udg_EffectInjured[nPlayerIndex] == null ) then
set udg_EffectInjured[nPlayerIndex] = AddSpecialEffectTarget( "Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl", udg_Carts[nPlayerIndex], "chest" )
call ShowWarningMsg( Player(nPlayerIndex), "Your cart loses speed due to damage!" )
endif
else
if ( udg_EffectInjured[nPlayerIndex] != null ) then
call DestroyEffect( udg_EffectInjured[nPlayerIndex] )
set udg_EffectInjured[nPlayerIndex] = null
endif
endif
endfunction
function DoBrakeLight takes integer nPlayerIndex returns nothing
local boolean bBrake = false
local boolean bOn = false
local integer nBrakeLight = 'A01Y'
if ( udg_GameGoingStatus[nPlayerIndex] == udg_GAME_PREPARING or udg_GameGoingStatus[nPlayerIndex] == udg_GAME_FINISHING ) then
set bBrake = true
elseif ( udg_GameGoingStatus[nPlayerIndex] == udg_GAME_DRIVING ) then
if ( udg_Accelerating[nPlayerIndex] < 0 ) then
set bBrake = true
endif
endif
set bOn = GetUnitAbilityLevel( udg_Carts[nPlayerIndex], nBrakeLight ) > 0
if ( bBrake ) then
if ( bOn ) then
return
else
call UnitAddAbility( udg_Carts[nPlayerIndex], nBrakeLight )
endif
else
if ( bOn ) then
call UnitRemoveAbility( udg_Carts[nPlayerIndex], nBrakeLight )
else
return
endif
endif
endfunction
function RefreshCartAnim takes integer nPlayerIndex returns nothing
local real rSpeed
local real rScale
local integer nAnim
if ( udg_GameOver ) then
return
endif
if ( udg_Carts[nPlayerIndex] == null or IsUnitDeadBJ( udg_Carts[nPlayerIndex] ) ) then
set udg_CartAnimIndex[nPlayerIndex] = udg_ANIM_NONE
return
endif
if ( udg_GameGoingStatus[nPlayerIndex] == udg_GAME_FINISHING or udg_GameGoingStatus[nPlayerIndex] == udg_GAME_OVER ) then
if ( udg_CartAnimIndex[nPlayerIndex] != udg_ANIM_VICTORY ) then
call SetUnitAnimationByIndex( udg_Carts[nPlayerIndex], GetModelAnimVictoryID( udg_PlayerModels[nPlayerIndex] ) )
// call SetUnitTimeScale( udg_Carts[nPlayerIndex], 1 )
set udg_CartAnimIndex[nPlayerIndex] = udg_ANIM_VICTORY
endif
return
endif
if ( udg_GunAttackTick[nPlayerIndex] >= 0 ) then
set udg_GunAttackTick[nPlayerIndex] = udg_GunAttackTick[nPlayerIndex] + 1
if ( udg_GunAttackTick[nPlayerIndex] > 5 ) then
set udg_GunAttackTick[nPlayerIndex] = -1
endif
endif
if ( udg_Speed[nPlayerIndex] == 0) then
if ( udg_GunAttackTick[nPlayerIndex] < 0 ) then
set nAnim = udg_ANIM_STAND
else
set nAnim = udg_ANIM_STANDATTACK
endif
if ( udg_CartAnimIndex[nPlayerIndex] == nAnim ) then
return
endif
set udg_CartAnimIndex[nPlayerIndex] = nAnim
if ( udg_CartAnimIndex[nPlayerIndex] == udg_ANIM_STAND ) then
call SetUnitAnimationByIndex( udg_Carts[nPlayerIndex], GetModelAnimStandID( udg_PlayerModels[nPlayerIndex] ) )
else
call SetUnitAnimationByIndex( udg_Carts[nPlayerIndex], GetModelAnimStandAttackID( udg_PlayerModels[nPlayerIndex] ) )
endif
if ( udg_GunAttackTick[nPlayerIndex] < 0 ) then
// call SetUnitTimeScale( udg_Carts[nPlayerIndex], 1 )
else
// call SetUnitTimeScale( udg_Carts[nPlayerIndex], 5 )
endif
else
if ( udg_GunAttackTick[nPlayerIndex] < 0 ) then
set nAnim = udg_ANIM_WALK
else
set nAnim = udg_ANIM_WALKATTACK
endif
if ( udg_CartAnimIndex[nPlayerIndex] != nAnim ) then
set udg_CartAnimIndex[nPlayerIndex] = nAnim
if ( udg_CartAnimIndex[nPlayerIndex] == udg_ANIM_WALK ) then
call SetUnitAnimationByIndex( udg_Carts[nPlayerIndex], GetModelAnimWalkID( udg_PlayerModels[nPlayerIndex] ) )
else
call SetUnitAnimationByIndex( udg_Carts[nPlayerIndex], GetModelAnimWalkAttackID( udg_PlayerModels[nPlayerIndex] ) )
endif
endif
if ( udg_GunAttackTick[nPlayerIndex] < 0 ) then
set rSpeed = udg_Speed[nPlayerIndex]
if ( rSpeed < 0 ) then
set rSpeed = -rSpeed
endif
// set rScale = rSpeed * 6 / GetModelMaxSpeed(udg_PlayerModels[nPlayerIndex])
// call SetUnitTimeScale( udg_Carts[nPlayerIndex], rScale )
else
// call SetUnitTimeScale( udg_Carts[nPlayerIndex], 5 )
endif
endif
endfunction
function RefreshCartSound takes integer nPlayerIndex returns nothing
local real rSpeedMax = 0
local real rSpeedAbs = 0
if ( udg_Carts[nPlayerIndex] == null or IsUnitDeadBJ(udg_Carts[nPlayerIndex]) ) then
call ChangeCartSound( nPlayerIndex, udg_SNDINDEX_NONE )
return
endif
set rSpeedAbs = RAbsBJ( udg_Speed[nPlayerIndex] )
set rSpeedMax = GetModelMaxSpeed( udg_PlayerModels[nPlayerIndex] ) * 4 / 3
if ( rSpeedAbs < rSpeedMax / 15 ) then
call ChangeCartSound( nPlayerIndex, udg_SNDINDEX_COAST )
elseif ( rSpeedAbs <= rSpeedMax / 3 ) then
call ChangeCartSound( nPlayerIndex, udg_SNDINDEX_GOING1 )
elseif ( rSpeedAbs <= rSpeedMax * 2 / 3 ) then
call ChangeCartSound( nPlayerIndex, udg_SNDINDEX_GOING2 )
else
call ChangeCartSound( nPlayerIndex, udg_SNDINDEX_GOING3 )
endif
endfunction
function TurnWheel takes player plPlayer, integer nTurning returns nothing
local integer nPlayerIndex = -1
set nPlayerIndex = GetPlayerIndex(plPlayer)
if ( nPlayerIndex < 0 ) then
return
endif
set udg_Turning[nPlayerIndex] = nTurning
endfunction
function ReleaseWheel takes player plPlayer, integer nTurning returns nothing
local integer nPlayerIndex = GetPlayerIndex(plPlayer)
if ( nPlayerIndex < 0 ) then
return
endif
if ( udg_Turning[nPlayerIndex] == nTurning ) then
set udg_Turning[nPlayerIndex] = udg_TURNING_NOTURN
endif
endfunction
function Accelerate2 takes player plPlayer, integer nAccelerating returns nothing
local integer nPlayerIndex = GetPlayerIndex(plPlayer)
if ( nPlayerIndex < 0 ) then
return
endif
if ( udg_Accelerating[nPlayerIndex] != udg_ACCELERATE_COAST ) then
return
endif
set udg_Accelerating[nPlayerIndex] = nAccelerating
endfunction
function Coast takes player plPlayer, integer nAccelerating returns nothing
local integer nPlayerIndex = GetPlayerIndex(plPlayer)
if ( nPlayerIndex < 0 ) then
return
endif
if ( udg_Accelerating[nPlayerIndex] != nAccelerating ) then
return
endif
set udg_Accelerating[nPlayerIndex] = udg_ACCELERATE_COAST
endfunction
function GiveMeNewCart takes integer nPlayerIndex, location loc returns unit
local location loc1 = null
local location loc2 = null
local unit uPlane = null
local real rAngle = 0
local real rDis = 0
local unit uCartFalling = null
local real rHeight = 400
local real rScale = 0
local integer nIndex = 0
set loc1 = Location( GetLocationX(loc), GetLocationY(loc) )
set rAngle = udg_Angle[nPlayerIndex] - 45
set loc2 = PolarProjectionBJ( loc1, 1200, rAngle )
set uPlane = CreateUnitAtLoc( udg_NPC, 'h00I', loc2, rAngle + 180 )
call RemoveLocation( loc2 )
call SetUnitPathing( uPlane, false )
call IssuePointOrderLoc( uPlane, "move", loc1 )
call SetUnitFlyHeight( uPlane, 300, 5000 )
call SetUnitFlyHeight( uPlane, 500, 60 )
call PolledWait( 2 )
loop
set loc2 = GetUnitLoc( uPlane )
set rDis = DistanceBetweenPoints( loc1, loc2 )
call RemoveLocation( loc2 )
if ( rDis < 20 ) then
exitwhen true
endif
call PolledWait( 0.1 )
endloop
call PolledWait( 0.2 )
set loc2 = PolarProjectionBJ( loc1, 1500, rAngle + 90 )
set uCartFalling = CreateUnitAtLoc( Player(nPlayerIndex), GetModelFlyUnitType( udg_PlayerModels[nPlayerIndex] ), loc1, udg_Angle[nPlayerIndex] )
call RemoveLocation( loc1 )
call SetUnitPathing( uCartFalling, false )
call SetUnitScale( uCartFalling, 0.96, 0.96, 0.96 )
call SetUnitFlyHeight( uCartFalling, 450, 99999 )
call PolledWait( 0.1 )
set nIndex = 0
loop
call SetUnitFlyHeight( uCartFalling, 0, (nIndex + 1 ) * ( nIndex + 1 ) * 50 )
call PolledWait( 0.1 )
exitwhen nIndex >= 4
if ( nIndex == 2 ) then
call IssuePointOrderLoc( uPlane, "move", loc2 )
call RemoveLocation( loc2 )
endif
set rScale = 0.96 + nIndex * 0.01
call SetUnitScale( uCartFalling, rScale, rScale, rScale )
set nIndex = nIndex + 1
endloop
call RemoveUnit( uCartFalling )
return uPlane
endfunction
function SheepFlee takes nothing returns nothing
local integer nIndex1 = 0
local integer nIndex2 = 0
local unit uSheep = null
local location locTarget = null
set udg_SheepFled = true
set nIndex1 = 0
loop
exitwhen nIndex1 >= 12
set nIndex2 = 0
loop
exitwhen nIndex2 >= 2
set uSheep = CreateUnit( udg_NPC, 'nshe', GetRectCenterX(gg_rct_SheepArea), GetRectCenterY(gg_rct_SheepArea), I2R(GetRandomInt(0, 359)) )
set locTarget = GetRandomLocInRect( gg_rct_SheepMoveTarget )
call IssuePointOrderLoc( uSheep, "move", locTarget )
call RemoveLocation( locTarget )
set nIndex2 = nIndex2 + 1
call PolledWait( 0.2 )
endloop
set nIndex1 = nIndex1 + 1
call PolledWait( 1 )
endloop
endfunction
function ShipAttack takes nothing returns nothing
local integer nIndex = 0
local location loc = null
loop
exitwhen udg_Ships[nIndex] == null
set loc = GetRandomLocInRect( gg_rct_ShipAttackArea )
call IssuePointOrderLoc( udg_Ships[nIndex], "attackground", loc )
call RemoveLocation( loc )
set nIndex = nIndex + 1
endloop
endfunction
function ShipStartMove takes nothing returns nothing
local integer nIndex = 0
loop
exitwhen udg_Ships[nIndex] == null
call PauseUnit( udg_Ships[nIndex], false )
call IssuePointOrderLoc( udg_Ships[nIndex], "Move", udg_ShipTargetPoint[nIndex] )
set nIndex = nIndex + 1
endloop
endfunction
function ShipStartAttack takes nothing returns nothing
local integer nIndex = 0
loop
exitwhen udg_Ships[nIndex] == null
call SetUnitMoveSpeed( udg_Ships[nIndex], 0 )
set nIndex = nIndex + 1
endloop
call TimerStart( udg_ShipAttackTimer, 3, true, null )
call ShipAttack()
endfunction
function KeyPress takes nothing returns nothing
local integer pid = GetPlayerId(GetTriggerPlayer())
if BlzGetTriggerPlayerKey() == OSKEY_W then
call Accelerate2( Player(pid), udg_ACCELERATE_FORWARD )
elseif BlzGetTriggerPlayerKey() == OSKEY_S then
call Accelerate2( Player(pid), udg_ACCELERATE_BACKWARD )
elseif BlzGetTriggerPlayerKey() == OSKEY_A then
call TurnWheel(Player(pid), udg_TURNING_LEFT )
elseif BlzGetTriggerPlayerKey() == OSKEY_D then
call TurnWheel(Player(pid), udg_TURNING_RIGHT )
endif
endfunction
function KeyRelease takes nothing returns nothing
local integer pid = GetPlayerId(GetTriggerPlayer())
if BlzGetTriggerPlayerKey() == OSKEY_W then
call Coast( Player(pid), udg_ACCELERATE_FORWARD )
elseif BlzGetTriggerPlayerKey() == OSKEY_S then
call Coast( Player(pid), udg_ACCELERATE_BACKWARD )
elseif BlzGetTriggerPlayerKey() == OSKEY_A then
call ReleaseWheel( Player(pid), udg_TURNING_LEFT )
elseif BlzGetTriggerPlayerKey() == OSKEY_D then
call ReleaseWheel( Player(pid), udg_TURNING_RIGHT )
endif
endfunction
function SetUpWASD takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Driving_Functions_Copy_2 takes nothing returns nothing
local integer i = 0
local trigger pressKey = CreateTrigger()
local trigger releaseKey = CreateTrigger()
call TriggerAddAction(pressKey, function KeyPress)
call TriggerAddAction(releaseKey, function KeyRelease)
loop
exitwhen i > 23
call BlzTriggerRegisterPlayerKeyEvent(pressKey,Player(i),OSKEY_W,0,true)
call BlzTriggerRegisterPlayerKeyEvent(releaseKey,Player(i),OSKEY_W,0,false)
call BlzTriggerRegisterPlayerKeyEvent(pressKey,Player(i),OSKEY_S,0,true)
call BlzTriggerRegisterPlayerKeyEvent(releaseKey,Player(i),OSKEY_S,0,false)
call BlzTriggerRegisterPlayerKeyEvent(pressKey,Player(i),OSKEY_A,0,true)
call BlzTriggerRegisterPlayerKeyEvent(releaseKey,Player(i),OSKEY_A,0,false)
call BlzTriggerRegisterPlayerKeyEvent(pressKey,Player(i),OSKEY_D,0,true)
call BlzTriggerRegisterPlayerKeyEvent(releaseKey,Player(i),OSKEY_D,0,false)
set i = i + 1
endloop
endfunction
function DeselectCart takes player plPlayer, unit uCart returns nothing
local integer nPlayerIndex = GetPlayerIndex(plPlayer)
//if ( nPlayerIndex < 0 ) then
// return
//endif
//
// if ( udg_Carts[nPlayerIndex] == null or uCart != udg_Carts[nPlayerIndex] or IsUnitDeadBJ( udg_Carts[nPlayerIndex] ) ) then
// return
// endif
//
// call ClearSelectionForPlayer( plPlayer )
// call SelectUnitForPlayerSingle( udg_Carts[nPlayerIndex], plPlayer )
endfunction
function SelectSomethingElse takes player plPlayer, unit uSelected returns nothing
local integer nPlayerIndex = GetPlayerIndex(plPlayer)
// if ( nPlayerIndex < 0 ) then
// return
// endif
//
// if ( udg_Carts[nPlayerIndex] == null or uSelected == udg_Carts[nPlayerIndex] or IsUnitDeadBJ( udg_Carts[nPlayerIndex] ) ) then
// return
// endif
//
// call ClearSelectionForPlayer( plPlayer )
// call SelectUnitForPlayerSingle( udg_Carts[nPlayerIndex], plPlayer )
endfunction
//===========================================================================
function InitTrig_Select_Cart_Functions takes nothing returns nothing
endfunction
function Repair takes unit uCart, integer nSpot, real rFace returns nothing
local player plPlayer = GetOwningPlayer( uCart )
local integer nPlayerIndex = GetPlayerIndex( plPlayer )
local location locGarage = null
local real rHPCur = 0
local real rHPMax = 0
local real rTimePassed = 0
local unit uAssistant = null
local integer array nPowerUps
if ( nPlayerIndex < 0 ) then
return
endif
if ( udg_PitGarageOccupied[nSpot] ) then
return
endif
if ( udg_GameGoingStatus[nPlayerIndex] != udg_GAME_DRIVING ) then
return
endif
if ( GetUnitState( udg_Carts[nPlayerIndex], UNIT_STATE_LIFE ) >= GetUnitState( udg_Carts[nPlayerIndex], UNIT_STATE_MAX_LIFE ) and udg_GunAmmo[nPlayerIndex] >= udg_AMMO_MAX ) then
return
endif
set udg_GameGoingStatus[nPlayerIndex] = udg_GAME_REPAIRING
set udg_PitGarageOccupied[nSpot] = true
call StopCart( nPlayerIndex )
set locGarage = GetUnitLoc( udg_PitGarages[nSpot] )
if ( udg_ItsForDebug ) then
call SetUnitLifeBJ(uCart, 10)
endif
set rFace = rFace + 40
set rHPCur = GetUnitState( udg_Carts[nPlayerIndex], UNIT_STATE_LIFE)
// set nPowerUps[0] = GetCartSlotPowerUp( nPlayerIndex, 0 )
// set nPowerUps[1] = GetCartSlotPowerUp( nPlayerIndex, 1 )
// set nPowerUps[2] = GetCartSlotPowerUp( nPlayerIndex, 2 )
// set nPowerUps[3] = GetCartSlotPowerUp( nPlayerIndex, 3 )
call RemoveUnit( udg_Carts[nPlayerIndex] )
set udg_Carts[nPlayerIndex] = CreateUnitAtLoc( Player(nPlayerIndex), GetModelUnitType( udg_PlayerModels[nPlayerIndex] ), locGarage, rFace )
call SetUnitLifeBJ( udg_Carts[nPlayerIndex], rHPCur )
if ( nPowerUps[0] != 0 ) then
// call UnitAddAbility( udg_Carts[nPlayerIndex], nPowerUps[0] )
endif
if ( nPowerUps[1] != 0 ) then
// call UnitAddAbility( udg_Carts[nPlayerIndex], nPowerUps[1] )
endif
if ( nPowerUps[2] != 0 ) then
// call UnitAddAbility( udg_Carts[nPlayerIndex], nPowerUps[2] )
endif
if ( nPowerUps[3] != 0 ) then
// call UnitAddAbility( udg_Carts[nPlayerIndex], nPowerUps[3] )
endif
set udg_Angle[nPlayerIndex] = rFace
call ClearSelectionForPlayer( Player(nPlayerIndex) )
call SelectUnitForPlayerSingle( udg_Carts[nPlayerIndex], Player(nPlayerIndex) )
call ChargeBigGunSingle( nPlayerIndex )
call PolledWait( 0.2 )
set rHPMax = GetUnitState( udg_Carts[nPlayerIndex], UNIT_STATE_MAX_LIFE)
loop
set rHPCur = rHPCur + 80
if ( rHPCur > rHPMax ) then
set rHPCur = rHPMax
endif
call SetUnitLifeBJ( udg_Carts[nPlayerIndex], rHPCur )
if ( rHPCur >= rHPMax ) then
call SetUnitAnimationByIndex( udg_PitCrews[nSpot], 2 )
exitwhen true
endif
if ( rTimePassed >= 0.5 ) then
call SetUnitAnimationByIndex( udg_PitCrews[nSpot], 7 )
set rTimePassed = 0
endif
call PolledWait(0.1)
set rTimePassed = rTimePassed + 0.1
endloop
call PlaySoundPlayer( Player(nPlayerIndex), gg_snd_HeroTinkerWhat4 )
call DisplayTextToPlayer( Player(nPlayerIndex), 0, 0, "Repairing is done. Now get out of here." )
set udg_GameGoingStatus[nPlayerIndex] = udg_GAME_DRIVING
set udg_PitGarageOccupied[nSpot] = false
call RemoveLocation( locGarage )
set uAssistant = CreateAssistant1( nPlayerIndex, 2 )
call IssueTargetOrder( uAssistant, "unholyfrenzy", udg_Carts[nPlayerIndex] )
endfunction
//===========================================================================
function InitTrig_Repairing_Functions takes nothing returns nothing
endfunction
function Trig_SpeedBoostShakeP1_Copy_Actions takes nothing returns nothing
call CameraSetEQNoiseForPlayer( Player(0), 2.00 )
call PolledWait( 2.00 )
call CameraClearNoiseForPlayer( Player(0) )
endfunction
//===========================================================================
function InitTrig_SpeedBoostShakeP1_Copy takes nothing returns nothing
set gg_trg_SpeedBoostShakeP1_Copy = CreateTrigger( )
call TriggerAddAction( gg_trg_SpeedBoostShakeP1_Copy, function Trig_SpeedBoostShakeP1_Copy_Actions )
endfunction
function MineCartReachStop takes unit uWagon, rect rcStart, rect rcTarget returns nothing
//local effect eff
//local location loc = Location( GetRectCenterX(rcStart), GetRectCenterY(rcTarget) )
//set eff = AddSpecialEffectLoc( "Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl", loc)
//call DestroyEffect( eff )
call IssuePointOrder( uWagon, "move", GetRectCenterX(rcStart), GetRectCenterY(rcTarget) )
endfunction
function CreateMineCart takes rect rectStart, rect rectEnd, integer nCartId, real rSpeed, real rFace returns unit
local location loc1 = GetRectCenter( rectStart )
local unit uCart = CreateUnitAtLoc( udg_NPC, nCartId, loc1, rFace )
//call ShowGeneralMsg( "mine cart", false )
call RemoveLocation( loc1 )
call SetUnitPathing( uCart, false )
call SetUnitMoveSpeed( uCart, rSpeed )
call MineCartReachStop( uCart, rectStart, rectEnd )
return uCart
endfunction
function FirstStop takes unit uWagon returns nothing
local integer nTypeId = GetUnitTypeId( uWagon )
if ( nTypeId == 'h00K' ) then //11
call MineCartReachStop( uWagon, gg_rct_MineCartStart11, gg_rct_MineCartEnd1 )
elseif ( nTypeId == 'h003' ) then //21
call MineCartReachStop( uWagon, gg_rct_MineCartStart21, gg_rct_MineCartPath2 )
elseif ( nTypeId == 'h005' ) then //12
call MineCartReachStop( uWagon, gg_rct_MineCartStart12, gg_rct_MineCartEnd1 )
elseif ( nTypeId == 'h006' ) then //22
call MineCartReachStop( uWagon, gg_rct_MineCartStart22, gg_rct_MineCartPath2 )
endif
endfunction
function SecondStop takes unit uWagon returns nothing
local integer nTypeId = GetUnitTypeId( uWagon )
if ( nTypeId == 'h00K' ) then //11
call MineCartReachStop( uWagon, gg_rct_MineCartStart11, gg_rct_MineCartPath1 )
elseif ( nTypeId == 'h003' ) then //21
call MineCartReachStop( uWagon, gg_rct_MineCartStart21, gg_rct_MineCartPath3 )
elseif ( nTypeId == 'h005' ) then //12
call MineCartReachStop( uWagon, gg_rct_MineCartStart12, gg_rct_MineCartPath1 )
elseif ( nTypeId == 'h006' ) then //22
call MineCartReachStop( uWagon, gg_rct_MineCartStart22, gg_rct_MineCartPath3 )
endif
endfunction
function ThirdStop takes unit uWagon returns nothing
local integer nTypeId = GetUnitTypeId( uWagon )
if ( nTypeId == 'h00K' ) then //11
call MineCartReachStop( uWagon, gg_rct_MineCartStart11, gg_rct_MineCartPath2 )
elseif ( nTypeId == 'h003' ) then //21
call MineCartReachStop( uWagon, gg_rct_MineCartStart21, gg_rct_MineCartPath4 )
elseif ( nTypeId == 'h005' ) then //12
call MineCartReachStop( uWagon, gg_rct_MineCartStart12, gg_rct_MineCartPath2 )
elseif ( nTypeId == 'h006' ) then //22
call MineCartReachStop( uWagon, gg_rct_MineCartStart22, gg_rct_MineCartPath4 )
endif
endfunction
function ForthStop takes unit uWagon returns nothing
local integer nTypeId = GetUnitTypeId( uWagon )
if ( nTypeId == 'h00K' ) then //11
call MineCartReachStop( uWagon, gg_rct_MineCartStart11, gg_rct_MineCartPath3 )
elseif ( nTypeId == 'h003' ) then //21
call MineCartReachStop( uWagon, gg_rct_MineCartStart21, gg_rct_MineCartEnd2 )
elseif ( nTypeId == 'h005' ) then //12
call MineCartReachStop( uWagon, gg_rct_MineCartStart12, gg_rct_MineCartPath3 )
elseif ( nTypeId == 'h006' ) then //22
call MineCartReachStop( uWagon, gg_rct_MineCartStart22, gg_rct_MineCartEnd2 )
endif
endfunction
function MineCartControl takes nothing returns nothing
if ( ModuloInteger( udg_MineCartTimerCount, 4 ) == 0 ) then
//call CreateMineCart( gg_rct_MineCartStart11, gg_rct_MineCartPath4, 'h00K', 300, 270 )
call CreateMineCart( gg_rct_MineCartStart21, gg_rct_MineCartPath1, 'h003', 300, 90 )
endif
if ( ModuloInteger( udg_MineCartTimerCount, 3 ) == 0 ) then
call CreateMineCart( gg_rct_MineCartStart12, gg_rct_MineCartPath4, 'h005', 400, 270 )
call CreateMineCart( gg_rct_MineCartStart22, gg_rct_MineCartPath1, 'h006', 400, 90 )
endif
set udg_MineCartTimerCount = udg_MineCartTimerCount + 1
if ( udg_MineCartTimerCount == 12 ) then
set udg_MineCartTimerCount = 0
endif
endfunction
//===========================================================================
function InitTrig_Cross_Road_Functions takes nothing returns nothing
endfunction
function SPamTimmy takes nothing returns boolean
if ( not ( udg_SpamTimmyisReady == true ) ) then
return false
endif
return true
endfunction
function Trig_Periodic_Volcano_Spew_Actions takes nothing returns nothing
local trigger trgTrap = null
local unit uTrap = null
local integer nLoopIndex = 0
local integer nPlayerIndex = 17
local location loc = null
local location loc1 = null
if ( SPamTimmy() ) then
call MoveRectToLoc( gg_rct_spamMISSILEtest, GetUnitLoc(udg_BOSSRACE1UNIT) )
set udg_TempVolcanoPoint = GetRandomLocInRect(gg_rct_spamMISSILEtest)
call IssuePointOrderLocBJ( gg_unit_o001_0056, "attackground", udg_TempVolcanoPoint )
set uTrap = CreateUnitAtLoc( Player(nPlayerIndex), 'n00A', udg_TempVolcanoPoint, 0 )
call UnitApplyTimedLife( uTrap, 'BTLF', 60 )
call RemoveLocation( udg_TempVolcanoPoint )
set trgTrap = CreateTrigger()
set nLoopIndex = 0
loop
exitwhen nLoopIndex >= udg_TrapMax
exitwhen udg_Traps[nLoopIndex] == null
set nLoopIndex = nLoopIndex + 1
endloop
set udg_Traps[nLoopIndex] = uTrap
set udg_TrapTriggers[nLoopIndex] = trgTrap
if ( nLoopIndex == udg_TrapMax ) then
set udg_TrapMax = udg_TrapMax + 1
endif
call TriggerRegisterUnitInRangeSimple( trgTrap, 125.00, uTrap )
call TriggerAddAction( trgTrap, function Trig_Trap_Actions )
//REMOVE LOC
call RemoveLocation( udg_TempVolcanoPoint )
call TriggerSleepAction( 4.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endif
endfunction
//===========================================================================
function InitTrig_Periodic_Volcano_Spew takes nothing returns nothing
set gg_trg_Periodic_Volcano_Spew = CreateTrigger( )
call TriggerAddAction( gg_trg_Periodic_Volcano_Spew, function Trig_Periodic_Volcano_Spew_Actions )
endfunction
function SPamTimmy2 takes nothing returns boolean
if ( not ( udg_SpamTimmyisReadySTONE == true ) ) then
return false
endif
return true
endfunction
function Trig_Periodic_Volcano_SpewSTONE_Actions takes nothing returns nothing
local trigger trgTrap = null
local unit uTrap = null
local integer nLoopIndex = 0
local integer nPlayerIndex = 19
local location loc = null
local location loc1 = null
if ( SPamTimmy2() ) then
call MoveRectToLoc( gg_rct_spamMISSILEtest, GetUnitLoc(udg_BOSSRACE3UNIT) )
set udg_TempVolcanoPoint = GetRandomLocInRect(gg_rct_spamMISSILEtest)
call IssuePointOrderLocBJ( udg_BossAttackSPam, "attackground", udg_TempVolcanoPoint )
call PolledWait( 0.5 )
set udg_TempVolcanoPoint = GetRandomLocInRect(gg_rct_spamMISSILEtest)
call IssuePointOrderLocBJ( udg_BossAttackSPam, "attackground", udg_TempVolcanoPoint )
//REMOVE LOC
call RemoveLocation( udg_TempVolcanoPoint )
call TriggerSleepAction( 4.00 )
call ConditionalTriggerExecute( GetTriggeringTrigger() )
endif
endfunction
//===========================================================================
function InitTrig_Periodic_Volcano_SpewSTONE takes nothing returns nothing
set gg_trg_Periodic_Volcano_SpewSTONE = CreateTrigger( )
call TriggerAddAction( gg_trg_Periodic_Volcano_SpewSTONE, function Trig_Periodic_Volcano_SpewSTONE_Actions )
endfunction
function Trig_RockHitImpact1_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_RockHitImpact1_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact1_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == gg_unit_o002_0116 ) ) then
return false
endif
return true
endfunction
function Trig_RockHitImpact1_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_RockHitImpact1 takes nothing returns nothing
set gg_trg_RockHitImpact1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RockHitImpact1, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_RockHitImpact1, Condition( function Trig_RockHitImpact1_Conditions ) )
call TriggerAddAction( gg_trg_RockHitImpact1, function Trig_RockHitImpact1_Actions )
endfunction
function Trig_RockHitImpact2_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_RockHitImpact2_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact2_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == gg_unit_o002_0121 ) ) then
return false
endif
return true
endfunction
function Trig_RockHitImpact2_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_RockHitImpact2 takes nothing returns nothing
set gg_trg_RockHitImpact2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RockHitImpact2, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_RockHitImpact2, Condition( function Trig_RockHitImpact2_Conditions ) )
call TriggerAddAction( gg_trg_RockHitImpact2, function Trig_RockHitImpact2_Actions )
endfunction
function Trig_RockHitImpact3_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_RockHitImpact3_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact3_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == gg_unit_o002_0120 ) ) then
return false
endif
return true
endfunction
function Trig_RockHitImpact3_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_RockHitImpact3 takes nothing returns nothing
set gg_trg_RockHitImpact3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RockHitImpact3, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_RockHitImpact3, Condition( function Trig_RockHitImpact3_Conditions ) )
call TriggerAddAction( gg_trg_RockHitImpact3, function Trig_RockHitImpact3_Actions )
endfunction
function Trig_RockHitImpact4_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_RockHitImpact4_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact4_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == udg_BossAttackSPam ) ) then
return false
endif
return true
endfunction
function Trig_RockHitImpact4_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_RockHitImpact4 takes nothing returns nothing
set gg_trg_RockHitImpact4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RockHitImpact4, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_RockHitImpact4, Condition( function Trig_RockHitImpact4_Conditions ) )
call TriggerAddAction( gg_trg_RockHitImpact4, function Trig_RockHitImpact4_Actions )
endfunction
function Trig_RockHitImpact5_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_VOlcanoHitImpact1_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact5_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == udg_VolcanoSPam1 ) ) then
return false
endif
return true
endfunction
function Trig_VOlcanoHitImpact1_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_VOlcanoHitImpact1 takes nothing returns nothing
set gg_trg_VOlcanoHitImpact1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_VOlcanoHitImpact1, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_VOlcanoHitImpact1, Condition( function Trig_VOlcanoHitImpact1_Conditions ) )
call TriggerAddAction( gg_trg_VOlcanoHitImpact1, function Trig_VOlcanoHitImpact1_Actions )
endfunction
function Trig_RockHitImpact6_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_VOlcanoHitImpact2_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact6_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == udg_VolcanoSPam2 ) ) then
return false
endif
return true
endfunction
function Trig_VOlcanoHitImpact2_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_VOlcanoHitImpact2 takes nothing returns nothing
set gg_trg_VOlcanoHitImpact2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_VOlcanoHitImpact2, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_VOlcanoHitImpact2, Condition( function Trig_VOlcanoHitImpact2_Conditions ) )
call TriggerAddAction( gg_trg_VOlcanoHitImpact2, function Trig_VOlcanoHitImpact2_Actions )
endfunction
function Trig_RockHitImpact7_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_VOlcanoHitImpact3_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact7_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == udg_VolcanoSPam3 ) ) then
return false
endif
return true
endfunction
function Trig_VOlcanoHitImpact3_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_VOlcanoHitImpact3 takes nothing returns nothing
set gg_trg_VOlcanoHitImpact3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_VOlcanoHitImpact3, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_VOlcanoHitImpact3, Condition( function Trig_VOlcanoHitImpact3_Conditions ) )
call TriggerAddAction( gg_trg_VOlcanoHitImpact3, function Trig_VOlcanoHitImpact3_Actions )
endfunction
function Trig_RockHitImpact8_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_VOlcanoHitImpact4_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact8_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == udg_VolcanoSPam4 ) ) then
return false
endif
return true
endfunction
function Trig_VOlcanoHitImpact4_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_VOlcanoHitImpact4 takes nothing returns nothing
set gg_trg_VOlcanoHitImpact4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_VOlcanoHitImpact4, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_VOlcanoHitImpact4, Condition( function Trig_VOlcanoHitImpact4_Conditions ) )
call TriggerAddAction( gg_trg_VOlcanoHitImpact4, function Trig_VOlcanoHitImpact4_Actions )
endfunction
function Trig_RockHitImpact9_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_VOlcanoHitImpact5_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact9_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == udg_VolcanoSPam5 ) ) then
return false
endif
return true
endfunction
function Trig_VOlcanoHitImpact5_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_VOlcanoHitImpact5 takes nothing returns nothing
set gg_trg_VOlcanoHitImpact5 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_VOlcanoHitImpact5, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_VOlcanoHitImpact5, Condition( function Trig_VOlcanoHitImpact5_Conditions ) )
call TriggerAddAction( gg_trg_VOlcanoHitImpact5, function Trig_VOlcanoHitImpact5_Actions )
endfunction
function Trig_RockHitImpact10_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_VOlcanoHitImpact6_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact10_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == udg_VolcanoSPam6 ) ) then
return false
endif
return true
endfunction
function Trig_VOlcanoHitImpact6_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_VOlcanoHitImpact6 takes nothing returns nothing
set gg_trg_VOlcanoHitImpact6 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_VOlcanoHitImpact6, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_VOlcanoHitImpact6, Condition( function Trig_VOlcanoHitImpact6_Conditions ) )
call TriggerAddAction( gg_trg_VOlcanoHitImpact6, function Trig_VOlcanoHitImpact6_Actions )
endfunction
function Trig_RockHitImpact11_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_VOlcanoHitImpact7_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact11_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == udg_VolcanoSPam7 ) ) then
return false
endif
return true
endfunction
function Trig_VOlcanoHitImpact7_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_VOlcanoHitImpact7 takes nothing returns nothing
set gg_trg_VOlcanoHitImpact7 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_VOlcanoHitImpact7, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_VOlcanoHitImpact7, Condition( function Trig_VOlcanoHitImpact7_Conditions ) )
call TriggerAddAction( gg_trg_VOlcanoHitImpact7, function Trig_VOlcanoHitImpact7_Actions )
endfunction
function Trig_RockHitImpact12_Func001C takes nothing returns boolean
if ( ( GetTriggerUnit() == udg_Carts[0] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[1] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[2] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[3] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[4] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[5] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[6] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[7] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[8] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[9] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[10] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[11] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[12] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[13] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[14] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[15] ) ) then
return true
endif
if ( ( GetTriggerUnit() == udg_Carts[16] ) ) then
return true
endif
return false
endfunction
function Trig_VOlcanoHitImpact8_Conditions takes nothing returns boolean
if ( not Trig_RockHitImpact12_Func001C() ) then
return false
endif
if ( not ( GetEventDamageSource() == udg_VolcanoSPam8 ) ) then
return false
endif
return true
endfunction
function Trig_VOlcanoHitImpact8_Actions takes nothing returns nothing
local integer nPlayerIndexCart = 0
local location locTurtle = null
local location locCart = null
local location loc = null
local real rAngle = 0
local sound sndSpin = null
local integer nSpinIndex
local real rDistance = 0
local real rTemp = 0
local real rHP = 0
local effect effBite = null
if ( not IsCartVulnerable( GetTriggerUnit() ) or not IsCartVisible( GetTriggerUnit() ) ) then
return
endif
//If the vehicle is already spinning
if ( IsCartSpinning( GetTriggerUnit() ) ) then
return
endif
set nPlayerIndexCart = GetPlayerIndex( GetOwningPlayer( GetTriggerUnit() ) )
call RemoveLocation( locCart )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Carts[nPlayerIndexCart], "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl" )
call StartTimerBJ( udg_ImSpiningTimer[nPlayerIndexCart], false, 2.00 )
set udg_ImSpining[nPlayerIndexCart] = true
call SpinVehicle( nPlayerIndexCart )
set nSpinIndex = GetModelHonk( udg_PlayerModels[nPlayerIndexCart] )
set sndSpin = CreateSpinSound( nSpinIndex )
call PlaySoundOnUnitBJ( gg_snd_WindSerpentMissile, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(gg_snd_WindSerpentMissile)
call PlaySoundOnUnitBJ( sndSpin, 60, udg_Carts[nPlayerIndexCart] )
call KillSoundWhenDone(sndSpin)
// call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1143" )
endfunction
//===========================================================================
function InitTrig_VOlcanoHitImpact8 takes nothing returns nothing
set gg_trg_VOlcanoHitImpact8 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_VOlcanoHitImpact8, EVENT_PLAYER_UNIT_DAMAGED )
call TriggerAddCondition( gg_trg_VOlcanoHitImpact8, Condition( function Trig_VOlcanoHitImpact8_Conditions ) )
call TriggerAddAction( gg_trg_VOlcanoHitImpact8, function Trig_VOlcanoHitImpact8_Actions )
endfunction
function Trig_Blizzardspam_Copy_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam_Copy_Actions takes nothing returns nothing
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call KillSoundWhenDoneBJ( GetLastPlayedSound() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
endfunction
//===========================================================================
function InitTrig_Blizzardspam_Copy takes nothing returns nothing
set gg_trg_Blizzardspam_Copy = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam_Copy, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam_Copy, function Trig_Blizzardspam_Copy_Actions )
endfunction
function Trig_Blizzardspam_Copy_6_Actions takes nothing returns nothing
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call KillSoundWhenDoneBJ( GetLastPlayedSound() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
endfunction
//===========================================================================
function InitTrig_Blizzardspam_Copy_6 takes nothing returns nothing
set gg_trg_Blizzardspam_Copy_6 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam_Copy_6, 9.00 )
call TriggerAddAction( gg_trg_Blizzardspam_Copy_6, function Trig_Blizzardspam_Copy_6_Actions )
endfunction
function Trig_Blizzardspam_Copy_5_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
endfunction
//===========================================================================
function InitTrig_Blizzardspam_Copy_5 takes nothing returns nothing
set gg_trg_Blizzardspam_Copy_5 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam_Copy_5, 9.00 )
call TriggerAddAction( gg_trg_Blizzardspam_Copy_5, function Trig_Blizzardspam_Copy_5_Actions )
endfunction
function Trig_Blizzardspam_Copy_4_Actions takes nothing returns nothing
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
endfunction
//===========================================================================
function InitTrig_Blizzardspam_Copy_4 takes nothing returns nothing
set gg_trg_Blizzardspam_Copy_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Blizzardspam_Copy_4, Player(0), "-blizz", true )
call TriggerAddAction( gg_trg_Blizzardspam_Copy_4, function Trig_Blizzardspam_Copy_4_Actions )
endfunction
function Trig_Blizzardspam_Copy_3_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
endfunction
//===========================================================================
function InitTrig_Blizzardspam_Copy_3 takes nothing returns nothing
set gg_trg_Blizzardspam_Copy_3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Blizzardspam_Copy_3, Player(0), "-blizz", true )
call TriggerAddAction( gg_trg_Blizzardspam_Copy_3, function Trig_Blizzardspam_Copy_3_Actions )
endfunction
function Trig_Blizzardspam_Copy_2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Race2Blizz1), "Abilities\\\\Spells\\\\Human\\\\Blizzard\\\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
endfunction
//===========================================================================
function InitTrig_Blizzardspam_Copy_2 takes nothing returns nothing
set gg_trg_Blizzardspam_Copy_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Blizzardspam_Copy_2, Player(0), "-blizz", true )
call TriggerAddAction( gg_trg_Blizzardspam_Copy_2, function Trig_Blizzardspam_Copy_2_Actions )
endfunction
function Trig_Blizzardspam1_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam1_Actions takes nothing returns nothing
if ( Trig_Blizzardspam1_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz1), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz1), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam1 takes nothing returns nothing
set gg_trg_Blizzardspam1 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam1, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam1_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam1, function Trig_Blizzardspam1_Actions )
endfunction
function Trig_Blizzardspam2_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam2_Actions takes nothing returns nothing
if ( Trig_Blizzardspam2_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz2), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz2), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz2), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz2), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz2), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam2 takes nothing returns nothing
set gg_trg_Blizzardspam2 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam2, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam2_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam2, function Trig_Blizzardspam2_Actions )
endfunction
function Trig_Blizzardspam3_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam3_Actions takes nothing returns nothing
if ( Trig_Blizzardspam3_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz3), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz3), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz3), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz3), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz3), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam3 takes nothing returns nothing
set gg_trg_Blizzardspam3 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam3, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam3_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam3, function Trig_Blizzardspam3_Actions )
endfunction
function Trig_Blizzardspam4_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam4_Actions takes nothing returns nothing
if ( Trig_Blizzardspam4_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz4), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz4), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz4), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz4), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz4), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam4 takes nothing returns nothing
set gg_trg_Blizzardspam4 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam4, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam4_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam4, function Trig_Blizzardspam4_Actions )
endfunction
function Trig_Blizzardspam5_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam5_Actions takes nothing returns nothing
if ( Trig_Blizzardspam5_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz5), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz5), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz5), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz5), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz5), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam5 takes nothing returns nothing
set gg_trg_Blizzardspam5 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam5, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam5_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam5, function Trig_Blizzardspam5_Actions )
endfunction
function Trig_Blizzardspam6_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam6_Actions takes nothing returns nothing
if ( Trig_Blizzardspam6_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz6), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz6), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz6), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz6), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz6), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam6 takes nothing returns nothing
set gg_trg_Blizzardspam6 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam6, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam6_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam6, function Trig_Blizzardspam6_Actions )
endfunction
function Trig_Blizzardspam7_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam7_Actions takes nothing returns nothing
if ( Trig_Blizzardspam7_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz7), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz7), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz7), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz7), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz7), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam7 takes nothing returns nothing
set gg_trg_Blizzardspam7 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam7, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam7_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam7, function Trig_Blizzardspam7_Actions )
endfunction
function Trig_Blizzardspam8_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam8_Actions takes nothing returns nothing
if ( Trig_Blizzardspam8_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz8), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz8), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz8), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz8), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz8), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam8 takes nothing returns nothing
set gg_trg_Blizzardspam8 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam8, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam8_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam8, function Trig_Blizzardspam8_Actions )
endfunction
function Trig_Blizzardspam9_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam9_Actions takes nothing returns nothing
if ( Trig_Blizzardspam9_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz9), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz9), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz9), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz9), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz9), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam9 takes nothing returns nothing
set gg_trg_Blizzardspam9 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam9, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam9_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam9, function Trig_Blizzardspam9_Actions )
endfunction
function Trig_Blizzardspam10_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam10_Actions takes nothing returns nothing
if ( Trig_Blizzardspam10_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz10), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz10), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz10), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz10), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz10), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam10 takes nothing returns nothing
set gg_trg_Blizzardspam10 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam10, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam10_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam10, function Trig_Blizzardspam10_Actions )
endfunction
function Trig_Blizzardspam11_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam11_Actions takes nothing returns nothing
if ( Trig_Blizzardspam11_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz11), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz11), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz11), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz11), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz11), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam11 takes nothing returns nothing
set gg_trg_Blizzardspam11 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam11, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam11_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam11, function Trig_Blizzardspam11_Actions )
endfunction
function Trig_Blizzardspam12_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam12_Actions takes nothing returns nothing
if ( Trig_Blizzardspam12_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz12), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz12), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz12), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz12), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz12), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam12 takes nothing returns nothing
set gg_trg_Blizzardspam12 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam12, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam12_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam12, function Trig_Blizzardspam12_Actions )
endfunction
function Trig_Blizzardspam13_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam13_Actions takes nothing returns nothing
if ( Trig_Blizzardspam13_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz13), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz13), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz13), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz13), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz13), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam13 takes nothing returns nothing
set gg_trg_Blizzardspam13 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam13, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam13_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam13, function Trig_Blizzardspam13_Actions )
endfunction
function Trig_Blizzardspam14_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam14_Actions takes nothing returns nothing
if ( Trig_Blizzardspam14_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz14), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz14), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz14), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz14), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz14), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam14 takes nothing returns nothing
set gg_trg_Blizzardspam14 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam14, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam14_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam14, function Trig_Blizzardspam14_Actions )
endfunction
function Trig_Blizzardspam15_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam15_Actions takes nothing returns nothing
if ( Trig_Blizzardspam15_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz15), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz15), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz15), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz15), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz15), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam15 takes nothing returns nothing
set gg_trg_Blizzardspam15 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam15, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam15_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam15, function Trig_Blizzardspam15_Actions )
endfunction
function Trig_Blizzardspam16_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam16_Actions takes nothing returns nothing
if ( Trig_Blizzardspam16_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz16), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz16), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz16), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz16), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz16), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam16 takes nothing returns nothing
set gg_trg_Blizzardspam16 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam16, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam16_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam16, function Trig_Blizzardspam16_Actions )
endfunction
function Trig_Blizzardspam17_Conditions takes nothing returns boolean
if ( not ( udg_SPamBlizzActivated == true ) ) then
return false
endif
return true
endfunction
function Trig_Blizzardspam17_Actions takes nothing returns nothing
if ( Trig_Blizzardspam17_Conditions() ) then
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz17), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz17), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget2, 100, GetRectCenter(gg_rct_Race2Blizz17), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call PlaySoundAtPointBJ( gg_snd_BlizzardBlizzardTarget3, 100, GetRectCenter(gg_rct_Race2Blizz17), 0 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_Race2Blizz17), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call BlzSetSpecialEffectScale( GetLastCreatedEffectBJ(), 2.50 )
call PolledWait( 0.20 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Blizzardspam17 takes nothing returns nothing
set gg_trg_Blizzardspam17 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blizzardspam17, 9.00 )
call TriggerAddCondition( gg_trg_Blizzardspam_Copy, Condition( function Trig_Blizzardspam17_Conditions ) )
call TriggerAddAction( gg_trg_Blizzardspam17, function Trig_Blizzardspam17_Actions )
endfunction