![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Protected Member Functions | |
| override void | AddArrow (Object arrow, int componentIndex, vector closeBonePosWS, vector closeBoneRotWS) |
| override bool | CanBeBackstabbed () |
| override bool | CanBeSkinned () |
| override bool | CanReceiveAttachment (EntityAI attachment, int slotId) |
| bool | ChaseAttackLogic (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt) |
| void | CommandHandler (float pDt, int pCurrentCommandID, bool pCurrentCommandFinished) |
| CommandHandler. | |
| void | CommandHandlerDebug (float pDt, int pCurrentCommandID, bool pCurrentCommandFinished) |
| CommandHandlerDebug. | |
| float | ComputeHitDirectionAngle (EntityAI pSource) |
| float | ComputeHitDirectionAngleEx (EntityAI pSource, int invertHitDir=0) |
| void | DebugSound (string s) |
| sound debug messages | |
| override void | EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef) |
| Events from damage system. | |
| override void | EEHitByRemote (int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos) |
| void | EOnContact (IEntity other, Contact extra) |
| Phx contact event. | |
| override void | EOnInit (IEntity other, int extra) |
| bool | EvaluateCrawlTransitionAnimation (EntityAI pSource, string pComponent, string pAmmoType, out int pAnimType) |
| bool | EvaluateDamageHitAnimation (EntityAI pSource, string pComponent, string pAmmoType, out bool pHeavyHit, out int pAnimType, out float pAnimHitDir) |
| selects animation type and direction based on damage system data | |
| bool | EvaluateDeathAnimation (EntityAI pSource, string pComponent, string pAmmoType, out int pAnimType, out float pAnimHitDir) |
| bool | EvaluateDeathAnimationEx (EntityAI pSource, ZombieHitData data, out int pAnimType, out float pAnimHitDir) |
| bool | FightAttackLogic (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt) |
| bool | FightLogic (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt) |
| override ArrowManagerBase | GetArrowManager () |
| int | GetAttackPitch (EntityAI target) |
| override AnimBootsType | GetBootsType () |
| override vector | GetCenter () |
| override string | GetDefaultHitComponent () |
| returns default hit component (fallback) | |
| override vector | GetDefaultHitPosition () |
| override string | GetHitComponentForAI () |
| returns hit component for attacking AI | |
| int | GetMindStateSynced () |
| int | GetOrientationSynced () |
| returns rounded zombie yaw for sync purposes | |
| override array< string > | GetSuitableFinisherHitComponents () |
| returns suitable hit components for finisher attacks; DEPRECATED | |
| int | GetVaultType (float height) |
| bool | HandleCrawlTransition (int pCurrentCommandID) |
| bool | HandleDamageHit (int pCurrentCommandID) |
| bool | HandleDeath (int pCurrentCommandID) |
| bool | HandleMindStateChange (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt) |
| Mind state change. | |
| void | HandleMove (int pCurrentCommandID) |
| HandleMove. | |
| void | HandleOrientation (float pDt, int pCurrentCommandID) |
| HandleOrientation. | |
| void | HandleSoundEvents () |
| Sound (client only). | |
| bool | HandleVault (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt) |
| void | Init () |
| override bool | IsBeingBackstabbed () |
| returns true if backstab is in progress; used for suspending of AI targeting and other useful things besides | |
| bool | IsCrawling () |
| returns true if crawling; 'DayZInfectedCommandCrawl' is only for the transition, after that it remains 'DayZInfectedCommandMove' (unreliable) | |
| override bool | IsDanger () |
| override bool | IsHealthVisible () |
| bool | IsMale () |
| override bool | IsManagingArrows () |
| override bool | IsRefresherSignalingViable () |
| override bool | IsSelfAdjustingTemperature () |
| override bool | IsZombie () |
| override bool | IsZombieMilitary () |
| void | OnRecoverFromDeath () |
| override void | OnSoundVoiceEvent (int event_id, string event_user_string) |
| override void | OnVariablesSynchronized () |
| synced variable(s) handler | |
| void | ProcessSoundVoiceEvent (AnimSoundVoiceEvent sound_event, out AbstractWave aw) |
| AbstractWave | ProcessVoiceFX (string pSoundSetName) |
| override void | SetBeingBackstabbed (int backstabType) |
| vector | SetDefaultHitPosition (string pSelection) |
| void | ZombieBase () |
Private Attributes | |
| const float | ORIENTATION_SYNC_THRESHOLD = 30 |
| const float | SHOCK_TO_STUN_MULTIPLIER = 2.82 |
| const float | TARGET_CONE_ANGLE_CHASE = 20 |
| const float | TARGET_CONE_ANGLE_FIGHT = 30 |
Definition at line 1 of file zombiebase.c.
|
inlineprotected |
Definition at line 1093 of file zombiebase.c.
References AddChild(), CachedObjectsArrays::ARRAY_STRING, GetBoneIndexByName(), Math3D::MatrixInvMultiply4(), Math3D::MatrixOrthogonalize4(), Math::RAD2DEG, and Math3D::YawPitchRollMatrix().
|
inlineprotected |
Definition at line 123 of file zombiebase.c.
|
inlineprotected |
Definition at line 134 of file zombiebase.c.
Definition at line 1033 of file zombiebase.c.
|
inlineprotected |
do not attack players in vehicle - hotfix
target is outside the targeting cone; skip attack
Definition at line 676 of file zombiebase.c.
References DayZPlayerUtils(), vector::Distance(), GetAttackPitch(), GetPosition(), DayZInfectedInputController::GetTargetEntity(), m_ActualAttackType, m_ActualTarget, m_AllTargetObjects, m_AttackCooldownTime, m_TargetableObjects, and TARGET_CONE_ANGLE_CHASE.
Referenced by FightLogic().
|
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 198 of file zombiebase.c.
References FightLogic(), HandleCrawlTransition(), HandleDamageHit(), HandleDeath(), HandleMindStateChange(), HandleMove(), HandleOrientation(), HandleVault(), m_DeltaTime, m_StanceVariation, ModCommandHandlerAfter(), ModCommandHandlerBefore(), and ModCommandHandlerInside().
Definition at line 917 of file zombiebase.c.
References Math::Acos(), vector::Dot(), GetPosition(), vector::Normalize(), and Math::RAD2DEG.
Referenced by EvaluateDeathAnimation().
Definition at line 938 of file zombiebase.c.
References Math::Acos(), vector::Dot(), GetPosition(), vector::Normalize(), and Math::RAD2DEG.
Referenced by EvaluateDamageHitAnimation().
|
inlineprotected |
sound debug messages
Definition at line 1008 of file zombiebase.c.
Referenced by HandleSoundEvents(), OnSoundVoiceEvent(), and OnVariablesSynchronized().
|
inlineprotected |
Events from damage system.
Definition at line 969 of file zombiebase.c.
References component, EvaluateCrawlTransitionAnimation(), EvaluateDamageHitAnimation(), EvaluateDeathAnimationEx(), TotalDamageResult::GetDamage(), m_CrawlTransition, m_DamageHitDirection, m_DamageHitHeavy, m_DamageHitToProcess, m_DamageHitType, m_DeathType, and m_ShockDamage.
|
inlineprotected |
Definition at line 1002 of file zombiebase.c.
References component.
Definition at line 92 of file zombiebase.c.
References g_Game, m_StanceVariation, and Math::RandomInt().
|
inlineprotected |
Definition at line 814 of file zombiebase.c.
References vector::Dot(), GetPosition(), and vector::Normalize().
Referenced by EEHitBy().
|
inlineprotected |
selects animation type and direction based on damage system data
heavy hit
anim type
direction
shock GetDamage
Definition at line 890 of file zombiebase.c.
References ComputeHitDirectionAngleEx(), and g_Game.
Referenced by EEHitBy().
|
inlineprotected |
anim type
direction
add some impulse if needed
Definition at line 370 of file zombiebase.c.
References ComputeHitDirectionAngle(), dBodyApplyImpulse(), and g_Game.
Referenced by EvaluateDeathAnimationEx().
|
inlineprotected |
Definition at line 363 of file zombiebase.c.
References EvaluateDeathAnimation().
Referenced by EEHitBy().
|
inlineprotected |
do not attack players in vehicle - hotfix
target is outside the targeting cone; skip attack
Definition at line 717 of file zombiebase.c.
References GameConstants::AI_ATTACKSPEED, DayZPlayerUtils(), vector::Distance(), GetAttackPitch(), GetPosition(), DayZInfectedInputController::GetTargetEntity(), m_ActualAttackType, m_ActualTarget, m_AllTargetObjects, m_AttackCooldownTime, m_TargetableObjects, and TARGET_CONE_ANGLE_FIGHT.
Referenced by FightLogic().
|
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 607 of file zombiebase.c.
References Math::AbsFloat(), GameConstants::AI_MAX_BLOCKABLE_ANGLE, Math3D::AngleFromPosition(), ChaseAttackLogic(), vector::DistanceSq(), FightAttackLogic(), DayZInfectedInputController::GetMindState(), GetPosition(), m_ActualAttackType, m_ActualTarget, and Math::RAD2DEG.
Referenced by CommandHandler().
|
inlineprotected |
Definition at line 1138 of file zombiebase.c.
References m_ArrowManager.
no default hit pos fallback
Definition at line 762 of file zombiebase.c.
References Math::AbsFloat(), GetPosition(), and vector::Zero.
Referenced by ChaseAttackLogic(), and FightAttackLogic().
|
inlineprotected |
Definition at line 129 of file zombiebase.c.
|
inlineprotected |
Definition at line 1042 of file zombiebase.c.
References GetBoneIndexByName().
|
inlineprotected |
returns default hit component (fallback)
Definition at line 161 of file zombiebase.c.
|
inlineprotected |
Definition at line 166 of file zombiebase.c.
References m_DefaultHitPosition.
|
inlineprotected |
returns hit component for attacking AI
Definition at line 155 of file zombiebase.c.
|
inlineprotected |
Definition at line 182 of file zombiebase.c.
References m_MindState.
|
inlineprotected |
returns rounded zombie yaw for sync purposes
Definition at line 188 of file zombiebase.c.
References m_OrientationSynced.
returns suitable hit components for finisher attacks; DEPRECATED
Definition at line 177 of file zombiebase.c.
Definition at line 401 of file zombiebase.c.
Referenced by HandleVault().
Definition at line 799 of file zombiebase.c.
References m_CrawlTransition, and m_IsCrawling.
Referenced by CommandHandler().
Definition at line 855 of file zombiebase.c.
References HIT_INTERVAL_MIN, m_DamageHitDirection, m_DamageHitHeavy, m_DamageHitToProcess, m_DamageHitType, m_DeltaTime, m_HitElapsedTime, m_MindState, m_ShockDamage, Math::RandomIntInclusive(), and SHOCK_TO_STUN_MULTIPLIER.
Referenced by CommandHandler().
Definition at line 349 of file zombiebase.c.
References m_DamageHitDirection, m_DeathType, m_FinisherInProgress, m_MindState, and m_MovementSpeed.
Referenced by CommandHandler().
|
inlineprotected |
Mind state change.
Definition at line 450 of file zombiebase.c.
References DayZInfectedInputController::GetMindState(), m_AttackCooldownTime, m_LastMindState, and m_MindState.
Referenced by CommandHandler().
|
inlineprotected |
HandleMove.
Definition at line 297 of file zombiebase.c.
References Math::AbsFloat(), DayZCreatureAIInputController::GetMovementSpeed(), m_LastMovementSpeed, and m_MovementSpeed.
Referenced by CommandHandler().
HandleOrientation.
Definition at line 314 of file zombiebase.c.
References Math::AbsInt(), Math::Atan2(), Math::Cos(), Math::DEG2RAD, GetOrientation(), m_OrientationSynced, m_OrientationTimer, Math::NormalizeAngle(), ORIENTATION_SYNC_THRESHOLD, Math::RAD2DEG, Math::Round(), and Math::Sin().
Referenced by CommandHandler().
|
inlineprotected |
Sound (client only).
no sound handler - bail out
infected is dead
stop all sounds
Definition at line 487 of file zombiebase.c.
References DebugSound(), m_InfectedSoundEventHandler, and m_MindState.
Referenced by OnSoundVoiceEvent(), and OnVariablesSynchronized().
|
inlineprotected |
Definition at line 413 of file zombiebase.c.
References DayZInfectedInputController::GetVaultHeight(), GetVaultType(), DayZInfectedInputController::IsVault(), m_KnuckleLand, and m_KnuckleOutTimer.
Referenced by CommandHandler().
|
inlineprotected |
sets default hit position and cache it here (mainly for impact particles)
client only
Definition at line 48 of file zombiebase.c.
References g_Game, GetDefaultHitPositionComponent(), InfectedSoundEventHandler(), m_AllTargetObjects, m_ArrowManager, m_DefaultHitPosition, m_InfectedSoundEventHandler, m_IsCrawling, m_LastSoundVoiceAW, m_OrientationTimer, m_TargetableObjects, and SetDefaultHitPosition().
|
inlineprotected |
returns true if backstab is in progress; used for suspending of AI targeting and other useful things besides
Definition at line 1048 of file zombiebase.c.
References m_FinisherInProgress.
|
inlineprotected |
returns true if crawling; 'DayZInfectedCommandCrawl' is only for the transition, after that it remains 'DayZInfectedCommandMove' (unreliable)
Definition at line 1078 of file zombiebase.c.
References m_IsCrawling.
|
inlineprotected |
Definition at line 108 of file zombiebase.c.
|
inlineprotected |
Definition at line 139 of file zombiebase.c.
|
inlineprotected |
Definition at line 118 of file zombiebase.c.
|
inlineprotected |
Definition at line 1133 of file zombiebase.c.
|
inlineprotected |
Definition at line 144 of file zombiebase.c.
|
inlineprotected |
Definition at line 149 of file zombiebase.c.
|
inlineprotected |
Definition at line 103 of file zombiebase.c.
|
inlineprotected |
Definition at line 113 of file zombiebase.c.
|
inlineprotected |
Definition at line 1084 of file zombiebase.c.
References m_FinisherInProgress.
stop state sound when playing anim SoundVoice
stop playing of old SoundVoice from anim (if any)
play new SoundVoice from anim
Definition at line 550 of file zombiebase.c.
References DebugSound(), HandleSoundEvents(), m_InfectedSoundEventHandler, m_LastSoundVoiceAW, and ProcessSoundVoiceEvent().
|
inlineprotected |
synced variable(s) handler
Definition at line 80 of file zombiebase.c.
References DebugSound(), HandleSoundEvents(), m_OrientationLocal, and m_OrientationSynced.
|
inlineprotected |
Definition at line 577 of file zombiebase.c.
References AbstractWave(), g_Game, NoiseAIEvaluate::GetNoiseReduction(), GetPosition(), PlaySound(), and SoundObjectBuilder().
Referenced by OnSoundVoiceEvent().
|
inlineprotected |
Definition at line 526 of file zombiebase.c.
References AbstractWave(), g_Game, PlaySound(), SoundObjectBuilder(), and SoundParams().
|
inlineprotected |
Definition at line 1053 of file zombiebase.c.
References m_DeathType, and m_FinisherInProgress.
Definition at line 171 of file zombiebase.c.
Referenced by Init().
|
inlineprotected |
Definition at line 43 of file zombiebase.c.
References Init().
|
protected |
Definition at line 852 of file zombiebase.c.
Referenced by HandleDamageHit().
|
protected |
HandleVault.
Definition at line 399 of file zombiebase.c.
|
protected |
Definition at line 605 of file zombiebase.c.
Referenced by ChaseAttackLogic(), FightAttackLogic(), and FightLogic().
|
protected |
Combat.
Definition at line 603 of file zombiebase.c.
Referenced by ChaseAttackLogic(), FightAttackLogic(), and FightLogic().
Definition at line 29 of file zombiebase.c.
Referenced by ChaseAttackLogic(), FightAttackLogic(), and Init().
|
protected |
Definition at line 38 of file zombiebase.c.
Referenced by GetArrowManager(), and Init().
|
protected |
Definition at line 604 of file zombiebase.c.
Referenced by ChaseAttackLogic(), FightAttackLogic(), and HandleMindStateChange().
|
protected |
Crawl transition.
Definition at line 797 of file zombiebase.c.
Referenced by EEHitBy(), and HandleCrawlTransition().
|
protected |
HandleDeath.
Definition at line 346 of file zombiebase.c.
Referenced by EEHitBy(), HandleDamageHit(), and HandleDeath().
|
protected |
Definition at line 848 of file zombiebase.c.
Referenced by EEHitBy(), and HandleDamageHit().
|
protected |
Damage hits.
Definition at line 846 of file zombiebase.c.
Referenced by EEHitBy(), and HandleDamageHit().
|
protected |
Definition at line 849 of file zombiebase.c.
Referenced by EEHitBy(), and HandleDamageHit().
|
protected |
Definition at line 347 of file zombiebase.c.
Referenced by EEHitBy(), HandleDeath(), and SetBeingBackstabbed().
|
protected |
Definition at line 23 of file zombiebase.c.
Referenced by GetDefaultHitPosition(), and Init().
|
protected |
Definition at line 24 of file zombiebase.c.
Referenced by CommandHandler(), and HandleDamageHit().
|
protected |
Definition at line 36 of file zombiebase.c.
Referenced by HandleDeath(), IsBeingBackstabbed(), OnRecoverFromDeath(), and SetBeingBackstabbed().
|
protected |
Definition at line 853 of file zombiebase.c.
Referenced by HandleDamageHit().
|
protected |
Definition at line 27 of file zombiebase.c.
Referenced by HandleSoundEvents(), Init(), and OnSoundVoiceEvent().
|
protected |
Definition at line 34 of file zombiebase.c.
Referenced by HandleCrawlTransition(), Init(), and IsCrawling().
|
protected |
Definition at line 14 of file zombiebase.c.
Referenced by HandleVault().
|
protected |
Definition at line 15 of file zombiebase.c.
Referenced by HandleVault().
|
protected |
Definition at line 11 of file zombiebase.c.
Referenced by HandleMindStateChange().
|
protected |
Definition at line 12 of file zombiebase.c.
Referenced by HandleMove().
|
protected |
Definition at line 26 of file zombiebase.c.
Referenced by Init(), and OnSoundVoiceEvent().
|
protected |
Definition at line 17 of file zombiebase.c.
Referenced by GetMindStateSynced(), HandleDamageHit(), HandleDeath(), HandleMindStateChange(), and HandleSoundEvents().
|
protected |
Definition at line 21 of file zombiebase.c.
Referenced by HandleDeath(), and HandleMove().
|
protected |
Definition at line 18 of file zombiebase.c.
Referenced by OnVariablesSynchronized().
|
protected |
Definition at line 19 of file zombiebase.c.
Referenced by GetOrientationSynced(), HandleOrientation(), and OnVariablesSynchronized().
|
protected |
Definition at line 20 of file zombiebase.c.
Referenced by HandleOrientation(), and Init().
|
protected |
Definition at line 850 of file zombiebase.c.
Referenced by EEHitBy(), and HandleDamageHit().
|
protected |
server / singleplayer properties
Definition at line 10 of file zombiebase.c.
Referenced by CommandHandler(), and EOnInit().
Definition at line 30 of file zombiebase.c.
Referenced by ChaseAttackLogic(), FightAttackLogic(), and Init().
|
private |
Definition at line 5 of file zombiebase.c.
Referenced by HandleOrientation().
|
private |
Definition at line 7 of file zombiebase.c.
Referenced by HandleDamageHit().
|
private |
Definition at line 3 of file zombiebase.c.
Referenced by ChaseAttackLogic().
|
private |
Definition at line 4 of file zombiebase.c.
Referenced by FightAttackLogic().