DayZ 1.26
DayZ Explorer by KGB
|
Закрытые члены | |
void | ScriptedLightBase () |
Constructor. Everything here is executed before the constructor of all children. | |
void | ~ScriptedLightBase () |
override void | EOnInit (IEntity other, int extra) |
override bool | IsScriptedLight () |
void | UpdateMode () |
void | UpdateLightMode (string slotName) |
void | DeleteLightWithDelay () |
Correct way of deleting light from memory. It is necesarry to have this delay due to hierarchy. | |
void | DeleteLightNow () |
void | AttachOnObject (Object parent, vector local_pos="0 0 0", vector local_ori="0 0 0") |
Attaches this light on the parent entity, with optional position and orientation offset. | |
Object | GetAttachmentParent () |
Returns attachment parent. | |
void | AttachOnMemoryPoint (Object parent, string memory_point_start, string memory_point_target="") |
Attaches this light on the parent entity's memory point, with optional direction target memory point. | |
void | DetachFromParent () |
Detaches this light from its parent entity. | |
void | SetBrightnessTo (float value) |
Sets the brightness of the light. | |
void | CorrectLightPulseDuringDaylight () |
Call this after using SetBrightness(...) to fix light's intensity during daytime. | |
void | FadeBrightnessTo (float value, float time_in_s) |
Fades the brightness of the light to the given value. | |
void | SetRadiusTo (float value) |
Sets the radius of the light. | |
void | FadeRadiusTo (float value, float time_in_s) |
Fades the radius of the light to the given value. | |
void | Destroy () |
Switches off the light and deletes it from memory. | |
void | SetLifetime (float life_in_s) |
Makes the light destroy itself after the given time in seconds. The light will fade out if it's set to do so with SetFadeOutTime(...) | |
void | SetFadeOutTime (float time_in_s) |
Sets the fade out time in seconds. Fade out begins automatically as the light nears the end of its life time, or when method FadeOut() is called. | |
void | FadeOut (float time_in_s=-1) |
Starts the fade out process and destroys the light when its done. Optional parameter allows you to set time of this fade out in seconds. If not set, then default value (from SetFadeOutTime(...)) is used. | |
void | FadeIn (float time_in_s) |
Makes the light fade into existence. Works only at the moment the light is created. Consider using FadeBrightnessTo(...) and FadeRadiusTo(...) at anytime later during lifetime. | |
void | AddLifetime (float life_in_s) |
Prolongs the lifetime of the light in seconds. Use negative number to shorten its lifetime. | |
void | OnFrameLightSource (IEntity other, float timeSlice) |
Override this for custom functionality. | |
override void | EOnFrame (IEntity other, float timeSlice) |
On frame event. If you want to control your light within your own rules then override the event OnFrameLightSource and put your code there. | |
void | SetDancingShadowsAmplitude (float max_deviation_in_meters) |
Sets the maximum range of the point light within the dancing shadows effect. | |
void | SetDancingShadowsMovementSpeed (float speed_in_meters_per_frame) |
Sets the maximum speed of the point light within the dancing shadows effect. | |
float | GetDancingShadowsAmplitude () |
Returns max movement range of pointlight within the dancing shadow effect. | |
float | GetDancingShadowsMovementSpeed () |
Returns max movement speed of pointlight within the dancing shadow effect. | |
void | EnableDebug (bool state) |
Enables some debug functionality of this light. | |
void | HandleDancingShadows (float time, float timeSlice) |
void | HandleFlickering (float time, float timeSlice) |
void | SetFlickerSpeed (float speed) |
Sets speed of light flickering (random brightness coefficient change per second) | |
void | SetFlickerAmplitude (float coef) |
Sets the change coefficient of flickering light. (0.0 - 1.0 values, result of greater values are period time of light off ) | |
void | SetFlickerAmplitudeMax (float coef) |
void | SetFlickerAmplitudeMin (float coef) |
float | GetFlickerSpeed () |
Returns flicker speed. | |
float | GetFlickerAmplitudeCoefMax () |
Returns flicker amplitude maximum. | |
float | GetFlickerAmplitudeCoefMin () |
Returns flicker amplitude minimum. | |
void | TryShadowOptimization () |
Optimizes shadows by disabling them on this light source while it's within the given radius around the camera. | |
void | SetDisableShadowsWithinRadius (float radius_in_m) |
When the light source gets within this radius (radius_in_m) around the camera, then it's shadows are disabled. | |
float | GetDisableShadowsWithinRadius () |
Returns the range you put inside SetDisableShadowsWithinRadius(...) | |
void | CheckIfParentIsInCargo () |
bool | CheckLifetime (int current_time) |
void | CheckFadeOut (int current_time) |
void | HandleBrightnessFadeing (float timeSlice) |
void | HandleRadiusFadeing (float timeSlice) |
void | SetBlinkingSpeed (float _speed) |
Sets blinking speed (no blinking if speed <= 0) | |
float | GetBlinkingSpeed () |
Returns the speed of blinks. | |
void | HandleBlinking (float time) |
Закрытые статические члены | |
static ScriptedLightBase | CreateLightAtObjMemoryPoint (typename name, notnull Object target, string memory_point_start, string memory_point_target="", vector global_pos="0 0 0", float fade_in_time_in_s=0) |
static ScriptedLightBase | CreateLight (typename name, vector global_pos="0 0 0", float fade_in_time_in_s=0) |
Creates an instance of light on the given position. Optionally, use fade_in_time_in_s parameter to make the light fade into existence. | |
Закрытые статические данные | |
static ref set< ScriptedLightBase > | m_NightTimeOnlyLights = new set<ScriptedLightBase>() |
|
inlineprivate |
Prolongs the lifetime of the light in seconds. Use negative number to shorten its lifetime.
|
inlineprivate |
Attaches this light on the parent entity's memory point, with optional direction target memory point.
Перекрестные ссылки vector::Direction(), ErrorEx и m_LocalPos.
|
inlineprivate |
Attaches this light on the parent entity, with optional position and orientation offset.
Перекрестные ссылки m_LocalOri, m_LocalPos, m_Parent и SetPosition().
|
inlineprivate |
Перекрестные ссылки m_Parent и SetEnabled().
|
inlineprivate |
Call this after using SetBrightness(...) to fix light's intensity during daytime.
|
inlinestaticprivate |
Creates an instance of light on the given position. Optionally, use fade_in_time_in_s parameter to make the light fade into existence.
|
inlinestaticprivate |
Перекрестные ссылки CreateLight() и name.
|
inlineprivate |
|
inlineprivate |
Correct way of deleting light from memory. It is necesarry to have this delay due to hierarchy.
Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame() и m_DeleteTimer.
|
inlineprivate |
Switches off the light and deletes it from memory.
Перекрестные ссылки m_Parent и SetEnabled().
|
inlineprivate |
Detaches this light from its parent entity.
Перекрестные ссылки GetParent(), m_LocalOri, m_LocalPos, m_Parent и Vector().
Enables some debug functionality of this light.
On frame event. If you want to control your light within your own rules then override the event OnFrameLightSource and put your code there.
Перекрестные ссылки GetGame(), m_Radius и SetRadius().
Перекрестные ссылки GetGame() и GetPlayer().
Fades the brightness of the light to the given value.
Перекрестные ссылки Math::AbsFloat().
Makes the light fade into existence. Works only at the moment the light is created. Consider using FadeBrightnessTo(...) and FadeRadiusTo(...) at anytime later during lifetime.
Starts the fade out process and destroys the light when its done. Optional parameter allows you to set time of this fade out in seconds. If not set, then default value (from SetFadeOutTime(...)) is used.
Fades the radius of the light to the given value.
Перекрестные ссылки Math::AbsFloat() и m_Radius.
|
inlineprivate |
|
inlineprivate |
Returns the speed of blinks.
|
inlineprivate |
Returns max movement range of pointlight within the dancing shadow effect.
|
inlineprivate |
Returns max movement speed of pointlight within the dancing shadow effect.
|
inlineprivate |
Returns the range you put inside SetDisableShadowsWithinRadius(...)
|
inlineprivate |
Returns flicker amplitude maximum.
|
inlineprivate |
Returns flicker amplitude minimum.
|
inlineprivate |
Returns flicker speed.
Перекрестные ссылки Math::Round() и Math::Sin().
Перекрестные ссылки Destroy().
Перекрестные ссылки ParticleList::DEBUG_DOT, GetPosition, m_LocalPos, m_Parent, ParticleManager(), Math::RandomFloat(), SetPosition() и Vector().
Перекрестные ссылки Math::RandomFloat().
Перекрестные ссылки Destroy(), m_Radius и SetRadius().
Override this for custom functionality.
|
inlineprivate |
Constructor. Everything here is executed before the constructor of all children.
Перекрестные ссылки GetGame() и SetEnabled().
Sets blinking speed (no blinking if speed <= 0)
Sets the brightness of the light.
Sets the maximum range of the point light within the dancing shadows effect.
Перекрестные ссылки Math::AbsFloat().
Sets the maximum speed of the point light within the dancing shadows effect.
Перекрестные ссылки Math::AbsFloat().
When the light source gets within this radius (radius_in_m) around the camera, then it's shadows are disabled.
Sets the fade out time in seconds. Fade out begins automatically as the light nears the end of its life time, or when method FadeOut() is called.
Sets the change coefficient of flickering light. (0.0 - 1.0 values, result of greater values are period time of light off )
Перекрестные ссылки Math::AbsFloat().
Sets speed of light flickering (random brightness coefficient change per second)
Makes the light destroy itself after the given time in seconds. The light will fade out if it's set to do so with SetFadeOutTime(...)
Перекрестные ссылки GetGame().
Sets the radius of the light.
Перекрестные ссылки m_Radius и SetRadius().
|
inlineprivate |
Optimizes shadows by disabling them on this light source while it's within the given radius around the camera.
Перекрестные ссылки vector::Distance(), GetGame() и GetPosition.
|
inlineprivate |
Перекрестные ссылки InventorySlots::GetSlotName(), m_Parent и slotName.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |