Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_HitInfo.c
Go to the documentation of this file.
1
2
class
SCR_HitInfo
3
{
4
float
m_LastHealth;
5
float
m_HitDamage;
6
EDamageType
m_DamageType;
7
vector
m_HitPosition;
8
vector
m_HitDirection;
9
vector
m_HitNormal;
10
}
11
13
class
SCR_DestructionHitInfo :
SCR_HitInfo
14
{
15
bool
m_TotalDestruction
;
16
17
//------------------------------------------------------------------------------------------------
22
static
SCR_DestructionHitInfo FromHitInfo(
SCR_HitInfo
hitInfo,
bool
totalDestruction)
23
{
24
SCR_DestructionHitInfo destHitInfo =
new
SCR_DestructionHitInfo;
25
destHitInfo.m_TotalDestruction = totalDestruction;
26
destHitInfo.m_LastHealth = hitInfo.m_LastHealth;
27
destHitInfo.m_HitDamage = hitInfo.m_HitDamage;
28
destHitInfo.m_DamageType = hitInfo.m_DamageType;
29
destHitInfo.m_HitPosition = hitInfo.m_HitPosition;
30
destHitInfo.m_HitDirection = hitInfo.m_HitDirection;
31
destHitInfo.m_HitNormal = hitInfo.m_HitNormal;
32
return
destHitInfo;
33
}
34
35
//------------------------------------------------------------------------------------------------
39
static
SCR_DestructionHitInfo FromDestructionData(SCR_DestructionData destructionData)
40
{
41
SCR_DestructionHitInfo destructionHitInfo =
new
SCR_DestructionHitInfo();
42
destructionHitInfo.m_TotalDestruction = destructionData.m_bTotalDestruction;
43
destructionHitInfo.m_HitDamage = destructionData.m_fHitDamage;
44
destructionHitInfo.m_DamageType = destructionData.m_eDamageType;
45
destructionHitInfo.m_HitPosition = destructionData.m_vHitPosition;
46
destructionHitInfo.m_HitDirection = destructionData.m_vHitDirection;
47
destructionHitInfo.m_HitNormal = destructionData.m_vHitNormal;
48
return
destructionHitInfo;
49
}
50
}
m_TotalDestruction
class SCR_HitInfo m_TotalDestruction
Class to temporarily store information about the last hit that caused destruction.
SCR_HitInfo
Class to temporarily store information about the last hit that dealt damage.
Definition
SCR_HitInfo.c:3
vector
Definition
vector.c:13
EDamageType
EDamageType
Definition
EDamageType.c:13
scripts
Game
Destruction
SCR_HitInfo.c
Generated by
1.17.0