![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Classes | |
| class | SCR_CampaignFactionCommanderHandlerComponentClass |
| Handles voting and AI decisions for the faction Commander role in Conflict. Should be attached to gamemode entity. More... | |
Variables | |
| Prefabs Tasks SeizeCampaignMilitaryBaseTaskEntity | et |
| SCR_CampaignFactionCommanderHandlerComponentClass SCR_FactionCommanderHandlerComponentClass Attribute | ( | "100" | , |
| desc:"How far from the Establish task will players still be able to build a new base." | , | ||
| params:"0 inf 1" | ) |
Definition at line 1 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Awards a fraction of gained player XP to Commander The amount of XP added is determined by the original amount of XP multiplied by Commander Reward XP Amount Fraction
| [in] | commander | player Id |
| [in] | rewardId | |
| [in] | XPToAdd | - the original amount of XP gained |
Definition at line 280 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Definition at line 111 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Create seize task
| [in] | faction | |
| [in] | targetBase |
Definition at line 157 of file SCR_CampaignFactionCommanderHandlerComponent.c.
| int GetBaseEstablishingRadius | ( | ) |
Definition at line 23 of file SCR_CampaignFactionCommanderHandlerComponent.c.
| int GetBaseMinDistance | ( | notnull SCR_CampaignMilitaryBaseComponent | base | ) |
| [in] | base |
Definition at line 31 of file SCR_CampaignFactionCommanderHandlerComponent.c.
| int GetBaseMinDistance | ( | SCR_ECampaignBaseType | baseType | ) |
| [in] | baseType |
Definition at line 39 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Definition at line 206 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Definition at line 48 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Definition at line 96 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Definition at line 64 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Called after a player is disconnected.
| [in] | playerId | PlayerId of disconnected player. |
| [in] | cause | Reason player disconnected |
| [in] | timeout | Timeout for when players are allowed to connect again. -1 means Ban without an assigned timeout |
What happens when a player disconnects.
| [in] | playerID | is a unique player identifier that defines which player has disconnected. |
| [in] | cause | |
| [in] | timeout |
Definition at line 306 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Called after a player gets killed.
| [in] | instigatorContextData | Holds the data of the victim and killer |
| [in] | playerId | |
| [in] | playerEntity | |
| [in] | killerEntity | |
| [in] | killer |
Definition at line 323 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Called on every machine after a player is registered (identity, name etc.). Always called after OnPlayerConnected.
| [in] | playerId | PlayerId of registered player. |
Definition at line 298 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Player XP changed, award commander a fraction of gained XP if eligible for the reward
| [in] | playerId | |
| [in] | currentXP | |
| [in] | XPToAdd | |
| [in] | rewardId |
Definition at line 248 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Definition at line 75 of file SCR_CampaignFactionCommanderHandlerComponent.c.
Definition at line 314 of file SCR_CampaignFactionCommanderHandlerComponent.c.
Definition at line 341 of file SCR_CampaignFactionCommanderHandlerComponent.c.
|
protected |
Definition at line 394 of file SCR_CampaignFactionCommanderHandlerComponent.c.
| Prefabs Tasks SeizeCampaignMilitaryBaseTaskEntity et |
Definition at line 20 of file SCR_CampaignFactionCommanderHandlerComponent.c.