1[
EntityEditorProps(
category:
"GameScripted/GameMode", description:
"Takes care of loading and storing player profile data.", color:
"0 0 255 255")]
16 [
Attribute(
"1",
"Refresh time for profile loading. [s]")]
47 super.OnPlayerKilled(instigatorContextData);
50 int killerId = instigatorContextData.GetKillerPlayerID();
73 if (instigatorContextData.DoesPlayerKillCountAsTeamKill())
105 if (!playerProfile || !
m_Callback || !campaign)
114 backendAPI.PlayerCharacterUpdateS2S(
m_Callback, playerProfile, playerID);
116 backendAPI.PlayerDevCharacterUpdate(
m_Callback, playerProfile, playerID);
135 GetGame().GetBackendApi().PlayerData(playerProfile, playerID);
207 SCR_RespawnSystemComponent respawnSystem = SCR_RespawnSystemComponent.Cast(owner.
FindComponent(SCR_RespawnSystemComponent));
211 Print(
"There is no RespawnSystemComponent attached to the GameMode entity. Faction scoring will not work.",
LogLevel.WARNING);
ArmaReforgerScripted GetGame()
void SCR_BaseGameModeComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
void OnPlayerKilled(notnull SCR_InstigatorContextData instigatorContextData)
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
SCR_ECharacterControlType
What kind of controller the character or (in some cases vehicle) has, eg: AI, Player,...
SCR_ECharacterDeathStatusRelations
void SCR_FactionManager(IEntitySource src, IEntity parent)
void SCR_GameModeCampaign(IEntitySource src, IEntity parent)
bool LoadPlayerProfileFromBackend(int playerID)
override void EOnFrame(IEntity owner, float timeSlice)
void SCR_PlayerProfileManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
float m_fCurrentRefreshTime
CareerBackendData GetPlayerProfile(int playerID)
ref BackendCallback m_Callback
ref map< int, ref CareerBackendData > m_mPlayerProfiles
void StoreProfile(int playerID, bool disconnecting=false)
void LoadConnectingPlayerProfile(int playerID)
Faction GetPlayerFaction(int playerID)
ref array< int > m_aPlayerIDsToLoadProfile
SCR_PlayerProfileManagerComponentClass s_RespawnSystemComponent
void AddKill(bool friendly=false)
proto external Managed FindComponent(typename typeName)
proto external EntityFlags SetFlags(EntityFlags flags, bool recursively=false)
override void EOnInit(IEntity owner)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
SCR_FieldOfViewSettings Attribute
EntityEvent
Various entity events.
EntityFlags
Various entity flags.
override void OnPlayerDisconnected(int playerId, KickCauseCode cause, int timeout)
EDsSessionState
Session state.