function CinematicFilterGenericForPlayer takes player whichPlayer, real duration, blendmode bmode, string tex, real red0, real green0, real blue0, real trans0, real red1, real green1, real blue1, real trans1 returns nothing
if ( GetLocalPlayer() == whichPlayer ) then
call SetCineFilterTexture(tex)
call SetCineFilterBlendMode(bmode)
call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
call SetCineFilterStartUV(0, 0, 1, 1)
call SetCineFilterEndUV(0, 0, 1, 1)
call SetCineFilterStartColor(PercentTo255(red0), PercentTo255(green0), PercentTo255(blue0), PercentTo255(100-trans0))
call SetCineFilterEndColor(PercentTo255(red1), PercentTo255(green1), PercentTo255(blue1), PercentTo255(100-trans1))
call SetCineFilterDuration(duration)
call DisplayCineFilter(true)
endif
endfunction
function PlaySoundForPlayer takes player whichPlayer, sound whichSound returns nothing
if ( whichPlayer == GetLocalPlayer() ) then
call PlaySoundBJ( whichSound )
endif
endfunction
function CheckPathabilityTrickGet takes nothing returns nothing
set bj_rescueChangeColorUnit = bj_rescueChangeColorUnit or (GetEnumItem()!=bj_itemRandomCurrentPick)
endfunction
function CheckPathabilityTrick takes item p, real x, real y returns boolean
local integer i=30
local rect r
call SetItemPosition(p,x,y)
if ((Pow(GetItemX(p)-x,2)+Pow(GetItemY(p)-y,2))<=100) then
return true
endif
set r=Rect(x-i,y-i,x+i,y+i)
set bj_itemRandomCurrentPick=p
set bj_rescueChangeColorUnit=false
call EnumItemsInRect(r,null,function CheckPathabilityTrickGet)
call RemoveRect(r)
set r=null
return bj_rescueChangeColorUnit
endfunction
function CheckPathability takes real x, real y returns boolean
local item it = CreateItem('ciri',x,y)
local boolean b = CheckPathabilityTrick(it,x,y)
call SetItemVisible(it,false)
call RemoveItem(it)
set it=null
return b
endfunction
function MoveUnit takes unit u, real a, real s returns nothing
local real x = GetUnitX(u)+s*Cos(a*bj_DEGTORAD)
local real y = GetUnitY(u)+s*Sin(a*bj_DEGTORAD)
if not(IsTerrainPathable(x,y,PATHING_TYPE_WALKABILITY)) and not(IsTerrainPathable(x,y,PATHING_TYPE_FLYABILITY)) then
call SetUnitX(u,x)
call SetUnitY(u,y)
else
endif
endfunction
function MoveGrenadeUnit takes unit u, real a, real s returns nothing
local real x = GetUnitX(u)+s*Cos(a*bj_DEGTORAD)
local real y = GetUnitY(u)+s*Sin(a*bj_DEGTORAD)
if not(IsTerrainPathable(x,y,PATHING_TYPE_WALKABILITY)) then
call SetUnitX(u,x)
call SetUnitY(u,y)
call SetUnitFacing(u,a)
else
endif
endfunction
function GetUnitZ takes unit u returns real
local location loc=GetUnitLoc(u)
local real h=GetCameraEyePositionZ()
call RemoveLocation(loc)
set loc=null
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_HINT, R2S(udg_LocZ_2) )
return h
endfunction
Name | Type | is_array | initial_value |
Accuracy | real | No | |
Accuracy_2 | real | No | |
Aim | boolean | Yes | |
Aim_Angle | real | Yes | |
Alliance | real | Yes | |
Angle_Difference | real | No | |
Animation | integer | Yes | |
Animation_Timer | timer | Yes | |
AnimationTest | real | Yes | |
announcerSounds | boolean | No | |
Barrel | destructable | Yes | |
Barrel_Count | real | No | |
Bomb_Area | location | No | |
Bomb_Area_2 | location | No | |
Bomb_Camera | real | Yes | |
Bomb_Region | rect | Yes | |
Bombed | group | No | |
Bombing_Plane_Destination | location | No | |
Bombing_Plane_Spawn | location | No | |
Breath | real | Yes | |
Breath_In | boolean | Yes | |
Breath_Out | boolean | Yes | |
Cam_Control | real | Yes | |
Camera_Angle | real | Yes | |
Collision_Rect | rect | Yes | |
Colors | string | Yes | |
Current_Filter | boolean | Yes | |
Current_Players | integer | No | |
D | boolean | Yes | |
Dead_Camera | boolean | Yes | |
Death_Time | real | Yes | |
Death_Timer | leaderboard | Yes | |
Deaths | integer | Yes | |
Destination | integer | No | |
Dialog | dialog | No | |
Dialog_Button | button | Yes | |
Distance | real | Yes | |
Distances | real | No | |
Down | boolean | Yes | |
Dying_Text | string | No | |
Effect | unit | No | |
Explosion_Shake | boolean | Yes | |
Facing_Angle | real | No | |
Facing_Angle_2 | real | No | |
Facing_Angles | real | Yes | |
Facing_Difference | real | No | |
Facing_Target | real | No | |
Flying_Height | real | No | |
G1 | boolean | Yes | |
G2 | boolean | Yes | |
G3 | boolean | Yes | |
G4 | boolean | Yes | |
G5 | boolean | Yes | |
G6 | boolean | Yes | |
G7 | boolean | Yes | |
G8 | boolean | Yes | |
G9 | boolean | Yes | |
G_Filters | boolean | Yes | |
G_Timer | real | Yes | |
gameMode | integer | No | |
Grenade_Angle | real | No | |
Grenade_Distances | real | No | |
Grenade_Initialization | real | Yes | |
Grenade_Position | location | No | |
Grenade_Z | real | No | |
Grenades | group | No | |
Height | real | No | |
Height_Elevation | rect | Yes | |
hitTest | integer | No | |
introTurn | real | No | |
K1 | boolean | Yes | |
K2 | boolean | Yes | |
K3 | boolean | Yes | |
K4 | boolean | Yes | |
K5 | boolean | Yes | |
K_Filters | boolean | Yes | |
K_Timer | real | Yes | |
Kill_Text | string | Yes | |
Killing_Text | string | No | |
Kills | integer | Yes | |
killSpree | integer | Yes | |
L1 | boolean | Yes | |
L10 | boolean | Yes | |
L11 | boolean | Yes | |
L12 | boolean | Yes | |
L2 | boolean | Yes | |
L3 | boolean | Yes | |
L4 | boolean | Yes | |
L5 | boolean | Yes | |
L6 | boolean | Yes | |
L7 | boolean | Yes | |
L8 | boolean | Yes | |
L9 | boolean | Yes | |
L_Filters | boolean | Yes | |
L_Timer | real | Yes | |
Last_Music | integer | No | |
LocZ | real | No | |
LocZ_2 | real | No | |
LocZ_Camera | real | Yes | |
LocZ_Tilt | real | No | |
Max_Angle | real | No | |
Mercenary | unit | Yes | |
Mercenary_Interface | unit | Yes | |
Min_Angle | real | No | |
modeDialog | dialog | No | |
modeType | button | Yes | |
Move_Back | boolean | Yes | |
Move_Forward | boolean | Yes | |
Move_Left | boolean | Yes | |
Move_Right | boolean | Yes | |
Multiboard_Players | player | Yes | |
music | integer | No | |
Online_Players | force | No | |
Pan_Position | location | Yes | |
Parabolic_Height | real | Yes | |
Plane | unit | No | |
Plane_Destination | location | No | |
Plane_Spawn | location | No | |
Planes_Group | group | No | |
Playable_Map | rect | No | |
Player_Names | string | Yes | |
Player_Rank | string | Yes | |
R1 | boolean | Yes | |
R2 | boolean | Yes | |
Random_Music | integer | No | |
Random_Position | location | No | |
Random_Spawn | integer | Yes | |
Rebels | real | Yes | |
Recoil | boolean | Yes | |
Recoil_Down | boolean | Yes | |
Recoil_Timer | real | Yes | |
Recoil_Up | boolean | Yes | |
Regular_Camera | boolean | Yes | |
Respawn_Timer | timer | No | |
Respawn_Window | timerdialog | No | |
RF1 | boolean | Yes | |
RF10 | boolean | Yes | |
RF2 | boolean | Yes | |
RF3 | boolean | Yes | |
RF4 | boolean | Yes | |
RF5 | boolean | Yes | |
RF6 | boolean | Yes | |
RF7 | boolean | Yes | |
RF8 | boolean | Yes | |
RF9 | boolean | Yes | |
RF_Filters | boolean | Yes | |
RF_Timer | real | Yes | |
Riflemen | boolean | Yes | |
Rotate_Down | boolean | Yes | |
Rotate_Left | boolean | Yes | |
Rotate_Right | boolean | Yes | |
Rotate_Up | boolean | Yes | |
Round_Minutes | integer | No | |
Round_Seconds | integer | No | |
Round_Time | timer | No | |
roundTime | real | No | |
RR1 | boolean | Yes | |
RR10 | boolean | Yes | |
RR2 | boolean | Yes | |
RR3 | boolean | Yes | |
RR4 | boolean | Yes | |
RR5 | boolean | Yes | |
RR6 | boolean | Yes | |
RR7 | boolean | Yes | |
RR8 | boolean | Yes | |
RR9 | boolean | Yes | |
RR_Filters | boolean | Yes | |
RR_Timer | real | Yes | |
S1 | boolean | Yes | |
S2 | boolean | Yes | |
SF1 | boolean | Yes | |
SF2 | boolean | Yes | |
SF3 | boolean | Yes | |
SF4 | boolean | Yes | |
SF5 | boolean | Yes | |
SF6 | boolean | Yes | |
SF7 | boolean | Yes | |
SF8 | boolean | Yes | |
SF9 | boolean | Yes | |
SF_Filters | boolean | Yes | |
SF_Timer | real | Yes | |
Shake_Timer | timer | Yes | |
Sharpshooter | unit | Yes | |
Sharpshooter_Interface | unit | Yes | |
Shoot_Angle | real | No | |
Shoot_Effect | unit | No | |
Shoot_Facing | real | No | |
Shooter_Loc | location | No | |
Spawn | integer | No | |
Spawn_Point | location | Yes | |
Spawn_Region | rect | Yes | |
SR1 | boolean | Yes | |
SR2 | boolean | Yes | |
SR3 | boolean | Yes | |
SR4 | boolean | Yes | |
SR5 | boolean | Yes | |
SR6 | boolean | Yes | |
SR7 | boolean | Yes | |
SR8 | boolean | Yes | |
SR9 | boolean | Yes | |
SR_Filters | boolean | Yes | |
SR_Timer | real | Yes | |
Stab_Angle | real | No | |
Stab_Distance | real | No | |
Stabbed_Loc | location | No | |
Stabber_Loc | location | No | |
Stabs | group | No | |
stabSound | boolean | No | |
Start_Animation | boolean | Yes | |
Strike_Timer | timer | No | |
Target_Loc | location | No | |
Targets | group | No | |
Targets_2 | group | No | |
Team_Score | integer | Yes | |
test | real | Yes | |
Thrower_Loc | location | No | |
Thrown_Loc | location | No | |
timerMusic | timer | No | |
Tree | destructable | Yes | |
Tree_Count | real | No | |
Up | boolean | Yes | |
Velocity | real | No | |
Walk | real | Yes | |
Weapon_Damage | real | No | |
winScore | integer | No | |
Z_Bullet | real | No | |
Z_Bullet_Change | real | No | |
Z_Dependant | real | Yes | |
Z_Difference | real | No | |
Z_Shooter | real | No | |
Z_Shot | real | No | |
Z_Target_Chest | real | No | |
Z_Target_Head | real | No | |
Z_Target_Legs | real | No |