PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
World Class Reference

Private Member Functions

proto void CheckSoundObstruction (EntityAI source, bool inSource, out float obstruction, out float occlusion)
 
proto native void GetPlayerList (out array< Man > players)
 
proto native void SetTimeMultiplier (float timeMultiplier)
 Sets the world time acceleration, overriding config. Mostly used for debug purposes.
 
proto void GetDate (out int year, out int month, out int day, out int hour, out int minute)
 Get actual ingame world time.
 
proto native void SetDate (int year, int month, int day, int hour, int minute)
 Sets actual ingame world time.
 
proto native float GetLatitude ()
 
proto native float GetLongitude ()
 
proto native float GetMoonIntensity ()
 
proto native float GetSunOrMoon ()
 
proto native bool IsNight ()
 
proto native float GetEyeAccom ()
 
proto native void SetEyeAccom (float eyeAccom)
 
proto native void StartFpsBenchmark (int sectorsCount, float preloadDistance, float fpsLimitRed, float fpsLimitGreen, float fpsLimitBlue, float minX, float minY, float maxX, float maxY)
 
proto native void StartFpsBenchmarkWithMask (float preloadDistance, float fpsLimitRed, float fpsLimitGreen, float fpsLimitBlue)
 
proto native void StartFpsBenchmarkViews (string xmlFileName, float preloadDistance)
 
proto native void SetBuldozerWaterEnabled (bool enable)
 
proto native void SetPreferredViewDistance (float distance)
 Sets preferred view distance, which persists between game sessions.
 
proto native void SetViewDistance (float distance)
 
proto native void SetObjectViewDistance (float distance)
 
proto native void SetExplicitVolumeFactor_EnvSounds2D (float factor, float fadeTime)
 
proto native void AddEnvShootingSource (vector position, float shootingValDecrease)
 Affects env sound controller value 'Shooting'.
 
proto int GetWorldSize ()
 
proto void GetGridCoords (vector pos, float gridSize, out int gridX, out int gridZ)
 Translates world coordinates to a grid coordinates(map grid)
 
proto native void LoadNewLightingCfg (string path)
 
proto native void LoadUserLightingCfg (string path, string name)
 
proto native void SetUserLightingLerp (float val)
 
proto native AIWorld GetAIWorld ()
 
proto native void UpdatePathgraphDoorByAnimationSourceName (notnull Object object, string animSourceName)
 
proto native void MarkObjectForPathgraphUpdate (Object object)
 
proto native void ProcessMarkedObjectsForPathgraphUpdate ()
 
proto native Material GetMaterial (string materialName)
 
proto native void SetCameraPostProcessEffect (int cam, int ppEffect, string effectName, string materialName)
 
void SetAperture (float invDiameter)
 
proto native bool Is3rdPersonDisabled ()
 
proto native bool IsCrosshairDisabled ()
 
proto native bool IsMouseAndKeyboardEnabledOnServer ()
 
proto native int GetPingWarningThreshold ()
 
proto native int GetPingCriticalThreshold ()
 
proto native float GetServerFpsWarningThreshold ()
 
proto native float GetServerFpsCriticalThreshold ()
 
proto native void DisableTransmitVoN (bool disable)
 
proto native bool DisableReceiveVoN (bool disable)
 
proto native bool IsDisabledTransmitingVoN ()
 
proto native bool IsDisabledReceivingVoN ()
 
proto void SetVoiceOn (bool listening, bool toggled=false)
 
proto native void FlattenGrassSphere (float x, float z, float radius, float centerLerp01, float timeDown01, float maxHeight01)
 
proto native void FlattenGrassEllipse (float x, float z, float sideX, float sideZ, float offset, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01)
 
proto native void FlattenGrassBox (float x, float z, float side, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01)
 
proto native void FlattenGrassRect (float x, float z, float sideX, float sideZ, float offset, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01)
 

Member Function Documentation

◆ AddEnvShootingSource()

proto native void AddEnvShootingSource ( vector  position,
float  shootingValDecrease 
)
private

Affects env sound controller value 'Shooting'.

Parameters
soundposition
relativevalue (0..1) - how much should be value decreased

◆ CheckSoundObstruction()

