DayZ 1.24
|
Private Attributes | |
const float | TARGET_CONE_ANGLE_CHASE = 20 |
const float | TARGET_CONE_ANGLE_FIGHT = 30 |
const float | ORIENTATION_SYNC_THRESHOLD = 30 |
const float | SHOCK_TO_STUN_MULTIPLIER = 2.82 |
Definition at line 1 of file ZombieBase.c.
|
inlineprotected |
Definition at line 1052 of file ZombieBase.c.
References AddChild(), CachedObjectsArrays::ARRAY_STRING, GetBoneIndexByName(), GetTransformWS(), Math3D::MatrixInvMultiply4(), Math3D::MatrixOrthogonalize4(), Math::RAD2DEG, and Math3D::YawPitchRollMatrix().
Definition at line 120 of file ZombieBase.c.
Definition at line 131 of file ZombieBase.c.
|
inlineprotected |
Definition at line 990 of file ZombieBase.c.
|
inlineprotected |
do not attack players in vehicle - hotfix
target is outside the targeting cone; skip attack
Definition at line 641 of file ZombieBase.c.
References DayZPlayerUtils(), vector::Distance(), GetPosition, m_AllTargetObjects, DayZInfectedAttackType::m_Cooldown, DayZInfectedAttackType::m_Distance, DayZInfectedAttackType::m_Subtype, m_TargetableObjects, and DayZInfectedAttackType::m_Type.
|
inlineprotected |
CommandHandler
for mods
handle death
movement handler (just for sync now)
handle finished commands
default behaviour after finish is to start move
for mods
crawl transition
damage hits
Definition at line 190 of file ZombieBase.c.
References GetInputController(), ModCommandHandlerAfter(), ModCommandHandlerBefore(), ModCommandHandlerInside(), and StartCommand_Move().
|
inlineprotected |
CommandHandlerDebug
Definition at line 257 of file ZombieBase.c.
References GetPluginManager().
Definition at line 876 of file ZombieBase.c.
References Math::Acos(), vector::Dot(), GetPosition, and Math::RAD2DEG.
|
inlineprotected |
Definition at line 897 of file ZombieBase.c.
References Math::Acos(), vector::Dot(), GetPosition, and Math::RAD2DEG.
|
inlineprotected |
Events from damage system
Definition at line 928 of file ZombieBase.c.
References component.
|
inlineprotected |
Definition at line 961 of file ZombieBase.c.
References component.
Phx contact event
Definition at line 977 of file ZombieBase.c.
References GetGame().
Definition at line 89 of file ZombieBase.c.
References GetCommand_Move(), GetGame(), and Math::RandomInt().
|
inlineprotected |
Definition at line 773 of file ZombieBase.c.
References vector::Dot(), and GetPosition.
|
inlineprotected |
selects animation type and direction based on damage system data
heavy hit
anim type
direction
shock GetDamage
Definition at line 849 of file ZombieBase.c.
References GetGame().
|
inlineprotected |
anim type
direction
add some impulse if needed
Definition at line 343 of file ZombieBase.c.
References dBodyApplyImpulse(), and GetGame().
|
inlineprotected |
Definition at line 336 of file ZombieBase.c.
|
inlineprotected |
do not attack players in vehicle - hotfix
target is outside the targeting cone; skip attack
Definition at line 680 of file ZombieBase.c.
References GameConstants::AI_ATTACKSPEED, DayZPlayerUtils(), vector::Distance(), GetPosition, m_AllTargetObjects, DayZInfectedAttackType::m_Cooldown, DayZInfectedAttackType::m_Distance, DayZInfectedAttackType::m_Subtype, m_TargetableObjects, and DayZInfectedAttackType::m_Type.
|
inlineprotected |
player is in block stance and facing the infected
infected is playing heavy attack - decrease the dmg to light
override hit pos by pos defined in type
infected is playing light attack - do not send damage, play animation instead
override hit pos by pos defined in type
Definition at line 578 of file ZombieBase.c.
References Math::AbsFloat(), GameConstants::AI_MAX_BLOCKABLE_ANGLE, Math3D::AngleFromPosition(), vector::DistanceSq(), EntityAI::GetMeleeTargetType(), GetPosition, DayZInfectedAttackType::m_AmmoType, DayZInfectedAttackType::m_Distance, DayZInfectedAttackType::m_IsHeavy, and Math::RAD2DEG.
|
inlineprotected |
no default hit pos fallback
Definition at line 725 of file ZombieBase.c.
References Math::AbsFloat(), GetPosition, and vector::Zero.
|
inlineprotected |
Definition at line 126 of file ZombieBase.c.
Definition at line 997 of file ZombieBase.c.
References GetBoneIndexByName().
returns default hit component (fallback)
Definition at line 153 of file ZombieBase.c.
Definition at line 158 of file ZombieBase.c.
returns hit component for attacking AI
Definition at line 147 of file ZombieBase.c.
|
inlineprotected |
Definition at line 174 of file ZombieBase.c.
|
inlineprotected |
returns rounded zombie yaw for sync purposes
Definition at line 180 of file ZombieBase.c.
returns suitable hit components for finisher attacks; DEPRECATED
Definition at line 169 of file ZombieBase.c.
Definition at line 374 of file ZombieBase.c.
Definition at line 758 of file ZombieBase.c.
Definition at line 814 of file ZombieBase.c.
References Math::RandomIntInclusive().
Definition at line 322 of file ZombieBase.c.
References StartCommand_Death().
|
inlineprotected |
Mind state change
Definition at line 423 of file ZombieBase.c.
References GetCommand_Move().
HandleMove
Definition at line 271 of file ZombieBase.c.
References Math::AbsFloat(), and GetInputController().
HandleOrientation
Definition at line 286 of file ZombieBase.c.
References Math::AbsInt(), Math::Atan2(), Math::Cos(), Math::DEG2RAD, GetOrientation(), Math::NormalizeAngle(), Math::RAD2DEG, Math::Round(), and Math::Sin().
|
inlineprotected |
Sound (client only)
no sound handler - bail out
infected is dead
stop all sounds
Definition at line 460 of file ZombieBase.c.
|
inlineprotected |
Definition at line 386 of file ZombieBase.c.
|
inlineprotected |
sets default hit position and cache it here (mainly for impact particles)
client only
Definition at line 47 of file ZombieBase.c.
References GetDefaultHitPositionComponent(), GetGame(), InfectedSoundEventHandler(), m_AllTargetObjects, m_ArrowManager, and m_TargetableObjects.
returns true if backstab is in progress; used for suspending of AI targeting and other useful things besides
Definition at line 1003 of file ZombieBase.c.
|
inlineprotected |
returns true if crawling; 'DayZInfectedCommandCrawl' is only for the transition, after that it remains 'DayZInfectedCommandMove' (unreliable)
Definition at line 1035 of file ZombieBase.c.
Definition at line 105 of file ZombieBase.c.
Definition at line 136 of file ZombieBase.c.
|
inlineprotected |
Definition at line 115 of file ZombieBase.c.
Definition at line 1088 of file ZombieBase.c.
Definition at line 141 of file ZombieBase.c.
Definition at line 100 of file ZombieBase.c.
Definition at line 110 of file ZombieBase.c.
|
inlineprotected |
Definition at line 1041 of file ZombieBase.c.
|
inlineprotected |
stop state sound when playing anim SoundVoice
stop playing of old SoundVoice from anim (if any)
play new SoundVoice from anim
Definition at line 521 of file ZombieBase.c.
References AbstractWave::Stop().
synced variable(s) handler
Definition at line 79 of file ZombieBase.c.
|
inlineprotected |
Definition at line 548 of file ZombieBase.c.
References GetGame(), GetPosition, PlaySound(), and SoundObject().
|
inlineprotected |
Definition at line 497 of file ZombieBase.c.
References GetGame(), PlaySound(), SoundObject(), and SoundObjectBuilder().
Definition at line 1008 of file ZombieBase.c.
Definition at line 163 of file ZombieBase.c.
|
inlineprotected |
Definition at line 42 of file ZombieBase.c.
References Init().
Definition at line 811 of file ZombieBase.c.
|
protected |
HandleVault
Definition at line 372 of file ZombieBase.c.
|
protected |
Definition at line 576 of file ZombieBase.c.
Combat
Definition at line 574 of file ZombieBase.c.
Definition at line 29 of file ZombieBase.c.
|
protected |
Definition at line 38 of file ZombieBase.c.
|
protected |
Definition at line 575 of file ZombieBase.c.
|
protected |
Crawl transition
Definition at line 756 of file ZombieBase.c.
|
protected |
HandleDeath
Definition at line 319 of file ZombieBase.c.
Definition at line 807 of file ZombieBase.c.
Damage hits
Definition at line 805 of file ZombieBase.c.
|
protected |
Definition at line 808 of file ZombieBase.c.
|
protected |
Definition at line 320 of file ZombieBase.c.
|
protected |
Definition at line 23 of file ZombieBase.c.
|
protected |
Definition at line 24 of file ZombieBase.c.
Definition at line 36 of file ZombieBase.c.
|
protected |
Definition at line 812 of file ZombieBase.c.
|
protected |
Definition at line 27 of file ZombieBase.c.
|
protected |
Definition at line 34 of file ZombieBase.c.
Definition at line 14 of file ZombieBase.c.
|
protected |
Definition at line 15 of file ZombieBase.c.
|
protected |
Definition at line 11 of file ZombieBase.c.
|
protected |
Definition at line 12 of file ZombieBase.c.
|
protected |
Definition at line 26 of file ZombieBase.c.
|
protected |
Definition at line 17 of file ZombieBase.c.
|
protected |
Definition at line 21 of file ZombieBase.c.
|
protected |
Definition at line 18 of file ZombieBase.c.
|
protected |
Definition at line 19 of file ZombieBase.c.
|
protected |
Definition at line 20 of file ZombieBase.c.
|
protected |
Definition at line 809 of file ZombieBase.c.
|
protected |
server / singleplayer properties
Definition at line 10 of file ZombieBase.c.
Definition at line 30 of file ZombieBase.c.
Definition at line 5 of file ZombieBase.c.
Definition at line 7 of file ZombieBase.c.
Definition at line 3 of file ZombieBase.c.
Definition at line 4 of file ZombieBase.c.