Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HeadgearInventoryItemComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_HeadgearInventoryItemComponentClass

Functions

void OnPostInit (IEntity owner)
 Editable Mine.
void DetachHelmet (float damageValue, EDamageType damageType, vector impactDirection, vector impactPosition, notnull ChimeraCharacter character)
void ApplyForce (vector positionFrom, vector offset, vector force)
void OnPhysicsStateChanged (bool isActive)

Variables

SCR_HeadgearInventoryItemComponentClass m_bLock
 Lock that is used to ensure that detaching procedure will not start twice.

Function Documentation

◆ ApplyForce()

void ApplyForce ( vector positionFrom,
vector offset,
vector force )
protected

Applies the force to the entity and enables synchronization of the physics simulation. Should be only executed by the authority.

Parameters
[in]positionFrom
[in]offset
[in]force

Definition at line 148 of file SCR_HeadgearInventoryItemComponent.c.

◆ DetachHelmet()

void DetachHelmet ( float damageValue,
EDamageType damageType,
vector impactDirection,
vector impactPosition,
notnull ChimeraCharacter character )
protected

Evaluates if provided damage should be capable of detaching the helmet from the character, and in such case schedules force application based on the damage amount This method should only be called by the authority

Parameters
[in]damageValue
[in]damageType
[in]impactDirection
[in]impactPosition
[in]characterwho is wearing the headgear

Definition at line 77 of file SCR_HeadgearInventoryItemComponent.c.

◆ OnPhysicsStateChanged()

void OnPhysicsStateChanged ( bool isActive)
protected
Parameters
[in]isActive

Definition at line 175 of file SCR_HeadgearInventoryItemComponent.c.

Variable Documentation

◆ m_bLock

Lock that is used to ensure that detaching procedure will not start twice.