function Trig_Smash_Push_Back_Kopieren_Func001C takes nothing returns boolean
if ( not ( udg_SmashedPBCap >= 50 ) ) then
return false
endif
return true
endfunction
function Trig_Smash_Push_Back_Kopieren_Func003A takes nothing returns nothing
call RemoveLocation(udg_SmashedCurrentPoint)
call RemoveLocation(udg_SmashedPBBackPoint)
call DestroyEffectBJ( udg_SmashedPBEffect )
set udg_SmashedCurrentPoint = GetUnitLoc(GetEnumUnit())
set udg_SmashedPBBackPoint = PolarProjectionBJ(udg_SmashedCurrentPoint, 4.00, AngleBetweenPoints(udg_SmashedArea, udg_SmashedCurrentPoint))
call SetUnitPositionLoc( GetEnumUnit(), udg_SmashedPBBackPoint )
call AddSpecialEffectLocBJ( udg_SmashedCurrentPoint, "Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl" )
set udg_SmashedPBEffect = GetLastCreatedEffectBJ()
endfunction
function Trig_Smash_Push_Back_Kopieren_Actions takes nothing returns nothing
if ( Trig_Smash_Push_Back_Kopieren_Func001C() ) then
call GroupClear( udg_SmashedPBGroup )
set udg_SmashedPBCap = 0
set udg_SmashUnit = null
set udg_SmashedUnit = null
call PauseTimerBJ( true, udg_SmashedPBTimer )
call RemoveLocation(udg_SmashedArea)
call RemoveLocation(udg_SmashedCurrentPoint)
call RemoveLocation(udg_SmashedPBBackPoint)
return
else
endif
set udg_SmashedPBCap = ( udg_SmashedPBCap + 1 )
call ForGroupBJ( udg_SmashedPBGroup, function Trig_Smash_Push_Back_Kopieren_Func003A )
endfunction
//===========================================================================
function InitTrig_Smash_Push_Back_Kopieren takes nothing returns nothing
set gg_trg_Smash_Push_Back_Kopieren = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Smash_Push_Back_Kopieren, udg_SmashedPBTimer )
call TriggerAddAction( gg_trg_Smash_Push_Back_Kopieren, function Trig_Smash_Push_Back_Kopieren_Actions )
endfunction