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

Go to the source code of this file.

Classes

class  SCR_ChimeraCharacterClass

Functions

SCR_ChimeraCharacterClass ChimeraCharacterClass NonSerialized ()] float m_fFaceAlphaTest=0
Curve GetFoliageHeightSlowdownCurve ()
SCR_BushTypeSlowConfig GetBushSlowTypeCfg ()
override void EOnInit (IEntity owner)
Faction GetFaction ()
string GetFactionKey ()
void RPC_SetIllumination_BC (bool state, RplId rplId)
 Using RPC here because it is only for sound, so we don't care when weapon is streamed in.
void RPC_SetIllumination_S (bool state, RplId rplId)
void SetIllumination (bool illuminated, RplId rplId)
void RPC_SetNewZoomLevel_BC (int zoomLevel, bool increased, RplId rplId)
 Using RPC here because it is only for sound, so we don't care when weapon is streamed in.
void RPC_SetNewZoomLevel_S (int zoomLevel, bool increased, RplId rplId)
void SetNewZoomLevel (int zoomLevel, bool increased, RplId rplId)
bool IsDriving (float minSpeedSq=-1)
bool IsRecruitable ()
void SetRecruitable (bool isRecruitable)
bool IsRecruited ()
void SetRecruited (bool recruited)
override void OnSpecialContactsChagned (notnull array< IEntity > contacts)
 This is called locally by the owner of the character.
float GetModifiedBushHeight (float foliageHeight, ETreeSoundTypes treeType=ETreeSoundTypes.Bush)
void CalculateAndSetSlowdown (float bushModdedHeight)
void Rpc_ContactChanged (RplId changedEntityRplId, bool wasAdded)
void AddNewContact (notnull IEntity newContact)
void RemoveOldContact (IEntity oldContact=null)
void SetSpeedLimit (Managed source, float limit)
void UpdateSlowdown (float transitionTime)
void OverrideSpeed (float speed)

Variables

ResourceName m_sBushSlowTypeCfgPath
ref Curve m_cFoliageHeightSlowCurve
FactionAffiliationComponent m_pFactionComponent
SCR_CharacterPerceivableComponent m_pPerceivableComponent
bool m_bRecruitable
ref array< IEntitym_aContacts
bool m_bIsRecruited = 0
ref map< Managed, floatm_mSpeedReferences = new map<Managed, float>()
float m_fTargetSpeed
float m_fCurrentSpeed = 1

Function Documentation

◆ AddNewContact()

void AddNewContact ( notnull IEntity newContact)
protected

Definition at line 349 of file SCR_ChimeraCharacter.c.

◆ CalculateAndSetSlowdown()

void CalculateAndSetSlowdown ( float bushModdedHeight)
protected

Definition at line 311 of file SCR_ChimeraCharacter.c.

◆ GetBushSlowTypeCfg()

SCR_BushTypeSlowConfig NonSerialized::GetBushSlowTypeCfg ( )
protected

Definition at line 17 of file SCR_ChimeraCharacter.c.

◆ GetFaction()

Faction GetFaction ( )
protected

Definition at line 67 of file SCR_ChimeraCharacter.c.

◆ GetFactionKey()

string GetFactionKey ( )
protected

Definition at line 76 of file SCR_ChimeraCharacter.c.

◆ GetFoliageHeightSlowdownCurve()

Curve NonSerialized::GetFoliageHeightSlowdownCurve ( )
protected

Definition at line 11 of file SCR_ChimeraCharacter.c.

◆ GetModifiedBushHeight()

float GetModifiedBushHeight ( float foliageHeight,
ETreeSoundTypes treeType = ETreeSoundTypes.Bush )
protected

Definition at line 302 of file SCR_ChimeraCharacter.c.

◆ IsDriving()

bool IsDriving ( float minSpeedSq = -1)
protected

Returns true if character is in driver compartment, optionally can check if vehicle is moving fast enough

Parameters
minSpeedSqMinimum speed squared [m/s]

Definition at line 165 of file SCR_ChimeraCharacter.c.

◆ IsRecruitable()

bool IsRecruitable ( )
protected

Definition at line 196 of file SCR_ChimeraCharacter.c.

◆ IsRecruited()

bool IsRecruited ( )
protected

Definition at line 209 of file SCR_ChimeraCharacter.c.

◆ NonSerialized()

SCR_ChimeraCharacterClass ChimeraCharacterClass NonSerialized ( )
pure virtual

◆ OnSpecialContactsChagned()

override void OnSpecialContactsChagned ( notnull array< IEntity > contacts)
protected

This is called locally by the owner of the character.

Definition at line 223 of file SCR_ChimeraCharacter.c.

◆ OverrideSpeed()

void OverrideSpeed ( float speed)
protected

Definition at line 578 of file SCR_ChimeraCharacter.c.

◆ RemoveOldContact()

void RemoveOldContact ( IEntity oldContact = null)
protected

Definition at line 402 of file SCR_ChimeraCharacter.c.

◆ Rpc_ContactChanged()

void Rpc_ContactChanged ( RplId changedEntityRplId,
bool wasAdded )
protected

Definition at line 326 of file SCR_ChimeraCharacter.c.

◆ RPC_SetIllumination_BC()

void RPC_SetIllumination_BC ( bool state,
RplId rplId )
protected

Using RPC here because it is only for sound, so we don't care when weapon is streamed in.

Definition at line 88 of file SCR_ChimeraCharacter.c.

◆ RPC_SetIllumination_S()

void RPC_SetIllumination_S ( bool state,
RplId rplId )
protected

Definition at line 110 of file SCR_ChimeraCharacter.c.

◆ RPC_SetNewZoomLevel_BC()

void RPC_SetNewZoomLevel_BC ( int zoomLevel,
bool increased,
RplId rplId )
protected

Using RPC here because it is only for sound, so we don't care when weapon is streamed in.

Definition at line 127 of file SCR_ChimeraCharacter.c.

◆ RPC_SetNewZoomLevel_S()

void RPC_SetNewZoomLevel_S ( int zoomLevel,
bool increased,
RplId rplId )
protected

Definition at line 148 of file SCR_ChimeraCharacter.c.

◆ SetIllumination()

void SetIllumination ( bool illuminated,
RplId rplId )
protected

Definition at line 118 of file SCR_ChimeraCharacter.c.

◆ SetNewZoomLevel()

void SetNewZoomLevel ( int zoomLevel,
bool increased,
RplId rplId )
protected

Definition at line 155 of file SCR_ChimeraCharacter.c.

◆ SetRecruitable()

void SetRecruitable ( bool isRecruitable)
protected

Definition at line 202 of file SCR_ChimeraCharacter.c.

◆ SetRecruited()

void SetRecruited ( bool recruited)
protected

Definition at line 215 of file SCR_ChimeraCharacter.c.

◆ SetSpeedLimit()

void SetSpeedLimit ( Managed source,
float limit )
protected

Used whenever an entity slows the player down (as of writing this code only used for bushes and barbed wire) This system mostly handles finding the strongest acting slow and restricting the character to that amount.

Parameters
[in]sourceOrigin of the slowing force
[in]limitPercentage amount of base speed the character maxes out to, if set to 1 will remove source automatically

Definition at line 512 of file SCR_ChimeraCharacter.c.

◆ UpdateSlowdown()

void UpdateSlowdown ( float transitionTime)
protected

Called by SCR_CharacterSlowdownEasingSystem to make the transition during slowdowns better.

Parameters
[in]transitionTimeAmount of time passed since last update * transition strength

Definition at line 561 of file SCR_ChimeraCharacter.c.

Variable Documentation

◆ m_aContacts

ref array<IEntity> m_aContacts
protected

Definition at line 48 of file SCR_ChimeraCharacter.c.

◆ m_bIsRecruited

bool m_bIsRecruited = 0
protected

Definition at line 51 of file SCR_ChimeraCharacter.c.

◆ m_bRecruitable

bool m_bRecruitable
protected

Definition at line 45 of file SCR_ChimeraCharacter.c.

◆ m_cFoliageHeightSlowCurve

ref Curve m_cFoliageHeightSlowCurve
protected

Definition at line 4 of file SCR_ChimeraCharacter.c.

◆ m_fCurrentSpeed

float m_fCurrentSpeed = 1
protected

Definition at line 57 of file SCR_ChimeraCharacter.c.

◆ m_fTargetSpeed

float m_fTargetSpeed
protected

Definition at line 57 of file SCR_ChimeraCharacter.c.

◆ m_mSpeedReferences

ref map<Managed, float> m_mSpeedReferences = new map<Managed, float>()
protected

Definition at line 56 of file SCR_ChimeraCharacter.c.

◆ m_pFactionComponent

FactionAffiliationComponent m_pFactionComponent

Definition at line 39 of file SCR_ChimeraCharacter.c.

◆ m_pPerceivableComponent

SCR_CharacterPerceivableComponent m_pPerceivableComponent

Definition at line 42 of file SCR_ChimeraCharacter.c.

◆ m_sBushSlowTypeCfgPath

ResourceName m_sBushSlowTypeCfgPath
protected

Definition at line 1 of file SCR_ChimeraCharacter.c.