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

Go to the source code of this file.

Classes

class  SCR_BaseDamageHealSupportStationComponentClass

Enumerations

enum  SCR_EDamageSupportStationHealState {
  FIRE_EXTINGUISH_UPDATE , FIRE_EXTINGUISH_DONE , DOT_REMOVED , HEAL_UPDATE ,
  HEAL_DONE_NOT_FULL_HEAL , HEAL_DONE , BLOOD_UPDATE , BLOOD_DONE_NOT_FULL_HEAL ,
  BLOOD_DONE
}

Functions

SCR_BaseDamageHealSupportStationComponentClass SCR_BaseSupportStationComponentClass Attribute ("500", desc:"Max damage healed each execute. If you hold the action it will heal each time the action ends", category:"Heal/Repair Support Station", params:"0.01 inf")
SCR_AudioSourceConfiguration CreateSoundAudioConfig (string soundEventName)
SCR_AudioSourceConfiguration GetOnHealUpdateAudioConfig ()
SCR_AudioSourceConfiguration GetOnDoTRemovedAudioConfig ()
override bool IsValid (IEntity actionOwner, IEntity actionUser, SCR_BaseUseSupportStationAction action, vector actionPosition, out ESupportStationReasonInvalid reasonInvalid, out int supplyAmount)
float GetDamageOrStateToHeal (IEntity actionOwner, IEntity actionUser, notnull SCR_BaseDamageHealSupportStationAction action, out EDamageType activeDoT, out notnull array< HitZone > hitZones)
override int GetSupplyAmountAction (IEntity actionOwner, IEntity actionUser, SCR_BaseUseSupportStationAction action)
override void OnExecutedServer (notnull IEntity actionOwner, notnull IEntity actionUser, notnull SCR_BaseUseSupportStationAction action)
override void OnExecute (IEntity actionOwner, IEntity actionUser, int playerId, SCR_BaseUseSupportStationAction action)
void OnExecuteDamageSystemBroadcast (RplId ownerId, RplId userId, SCR_EDamageSupportStationHealState healState, int actionId, float healthScaled)
void OnExecuteDamageSystem (IEntity actionOwner, IEntity actionUser, SCR_EDamageSupportStationHealState healState, SCR_BaseDamageHealSupportStationAction action, float healthScaled)
void SendDamageSupportStationNotification (IEntity actionOwner, IEntity actionUser, SCR_BaseUseSupportStationAction action, SCR_EDamageSupportStationHealState healState, float healthScaled)

Variables

string m_sOnHealUpdateSoundEffectEventName
string m_sOnDoTRemovedSoundEffectEventName
ref SCR_AudioSourceConfiguration m_OnHealUpdateAudioSourceConfiguration
ref SCR_AudioSourceConfiguration m_OnDoTRemovedAudioSourceConfiguration

Enumeration Type Documentation

◆ SCR_EDamageSupportStationHealState

Enumerator
FIRE_EXTINGUISH_UPDATE 

To notify the system that the fire extinguish was updated but the fire state is not removed.

FIRE_EXTINGUISH_DONE 

To notify the system that the fire extinguish was updated but the fire state was removed.

DOT_REMOVED 

To notify the system that a Damage over time effect was removed.

HEAL_UPDATE 

To notify the system that health was updated but healing is not done.

HEAL_DONE_NOT_FULL_HEAL 

To notify the system that health was updated and healing is done. But the entity is not full heal aka the repair station cannot heal more.

HEAL_DONE 

To notify the system that health was updated and healing is done.

BLOOD_UPDATE 

To notify the system that blood amount was updated but healing is not done.

BLOOD_DONE_NOT_FULL_HEAL 

To notify the system that blood amount was updated and healing is done, but the entity is not full blood aka the heal station cannot heal more blood.

BLOOD_DONE 

To notify the system that blood amount was updated and healing is done.

Definition at line 362 of file SCR_BaseDamageHealSupportStationComponent.c.

Function Documentation

◆ Attribute()