proto void CheckSoundObstruction ( EntityAI  source,
bool  inSource,
out float  obstruction,
out float  occlusion 
)
private

◆ DisableReceiveVoN()

proto native bool DisableReceiveVoN ( bool  disable)
private

enable/disable receiving all voice over network globally

Parameters
disableif true, then player is not able listen any voice from VoN
Returns
true if mute request was sent successfully to server. If false, then was problem with sent request or missing player idendity.

Referenced by OnlineServices::OnLoadVoicePrivilege().

◆ DisableTransmitVoN()

proto native void DisableTransmitVoN ( bool  disable)
private

enable/disable transmiting voice over network globally

Parameters
disableif true, then VoN is no more usable for transmiting voice

Referenced by OnlineServices::OnLoadVoicePrivilege().

◆ FlattenGrassBox()

proto native void FlattenGrassBox ( float  x,
float  z,
float  side,
float  angleRAD,
float  centerLerp01,
float  timeDown01,
float  maxHeight01 
)
private

create box

Parameters
worldXworld X of touch with ground
worldZworld X of touch with ground
sideSizesize of side
angleRADrotation
centerLerp01lerp of values inside rasterization
timeDown01relative speed of going down, 1 is usually 0.5secs
maxHeight01maximum relative height of flattening, 0 = no flatten

◆ FlattenGrassEllipse()

proto native void FlattenGrassEllipse ( float  x,
float  z,
float  sideX,
float  sideZ,
float  offset,
float  angleRAD,
float  centerLerp01,
float  timeDown01,
float  maxHeight01 
)
private

create ellipse

Parameters
worldXworld X of touch with ground
worldZworld X of touch with ground
radiusXradius in X coord before rotate
radiusZradius in Z coord before rotate
offsetoffset, 0 = default center, <-1, 1>
angleRADrotation
centerLerp01lerp of values inside rasterization
timeDown01relative speed of going down, 1 is usually 0.5secs
maxHeight01maximum relative height of flattening, 0 = no flatten

◆ FlattenGrassRect()

proto native void FlattenGrassRect ( float  x,
float  z,
float  sideX,
float  sideZ,
float  offset,
float  angleRAD,
float  centerLerp01,
float  timeDown01,
float  maxHeight01 
)
private

create rectangle

Parameters
worldXworld X of touch with ground
worldZworld X of touch with ground
sideXSizesize of side in X
sideZSizesize of side in Z
offsetoffset, 0 = default center, <-1, 1>
angleRADrotation
centerLerp01lerp of values inside rasterization
timeDown01relative speed of going down, 1 is usually 0.5secs
maxHeight01maximum relative height of flattening, 0 = no flatten

◆ FlattenGrassSphere()

proto native void FlattenGrassSphere ( float  x,
float  z,
float  radius,
float  centerLerp01,
float  timeDown01,
float  maxHeight01 
)
private

create sphere

Parameters
worldXworld X of touch with ground
worldZworld X of touch with ground
radiusradius
centerLerp01lerp of values inside rasterization
timeDown01relative speed of going down, 1 is usually 0.5secs
maxHeight01maximum relative height of flattening, 0 = no flatten

◆ GetAIWorld()

proto native AIWorld GetAIWorld ( )
private

returns reference to AIWorld

◆ GetDate()

proto void GetDate ( out int  year,
out int  month,
out int  day,
out int  hour,
out int  minute 
)
private

Get actual ingame world time.

Parameters
year
monthin range <1, 12>
dayin range <1, 31>
hourin range <0, 23>
minutein range <0, 59>
int year, month, day, hour, minute;
GetGame().GetWorld().GetDate(year, month, day, hour, minute);
proto native World GetWorld()
proto void GetDate(out int year, out int month, out int day, out int hour, out int minute)
Get actual ingame world time.
proto native CGame GetGame()

