Name | Type | is_array | initial_value |
BombItself | unit | No | |
BombLocation | location | No | |
BombPlanted | boolean | No | |
BombRun | boolean | No | |
BombSpot | integer | No | |
BombTimer | timer | No | |
BombTimerWindow | timerdialog | No | |
BombVisibility | fogmodifier | Yes | |
BoughtUnit | unitcode | Yes | |
BuyUnit | unitcode | Yes | |
CounterTerrorists | force | No | |
CT_Victories | integer | No | |
CTF | boolean | No | |
CTKills | integer | No | |
CTNumber | integer | No | |
CTWon | boolean | No | |
DeadGroup | group | No | |
Death_Count | integer | Yes | |
deathloc | location | No | |
DialogBox | dialog | Yes | |
DialogButtonCancel | button | Yes | |
DialogButtonGrenades | button | Yes | |
DialogButtonPistol | button | Yes | |
DialogButtonRifle | button | Yes | |
DialogButtonShotgun | button | Yes | |
DialogButtonSniper | button | Yes | |
DialogSettings | dialog | No | |
exloc | location | No | |
Flag | item | Yes | |
FloatingText | texttag | Yes | |
FoodCheckCT | integer | No | 0 |
FoodCheckT | integer | No | 0 |
HosEscaped | integer | No | |
HosLeader | unit | Yes | |
hosloc | location | No | |
Host | player | No | |
HostageGroup | group | Yes | |
HostageNumber | integer | No | |
HostageRescue | boolean | No | |
HostageUnit | unit | Yes | |
HostCheck | integer | Yes | |
InvulnerableGroup | group | No | |
itemloc | location | No | |
Kill_Count | integer | Yes | |
KillHosUG | group | No | |
List | integer | No | |
loc | location | No | |
MBSpots | integer | Yes | |
MoveGroup | group | No | |
NumberOfPlayers | integer | No | |
Player_Colors | string | Yes | |
RandomCheck | boolean | No | |
RandomNumber | integer | No | |
RandomTimer | timer | No | |
RandomTimerWindow | timerdialog | No | |
Remove_Knife | group | No | |
Round | integer | No | |
RoundAmount | integer | No | 5 |
SetDialogButton1 | button | No | |
SetDialogButton2 | button | No | |
SetDialogButton3 | button | No | |
SetDialogButton4 | button | No | |
spawnloc | location | No | |
T_Victories | integer | No | |
Terrorists | force | No | |
TKills | integer | No | |
TNumber | integer | No | |
TWon | boolean | No | |
WeaponIndex | integer | Yes | |
WhatWeapon | integer | No |
function Trig_Init_Func002A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 300 )
endfunction
function Trig_Init_Func003A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 100 )
endfunction
function Trig_Init_Bounty_Off takes nothing returns nothing
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, false, GetEnumPlayer() )
endfunction
function Trig_Init_Actions takes nothing returns nothing
call MeleeStartingVisibility( )
call ForForce( GetPlayersAll(), function Trig_Init_Bounty_Off )
call ForForce( GetPlayersAll(), function Trig_Init_Func002A )
call ForForce( GetPlayersAll(), function Trig_Init_Func003A )
if ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(0), udg_CounterTerrorists )
endif
if ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(1), udg_CounterTerrorists )
endif
if ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(2), udg_CounterTerrorists )
endif
if ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(3), udg_CounterTerrorists )
endif
if ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(4), udg_CounterTerrorists )
endif
if ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(5), udg_Terrorists )
endif
if ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(6), udg_Terrorists )
endif
if ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(7), udg_Terrorists )
endif
if ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(8), udg_Terrorists )
endif
if ( GetPlayerSlotState(Player(9)) == PLAYER_SLOT_STATE_PLAYING ) then
call ForceAddPlayerSimple( Player(9), udg_Terrorists )
endif
endfunction
//===========================================================================
function InitTrig_Init takes nothing returns nothing
set gg_trg_Init = CreateTrigger( )
call TriggerAddAction( gg_trg_Init, function Trig_Init_Actions )
endfunction
function FindHost takes nothing returns nothing
local integer a=0
set udg_Host=Player(0)
loop
exitwhen a>11
if udg_HostCheck[GetPlayerId(udg_Host)]<udg_HostCheck[a] then
set udg_Host=Player(a)
endif
set a=a+1
endloop
endfunction
function FindHost_Cache takes nothing returns nothing
local gamecache gc=InitGameCache("temp.w3v")
local integer a=0
local integer b
loop
exitwhen a>9
call StoreInteger(gc, "map", "host", GetPlayerId(GetLocalPlayer()))
call TriggerSyncStart()
call SyncStoredInteger(gc, "map", "host")
call TriggerSyncReady()
set b=GetStoredInteger(gc, "map", "host")
set udg_HostCheck[b]=udg_HostCheck[b]+1
set a=a+1
endloop
call ExecuteFunc("FindHost")
call FlushGameCache(gc)
set gc=null
endfunction
function InitTrig_FindHost takes nothing returns nothing
set gg_trg_FindHost=CreateTrigger()
call TriggerRegisterTimerEvent(gg_trg_FindHost, 0.00, false)
call TriggerAddAction(gg_trg_FindHost, function FindHost_Cache)
endfunction
function Trig_FT_Hostage_Rescue_Actions takes nothing returns nothing
local location loc = GetRectCenter(gg_rct_CTSpawn)
local location rloc = PolarProjectionBJ(loc, 150.00, 180.00)
call CreateTextTagLocBJ( "Bring Hostages Here", rloc, 0, 10, 100, 0, 0, 0 )
set udg_FloatingText[5] = GetLastCreatedTextTag()
call RemoveLocation(loc)
call RemoveLocation(rloc)
set loc = null
set rloc = null
endfunction
//===========================================================================
function InitTrig_FT_Hostage_Rescue takes nothing returns nothing
set gg_trg_FT_Hostage_Rescue = CreateTrigger( )
call DisableTrigger( gg_trg_FT_Hostage_Rescue )
call TriggerAddAction( gg_trg_FT_Hostage_Rescue, function Trig_FT_Hostage_Rescue_Actions )
endfunction
function Trig_FT_Capture_the_Flag_Actions takes nothing returns nothing
local location loc = GetRectCenter(gg_rct_CTSpawn)
local location loc2 = GetRectCenter(gg_rct_T_Spawn)
local location rloc = PolarProjectionBJ(loc, 140.00, 180.00)
local location rloc2 = PolarProjectionBJ(loc2, 140.00, 180.00)
call CreateTextTagLocBJ( "Bring Flag Here", rloc, 0, 10, 100, 0, 0, 0 )
set udg_FloatingText[1] = GetLastCreatedTextTag()
call RemoveLocation(loc)
call RemoveLocation(rloc)
call CreateTextTagLocBJ( "Bring Flag Here", rloc2, 0, 10, 100, 0, 0, 0 )
set udg_FloatingText[2] = GetLastCreatedTextTag()
call RemoveLocation(loc2)
call RemoveLocation(rloc2)
set loc = null
set loc2 = null
set rloc = null
set rloc2 = null
endfunction
//===========================================================================
function InitTrig_FT_Capture_the_Flag takes nothing returns nothing
set gg_trg_FT_Capture_the_Flag = CreateTrigger( )
call DisableTrigger( gg_trg_FT_Capture_the_Flag )
call TriggerAddAction( gg_trg_FT_Capture_the_Flag, function Trig_FT_Capture_the_Flag_Actions )
endfunction
function Trig_FT_Bomb_Spots_Actions takes nothing returns nothing
local location loc = GetRectCenter(gg_rct_Bomb_Spot_A)
local location loc2 = GetRectCenter(gg_rct_Bomb_Spot_B)
local location rloc = PolarProjectionBJ(loc, 150.00, 180.00)
local location rloc2 = PolarProjectionBJ(loc2, 150.00, 180.00)
call CreateTextTagLocBJ( "Plant Bomb Here", rloc, 0, 10.00, 100, 1, 1, 0 )
set udg_FloatingText[3] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.50 )
call CreateTextTagLocBJ( "|cffff0000" + "Plant Bomb Here", rloc2, 0, 10.00, 100, 100, 100, 0 )
set udg_FloatingText[4] = GetLastCreatedTextTag()
call RemoveLocation(loc2)
call RemoveLocation(rloc2)
call RemoveLocation(loc)
call RemoveLocation(rloc)
set loc = null
set loc2 = null
set rloc = null
set rloc2 = null
endfunction
//===========================================================================
function InitTrig_FT_Bomb_Spots takes nothing returns nothing
set gg_trg_FT_Bomb_Spots = CreateTrigger( )
call DisableTrigger( gg_trg_FT_Bomb_Spots )
call TriggerAddAction( gg_trg_FT_Bomb_Spots, function Trig_FT_Bomb_Spots_Actions )
endfunction
function Trig_Destroy_All_Text_Actions takes nothing returns nothing
local integer A = 1
loop
exitwhen A > 5
call DestroyTextTag( udg_FloatingText[A] )
set A = A + 1
endloop
endfunction
//===========================================================================
function InitTrig_Destroy_All_Text takes nothing returns nothing
set gg_trg_Destroy_All_Text = CreateTrigger( )
call DisableTrigger( gg_trg_Destroy_All_Text )
call TriggerAddAction( gg_trg_Destroy_All_Text, function Trig_Destroy_All_Text_Actions )
endfunction