Type / to search schemas

CoreDamageInfo

Source
Inherits
DamageInfo

Properties (7)

NameType
Force
Physical force of the damage, usually applied as a push
AngularForce
Angular hysical force of the damage, usually applied when something is powerful enough to also rotate it.
ReportedPosition
BaseDamage
float
The damage amount before difficulty level adjustments are made, used to get uniform damage forces
Inflictor
The weapon or rocket (or player) that is dealing the damage. For hitscan weapons, the Weapon will be the same as the Inflictor. For projectile weapons, the projectile is the Inflictior, and this contains the weapon that created the projectile
Ammo
What ammo was used to damage
BaseCombatWeapon
The actual weapon class

Constructors (5)

NameType
CoreDamageInfo()
CoreDamageInfo(GameObject inflictor, GameObject attacker, float damage)
CoreDamageInfo(GameObject inflictor, GameObject attacker, GameObject weapon, float damage)
CoreDamageInfo(GameObject inflictor, GameObject attacker, Vector3 damageForce, Vector3 damagePosition, float damage, Vector3 reportedPosition = new Vector3())
CoreDamageInfo(GameObject inflictor, GameObject attacker, Vector3 damageForce, Vector3 damagePosition, float damage, AmmoInfo ammo, Vector3 reportedPosition = new Vector3())