ONHIT AIM MODIFIER.
More...
|
| override void | OnInit (IEntity weaponEnt) |
| |
| override void | OnActivated (IEntity weaponOwner) |
| | Called when owner weapon is enabled via parent owner (taken into hands, manned...)
|
| |
| override void | OnDeactivated (IEntity weaponOwner) |
| | Called when owner weapon is disabled via parent owner (dropped, changed, unmanned ...)
|
| |
| vector | VectorSpring (vector current, vector target, inout vector velocity, float spring, float damping, float dt) |
| |
| void | OnWeaponFired () |
| |
◆ OnActivated()
| override void OnHitAimModifier.OnActivated |
( |
IEntity | weaponOwner | ) |
|
|
protected |
Called when owner weapon is enabled via parent owner (taken into hands, manned...)
- Parameters
-
| weaponOwner | Entity that activated this weapon |
Implements ScriptedWeaponAimModifier.
◆ OnCalculate()
| override void OnHitAimModifier.OnCalculate |
( |
IEntity | owner, |
|
|
WeaponAimModifierContext | context, |
|
|
float | timeSlice, |
|
|
out vector | translation, |
|
|
out vector | rotation, |
|
|
out vector | turnOffset ) |
This method is ticked each frame as long as the aim modifier is active.
- Parameters
-
| owner | Owner of this modifier. Not parent manager, but weapon itself. |
| context | Context that defines circumstances for this aim modifier or null if none. |
| timeSlice | Delta time since last update |
| translation | Out translation in meters |
| rotation | Out rotation in degrees in <yaw, pitch, roll> format |
| turnOffset | Out aiming rotation change in degrees <pitch, yaw, unused> |
Implements ScriptedWeaponAimModifier.
◆ OnDamage()
◆ OnDeactivated()
| override void OnHitAimModifier.OnDeactivated |
( |
IEntity | weaponOwner | ) |
|
|
protected |
Called when owner weapon is disabled via parent owner (dropped, changed, unmanned ...)
- Parameters
-
| weaponOwner | Entity that lost (deactivated) this weapon |
Implements ScriptedWeaponAimModifier.
◆ OnInit()
| override void OnHitAimModifier.OnInit |
( |
IEntity | weaponEnt | ) |
|
|
protected |
◆ VectorSpring()
| vector OnHitAimModifier.VectorSpring |
( |
vector | current, |
|
|
vector | target, |
|
|
inout vector | velocity, |
|
|
float | spring, |
|
|
float | damping, |
|
|
float | dt ) |
|
protected |
◆ m_fAngularScale
| float OnHitAimModifier.m_fAngularScale |
|
protected |
◆ m_fDamping
| float OnHitAimModifier.m_fDamping |
|
protected |
◆ m_fDecaySpeed
| float OnHitAimModifier.m_fDecaySpeed |
|
protected |
◆ m_fEffectScale
| const float OnHitAimModifier.m_fEffectScale = 80 |
|
static |
◆ m_fLinearScale
| float OnHitAimModifier.m_fLinearScale |
|
protected |
◆ m_fPitchRotationIntensity
| float OnHitAimModifier.m_fPitchRotationIntensity |
|
protected |
◆ m_fRollRotationIntensity
| float OnHitAimModifier.m_fRollRotationIntensity |
|
protected |
◆ m_fSpring
| float OnHitAimModifier.m_fSpring |
|
protected |
◆ m_fSpringSpeed
| float OnHitAimModifier.m_fSpringSpeed |
|
protected |
◆ m_fYawRotationIntensity
| float OnHitAimModifier.m_fYawRotationIntensity |
|
protected |
◆ m_pOwner
| IEntity OnHitAimModifier.m_pOwner |
|
protected |
The documentation for this interface was generated from the following file:
- GameCode/Weapon/OnHitAimModifier.c