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

Go to the source code of this file.

Classes

class  SCR_PerceivedFactionManagerComponentClass

Enumerations

enum  SCR_EPerceivedFactionOutfitType { DISABLED = 0 , HIGHEST_VALUE = 10 , FULL_OUTFIT = 20 }

Functions

SCR_PerceivedFactionManagerComponentClass SCR_BaseGameModeComponentClass Attribute (SCR_EPerceivedFactionOutfitType.DISABLED.ToString(), desc:"Decides what the faction outfit calculation is.\n\DISABLED: Perceived faction is never set by outfit\nHIGHEST_VALUE: The perveived faction is what ever the highest combined value is\nFULL_OUTFIT: Perceived faction will be unknown unless all clothing is of the same faction (Needs at least a torso and pants to be seens as a faction)", category:"Settings", uiwidget:UIWidgets.SearchComboBox, enums:ParamEnumArray.FromEnum(SCR_EPerceivedFactionOutfitType))
SCR_PerceivedFactionManagerComponentClass SCR_BaseGameModeComponentClass RplProp (onRplName:"OnPerceivedFactionOutfitTypeChanged")
Faction GetFallbackFaction ()
void ShowPerceivedFactionChangedHint (Faction playerPerceivedFaction)
 Called by SCR_CharacterFactionAffiliationComponent On Perceived faction changed. To show hint to player.
void ShowHint ()
SCR_EPerceivedFactionOutfitType GetCharacterPerceivedFactionOutfitType ()
 Get the current Perceived faction outfit type. Which determintes how the perceived faction is calculated.
void SetCharacterPerceivedFactionOutfitType_S (SCR_EPerceivedFactionOutfitType type, int playerID=-1)
void OnPerceivedFactionOutfitTypeChanged ()
ScriptInvokerInt GetPerceivedFactionOutfitTypeChanged ()
bool DoesNoOutfitSetFactionToDefault ()
SCR_EDisguisedKillingPunishment GetPunishmentKillingWhileDisguisedFlags ()
void SetPunishmentKillingWhileDisguisedFlags_S (SCR_EDisguisedKillingPunishment punishmentFlags, int playerID=-1)
void OnPunishKillingWhileDisguisedChanged ()
ScriptInvokerInt GetOnPunishKillingWhileDisguisedChanged ()
override void OnPlayerSpawnFinalize_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, SCR_SpawnData data, IEntity entity)
override void OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData)
bool DoesPerceivedFactionChangesAffectsAI ()
void SetPerceivedFactionChangesAffectsAI (bool affectsAI, int PlayerID=-1)
void OnPerceivedFactionChangesAffectsAIChanged ()
ScriptInvokerBool GetOnPerceivedFactionChangesAffectsAIChanged ()
void SCR_PerceivedFactionManagerComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
override void OnPostInit (IEntity owner)
 Editable Mine.
override void EOnInit (IEntity owner)

Variables

enum SCR_EPerceivedFactionOutfitType WARCRIME = 1 << 0
 Killing players while disguised is a warcrime, resulting in an eventual kick if they continue doing so.
enum SCR_EPerceivedFactionOutfitType XP_LOSS = 1 << 1
 Killing players while disguised will case a lose in XP.

Enumeration Type Documentation

◆ SCR_EPerceivedFactionOutfitType

Enumerator
DISABLED 

Perceived faction outfit system is disabled.

HIGHEST_VALUE 

The faction is set to the highest value of all combined clothing.

FULL_OUTFIT 

The faction is unknown until all clothing items are of the same faction and at least a pants and torso piece are equipt.

Definition at line 444 of file SCR_PerceivedFactionManagerComponent.c.

Function Documentation

◆ Attribute()

SCR_PerceivedFactionManagerComponentClass SCR_BaseGameModeComponentClass Attribute ( SCR_EPerceivedFactionOutfitType.DISABLED. ToString(),
desc:"Decides what the faction outfit calculation is.\n\DISABLED: Perceived faction is never set by outfit\nHIGHEST_VALUE: The perveived faction is what ever the highest combined value is\nFULL_OUTFIT: Perceived faction will be unknown unless all clothing is of the same faction (Needs at least a torso and pants to be seens as a faction)" ,
category:"Settings" ,
uiwidget:UIWidgets. SearchComboBox,
enums:ParamEnumArray. FromEnumSCR_EPerceivedFactionOutfitType )

◆ DoesNoOutfitSetFactionToDefault()

bool DoesNoOutfitSetFactionToDefault ( )
protected
Returns
true if unknown perceived faction when using type HIGHEST_VALUE the perceived will instead be set to default rather than unknown.

Definition at line 145 of file SCR_PerceivedFactionManagerComponent.c.

◆ DoesPerceivedFactionChangesAffectsAI()

bool DoesPerceivedFactionChangesAffectsAI ( )
protected

Definition at line 216 of file SCR_PerceivedFactionManagerComponent.c.

◆ GetCharacterPerceivedFactionOutfitType()

SCR_EPerceivedFactionOutfitType GetCharacterPerceivedFactionOutfitType ( )
protected

Get the current Perceived faction outfit type. Which determintes how the perceived faction is calculated.

Definition at line 95 of file SCR_PerceivedFactionManagerComponent.c.

◆ GetFallbackFaction()

Faction GetFallbackFaction ( )

Definition at line 41 of file SCR_PerceivedFactionManagerComponent.c.

◆ GetOnPerceivedFactionChangesAffectsAIChanged()

ScriptInvokerBool GetOnPerceivedFactionChangesAffectsAIChanged ( )
protected

Definition at line 245 of file SCR_PerceivedFactionManagerComponent.c.

◆ GetOnPunishKillingWhileDisguisedChanged()

ScriptInvokerInt GetOnPunishKillingWhileDisguisedChanged ( )
protected
Returns
Get script when punished if player is disguised changes

Definition at line 185 of file SCR_PerceivedFactionManagerComponent.c.

◆ GetPerceivedFactionOutfitTypeChanged()

ScriptInvokerInt GetPerceivedFactionOutfitTypeChanged ( )
protected
Returns
Get on Player perceived action type changed script invoker

Definition at line 135 of file SCR_PerceivedFactionManagerComponent.c.

◆ GetPunishmentKillingWhileDisguisedFlags()

SCR_EDisguisedKillingPunishment GetPunishmentKillingWhileDisguisedFlags ( )
protected
Returns
The punishment flags set which dictate what the punishment is for killing enemies while disguised

Definition at line 152 of file SCR_PerceivedFactionManagerComponent.c.

◆ OnPerceivedFactionChangesAffectsAIChanged()

void OnPerceivedFactionChangesAffectsAIChanged ( )
protected

Definition at line 238 of file SCR_PerceivedFactionManagerComponent.c.

◆ OnPerceivedFactionOutfitTypeChanged()

void OnPerceivedFactionOutfitTypeChanged ( )
protected

Definition at line 127 of file SCR_PerceivedFactionManagerComponent.c.

◆ OnPlayerKilled()

override void OnPlayerKilled ( notnull SCR_InstigatorContextData instigatorContextData)
protected

Called after a player gets killed.

Parameters
[in]instigatorContextDataHolds the data of the victim and killer
[in]playerId
[in]playerEntity
[in]killerEntity
[in]killer

Definition at line 205 of file SCR_PerceivedFactionManagerComponent.c.

◆ OnPlayerSpawnFinalize_S()

override void OnPlayerSpawnFinalize_S ( SCR_SpawnRequestComponent requestComponent,
SCR_SpawnHandlerComponent handlerComponent,
SCR_SpawnData data,
IEntity entity )
protected
Parameters
[in]requestComponent
[in]handlerComponent
[in]data
[in]entity

Definition at line 194 of file SCR_PerceivedFactionManagerComponent.c.

◆ OnPunishKillingWhileDisguisedChanged()

void OnPunishKillingWhileDisguisedChanged ( )
protected

Definition at line 177 of file SCR_PerceivedFactionManagerComponent.c.

◆ RplProp()

SCR_PerceivedFactionManagerComponentClass SCR_BaseGameModeComponentClass RplProp ( onRplName:"OnPerceivedFactionOutfitTypeChanged" )

Definition at line 8 of file SCR_PerceivedFactionManagerComponent.c.

◆ SCR_PerceivedFactionManagerComponent()

void SCR_PerceivedFactionManagerComponent ( IEntityComponentSource src,
IEntity ent,
IEntity parent )
protected

Definition at line 269 of file SCR_PerceivedFactionManagerComponent.c.

◆ SetCharacterPerceivedFactionOutfitType_S()

void SetCharacterPerceivedFactionOutfitType_S ( SCR_EPerceivedFactionOutfitType type,
int playerID = -1 )
protected

Change the Perceived faction outfit type. Which determintes how the perceived faction is calculated param[in] type New type to set param[in] playerID Optional to show notification

Definition at line 104 of file SCR_PerceivedFactionManagerComponent.c.

◆ SetPerceivedFactionChangesAffectsAI()

void SetPerceivedFactionChangesAffectsAI ( bool affectsAI,
int PlayerID = -1 )
protected

Definition at line 222 of file SCR_PerceivedFactionManagerComponent.c.

◆ SetPunishmentKillingWhileDisguisedFlags_S()

void SetPunishmentKillingWhileDisguisedFlags_S ( SCR_EDisguisedKillingPunishment punishmentFlags,
int playerID = -1 )
protected

Set if killing other characters while perceived as unknown or other faction will count as a team kill param[in] punishKillingWhileDisguised If true punishes players that kill others while disguised param[in] playerID Optional Player ID to send notification

Definition at line 161 of file SCR_PerceivedFactionManagerComponent.c.

◆ ShowHint()

void ShowHint ( )
protected

No hints set

Perceived faction is disabled

No hint manager

Get the correct hint depending if killing others while disguised is not punished, is a warcrime or just loses XP

Show the hint

Definition at line 54 of file SCR_PerceivedFactionManagerComponent.c.

◆ ShowPerceivedFactionChangedHint()

void ShowPerceivedFactionChangedHint ( Faction playerPerceivedFaction)

Called by SCR_CharacterFactionAffiliationComponent On Perceived faction changed. To show hint to player.

Definition at line 48 of file SCR_PerceivedFactionManagerComponent.c.

Variable Documentation

◆ WARCRIME

enum SCR_EPerceivedFactionOutfitType WARCRIME = 1 << 0
protected

Killing players while disguised is a warcrime, resulting in an eventual kick if they continue doing so.

◆ XP_LOSS

enum SCR_EPerceivedFactionOutfitType XP_LOSS = 1 << 1
protected

Killing players while disguised will case a lose in XP.