SCR_BaseDamageHealSupportStationComponentClass SCR_BaseSupportStationComponentClass Attribute ( "500" ,
desc:"Max damage healed each execute. If you hold the action it will heal each time the action ends" ,
category:"Heal/Repair Support Station" ,
params:"0.01 inf"  )

Definition at line 1 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ CreateSoundAudioConfig()

SCR_AudioSourceConfiguration Attribute::CreateSoundAudioConfig ( string soundEventName)
protected

Get Audio config to play Will create it if it not yet exists. Returns null if no SoundFile or SoundEvent is set

Parameters
[in]soundEventNameDSConfig
Returns

Definition at line 77 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ GetDamageOrStateToHeal()

float GetDamageOrStateToHeal ( IEntity actionOwner,
IEntity actionUser,
notnull SCR_BaseDamageHealSupportStationAction action,
out EDamageType activeDoT,
out notnull array< HitZone > hitZones )
protected

Definition at line 134 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ GetOnDoTRemovedAudioConfig()

SCR_AudioSourceConfiguration Attribute::GetOnDoTRemovedAudioConfig ( )
protected
Returns
Sound Config for heal update. Will return null if no audio is assigned

Definition at line 109 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ GetOnHealUpdateAudioConfig()

SCR_AudioSourceConfiguration Attribute::GetOnHealUpdateAudioConfig ( )
protected
Returns
Sound Config for heal update. Will return null if no audio is assigned

Definition at line 98 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ GetSupplyAmountAction()

override int GetSupplyAmountAction ( IEntity actionOwner,
IEntity actionUser,
SCR_BaseUseSupportStationAction action )
protected

Definition at line 158 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ IsValid()

override bool IsValid ( IEntity actionOwner,
IEntity actionUser,
SCR_BaseUseSupportStationAction action,
vector actionPosition,
out ESupportStationReasonInvalid reasonInvalid,
out int supplyAmount )

Definition at line 98 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ OnExecute()

override void OnExecute ( IEntity actionOwner,
IEntity actionUser,
int playerId,
SCR_BaseUseSupportStationAction action )
protected

Definition at line 277 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ OnExecuteDamageSystem()

void OnExecuteDamageSystem ( IEntity actionOwner,
IEntity actionUser,
SCR_EDamageSupportStationHealState healState,
SCR_BaseDamageHealSupportStationAction action,
float healthScaled )
protected

Definition at line 302 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ OnExecuteDamageSystemBroadcast()

void OnExecuteDamageSystemBroadcast ( RplId ownerId,
RplId userId,
SCR_EDamageSupportStationHealState healState,
int actionId,
float healthScaled )
protected

Definition at line 284 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ OnExecutedServer()

override void OnExecutedServer ( notnull IEntity actionOwner,
notnull IEntity actionUser,
notnull SCR_BaseUseSupportStationAction action )
protected

Definition at line 201 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ SendDamageSupportStationNotification()

void SendDamageSupportStationNotification ( IEntity actionOwner,
IEntity actionUser,
SCR_BaseUseSupportStationAction action,
SCR_EDamageSupportStationHealState healState,
float healthScaled )
protected

Definition at line 356 of file SCR_BaseDamageHealSupportStationComponent.c.

Variable Documentation

◆ m_OnDoTRemovedAudioSourceConfiguration

ref SCR_AudioSourceConfiguration m_OnDoTRemovedAudioSourceConfiguration
protected

Definition at line 70 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ m_OnHealUpdateAudioSourceConfiguration

ref SCR_AudioSourceConfiguration m_OnHealUpdateAudioSourceConfiguration
protected

Definition at line 69 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ m_sOnDoTRemovedSoundEffectEventName

string m_sOnDoTRemovedSoundEffectEventName
protected

Definition at line 67 of file SCR_BaseDamageHealSupportStationComponent.c.

◆ m_sOnHealUpdateSoundEffectEventName

string m_sOnHealUpdateSoundEffectEventName
protected

Definition at line 64 of file SCR_BaseDamageHealSupportStationComponent.c.