![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
do not process rotations ! More...
Protected Member Functions | |
| void | CommandHandler (float dt, int currentCommandID, bool currentCommandFinished) |
| bool | ComputeDamageHitParams (EntityAI source, string dmgZone, string ammo, out int type, out int direction) |
| float | ComputeHitDirectionAngleDeg (EntityAI source) |
| float | ConvertNonlethalDamage (float damage, DamageType damageType) |
| void | DayZAnimal () |
| override void | EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef) |
| void | EOnContact (IEntity other, Contact extra) |
| Phx contact event. | |
| int | FindComponentDirectionOffset (string component) |
| proto native DayZAnimalCommandScript | GetCommand_Script () |
| override string | GetDefaultHitComponent () |
| override vector | GetDefaultHitPosition () |
| override string | GetDefaultHitPositionComponent () |
| override int | GetHideIconMask () |
| override string | GetHitComponentForAI () |
| proto native DayZAnimalInputController | GetInputController () |
| bool | HandleDamageHit (int currentCommandID) |
| bool | HandleDeath (int currentCommandID, DayZAnimalInputController inputController) |
| override bool | IsAnimal () |
| override bool | IsHealthVisible () |
| override bool | IsInventoryVisible () |
| void | QueueDamageHit (int type, int direction) |
| void | RegisterHitComponentsForAI () |
| register hit components for AI melee (used by attacking AI) | |
| vector | SetDefaultHitPosition (string pSelection) |
| proto native void | SignalAIAttackEnded () |
| proto native void | SignalAIAttackStarted () |
| proto native void | StartCommand_Attack () |
| proto native void | StartCommand_Death (int pType, int pDirection) |
| proto native void | StartCommand_Hit (int pType, int pDirection) |
| proto native void | StartCommand_Jump () |
| proto native void | StartCommand_Move () |
| proto native DayZAnimalCommandScript | StartCommand_Script (DayZAnimalCommandScript pInfectedCommand) |
| scripted commands | |
| proto native DayZAnimalCommandScript | StartCommand_ScriptInst (typename pCallbackClass) |
| int | TranslateHitAngleDegToDirectionIndex (float angleDeg) |
Protected Attributes | |
| int | m_DamageHitDirection = 0 |
| bool | m_DamageHitToProcess = false |
| int | m_DamageHitType = 0 |
| string | m_DefaultHitComponent |
| vector | m_DefaultHitPosition |
| string | m_DefaultHitPositionComponent |
| ref array< ref DayZAIHitComponent > | m_HitComponentsForAI |
| Melee hit components (AI targeting). | |
do not process rotations !
Definition at line 655 of file dayzanimal.c.
for mods
for mods
Definition at line 722 of file dayzanimal.c.
References GetInputController(), HandleDamageHit(), HandleDeath(), DayZAnimalInputController::IsAttack(), DayZCreatureAIInputController::IsJump(), ModCommandHandlerAfter(), ModCommandHandlerBefore(), ModCommandHandlerInside(), SignalAIAttackEnded(), SignalAIAttackStarted(), StartCommand_Attack(), StartCommand_Jump(), and StartCommand_Move().
|
inlineprotected |
Definition at line 865 of file dayzanimal.c.
References ComputeHitDirectionAngleDeg(), FindComponentDirectionOffset(), and TranslateHitAngleDegToDirectionIndex().
Referenced by EEHitBy().
Definition at line 877 of file dayzanimal.c.
References Math::Acos(), vector::Dot(), GetPosition(), vector::Normalize(), and Math::RAD2DEG.
Referenced by ComputeDamageHitParams().
|
inlineprotected |
Definition at line 1001 of file dayzanimal.c.
References GameConstants::NL_DAMAGE_CLOSECOMBAT_CONVERSION_ANIMALS, and GameConstants::NL_DAMAGE_FIREARM_CONVERSION_ANIMALS.
Referenced by EEHitBy().
|
inlineprotected |
sets default hit position and cache it here (mainly for impact particles)
Definition at line 680 of file dayzanimal.c.
References GetDefaultHitPositionComponent(), m_DefaultHitPosition, m_HitComponentsForAI, RegisterHitComponentsForAI(), and SetDefaultHitPosition().
|
inlineprotected |
Definition at line 832 of file dayzanimal.c.
References CFG_AMMO, COMP_TYPE_ANIMAL_BLEEDING, component, ComputeDamageHitParams(), ConvertNonlethalDamage(), ComponentAnimalBleeding::CreateWound(), g_Game, TotalDamageResult::GetDamage(), and QueueDamageHit().
Definition at line 912 of file dayzanimal.c.
References component.
Referenced by ComputeDamageHitParams().
|
protected |
|
inlineprotected |
Definition at line 981 of file dayzanimal.c.
References m_DefaultHitComponent.
|
inlineprotected |
Definition at line 991 of file dayzanimal.c.
References m_DefaultHitPosition.
|
inlineprotected |
Definition at line 986 of file dayzanimal.c.
References m_DefaultHitPositionComponent.
|
inlineprotected |
Definition at line 710 of file dayzanimal.c.
|
inlineprotected |
Definition at line 969 of file dayzanimal.c.
References GetDefaultHitComponent(), m_HitComponentsForAI, and DayZAIHitComponentHelpers::SelectMostProbableHitComponent().
|
protected |
Referenced by CommandHandler().
Definition at line 817 of file dayzanimal.c.
References m_DamageHitDirection, m_DamageHitToProcess, m_DamageHitType, and StartCommand_Hit().
Referenced by CommandHandler().
|
inlineprotected |
Definition at line 791 of file dayzanimal.c.
References DayZAnimalInputController::IsDead(), m_DamageHitDirection, m_DamageHitToProcess, m_DamageHitType, and StartCommand_Death().
Referenced by CommandHandler().
|
inlineprotected |
Definition at line 700 of file dayzanimal.c.
|
inlineprotected |
Definition at line 695 of file dayzanimal.c.
|
inlineprotected |
Definition at line 705 of file dayzanimal.c.
Definition at line 858 of file dayzanimal.c.
References m_DamageHitDirection, m_DamageHitToProcess, and m_DamageHitType.
Referenced by EEHitBy().
|
inlineprotected |
register hit components for AI melee (used by attacking AI)
registers default hit compoent for the entity
registers default hit position component for entity
register hit components that are selected by probability
Definition at line 958 of file dayzanimal.c.
References m_DefaultHitComponent, m_DefaultHitPositionComponent, m_HitComponentsForAI, and DayZAIHitComponentHelpers::RegisterHitComponent().
Definition at line 996 of file dayzanimal.c.
Referenced by DayZAnimal().
|
protected |
Referenced by CommandHandler().
|
protected |
Referenced by CommandHandler().
|
protected |
Referenced by CommandHandler().
Referenced by HandleDeath().
Referenced by HandleDamageHit().
|
protected |
Referenced by CommandHandler().
|
protected |
Referenced by CommandHandler().
|
protected |
scripted commands
|
protected |
Definition at line 898 of file dayzanimal.c.
Referenced by ComputeDamageHitParams().
|
protected |
Definition at line 789 of file dayzanimal.c.
Referenced by HandleDamageHit(), HandleDeath(), and QueueDamageHit().
|
protected |
Definition at line 787 of file dayzanimal.c.
Referenced by HandleDamageHit(), HandleDeath(), and QueueDamageHit().
|
protected |
Definition at line 788 of file dayzanimal.c.
Referenced by HandleDamageHit(), HandleDeath(), and QueueDamageHit().
|
protected |
Definition at line 660 of file dayzanimal.c.
Referenced by GetDefaultHitComponent(), and RegisterHitComponentsForAI().
|
protected |
Definition at line 662 of file dayzanimal.c.
Referenced by DayZAnimal(), and GetDefaultHitPosition().
|
protected |
Definition at line 661 of file dayzanimal.c.
Referenced by GetDefaultHitPositionComponent(), and RegisterHitComponentsForAI().
|
protected |
Melee hit components (AI targeting).
Definition at line 659 of file dayzanimal.c.
Referenced by DayZAnimal(), GetHitComponentForAI(), and RegisterHitComponentsForAI().