Referenced by WorldData::CalculateVolFog(), EnochData::CalculateVolFog(), GetAlarmInMin(), WorldData::GetDaytime(), ScriptConsoleGeneralTab::Init(), PluginConfigHandler::LoadSceneSettings(), UIPopupScript::OnOpen(), AlarmClock_ColorBase::OnUpdate(), UIPopupScript::ResetSliders(), SetAlarmInXMins(), WorldData::UpdateBaseEnvTemperature(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().

◆ GetEyeAccom()

proto native float GetEyeAccom ( )
private

◆ GetGridCoords()

proto void GetGridCoords ( vector  pos,
float  gridSize,
out int  gridX,
out int  gridZ 
)
private

Translates world coordinates to a grid coordinates(map grid)

Parameters
pos
sizeof grid in meters
xgrid position result [out]
zgrid position result [out]
int x,z;
Icon x
PlayerBase GetPlayer()
Definition ModifierBase.c:51
vector GetPosition()
Definition IntroSceneCharacter.c:129
proto void GetGridCoords(vector pos, float gridSize, out int gridX, out int gridZ)
Translates world coordinates to a grid coordinates(map grid)

Referenced by OrderedPositionNumbersFromGridCoords().

◆ GetLatitude()

proto native float GetLatitude ( )
private

◆ GetLongitude()

proto native float GetLongitude ( )
private

◆ GetMaterial()

proto native Material GetMaterial ( string  materialName)
private
Material matColors = GetGame().GetWorld().GetMaterial("postprocess/glow");
SetMaterialParam(matColors, "Saturation", 0.8);
float color[4];
color[0] = 0.5;
color[1] = 0.8;
color[2] = 0.7;
color[3] = 0.6;
SetMaterialParam(matColors, "OverlayColor", color);
Definition proto.c:268
proto native Material GetMaterial(string materialName)

Referenced by PPEClassBase::CreateMaterial(), PPEffects::Init(), PPEffects::SetBlur(), and PPEffects::SetNVParams().

◆ GetMoonIntensity()

proto native float GetMoonIntensity ( )
private

◆ GetPingCriticalThreshold()

proto native int GetPingCriticalThreshold ( )
private

Returns the value set in server config for notifying high ping

◆ GetPingWarningThreshold()

proto native int GetPingWarningThreshold ( )
private

Returns the value set in server config for notifying high ping

◆ GetPlayerList()

proto native void GetPlayerList ( out array< Man >  players)
private

◆ GetServerFpsCriticalThreshold()

proto native float GetServerFpsCriticalThreshold ( )
private

Returns the value set in server config for notifying low server fps

◆ GetServerFpsWarningThreshold()

proto native float GetServerFpsWarningThreshold ( )
private

Returns the value set in server config for notifying low server fps

◆ GetSunOrMoon()

proto native float GetSunOrMoon ( )
private

◆ GetWorldSize()

proto int GetWorldSize ( )
private

◆ Is3rdPersonDisabled()

proto native bool Is3rdPersonDisabled ( )
private

checks if 3rd person camera is disabled from server

Referenced by DayZPlayer::DayZPlayerImplement().

◆ IsCrosshairDisabled()

proto native bool IsCrosshairDisabled ( )
private

checks if crosshair is disabled from server

◆ IsDisabledReceivingVoN()

proto native bool IsDisabledReceivingVoN ( )
private
Returns
true, if receiving voice over network is disabled, so player can not listen anybody

Referenced by UIScriptedMenu::Init(), and UIScriptedMenu::Refresh().

◆ IsDisabledTransmitingVoN()

proto native bool IsDisabledTransmitingVoN ( )
private
Returns
true if transmiting voice over network is disabled, so player can not talking

◆ IsMouseAndKeyboardEnabledOnServer()

proto native bool IsMouseAndKeyboardEnabledOnServer ( )
private

checks if mouse and keyboard is enabled from server (only on console)

Referenced by ScriptedWidgetEventHandler::OptionsMenuControls().

◆ IsNight()

proto native bool IsNight ( )
private

◆ LoadNewLightingCfg()

proto native void LoadNewLightingCfg ( string  path)
private

load light config

Referenced by WorldLighting::SetGlobalLighting().

◆ LoadUserLightingCfg()

proto native void LoadUserLightingCfg ( string  path,
string  name 
)
private

load user light config (just first item is used)

Referenced by UndergroundHandlerClient().

◆ MarkObjectForPathgraphUpdate()

proto native void MarkObjectForPathgraphUpdate ( Object  object)
private

◆ ProcessMarkedObjectsForPathgraphUpdate()

proto native void ProcessMarkedObjectsForPathgraphUpdate ( )
private

◆ SetAperture()

void SetAperture ( float  invDiameter)
inlineprivate

References SetEyeAccom().

◆ SetBuldozerWaterEnabled()

proto native void SetBuldozerWaterEnabled ( bool  enable)
private

◆ SetCameraPostProcessEffect()

proto native void SetCameraPostProcessEffect ( int  cam,
int  ppEffect,
string  effectName,
string  materialName 
)
private

set new PP effect and its material

Parameters
cameranumber of camera
effectIndexindex of effect
effectNamename of effect
matNamename of material

◆ SetDate()

proto native void SetDate ( int  year,
int  month,
int  day,
int  hour,
int  minute 
)
private

Sets actual ingame world time.

Parameters
year
monthin range <1, 12>
dayin range <1, 31>
hourin range <0, 23>
minutein range <0, 59>
int year = 2016;
int month = 5;
int day = 4;
int hour = 14;
int minute = 57;
GetGame().GetWorld().SetDate(year, month, day, hour, minute);
proto native void SetDate(int year, int month, int day, int hour, int minute)
Sets actual ingame world time.

Referenced by DayZIntroScene::DayZIntroScene(), PluginBase::HandleSetTime(), UIPopupScript::OnChange(), UIPopupScript::OnClick(), UIPopupScript::OnClose(), SceneData::SetInitDay(), SceneData::SetInitHour(), SceneData::SetInitMinute(), SceneData::SetInitMonth(), SceneData::SetInitYear(), and ScriptConsoleGeneralTab::UpdateTime().

◆ SetExplicitVolumeFactor_EnvSounds2D()

proto native void SetExplicitVolumeFactor_EnvSounds2D ( float  factor,
float  fadeTime 
)
private

◆ SetEyeAccom()

proto native void SetEyeAccom ( float  eyeAccom)
private

Referenced by SetAperture().

◆ SetObjectViewDistance()

proto native void SetObjectViewDistance ( float  distance)
private

◆ SetPreferredViewDistance()

proto native void SetPreferredViewDistance ( float  distance)
private

Sets preferred view distance, which persists between game sessions.

Parameters
distance

◆ SetTimeMultiplier()

proto native void SetTimeMultiplier ( float  timeMultiplier)
private

Sets the world time acceleration, overriding config. Mostly used for debug purposes.

Parameters
timeMultiplier0-64 acceleration value, -1 to reset back

◆ SetUserLightingLerp()

proto native void SetUserLightingLerp ( float  val)
private

set lerp to user lighting cfg

Referenced by OnUndergroundPresenceUpdate(), ProcessLighting(), and ~UndergroundHandlerClient().

◆ SetViewDistance()

proto native void SetViewDistance ( float  distance)
private

◆ SetVoiceOn()

proto void SetVoiceOn ( bool  listening,
bool  toggled = false 
)
private

enables/disables player's voice communication

Parameters
listeningenable or disable microphone
toggledenable or disable PTT/Voice activation

Referenced by DayZPlayer::HandleDeath().

◆ StartFpsBenchmark()

proto native void StartFpsBenchmark ( int  sectorsCount,
float  preloadDistance,
float  fpsLimitRed,
float  fpsLimitGreen,
float  fpsLimitBlue,
float  minX,
float  minY,
float  maxX,
float  maxY 
)
private

◆ StartFpsBenchmarkViews()

proto native void StartFpsBenchmarkViews ( string  xmlFileName,
float  preloadDistance 
)
private

◆ StartFpsBenchmarkWithMask()

proto native void StartFpsBenchmarkWithMask ( float  preloadDistance,
float  fpsLimitRed,
float  fpsLimitGreen,
float  fpsLimitBlue 
)
private

◆ UpdatePathgraphDoorByAnimationSourceName()

proto native void UpdatePathgraphDoorByAnimationSourceName ( notnull Object  object,
string  animSourceName 
)
private

For entities that aren't a house, any animation source that contains "door" is treated as a door by the pathgraph. Using the phase value where 0=CLOSED, 1=OPENED, we can update the state of the door without regenerating the tile

Referenced by Land_Underground_EntranceBase::OnUpdateServer().


The documentation for this class was generated from the following file: