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

Go to the source code of this file.

Classes

class  SCR_NotificationSenderComponentClass
class  SCR_NotificationKillfeedreceiveTypeName
 Class to get Killfeed receive type name. More...

Enumerations

enum  EKillFeedType

Functions

SCR_NotificationSenderComponentClass SCR_BaseGameModeComponentClass Attribute ("1", desc:"Show player left notification if player left.")
override void OnControllableDestroyed (notnull SCR_InstigatorContextData instigatorContextData)
void OnEditorLimitedChanged (bool isLimited)
override void OnPlayerRegistered (int playerId)
override void OnPlayerDisconnected (int playerId, KickCauseCode cause, int timeout)
override void OnPlayerSpawnFinalize_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, SCR_SpawnData data, IEntity entity)
void OnWeatherChangedNotification (int playerID)
void OnWeatherChangedNotificationDelay (int playerID)
int GetKillFeedTypeNames (notnull array< ref SCR_NotificationKillfeedTypeName > killFeedTypeNames)
int GetKillFeedReceiveTypeNames (notnull array< ref SCR_NotificationKillfeedreceiveTypeName > killFeedReceiveTypeNames)
EKillFeedType GetKillFeedType ()
void SetKillFeedType (EKillFeedType killFeedType, int playerNotificationId=-1)
void SetKillFeedTypeBroadcast (EKillFeedType killFeedType)
EKillFeedReceiveType GetReceiveKillFeedType ()
void SetReceiveKillFeedType (EKillFeedReceiveType receiveKillFeedType, int playerNotificationId=-1)
void SetReceiveKillFeedTypeBroadcast (EKillFeedReceiveType receiveKillFeedType)
SCR_EFriendlyFireKillFeedType GetFriendlyFireKillFeedType ()
void SetFriendlyFireKillFeedType (SCR_EFriendlyFireKillFeedType friendlyFireKillFeedType, int playerNotificationId=-1)
void SetFriendlyFireKillFeedTypeBroadcast (SCR_EFriendlyFireKillFeedType friendlyFireKillFeedType)
int GetFriendlyFireKillFeedTypeNames (notnull out array< ref SCR_NotificationFriendlyFireKillfeedTypeName > friendlyFireKillFeedTypeNames)
override bool RplSave (ScriptBitWriter writer)
override bool RplLoad (ScriptBitReader reader)
override void EOnInit (IEntity owner)
override void OnPostInit (IEntity owner)
 Editable Mine.
override void OnDelete (IEntity owner)
enum EKillFeedType BaseContainerProps ()
 Class to get Killfeed type name.
enum EKillFeedType SCR_BaseContainerCustomTitleEnum (EKillFeedType, "m_iKillfeedType")
EKillFeedType GetKillfeedReceiveType ()
string GetName ()
class SCR_NotificationKillfeedreceiveTypeName SCR_BaseContainerCustomTitleEnum (SCR_EFriendlyFireKillFeedType, "m_eFriendlyFireKillfeedType")

Variables

Configs ServerBrowser KickDialogs conf
Configs ServerBrowser KickDialogs desc
Configs ServerBrowser KickDialogs params
Faction m_FactionOnSpawn
SCR_FactionManager m_FactionManager
bool m_bListeningToWeatherChanged
enum EKillFeedType ALL = 0
 Will see killfeed from allies and enemies alike.
enum EKillFeedType ENEMIES_ONLY = 10
 Will see killfeed from enemies only.
enum EKillFeedType ALLIES_ONLY = 20
 Will see killfeed from allies only.
enum EKillFeedType SAME_FACTION_ONLY = 30
 Will see killfeed from same faction only.
enum EKillFeedType GROUP_ONLY = 40
 Will see killfeed from group members only.
enum EKillFeedType DEFAULT_SETTINGS = 0
 Kill feed will be default depending on EKillFeedType and EKillFeedFriendlyKillsType.
enum EKillFeedType SHOW_FRIENDLY_KILLS_TO_PLAYERS_INVOLVED = 10
 When a player is killed by a friendly faction both they and the killer will see the full notification of the teamkill.
enum EKillFeedType SHOW_FRIENDLY_KILLS_TO_TEAM = 20
 When a player is killed by a friendly faction the both teams will see the full notification of the teamkill.
 DISABLED = 0
 Killfeed is disabled.
 UNKNOWN_KILLER = 10
 Will see killfeed messages but will never know who the killer is.
 FULL = 20
 Will see every player (except possessed pawns) killed messages. Including killer.
EKillFeedReceiveType m_iKillfeedreceiveType
LocalizedString m_sKillfeedReceiveTypeName

Enumeration Type Documentation

◆ EKillFeedType

enum EKillFeedType
protected

What kind of killfeed will be displayed in the gamemode. Noted that players with unlimited Editor will always see full killfeed if Editor is open

Definition at line 680 of file SCR_NotificationSenderComponent.c.

Function Documentation

◆ Attribute()

SCR_NotificationSenderComponentClass SCR_BaseGameModeComponentClass Attribute ( "1" ,
desc:"Show player left notification if player left."  )

Definition at line 1 of file SCR_NotificationSenderComponent.c.

◆ BaseContainerProps()

enum EKillFeedType BaseContainerProps ( )
protected

Class to get Killfeed type name.

Class to get Killfeed receive type name.

◆ GetFriendlyFireKillFeedType()

SCR_EFriendlyFireKillFeedType GetFriendlyFireKillFeedType ( )
protected
Returns
the current friendly fire killfeed type

Definition at line 574 of file SCR_NotificationSenderComponent.c.

◆ GetFriendlyFireKillFeedTypeNames()

int GetFriendlyFireKillFeedTypeNames ( notnull out array< ref SCR_NotificationFriendlyFireKillfeedTypeName > friendlyFireKillFeedTypeNames)
protected

Get an list of all killfeed receive types and the localized name

Parameters
[in]friendlyFireKillFeedTypeNameslist of friendly fire killfeed type and name
Returns
the amount of names in the list

Definition at line 606 of file SCR_NotificationSenderComponent.c.

◆ GetKillfeedReceiveType()

EKillFeedType BaseContainerProps::GetKillfeedReceiveType ( )
protected
Returns
the killfeed receive type enum

Definition at line 8 of file SCR_NotificationSenderComponent.c.

◆ GetKillFeedReceiveTypeNames()

int GetKillFeedReceiveTypeNames ( notnull array< ref SCR_NotificationKillfeedreceiveTypeName > killFeedReceiveTypeNames)
protected

Get an list of all killfeed receive types and the localized name

Parameters
[in]killFeedReceiveTypeNameslist of killfeed receive type and name
Returns
the amount of names in the list

Definition at line 501 of file SCR_NotificationSenderComponent.c.

◆ GetKillFeedType()

EKillFeedType GetKillFeedType ( )
protected
Returns
the type of killfeed that is currently displayed

Definition at line 514 of file SCR_NotificationSenderComponent.c.

◆ GetKillFeedTypeNames()

int GetKillFeedTypeNames ( notnull array< ref SCR_NotificationKillfeedTypeName > killFeedTypeNames)
protected

Get an list of all killfeed types and the localized name

Parameters
[in]killFeedTypeNameslist of killfeed type and name
Returns
the amount of names in the list

Definition at line 486 of file SCR_NotificationSenderComponent.c.

◆ GetName()

string BaseContainerProps::GetName ( )
protected
Returns
the killfeed receive type name as string

Definition at line 15 of file SCR_NotificationSenderComponent.c.

◆ GetReceiveKillFeedType()

EKillFeedReceiveType GetReceiveKillFeedType ( )
protected
Returns
the current killfeed receive type

Definition at line 544 of file SCR_NotificationSenderComponent.c.

◆ OnControllableDestroyed()

override void OnControllableDestroyed ( notnull SCR_InstigatorContextData instigatorContextData)
protected

When a controllable entity is destroyed, this event is raised.

Parameters
[in]instigatorContextDataHolds the data of the victim and killer

Definition at line 40 of file SCR_NotificationSenderComponent.c.

◆ OnDelete()

override void OnDelete ( IEntity owner)
protected

Definition at line 668 of file SCR_NotificationSenderComponent.c.

◆ OnEditorLimitedChanged()

void OnEditorLimitedChanged ( bool isLimited)
protected

Definition at line 318 of file SCR_NotificationSenderComponent.c.

◆ OnPlayerDisconnected()

override void OnPlayerDisconnected ( int playerId,
KickCauseCode cause,
int timeout )
protected

Called after a player is disconnected.

Parameters
[in]playerIdPlayerId of disconnected player.
[in]causeReason player disconnected
[in]timeoutTimeout for when players are allowed to connect again. -1 means Ban without an assigned timeout

What happens when a player disconnects.

Parameters
[in]playerIDis a unique player identifier that defines which player has disconnected.
[in]cause
[in]timeout

Definition at line 342 of file SCR_NotificationSenderComponent.c.

◆ OnPlayerRegistered()

override void OnPlayerRegistered ( int playerId)
protected

Called on every machine after a player is registered (identity, name etc.). Always called after OnPlayerConnected.

Parameters
[in]playerIdPlayerId of registered player.

Definition at line 335 of file SCR_NotificationSenderComponent.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 419 of file SCR_NotificationSenderComponent.c.

◆ OnWeatherChangedNotification()

void OnWeatherChangedNotification ( int playerID)
protected

Called when weather is set to looping or when weather itself is changed (which auto sets it on looping) This is to make sure the notification, that weather is set, is only called once

Parameters
[in]playerID

Definition at line 447 of file SCR_NotificationSenderComponent.c.

◆ OnWeatherChangedNotificationDelay()

void OnWeatherChangedNotificationDelay ( int playerID)
protected

Definition at line 460 of file SCR_NotificationSenderComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader reader)
protected

Definition at line 629 of file SCR_NotificationSenderComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter writer)
protected

Definition at line 620 of file SCR_NotificationSenderComponent.c.

◆ SCR_BaseContainerCustomTitleEnum() [1/2]

enum EKillFeedType SCR_BaseContainerCustomTitleEnum ( EKillFeedType ,
"m_iKillfeedType"  )
protected
Returns
the killfeed type enum
the killfeed type name as string

Definition at line 708 of file SCR_NotificationSenderComponent.c.

◆ SCR_BaseContainerCustomTitleEnum() [2/2]

class SCR_NotificationKillfeedreceiveTypeName SCR_BaseContainerCustomTitleEnum ( SCR_EFriendlyFireKillFeedType ,
"m_eFriendlyFireKillfeedType"  )
protected
Returns
the friendly fire killfeed type enum
the killfeed receive type name as string

Definition at line 758 of file SCR_NotificationSenderComponent.c.

◆ SetFriendlyFireKillFeedType()

void SetFriendlyFireKillFeedType ( SCR_EFriendlyFireKillFeedType friendlyFireKillFeedType,
int playerNotificationId = -1 )
protected

Server set friendly fire killfeed type

Parameters
[in]friendlyFireKillFeedTypenew friendly fire killfeed type to set
[in]playerNotificationIdadd player ID of player that changed the type to display a notification

Definition at line 583 of file SCR_NotificationSenderComponent.c.

◆ SetFriendlyFireKillFeedTypeBroadcast()

void SetFriendlyFireKillFeedTypeBroadcast ( SCR_EFriendlyFireKillFeedType friendlyFireKillFeedType)
protected

Definition at line 597 of file SCR_NotificationSenderComponent.c.

◆ SetKillFeedType()

void SetKillFeedType ( EKillFeedType killFeedType,
int playerNotificationId = -1 )
protected

Server set killfeed type

Parameters
[in]killFeedTypenew killfeed type to set
[in]playerNotificationIdadd player ID of player that changed the type to display a notification

Definition at line 523 of file SCR_NotificationSenderComponent.c.

◆ SetKillFeedTypeBroadcast()

void SetKillFeedTypeBroadcast ( EKillFeedType killFeedType)
protected

Definition at line 537 of file SCR_NotificationSenderComponent.c.

◆ SetReceiveKillFeedType()

void SetReceiveKillFeedType ( EKillFeedReceiveType receiveKillFeedType,
int playerNotificationId = -1 )
protected

Server set killfeed receive type

Parameters
[in]receiveKillFeedTypenew killfeed reveive type to set
[in]playerNotificationIdadd player ID of player that changed the type to display a notification

Definition at line 553 of file SCR_NotificationSenderComponent.c.

◆ SetReceiveKillFeedTypeBroadcast()

void SetReceiveKillFeedTypeBroadcast ( EKillFeedReceiveType receiveKillFeedType)
protected

Definition at line 567 of file SCR_NotificationSenderComponent.c.

Variable Documentation

◆ ALL

enum EKillFeedType ALL = 0
protected

Will see killfeed from allies and enemies alike.

From who will players receive kill notifications Noted that players with unlimited Editor will always see full killfeed if Editor is open

◆ ALLIES_ONLY

enum EKillFeedType ALLIES_ONLY = 20
protected

Will see killfeed from allies only.

◆ conf

Configs ServerBrowser KickDialogs conf

Definition at line 29 of file SCR_NotificationSenderComponent.c.

◆ DEFAULT_SETTINGS

enum EKillFeedType DEFAULT_SETTINGS = 0
protected

Kill feed will be default depending on EKillFeedType and EKillFeedFriendlyKillsType.

◆ desc

Configs ServerBrowser KickDialogs desc

Definition at line 29 of file SCR_NotificationSenderComponent.c.

◆ DISABLED

@ DISABLED = 0

Killfeed is disabled.

Definition at line 1 of file SCR_NotificationSenderComponent.c.

◆ ENEMIES_ONLY

enum EKillFeedType ENEMIES_ONLY = 10
protected

Will see killfeed from enemies only.

◆ FULL

FULL = 20

Will see every player (except possessed pawns) killed messages. Including killer.

Automatic shifting, reverse with brake input, automatic engine startup, persistent handbrake disabled when moving off.

Definition at line 3 of file SCR_NotificationSenderComponent.c.

◆ GROUP_ONLY

enum EKillFeedType GROUP_ONLY = 40
protected

Will see killfeed from group members only.

◆ m_bListeningToWeatherChanged

bool m_bListeningToWeatherChanged
protected

Definition at line 37 of file SCR_NotificationSenderComponent.c.

◆ m_FactionManager

SCR_FactionManager m_FactionManager
protected

Definition at line 34 of file SCR_NotificationSenderComponent.c.

◆ m_FactionOnSpawn

Faction m_FactionOnSpawn
protected

Definition at line 32 of file SCR_NotificationSenderComponent.c.

◆ m_iKillfeedreceiveType

EKillFeedReceiveType m_iKillfeedreceiveType
protected

Definition at line 1 of file SCR_NotificationSenderComponent.c.

◆ m_sKillfeedReceiveTypeName

LocalizedString m_sKillfeedReceiveTypeName
protected

Definition at line 4 of file SCR_NotificationSenderComponent.c.

◆ params

Configs ServerBrowser KickDialogs params

Definition at line 29 of file SCR_NotificationSenderComponent.c.

◆ SAME_FACTION_ONLY

enum EKillFeedType SAME_FACTION_ONLY = 30
protected

Will see killfeed from same faction only.

◆ SHOW_FRIENDLY_KILLS_TO_PLAYERS_INVOLVED

enum EKillFeedType SHOW_FRIENDLY_KILLS_TO_PLAYERS_INVOLVED = 10
protected

When a player is killed by a friendly faction both they and the killer will see the full notification of the teamkill.

◆ SHOW_FRIENDLY_KILLS_TO_TEAM

enum EKillFeedType SHOW_FRIENDLY_KILLS_TO_TEAM = 20
protected

When a player is killed by a friendly faction the both teams will see the full notification of the teamkill.

◆ UNKNOWN_KILLER

UNKNOWN_KILLER = 10

Will see killfeed messages but will never know who the killer is.

Definition at line 2 of file SCR_NotificationSenderComponent.c.