Name | Type | is_array | initial_value |
AdminButtons | button | Yes | |
AdminDialog | dialog | No | |
bAntiCampingOn | boolean | No | |
bFireWin | boolean | No | |
bTreeWin | boolean | No | |
CampingTime | real | Yes | 0.00 |
ColorLookup | string | Yes | |
destroy_trees_point | location | No | |
FirePlayerGroup | force | No | |
HideTimer | timer | No | |
InfernalButtons | button | Yes | |
InfernalChoices | unitcode | Yes | |
InfernalDialog | dialog | No | |
InfernalLandingVis | fogmodifier | Yes | |
InfernalReviveTime | integer | Yes | |
InfernalSelected | boolean | Yes | |
KickButtons | button | Yes | |
KickDialog | dialog | No | |
MHDetect | boolean | Yes | |
multiboard | multiboard | No | |
multiboard_data | force | Yes | |
multiboard_score | integer | Yes | |
multiboard_work | integer | No | 1 |
OuterCampingTime | real | Yes | 0.00 |
pg_Admins | force | No | Force00 |
pg_Ents | force | No | |
pg_Infernals | force | No | |
playerColor_B | real | Yes | |
playerColor_G | real | Yes | |
playerColor_R | real | Yes | |
PlayerStatus | integer | Yes | |
ResourceGainGold | integer | Yes | |
ResourceGainWood | integer | Yes | |
ShowControl | boolean | Yes | |
TreeAshes | unit | Yes | |
TreeAshesGroup | group | No | |
TreePlow | boolean | No | |
TreeWinTimer | timer | No | |
TreeWinTimerWindow | timerdialog | No | |
u_ents | unit | No | |
ua_EntAshes | unit | Yes | |
ua_Ents | unit | Yes | |
ua_Infernals | unit | Yes | |
ug_EntAshes | group | No | |
ug_Ents | group | No | |
ug_Infernals | group | No |
function Trig_Self_Destruct_Conditions takes nothing returns boolean
if ( GetSpellAbilityId() == 'A015' ) then
return true
endif
return false
endfunction
function Trig_Self_Destruct_Actions takes nothing returns nothing
local location point = GetUnitLoc(GetSpellAbilityUnit())
call KillUnit( GetSpellAbilityUnit() )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call TriggerSleepAction( 0.10 )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
call AddSpecialEffectLocBJ( OffsetLocation(point, GetRandomReal(-50.00, 50.00), GetRandomReal(-50.00, 50.00)), "Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl" )
endfunction
//===========================================================================
function InitTrig_Self_Destruct takes nothing returns nothing
set gg_trg_Self_Destruct = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Self_Destruct, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Self_Destruct, Condition( function Trig_Self_Destruct_Conditions ) )
call TriggerAddAction( gg_trg_Self_Destruct, function Trig_Self_Destruct_Actions )
endfunction