DayZ 1.24
|
Go to the source code of this file.
Classes | |
class | ActionSkinningCB |
Functions | |
ActionSkinningCB ActionContinuousBaseCB | ActionSkinning () |
override void | CreateActionComponent () |
override void | CreateConditionComponents () |
override bool | ActionCondition (PlayerBase player, ActionTarget target, ItemBase item) |
override void | OnFinishProgressServer (ActionData action_data) |
vector | GetRandomPos (vector body_pos) |
ItemBase | CreateOrgan (PlayerBase player, vector body_pos, string item_to_spawn, string cfg_skinning_organ_class, ItemBase tool) |
override void | OnFinishProgressClient (ActionData action_data) |
void | HandlePlayerBody (ActionData action_data) |
This section drops all clothes (and attachments) from the dead player before deleting their body. | |
void | DropInventoryItems (PlayerBase body, float newLifetime) |
void | SpawnItems (ActionData action_data) |
override bool ActionCondition | ( | PlayerBase | player, |
ActionTarget | target, | ||
ItemBase | item ) |
Definition at line 48 of file ActionSkinning.c.
References Class::CastTo().
ActionSkinningCB ActionContinuousBaseCB ActionSkinning | ( | ) |
Definition at line 1 of file ActionSkinning.c.
Referenced by ActionConstructor::RegisterActions(), ToolBase::SetActions(), Crowbar::SetActions(), HandSaw::SetActions(), HayHook::SetActions(), Iceaxe::SetActions(), Inventory_Base::SetActions(), and ItemBase::SetActions().
Definition at line 32 of file ActionSkinning.c.
References m_FullBody, m_SpecialtyWeight, m_StanceMask, m_Text, and UASoftSkillsWeight::PRECISE_MEDIUM.
Definition at line 42 of file ActionSkinning.c.
References m_ConditionItem, and m_ConditionTarget.
ItemBase CreateOrgan | ( | PlayerBase | player, |
vector | body_pos, | ||
string | item_to_spawn, | ||
string | cfg_skinning_organ_class, | ||
ItemBase | tool ) |
Definition at line 94 of file ActionSkinning.c.
References Class::CastTo(), ECE_PLACE_ON_SURFACE, g_Game, GetGame(), GetRandomPos(), GetSpecialtyWeight(), Math::RandomFloat(), and Math::Round().
Referenced by SpawnItems().
void DropInventoryItems | ( | PlayerBase | body, |
float | newLifetime ) |
Definition at line 239 of file ActionSkinning.c.
Referenced by HandlePlayerBody().
Definition at line 88 of file ActionSkinning.c.
References Math::RandomFloat01(), and Vector().
Referenced by CreateOrgan().
void HandlePlayerBody | ( | ActionData | action_data | ) |
This section drops all clothes (and attachments) from the dead player before deleting their body.
Definition at line 174 of file ActionSkinning.c.
References Class::CastTo(), GameConstants::DAMAGE_BADLY_DAMAGED_VALUE, GameConstants::DAMAGE_DAMAGED_VALUE, GameConstants::DAMAGE_RUINED_VALUE, GameConstants::DAMAGE_WORN_VALUE, DropInventoryItems(), GetCEApi(), GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_RUINED, and GameConstants::STATE_WORN.
Referenced by OnFinishProgressServer().
override void OnFinishProgressClient | ( | ActionData | action_data | ) |
Definition at line 160 of file ActionSkinning.c.
References GetGame().
override void OnFinishProgressServer | ( | ActionData | action_data | ) |
Definition at line 63 of file ActionSkinning.c.
References CALL_CATEGORY_SYSTEM, GetGame(), GetPlugin(), HandlePlayerBody(), m_SpecialtyWeight, PluginLifespan(), UADamageApplied::SKINNING, and SpawnItems().
void SpawnItems | ( | ActionData | action_data | ) |
Definition at line 253 of file ActionSkinning.c.
References CreateOrgan(), Math::Floor(), g_Game, and GetGame().
Referenced by OnFinishProgressServer().