![]() |
Dayz Explorer 1.28.160049
|
Go to the source code of this file.
Classes | |
| class | EnvironmentDrynessData |
Enumerations | |
| enum | EEnvironmentHeatcomfortBehaviorCategory { DEFAULT , CAR_ENGINE_ON } |
| Categories that are changing behavior of Heat comfort processing. More... | |
Functions | |
| float | GetPlayerHeat () |
| Character's heat (calculated from movement speed multiplied by constant) | |
| bool | IsUnderRoof () |
| Is character under roof (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK). Runs when player is not inside of building. | |
| bool | IsInsideBuilding () |
| Is character inside building? (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK). | |
| bool | IsWaterContact () |
| Is character in contact with water body? (periodically checked - GameConstants.ENVIRO_TICK_RATE). | |
| bool | IsRaining () |
| Rain phenomenon actual value > RAIN_LIMIT_LOW. | |
| bool | IsSnowing () |
| Snowfall phenomenon actual value > SNOWFALL_LIMIT_LOW. | |
| bool | DetermineHeatcomfortBehavior () |
| Changes Heat Comfort curve behavior based on where the character is. | |
| void | CheckUnderRoof () |
| Checks whether character is sheltered and sets the information. | |
| void | CheckWaterContact (out float pWaterLevel) |
| Checks player's contanct with water. | |
| float | GetWindModifierPerSurface () |
| Wind intensity (influence) modifier of temperature value. | |
| float | GetTemperature () |
| float | GetTargetHeatComfort () |
| float | GetEnvironmentTemperature () |
| Calculations of temperarute for different situations. | |
| float | GetWetDelta () |
| Calculates soaking/drying delta based on character's location and weather. | |
| void | CollectAndSetPlayerData () |
| Sets character related value for furher use. | |
| void | CollectAndSetEnvironmentData () |
| Sets actual weather related values for further use (rain, snow, wind, etc.) | |
| void | SetEnvironmentTemperature () |
| void | SetAreaGenericColdness () |
| Determines whether player is in cold area which restricts use of some actions (digging) | |
| void | ProcessWetnessByWaterLevel (float pWaterLevel) |
| Processes items wetness in player possession based on the current water level (the character is in) | |
| void | ProcessItemsWetness (array< int > pSlotIds) |
| Soak items at specific Slot ID(s) | |
| void | ApplyWetnessToItem (ItemBase pItem) |
| void | ProcessItemsDryness () |
| Dry items in player possession. | |
| void | ApplyDrynessToItem (ItemBase pItem) |
| void | ApplyDrynessToItemEx (ItemBase pItem, EnvironmentDrynessData pDrynessData) |
| void | ProcessHeatComfort () |
| Calculates and process player's heatcomfort related to defined body parts. | |
| void | SetTargetHeatComfort (float value) |
| void | SetHeatcomfortDirectly () |
| void | ProcessHeatBuffer (EnvironmentSnapshotData data) |
| float | GetApplicableHeatbuffer () |
| void | ProcessItemsTemperature (array< int > pBodyPartIds) |
| Iterate through items in player posession (by given body parts) and cool/warm them to neutral temparature. | |
| void | ProcessItemsInHandsTemperature () |
| Process temperature of item in character hands and cool/warm it to neutral temparature. | |
| void | ProcessItemHierarchyRecursive (ItemBase item, float heatPermeabilityCoef=1.0) |
| void | SetProcessedItemTemperature (ItemBase item, float heatPermeabilityCoef=1.0) |
| float | EnvTempToCoef (float pTemp) |
| void | BodyPartHeatProperties (int pBodyPartId, float pCoef, out float pHeatComfort, out float pHeat) |
| Iterate through given body part and calculates heatcofort and item heat value. | |
| float | NakedBodyPartHeatComfortPenalty (int pBodyPartSlotId, float pCoef) |
| Calculates penalty value for heatcomfort - this simulates uncovered body part reaction. | |
| void | GatherTemperatureSources () |
| Checks characters proximity for usable Universal Temperature Sources and register them. | |
| void | ProcessTemperatureSources () |
| Processes registered UTSources and calculates resulting m_UTSAverageTemperature. | |
| void | SetItemHeatingCoef (float val) |
| void | OnTemperatureSourcesEnter () |
| Event fired when characters enters into UTSource proximity. | |
| void | OnTemperatureSourcesLeft () |
| Event fired when characters leave the UTSource proximity. | |
| float | GetUniversalSourcesTemperageAverage () |
| float | CalcTemperatureFromTemperatureSource (notnull UTemperatureSource uts) |
| string | GetDebugMessage () |
| debug | |
| int | GetNextRoofCheck () |
| float | GetWaterLevel () |
| void | Init (PlayerBase pPlayer) |
| used for calculations before the data modification | |
| bool | OverridenHeatComfort (out float value) |
| void | AddToEnvironmentTemperature (float pTemperature) |
| void | ProcessItemsHeat () |
| void | ProcessWetnessByRain () |
| float | GetTemperatureHeightCorrection () |
| void | BodyPartHeatProperties (array< int > pBodyPartIds, float pCoef, out float pHeatComfort, out float pHeat) |
| returns weighted avg heat comfort for bodypart | |
| void | SetEnvironmentSnapshotData () |
| void | ProcessHeatBuffer (float heatComfortCloths) |
| backward compatibility [<1.27] | |
| float | WindEffectTemperatureValue (float temperatureInput) |
| backward compatibility [<1.28] | |
| float | GetDayOrNight () |
| bool | IsInsideVehicle () |
Categories that are changing behavior of Heat comfort processing.
| Enumerator | |
|---|---|
| DEFAULT | |
| CAR_ENGINE_ON | |
Definition at line 4 of file environment.c.
|
protected |
|
protected |
Definition at line 866 of file environment.c.
|
protected |
adds wetness to item inside parent item containing liquid
adds wetness to item inside wet parent item
Definition at line 872 of file environment.c.
|
protected |
Definition at line 732 of file environment.c.
|
protected |
returns weighted avg heat comfort for bodypart
go through all body parts we've defined for that zone (ex.: head, body, feet)
Definition at line 1791 of file environment.c.
|
protected |
Iterate through given body part and calculates heatcofort and item heat value.
| pBodyPartIds | List of body parts to iterate through (see InventorySlots) | |
| pCoef | Multiplier used for heatcomfort enhancing | |
| [out] | pHeatComfort | overall heatcomfort from items of given body part |
| [out] | pHeat | overall heat from items for given body part |
Definition at line 1353 of file environment.c.
|
protected |
heat transfer through air to player (env temperature)
Definition at line 1569 of file environment.c.
|
protected |
Checks whether character is sheltered and sets the information.
if inside vehicle return immediatelly
Definition at line 391 of file environment.c.
|
protected |
Checks player's contanct with water.
| [out] | pWaterLevel | water level height |
no valid surface under character
sync info about water contact to player
update active surface
Definition at line 421 of file environment.c.
|
protected |
Sets actual weather related values for further use (rain, snow, wind, etc.)
Definition at line 641 of file environment.c.
|
protected |
Sets character related value for furher use.
movement speed
Definition at line 623 of file environment.c.
|
protected |
Changes Heat Comfort curve behavior based on where the character is.
Definition at line 369 of file environment.c.
Definition at line 1341 of file environment.c.
|
protected |
Checks characters proximity for usable Universal Temperature Sources and register them.
skip - Temperature Source is not affecting player entities
skip - Temperature Source is too far
Definition at line 1469 of file environment.c.
|
protected |
Definition at line 1202 of file environment.c.
|
protected |
Definition at line 1921 of file environment.c.
|
protected |
debug
Definition at line 1656 of file environment.c.
|
protected |
Calculations of temperarute for different situations.
Definition at line 517 of file environment.c.
|
protected |
Definition at line 1691 of file environment.c.
|
protected |
Character's heat (calculated from movement speed multiplied by constant)
Definition at line 295 of file environment.c.
|
protected |
Definition at line 502 of file environment.c.
|
protected |
Definition at line 497 of file environment.c.
|
protected |
Definition at line 1784 of file environment.c.
|
protected |
Definition at line 1564 of file environment.c.
|
protected |
Definition at line 1696 of file environment.c.
|
protected |
Calculates soaking/drying delta based on character's location and weather.
player is getting wet by movement/swimming in water (+differentiate wetDelta by water level)
player is drying
Definition at line 563 of file environment.c.
|
protected |
Wind intensity (influence) modifier of temperature value.
Definition at line 489 of file environment.c.
|
protected |
used for calculations before the data modification
Definition at line 1764 of file environment.c.
|
protected |
Is character inside building? (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK).
Definition at line 313 of file environment.c.
|
protected |
Definition at line 1926 of file environment.c.
|
protected |
Rain phenomenon actual value > RAIN_LIMIT_LOW.
Definition at line 351 of file environment.c.
|
protected |
Snowfall phenomenon actual value > SNOWFALL_LIMIT_LOW.
Definition at line 359 of file environment.c.
|
protected |
Is character under roof (periodically checked - GameConstants.ENVIRO_TICK_ROOF_RC_CHECK). Runs when player is not inside of building.
Definition at line 305 of file environment.c.
|
protected |
Is character in contact with water body? (periodically checked - GameConstants.ENVIRO_TICK_RATE).
Definition at line 321 of file environment.c.
Calculates penalty value for heatcomfort - this simulates uncovered body part reaction.
| pBodyPartSlotId | InventorySlot ID to check |
| pCoef | external coefficient used for that slot |
Definition at line 1448 of file environment.c.
|
protected |
Event fired when characters enters into UTSource proximity.
|
protected |
Event fired when characters leave the UTSource proximity.
|
protected |
dynamic HB cap based on actual heatcomfort (from cloths)
deplete the heat buffer if there is difference in HB capacity (eg.: cloths were removed)
Definition at line 1102 of file environment.c.
|
protected |
backward compatibility [<1.27]
Definition at line 1902 of file environment.c.
|
protected |
Calculates and process player's heatcomfort related to defined body parts.
Heat Comfort Penalty
heatcomfort body parts penalties
Stomach temperature influence to heatcomfort
uses the raw targetHeatComfort data
Definition at line 970 of file environment.c.
Definition at line 1261 of file environment.c.
|
protected |
Dry items in player possession.
Definition at line 822 of file environment.c.
|
protected |
Definition at line 1772 of file environment.c.
|
protected |
Process temperature of item in character hands and cool/warm it to neutral temparature.
Definition at line 1247 of file environment.c.
Iterate through items in player posession (by given body parts) and cool/warm them to neutral temparature.
| pBodyPartIds | List of body parts to iterate through (see InventorySlots) |
go through all body parts we've defined for that zone (ex.: head, body, feet)
Definition at line 1216 of file environment.c.
Soak items at specific Slot ID(s)
| pSlotIds | Inventory Slot IDs to process |
Definition at line 694 of file environment.c.
|
protected |
Processes registered UTSources and calculates resulting m_UTSAverageTemperature.
adds average of 2 most significat sources to buffer
Definition at line 1504 of file environment.c.
|
protected |
Definition at line 1778 of file environment.c.
|
protected |
Processes items wetness in player possession based on the current water level (the character is in)
| pWaterLevel | Water level height |
Definition at line 676 of file environment.c.
|
protected |
Determines whether player is in cold area which restricts use of some actions (digging)
Definition at line 666 of file environment.c.
|
protected |
Definition at line 1893 of file environment.c.
|
protected |
Definition at line 657 of file environment.c.
|
protected |
Definition at line 1086 of file environment.c.
|
protected |
Definition at line 1549 of file environment.c.
swimming special behavior
Definition at line 1312 of file environment.c.
|
protected |
Definition at line 1081 of file environment.c.
backward compatibility [<1.28]
Definition at line 1911 of file environment.c.
|
protected |
Definition at line 91 of file environment.c.
Definition at line 82 of file environment.c.
| enum EEnvironmentHeatcomfortBehaviorCategory m_ClothingHeatComfort |
|
protected |
Definition at line 57 of file environment.c.
|
protected |
Definition at line 56 of file environment.c.
|
protected |
Definition at line 1762 of file environment.c.
|
protected |
Definition at line 58 of file environment.c.
Definition at line 83 of file environment.c.
|
protected |
Definition at line 55 of file environment.c.
|
protected |
Definition at line 87 of file environment.c.
Definition at line 81 of file environment.c.
|
protected |
reused as state toggle
Definition at line 74 of file environment.c.
|
protected |
Definition at line 73 of file environment.c.
|
protected |
Definition at line 48 of file environment.c.
|
protected |
Definition at line 93 of file environment.c.
|
protected |
DEPRECATED.
Definition at line 1760 of file environment.c.
|
protected |
Definition at line 70 of file environment.c.
|
protected |
Definition at line 71 of file environment.c.
|
protected |
Definition at line 68 of file environment.c.
|
protected |
Definition at line 39 of file environment.c.
|
protected |
Definition at line 64 of file environment.c.
|
protected |
Definition at line 61 of file environment.c.
|
protected |
Definition at line 43 of file environment.c.
|
protected |
Definition at line 47 of file environment.c.
|
protected |
Definition at line 44 of file environment.c.
|
protected |
Definition at line 45 of file environment.c.
|
protected |
Definition at line 46 of file environment.c.
|
protected |
target value of heatcomfort (non-buffered)
Definition at line 52 of file environment.c.
|
protected |
keeps wetness of most wet item in player's possesion
Definition at line 40 of file environment.c.
Definition at line 78 of file environment.c.
Definition at line 76 of file environment.c.
Definition at line 79 of file environment.c.
Definition at line 77 of file environment.c.
|
protected |
Definition at line 53 of file environment.c.
|
protected |
Definition at line 60 of file environment.c.
| float m_TargetHeatComfort |
player's heatcomfort (buffered, stored in player stats)
Definition at line 13 of file environment.c.
|
protected |
Definition at line 59 of file environment.c.
|
protected |
Definition at line 89 of file environment.c.
|
protected |
Definition at line 88 of file environment.c.
|
protected |
Definition at line 90 of file environment.c.
|
protected |
Definition at line 67 of file environment.c.
|
protected |
Definition at line 38 of file environment.c.
|
protected |
Definition at line 54 of file environment.c.
|
protected |
Definition at line 1761 of file environment.c.
|
protected |
Definition at line 85 of file environment.c.
| class EnvironmentDrynessData RAIN_LIMIT_LOW = 0.05 |
|
protected |
Definition at line 30 of file environment.c.
|
protected |
Definition at line 31 of file environment.c.
|
protected |
Definition at line 33 of file environment.c.
|
protected |
Definition at line 35 of file environment.c.
|
protected |
Definition at line 34 of file environment.c.
|
protected |
Definition at line 36 of file environment.c.