DayZ 1.24
|
Go to the source code of this file.
Classes | |
class | MeleeTargetData |
class | ComponentResult |
bool EvaluateComponent | ( | Object | obj, |
ComponentInfo | cInfo, | ||
MeleeTargetSettings | settings, | ||
out ref ComponentResult | result ) |
Definition at line 258 of file MeleeTargeting.c.
References EvaluateComponentEx().
bool EvaluateComponentEx | ( | Object | obj, |
ComponentInfo | cInfo, | ||
MeleeTargetSettings | settings, | ||
out ref ComponentResult | result, | ||
array< string > | blacklistedDamageZones ) |
check if the component is on blacklist, if so, continue in lookup
Definition at line 220 of file MeleeTargeting.c.
References Math::AbsFloat(), Math3D::AngleFromPosition(), vector::DistanceSq(), IsMeleeTargetObstructed(), Math3D::NearestPoint(), Math::RAD2DEG, and Math::SqrFloat().
Referenced by EvaluateComponent(), and FindMostSuitableComponentEx().
bool FindMostSuitableComponent | ( | Object | obj, |
BoxCollidingResult | bResult, | ||
MeleeTargetSettings | settings, | ||
out float | sum, | ||
out ref ComponentResult | result ) |
Definition at line 215 of file MeleeTargeting.c.
References FindMostSuitableComponentEx().
bool FindMostSuitableComponentEx | ( | Object | obj, |
BoxCollidingResult | bResult, | ||
MeleeTargetSettings | settings, | ||
out float | sum, | ||
out ref ComponentResult | result, | ||
array< string > | blacklistedDamageZones ) |
Definition at line 194 of file MeleeTargeting.c.
References EvaluateComponentEx().
Referenced by FindMostSuitableComponent(), and GetMeleeTargetEx().
MeleeTargetData GetMeleeTarget | ( | MeleeTargetSettings | settings, |
out array< Object > | allTargets = null ) |
Definition at line 188 of file MeleeTargeting.c.
References GetMeleeTargetEx().
MeleeTargetData GetMeleeTargetEx | ( | MeleeTargetSettings | settings, |
out array< Object > | allTargets = null, | ||
array< string > | blacklistedDamageZones = null ) |
Definition at line 76 of file MeleeTargeting.c.
References Math::AbsFloat(), Math3D::AngleFromPosition(), COLOR_GREEN, vector::Distance(), vector::DistanceSq(), Debug::DrawLine(), FindMostSuitableComponentEx(), DiagMenu::GetBool(), GetGame(), Math::Lerp(), MAX, Math3D::NearestPoint(), Math::RAD2DEG, Math::Tan(), and Vector().
Referenced by GetMeleeTarget().
Definition at line 263 of file MeleeTargeting.c.
References MELEE_TARGET_OBSTRUCTION_LAYERS, and DayZPhysics::RayCastBullet().
Referenced by EvaluateComponentEx().
ref array< typename > TargetableObjects void MeleeTargetSettings | ( | vector | coneOrigin, |
float | coneLength, | ||
float | coneHalfAngle, | ||
float | coneMinHeight, | ||
float | coneMaxHeight, | ||
vector | rayStart, | ||
vector | dir, | ||
float | maxDist, | ||
EntityAI | pToIgnore, | ||
array< typename > | targetableObjects ) |
Definition at line 36 of file MeleeTargeting.c.
References Math::Atan2(), Attacker, ConeHalfAngle, ConeHalfAngleRad, ConeLeftPoint, ConeLength, ConeMaxHeight, ConeMinHeight, ConeOrigin, Math3D::ConePoints(), ConeRightPoint, Math::DEG2RAD, Dir, MaxDist, vector::Normalize(), RayEnd, RayStart, Math::SqrFloat(), and XZDir.
Referenced by TargetSelection().
EntityAI Attacker |
Definition at line 33 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
float ConeHalfAngle |
Definition at line 19 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
float ConeHalfAngleRad |
Definition at line 20 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
vector ConeLeftPoint |
Definition at line 24 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
float ConeLength |
Definition at line 18 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
float ConeMaxHeight |
Definition at line 22 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
float ConeMinHeight |
Definition at line 21 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
class MeleeTargetData ConeOrigin |
Referenced by MeleeTargetSettings().
vector ConeRightPoint |
Definition at line 25 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
vector Dir |
Definition at line 29 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
float MaxDist |
Definition at line 31 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
Referenced by IsMeleeTargetObstructed().
vector RayEnd |
Definition at line 28 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
vector RayStart |
Definition at line 27 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().
vector XZDir |
Definition at line 30 of file MeleeTargeting.c.
Referenced by MeleeTargetSettings().