Name | Type | is_array | initial_value |
All_Player | force | No | |
Cog_of_Haste | real | Yes | |
Color | string | Yes | |
CoP | unit | Yes | |
Cursor | texttag | Yes | |
Dead | boolean | Yes | |
Deaths | integer | Yes | |
Double | timer | Yes | |
Down | boolean | Yes | |
E | texttag | Yes | |
Facing | real | Yes | 0.00 |
Hero_Revive | location | Yes | |
Item_Timer | integer | No | 30 |
Kills | integer | Yes | |
Left | boolean | Yes | |
Look_Around_Int | integer | Yes | |
Minute | integer | No | 0 |
Movement | integer | No | |
N | texttag | Yes | |
Open_Fire | boolean | No | false |
Player | player | Yes | |
PlayerVar | force | Yes | |
Region | rect | Yes | RectNull |
Revive | timer | Yes | |
Revive_Countdown | integer | Yes | |
Right | boolean | Yes | |
Rotation_Plus | real | Yes | |
Row_Number | integer | Yes | 0 |
S | texttag | Yes | |
Second | integer | No | 0 |
Speed | real | Yes | |
Tank | unit | Yes | |
Temp_Integer | integer | No | 0 |
Temp_Item_Integer | integer | No | 0 |
Temp_Lvl | integer | No | |
Temp_Position | location | No | |
Temp_Position_2 | location | No | |
Temp_Unit | unit | No | UnitNull |
Tripple | timer | Yes | |
Up | boolean | Yes | false |
W | texttag | Yes | |
xpx | integer | No | 1 |
function Trig_Move_Direction_Texts_Copy_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Temp_Position = GetUnitLoc(udg_Tank[GetForLoopIndexA()])
set udg_Temp_Position_2 = PolarProjectionBJ(udg_Temp_Position, 112.00, 90.00)
call SetTextTagPosBJ( udg_N[GetForLoopIndexA()], udg_Temp_Position_2, 0 )
call RemoveLocation(udg_Temp_Position_2)
set udg_Temp_Position_2 = PolarProjectionBJ(udg_Temp_Position, 112.00, 0.00)
call SetTextTagPosBJ( udg_E[GetForLoopIndexA()], udg_Temp_Position_2, 0 )
call RemoveLocation(udg_Temp_Position_2)
set udg_Temp_Position_2 = PolarProjectionBJ(udg_Temp_Position, 112.00, 270.00)
call SetTextTagPosBJ( udg_S[GetForLoopIndexA()], udg_Temp_Position_2, 0 )
call RemoveLocation(udg_Temp_Position_2)
set udg_Temp_Position_2 = PolarProjectionBJ(udg_Temp_Position, 112.00, 180.00)
call SetTextTagPosBJ( udg_W[GetForLoopIndexA()], udg_Temp_Position_2, 0 )
call RemoveLocation(udg_Temp_Position_2)
set udg_Temp_Position_2 = PolarProjectionBJ(udg_Temp_Position, 1400.00, GetUnitFacing(udg_Tank[GetForLoopIndexA()]))
call SetTextTagPosBJ( udg_Cursor[GetForLoopIndexA()], udg_Temp_Position_2, 0 )
call RemoveLocation(udg_Temp_Position_2)
call ShowTextTagForceBJ( false, udg_N[GetForLoopIndexA()], GetPlayersAll() )
call ShowTextTagForceBJ( true, udg_N[GetForLoopIndexA()], udg_PlayerVar[GetForLoopIndexA()] )
call ShowTextTagForceBJ( false, udg_S[GetForLoopIndexA()], GetPlayersAll() )
call ShowTextTagForceBJ( true, udg_S[GetForLoopIndexA()], udg_PlayerVar[GetForLoopIndexA()] )
call ShowTextTagForceBJ( false, udg_E[GetForLoopIndexA()], GetPlayersAll() )
call ShowTextTagForceBJ( true, udg_E[GetForLoopIndexA()], udg_PlayerVar[GetForLoopIndexA()] )
call ShowTextTagForceBJ( false, udg_W[GetForLoopIndexA()], GetPlayersAll() )
call ShowTextTagForceBJ( true, udg_W[GetForLoopIndexA()], udg_PlayerVar[GetForLoopIndexA()] )
call ShowTextTagForceBJ( false, udg_Cursor[GetForLoopIndexA()], GetPlayersAll() )
call ShowTextTagForceBJ( true, udg_Cursor[GetForLoopIndexA()], udg_PlayerVar[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation(udg_Temp_Position)
endfunction
//===========================================================================
function InitTrig_Move_Direction_Texts_Copy takes nothing returns nothing
set gg_trg_Move_Direction_Texts_Copy = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Move_Direction_Texts_Copy, 0.02 )
call TriggerAddAction( gg_trg_Move_Direction_Texts_Copy, function Trig_Move_Direction_Texts_Copy_Actions )
endfunction
function Trig_Speed_Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] < 6.20 ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] < 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func001Func001C takes nothing returns boolean
if ( not ( udg_Up[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_Dead[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func002Func001Func001C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] > -4.96 ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func002Func001Func002C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] > 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func002Func001C takes nothing returns boolean
if ( not ( udg_Down[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_Dead[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] > 2.00 ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func003Func001Func001C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] > 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func003Func001Func002Func001C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] < -2.00 ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func003Func001Func002C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] < 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Func003Func001C takes nothing returns boolean
if ( not ( udg_Up[GetForLoopIndexA()] == false ) ) then
return false
endif
if ( not ( udg_Down[GetForLoopIndexA()] == false ) ) then
return false
endif
if ( not ( udg_Dead[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_Speed_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Speed_Func001Func001C() ) then
if ( Trig_Speed_Func001Func001Func001C() ) then
set udg_Speed[GetForLoopIndexA()] = ( udg_Speed[GetForLoopIndexA()] + 0.80 )
else
set udg_Speed[GetForLoopIndexA()] = 7.00
endif
if ( Trig_Speed_Func001Func001Func002C() ) then
set udg_Speed[GetForLoopIndexA()] = 0.00
else
endif
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Speed_Func002Func001C() ) then
if ( Trig_Speed_Func002Func001Func001C() ) then
set udg_Speed[GetForLoopIndexA()] = ( udg_Speed[GetForLoopIndexA()] - 0.64 )
else
set udg_Speed[GetForLoopIndexA()] = -5.60
endif
if ( Trig_Speed_Func002Func001Func002C() ) then
set udg_Speed[GetForLoopIndexA()] = 0.00
else
endif
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Speed_Func003Func001C() ) then
if ( Trig_Speed_Func003Func001Func001C() ) then
if ( Trig_Speed_Func003Func001Func001Func001C() ) then
set udg_Speed[GetForLoopIndexA()] = ( udg_Speed[GetForLoopIndexA()] - 2.00 )
else
set udg_Speed[GetForLoopIndexA()] = 0.00
endif
else
endif
if ( Trig_Speed_Func003Func001Func002C() ) then
if ( Trig_Speed_Func003Func001Func002Func001C() ) then
set udg_Speed[GetForLoopIndexA()] = ( udg_Speed[GetForLoopIndexA()] + 2.00 )
else
set udg_Speed[GetForLoopIndexA()] = 0.00
endif
else
endif
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Speed takes nothing returns nothing
set gg_trg_Speed = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Speed, 0.15 )
call TriggerAddAction( gg_trg_Speed, function Trig_Speed_Actions )
endfunction
function Trig_Left_Converted_Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] > 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Left_Converted_Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] < 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Left_Converted_Func001Func001Func003C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Left_Converted_Func001Func001C takes nothing returns boolean
if ( not ( udg_Left[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_Dead[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_Left_Converted_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Left_Converted_Func001Func001C() ) then
if ( Trig_Left_Converted_Func001Func001Func001C() ) then
set udg_Facing[GetForLoopIndexA()] = ( udg_Facing[GetForLoopIndexA()] + 1.50 )
call SetUnitFacingTimed( udg_Tank[GetForLoopIndexA()], udg_Facing[GetForLoopIndexA()], 0.00 )
else
endif
if ( Trig_Left_Converted_Func001Func001Func002C() ) then
set udg_Facing[GetForLoopIndexA()] = ( udg_Facing[GetForLoopIndexA()] - 1.20 )
call SetUnitFacingTimed( udg_Tank[GetForLoopIndexA()], udg_Facing[GetForLoopIndexA()], 0.00 )
else
endif
if ( Trig_Left_Converted_Func001Func001Func003C() ) then
set udg_Facing[GetForLoopIndexA()] = ( udg_Facing[GetForLoopIndexA()] + 0.75 )
call SetUnitFacingTimed( udg_Tank[GetForLoopIndexA()], udg_Facing[GetForLoopIndexA()], 0.00 )
else
endif
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Left_Converted takes nothing returns nothing
set gg_trg_Left_Converted = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Left_Converted, 0.03 )
call TriggerAddAction( gg_trg_Left_Converted, function Trig_Left_Converted_Actions )
endfunction
function Trig_Right_Converted_Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] > 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Right_Converted_Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] < 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Right_Converted_Func001Func001Func003C takes nothing returns boolean
if ( not ( udg_Speed[GetForLoopIndexA()] == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Right_Converted_Func001Func001C takes nothing returns boolean
if ( not ( udg_Right[GetForLoopIndexA()] == true ) ) then
return false
endif
if ( not ( udg_Dead[GetForLoopIndexA()] == false ) ) then
return false
endif
return true
endfunction
function Trig_Right_Converted_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Right_Converted_Func001Func001C() ) then
if ( Trig_Right_Converted_Func001Func001Func001C() ) then
set udg_Facing[GetForLoopIndexA()] = ( udg_Facing[GetForLoopIndexA()] - 1.50 )
call SetUnitFacingTimed( udg_Tank[GetForLoopIndexA()], udg_Facing[GetForLoopIndexA()], 0.00 )
else
endif
if ( Trig_Right_Converted_Func001Func001Func002C() ) then
set udg_Facing[GetForLoopIndexA()] = ( udg_Facing[GetForLoopIndexA()] + 1.20 )
call SetUnitFacingTimed( udg_Tank[GetForLoopIndexA()], udg_Facing[GetForLoopIndexA()], 0.00 )
else
endif
if ( Trig_Right_Converted_Func001Func001Func003C() ) then
set udg_Facing[GetForLoopIndexA()] = ( udg_Facing[GetForLoopIndexA()] - 0.75 )
call SetUnitFacingTimed( udg_Tank[GetForLoopIndexA()], udg_Facing[GetForLoopIndexA()], 0.00 )
else
endif
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Right_Converted takes nothing returns nothing
set gg_trg_Right_Converted = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Right_Converted, 0.03 )
call TriggerAddAction( gg_trg_Right_Converted, function Trig_Right_Converted_Actions )
endfunction