Name | Type | is_array | initial_value |
BlueDreadlord | unit | No | UnitNull |
CameraFocusIndex_CurrentCamera | integer | No | |
CineCam | unit | No | |
CineEric | unit | No | |
CineHerodin | unit | No | |
CineKael | unit | No | |
CineLilith | unit | No | |
CinematicGroup | group | No | |
CinematicGroup01 | group | No | |
CinematicGroup02 | group | No | |
CinematicHideGroup | group | No | |
CinematicModeOn | boolean | No | |
CinematicTimer | timer | No | |
CinematicTransmissionTime | boolean | No | |
CinematicTransmissionTimer | timer | No | |
CineMyrax | unit | No | |
CineSaira | unit | No | |
CineUnit | unit | No | |
CineWell | unit | No | |
CurrentMusicList | string | No | |
DarkRangerLilith | unit | No | |
DeathKnight | unit | No | |
DeathKnightGroup | group | No | |
Dhjeri | unit | No | |
DreadlordBlueAttack | integer | No | |
Eclipsa | unit | No | |
Herodin | unit | No | |
HeroGroup | group | No | |
Kael | unit | No | |
LordEricPaladin | unit | No | |
MaleRanger | unit | No | |
Name_Alucard | string | No | Alucard |
Name_AlucardInfernalForm | string | No | Infernal |
Name_Dhjeri | string | No | Dhjeri |
Name_Dragonblight | string | No | Dragonblight |
Name_Herodin | string | No | Herodin Mountainkiller |
Name_Kael | string | No | Kael |
Name_LilithDarkRanger | string | No | Lilith |
Name_LordEricPaladin | string | No | Lord Eric the Mighty |
Name_PitlordSauresh | string | No | Sauresh the Divider of Brothers |
Name_Saira | string | No | Saira |
Name_Scout1 | string | No | Elven Scout |
PitlordKagreshCleaver | unit | No | |
PlayerAI | hashtable | Yes | |
PrinceAlucard | unit | No | |
PrinceAlucardInfernal | unit | No | |
QuestDefeatUndead | quest | No | |
QuestMagicSource | quest | No | |
QuitCinematic | boolean | No | |
rocks_vis | fogmodifier | No | |
Saira | unit | No | |
savedCam | camerasetup | No | |
SavedCameraPosition | integer | No | |
Scout1 | unit | No | |
SkipTrigger | trigger | No | |
str_musicAlucard | string | No | musicAlucard |
str_musicAlucardMega | string | No | musicAlucard |
str_musicMain | string | No | musicMain |
SummonedDragonBlight | unit | No | |
TealDreadlord | unit | No | UnitNull |
TeleportationStoneActive | boolean | No | |
TeleportStoneSiteLimit | integer | No | 3 |
temp_real_global | real | No | |
temp_real_global_dividend | real | No | |
temp_real_global_mod | real | No | |
tempHash | hashtable | No | |
Terms | hashtable | Yes | |
TransmissionFinished | boolean | No | |
TransmissionTimerStarted | boolean | No | |
UndeadAttackGroupTeal | group | No | |
UndeadAttackLevel | integer | No | 1 |
UndeadTeleportedAttackForce | group | No | |
UnitAI | hashtable | No | |
Yeorn | unit | No |
function cinematic_checkSkip takes nothing returns nothing
call StartTimerBJ(udg_CinematicTransmissionTimer, false, GetLastTransmissionDurationBJ())
loop
exitwhen (TimerGetRemaining(udg_CinematicTransmissionTimer) <= 0 )
if (udg_QuitCinematic == true) then
return
endif
call TriggerSleepAction(0.125)
endloop
return
endfunction
function cinematic_checkWaitSkip takes real r returns nothing
call StartTimerBJ(udg_CinematicTransmissionTimer, false, r)
loop
exitwhen (TimerGetRemaining(udg_CinematicTransmissionTimer) <= 0 )
if (udg_QuitCinematic == true) then
return
endif
call TriggerSleepAction(0.125)
endloop
return
endfunction
function cs_CameraFocus takes real p_startingfocaltarget, real p_startingfocusspread, real p_focaltarget, real p_focusspread, real p_time returns nothing
local integer i = 1
local real focaldiff = p_focaltarget - p_startingfocaltarget
local real DOPscalediff = p_focusspread - p_startingfocusspread
local real focalincrement = 0
local real DOPincrement = 0
local real currentFocalDist = 0
local real currentDOPScale = 0
local real increments = 0
local real lv_fps = 8.00
local real lv_waittime = 0
set increments = focaldiff / p_time * lv_fps
set lv_waittime = 1 / focaldiff / p_time
// 1 second divided into the amount of frames every second. It should be 1/8, I think.
set focalincrement = focaldiff / increments
set DOPincrement = DOPscalediff / increments
call CameraSetFocalDistance( p_startingfocaltarget )
call CameraSetDepthOfFieldScale( p_startingfocusspread )
loop
exitwhen i >= increments
set currentFocalDist = currentFocalDist + focalincrement
set currentDOPScale = currentDOPScale + DOPincrement
call CameraSetFocalDistance( currentFocalDist )
call CameraSetDepthOfFieldScale( currentDOPScale )
call PolledWait( 1/lv_fps )
//this is probably dicey, it could be inaccurate at certain levels, so make sure it's simple (in fact, just change it to timer, sir)
set i = i + 1
endloop
set i = 0
set focaldiff = 0
set DOPscalediff = 0
set focalincrement = 0
set DOPincrement = 0
set currentFocalDist = 0
set currentDOPScale = 0
set increments = 0
set lv_fps = 0
set lv_waittime = 0
endfunction
function cs_CameraFocus takes real p_startingfocaltarget, real p_startingfocusspread, real p_focaltarget, real p_focusspread, real p_time returns nothing
local integer i = 1
local real focaldiff = p_focaltarget - p_startingfocaltarget
local real DOPscalediff = p_focusspread - p_startingfocusspread
local real focalincrement = 0
local real DOPincrement = 0
local real currentFocalDist = 0
local real currentDOPScale = 0
local real increments = 0
local real lv_fps = 8.00
local real lv_waittime = 0
set increments = focaldiff / p_time * lv_fps
set lv_waittime = 1 / focaldiff / p_time
// 1 second divided into the amount of frames every second. It should be 1/8, I think.
set focalincrement = focaldiff / increments
set DOPincrement = DOPscalediff / increments
call CameraSetFocalDistance( p_startingfocaltarget )
call CameraSetDepthOfFieldScale( p_startingfocusspread )
loop
exitwhen i >= increments
set currentFocalDist = currentFocalDist + focalincrement
set currentDOPScale = currentDOPScale + DOPincrement
call CameraSetFocalDistance( currentFocalDist )
call CameraSetDepthOfFieldScale( currentDOPScale )
call PolledWait( 1/lv_fps )
//this is probably dicey, it could be inaccurate at certain levels, so make sure it's simple
set i = i + 1
endloop
set i = 0
set focaldiff = 0
set DOPscalediff = 0
set focalincrement = 0
set DOPincrement = 0
set currentFocalDist = 0
set currentDOPScale = 0
set increments = 0
set lv_fps = 0
set lv_waittime = 0
endfunction
function sAI_animationReset takes nothing returns nothing
local timer t = GetExpiredTimer()
local integer tID = GetHandleId(t)
local unit u = LoadUnitHandleBJ(0, StringHashBJ(I2S(tID) + "_unit"), udg_tempHash)
// MAIN PART
call ResetUnitAnimation( u )
call FlushChildHashtableBJ( StringHashBJ(I2S(tID) + "_unit"), udg_tempHash )
//PLUG LEAKS
call DestroyTimer(t)
set t = null
set tID = 0
set u = null
endfunction