Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
meleetargeting.c File Reference

Go to the source code of this file.

Data Structures

class  MeleeTargetData
 
class  ComponentResult
 

Functions

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)
 
MeleeTargetData GetMeleeTargetEx (MeleeTargetSettings settings, out array< Object > allTargets=null, array< string > blacklistedDamageZones=null)
 
MeleeTargetData GetMeleeTarget (MeleeTargetSettings settings, out array< Object > allTargets=null)
 
bool FindMostSuitableComponentEx (Object obj, BoxCollidingResult bResult, MeleeTargetSettings settings, out float sum, out ref ComponentResult result, array< string > blacklistedDamageZones)
 
bool FindMostSuitableComponent (Object obj, BoxCollidingResult bResult, MeleeTargetSettings settings, out float sum, out ref ComponentResult result)
 
bool EvaluateComponentEx (Object obj, ComponentInfo cInfo, MeleeTargetSettings settings, out ref ComponentResult result, array< string > blacklistedDamageZones)
 
bool EvaluateComponent (Object obj, ComponentInfo cInfo, MeleeTargetSettings settings, out ref ComponentResult result)
 
bool IsMeleeTargetObstructed (vector rayStart, vector rayEnd)
 

Variables

class MeleeTargetData ConeOrigin
 
float ConeLength
 
float ConeHalfAngle
 
float ConeHalfAngleRad
 
float ConeMinHeight
 
float ConeMaxHeight
 
vector ConeLeftPoint
 
vector ConeRightPoint
 
vector RayStart
 
vector RayEnd
 
vector Dir
 
vector XZDir
 
float MaxDist
 
EntityAI Attacker
 
class ComponentResult MELEE_TARGET_OBSTRUCTION_LAYERS = PhxInteractionLayers.BUILDING|PhxInteractionLayers.DOOR|PhxInteractionLayers.VEHICLE|PhxInteractionLayers.ROADWAY|PhxInteractionLayers.TERRAIN|PhxInteractionLayers.ITEM_SMALL|PhxInteractionLayers.ITEM_LARGE|PhxInteractionLayers.FENCE
 

Function Documentation

◆ EvaluateComponent()

bool EvaluateComponent ( Object  obj,
ComponentInfo  cInfo,
MeleeTargetSettings  settings,
out ref ComponentResult  result 
)

Definition at line 272 of file meleetargeting.c.

◆ 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 226 of file meleetargeting.c.

◆ FindMostSuitableComponent()

bool FindMostSuitableComponent ( Object  obj,
BoxCollidingResult  bResult,
MeleeTargetSettings  settings,
out float  sum,
out ref ComponentResult  result 
)

Definition at line 221 of file meleetargeting.c.

◆ FindMostSuitableComponentEx()

bool FindMostSuitableComponentEx ( Object  obj,
BoxCollidingResult  bResult,
MeleeTargetSettings  settings,
out float  sum,
out ref ComponentResult  result,
array< string blacklistedDamageZones 
)

Definition at line 198 of file meleetargeting.c.

◆ GetMeleeTarget()

MeleeTargetData GetMeleeTarget ( MeleeTargetSettings  settings,
out array< Object allTargets = null 
)

Definition at line 192 of file meleetargeting.c.

◆ GetMeleeTargetEx()

MeleeTargetData GetMeleeTargetEx ( MeleeTargetSettings  settings,
out array< Object allTargets = null,
array< string blacklistedDamageZones = null 
)

Definition at line 76 of file meleetargeting.c.

◆ IsMeleeTargetObstructed()

bool IsMeleeTargetObstructed ( vector  rayStart,
vector  rayEnd 
)

Definition at line 277 of file meleetargeting.c.

◆ MeleeTargetSettings()

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.

Variable Documentation

◆ Attacker

EntityAI Attacker

Definition at line 33 of file meleetargeting.c.

◆ ConeHalfAngle

float ConeHalfAngle

Definition at line 19 of file meleetargeting.c.

◆ ConeHalfAngleRad

float ConeHalfAngleRad

Definition at line 20 of file meleetargeting.c.

◆ ConeLeftPoint

vector ConeLeftPoint

Definition at line 24 of file meleetargeting.c.

◆ ConeLength

float ConeLength

Definition at line 18 of file meleetargeting.c.

◆ ConeMaxHeight

float ConeMaxHeight

Definition at line 22 of file meleetargeting.c.

◆ ConeMinHeight

float ConeMinHeight

Definition at line 21 of file meleetargeting.c.

◆ ConeOrigin

class MeleeTargetData ConeOrigin

◆ ConeRightPoint

vector ConeRightPoint

Definition at line 25 of file meleetargeting.c.

◆ Dir

vector Dir

Definition at line 29 of file meleetargeting.c.

◆ MaxDist

float MaxDist

Definition at line 31 of file meleetargeting.c.

◆ MELEE_TARGET_OBSTRUCTION_LAYERS

◆ RayEnd

vector RayEnd

Definition at line 28 of file meleetargeting.c.

◆ RayStart

vector RayStart

Definition at line 27 of file meleetargeting.c.

◆ XZDir

vector XZDir

Definition at line 30 of file meleetargeting.c.