Name | Type | is_array | initial_value |
AIitemtarget | item | No | |
AIItemtarget2 | item | No | |
AIpasstarge2 | unit | No | |
AIpasstarget | unit | No | |
AIrandompath | integer | No | 0 |
AIrandompath2 | integer | No | |
AItarget | unit | No | |
AITarget2 | unit | No | |
AIunitsT1 | group | Yes | |
AIunitsT2 | group | Yes | |
almostwinwarning | real | No | 2.00 |
barrelpocalypse | timer | No | |
blueflagholder | unit | No | |
bluepoints | real | No | |
bluescoreboard | integer | No | |
EPtimer | timer | Yes | |
flagpassee | unit | No | |
guncontrol1 | player | No | |
guncontrol2 | player | No | |
H | group | No | |
Hammermodel | effect | No | |
hammertimer | timer | No | |
infiniterockson | boolean | No | |
jumpgroup | group | No | |
killunitrock | unit | No | |
maxscore | integer | No | 3 |
mayhemtimer | timerdialog | No | |
numbergamepoints | real | No | 3.00 |
Players | force | No | |
Playerunits | group | No | |
portal | timer | No | |
portal1 | effect | No | |
portal11 | rect | Yes | RectNull |
portal2 | effect | No | |
portal22 | rect | Yes | RectNull |
portal2set | boolean | No | |
portalnumber | integer | No | 1 |
punchfacing3 | real | Yes | |
redflagholder | unit | No | |
redpoints | real | No | |
redscoreboard | integer | No | |
returnblue | timer | No | |
returnred | timer | No | |
rockfacing | real | No | |
rockkiller | unit | No | |
rockpos1 | location | No | |
rockpos2 | location | No | |
rocks | group | No | |
rockspawner | integer | No | |
rockstimer | timer | No | |
scoreboardvar | multiboard | No | |
SheepTarget | unit | No | |
Slide | integer | No | |
Slide_loc | location | Yes | |
SlideGroup | group | No | |
SlidePoint | location | No | |
Speed | real | No | |
spikespawner | integer | No | |
steertimer | timer | No | |
sticktimer | timer | No | |
superfastice | timer | No | |
Team1 | force | No | |
Team2 | force | No | |
Temp_Attack | unit | Yes | |
TerrainKill | integer | No | |
WTF | timer | No | |
wtfswitch1 | unit | No | |
wtfswitch2 | unit | No | |
wtfswitchpos | location | No |
// List of all terrain type codes you can use:
// http://www.3ice.hu/blog/3ice-sliding-system-for-roc/#comment-109
function SetTerrainTypes takes nothing returns nothing
//Change 'Nice' to the terrain type code you want to slide heroes:
set udg_Slide = 'Nice'
//Change 'Nsnw' to the terrain type code you want to kill heroes:
set udg_TerrainKill = 'Nsnw'
endfunction
function InitTrig_Setup2 takes nothing returns nothing
set gg_trg_Setup2=CreateTrigger()
call TriggerAddAction(gg_trg_Setup2,function SetTerrainTypes)
endfunction
function S takes nothing returns nothing
local unit u=GetEnumUnit()
local real x=GetUnitX(u)
local real y=GetUnitY(u)
local integer t=GetTerrainType(x,y)
if(t==udg_Slide)then
call SetUnitX(u,x+udg_Speed*Cos(0.017453278*GetUnitFacing(u)))
call SetUnitY(u,y+udg_Speed*Sin(0.017453278*GetUnitFacing(u)))
//Delete this line for the cool Realistic Sliding Mode (Between START1 and END1)
//START1
//END1
//Delete these two lines to remove terrainkill (Between START2 and END2)
//START2
//END2
endif
set u=null
endfunction
function Slide takes nothing returns nothing
call ForGroup(udg_H,function S)
endfunction
function InitTrig_Slide takes nothing returns nothing
set gg_trg_Slide=CreateTrigger()
call TriggerRegisterTimerEvent(gg_trg_Slide,0.01,true)
call TriggerAddAction(gg_trg_Slide,function Slide)
endfunction
function Trig_setup_music_Actions takes nothing returns nothing
call SetMapMusicRandomBJ( "Sound\\Music\\mp3Music\\OrcX1.mp3;Sound\\Music\\mp3Music\\NightElfX1.mp3;Sound\\Music\\mp3Music\\War2IntroMusic.mp3;Sound\\Music\\mp3Music\\Orc3.mp3;Sound\\Music\\mp3Music\\NightElf3.mp3")
endfunction
//===========================================================================
function InitTrig_setup_music takes nothing returns nothing
set gg_trg_setup_music = CreateTrigger( )
call TriggerAddAction( gg_trg_setup_music, function Trig_setup_music_Actions )
endfunction