This article relates to the game "Empires". Click here for more information.

Emp info params: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created from FGD.)
 
m (Substituted IO templates)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{infotable
|emp_info_params
|type=e0
|engine=2
|in={{Empires|4}}
}}
{{Empires topicon}}
{{Empires topicon}}
{{this is a|e0|game=Empires|name=emp_info_params}} It contains various gameplay parameters and is a bridge for team-related IO.
{{CD|???}}
{{this is a|point entity|game=Empires|name=emp_info_params}} It contains various gameplay parameters and is a bridge for team-related IO.
{{Warning|Every Empires map must have ''exactly'' one of these entities on map start. Attempting to load a map that does not contain an emp_info_params entity will crash the game!}}
{{Warning|Every Empires map must have ''exactly'' one of these entities on map start. Attempting to load a map that does not contain an emp_info_params entity will crash the game!}}


==Keyvalues==
==Keyvalues==
{{KV|start}}


{{KV|new=true|skin|choices|Map Theme|value=Default|This is the setting/theme of the map and is only used to determine the camouflage that players wear.


{{KV|intn=AllowedTeams|Allowed Teams|choices|This controls which teams players will be able to join.
Values:
:*0: Both Teams
:*2: Northern Faction Only
:*3: Brenodi Empire Only
}}
{{Warning|This option does not affect victory conditions. Even when players are restricted to one team, both teams still need spawn points.}}
{{KV|intn=skin|Map Theme|choices|This is the setting/theme of the map and is only used to determine the camouflage that players wear.
Values:
Values:
:*0: Default
:*0: Default
Line 22: Line 22:
:*4: Urban
:*4: Urban
}}
}}
{{KV|new=true|AutoResearch|choices|Research Starts Complete|value=No|Setting this to 'Yes' will automatically research the Research Tree, both teams will have the research tree fully researched.  You can also add or remove research items using the maps .cfg file for server side settings.
{{KV|intn=AutoResearch|Research Starts Complete|choices|Setting this to 'Yes' will automatically research the Research Tree, both teams will have the research tree fully researched.  You can also add or remove research items using the maps .cfg file for server side settings.
 
Values:
Values:
:*0: No
:*0: No
:*1: Yes
:*1: Yes
}}
}}
{{KV|new=true|NFRes|int|Northern Faction Resources|value=100|The amount of resources the Northern Faction team starts with.}}
{{KV|intn=NFRes|Northern Faction Resources|int|value=100|The amount of resources the Northern Faction team starts with.}}
{{KV|new=true|ImpRes|int|Brenodi Empire Resources|value=100|The amount of resources the Brenodi Empire team starts with.}}
{{KV|intn=ImpRes|Brenodi Empire Resources|int|value=100|The amount of resources the Brenodi Empire team starts with.}}
{{KV|new=true|NFReinf|int|Northern Faction Reinforcements|value=100|The amount of reinforcements the Northern Faction team starts with.}}
{{KV|intn=NFReinf|Northern Faction Reinforcements|int|value=100|The amount of reinforcements the Northern Faction team starts with.}}
{{KV|new=true|ImpReinf|int|Brenodi Empire Reinforcements|value=100|The amount of reinforcements the Brenodi Empire team starts with.}}
{{KV|intn=ImpReinf|Brenodi Empire Reinforcements|int|value=100|The amount of reinforcements the Brenodi Empire team starts with.}}
{{KV|new=true|eng_restrict_NF|choices|Prevent NF Engineer Building|value=No Restriction|Select restrictions for the Northern Faction engineers from being able to build on this map.
{{KV|intn=eng_restrict_NF|Prevent NF Engineer Building|choices|value=No Restriction|Select restrictions for the Northern Faction engineers from being able to build on this map.
 
Values:
Values:
:*0: No Restriction
:*0: No Restriction
Line 39: Line 37:
:*2: Everything
:*2: Everything
}}
}}
{{KV|new=true|eng_restrict_Imp|choices|Prevent Brenodi Engineer Building|value=No Restriction|Select restrictions for the Brenodi Empire engineers from being able to build on this map.
{{KV|intn=eng_restrict_Imp|Prevent Brenodi Engineer Building|choices|Select restrictions for the Brenodi Empire engineers from being able to build on this map.
 
Values:
Values:
:*0: No Restriction
:*0: No Restriction
Line 46: Line 43:
:*2: Everything
:*2: Everything
}}
}}
{{KV|new=true|turretRestrict|choices|Prevent turret building|value=Allow level 1, 2 and 3 turrets|Select restrictions for the Brenodi Empire engineers from being able to build on this map.
{{KV|intn=turretRestrict|Prevent turret building|choices|Select restrictions for the Brenodi Empire engineers from being able to build on this map.
 
Values:  
Values:  
:*0: Allow level 1, 2 and 3 turrets
:*0: Allow level 1, 2 and 3 turrets
Line 54: Line 50:
:*3: Restrict turrets
:*3: Restrict turrets
}}
}}
{{KV|sectiontitle = Base}}
{{KV|new=true|targetname|string|src=Targetname|[[Targetname|Name]]|The [[Targetname|targetname]] that other entities refer to this entity by.}}
{{KV|end}}


==Inputs==
==Inputs==
{{IO|InputNFWin|Input for Northern Faction winning.|param=void}}
{{I|InputNFWin|Input for Northern Faction winning.|param=void}}
{{IO|InputImpWin|Input for Brenodi Empire winning.|param=void}}
{{I|InputImpWin|Input for Brenodi Empire winning.|param=void}}
{{IO|SetNFTickets|Set the Northern Faction tickets.|param=integer}}
{{I|SetNFTickets|Set the Northern Faction tickets.|param=integer}}
{{IO|SetBETickets|Set the Brenodi Empire tickets.|param=integer}}
{{I|SetBETickets|Set the Brenodi Empire tickets.|param=integer}}
{{IO|ModifyNFTickets|Modify the Northern Faction tickets.|param=integer}}
{{I|ModifyNFTickets|Modify the Northern Faction tickets.|param=integer}}
{{IO|ModifyBETickets|Modify the Brenodi Empire tickets.|param=integer}}
{{I|ModifyBETickets|Modify the Brenodi Empire tickets.|param=integer}}
{{IO|SetNFResources|Set the Northern Faction resources.|param=float}}
{{I|SetNFResources|Set the Northern Faction resources.|param=float}}
{{IO|SetBEResources|Set the Brenodi Empire resources.|param=float}}
{{I|SetBEResources|Set the Brenodi Empire resources.|param=float}}
{{IO|ModifyNFResources|Modify the Northern Faction resources.|param=float}}
{{I|ModifyNFResources|Modify the Northern Faction resources.|param=float}}
{{IO|ModifyBEResources|Modify the Brenodi Empire resources.|param=float}}
{{I|ModifyBEResources|Modify the Brenodi Empire resources.|param=float}}
{{IO|GetNFTickets|Get the Northern Faction tickets from OnGetNumber.|param=integer}}
{{I|GetNFTickets|Get the Northern Faction tickets from OnGetNumber.|param=integer}}
{{IO|GetBETickets|Get the Brenodi Empire tickets from OnGetNumber.|param=integer}}
{{I|GetBETickets|Get the Brenodi Empire tickets from OnGetNumber.|param=integer}}
{{IO|GetNFResources|Get the Northern Faction resources from OnGetNumber.|param=integer}}
{{I|GetNFResources|Get the Northern Faction resources from OnGetNumber.|param=integer}}
{{IO|GetBEResources|Get the Brenodi Empire resources from OnGetNumber.|param=integer}}
{{I|GetBEResources|Get the Brenodi Empire resources from OnGetNumber.|param=integer}}
{{I BaseEntity|base=1}}


==Outputs==
==Outputs==
{{IO|OnGetNFTickets|Outputs NF Tickets when requested.|param=integer}}
{{O|OnGetNFTickets|Outputs NF Tickets when requested.|param=integer}}
{{IO|OnGetBETickets|Outputs BE Tickets when requested.|param=integer}}
{{O|OnGetBETickets|Outputs BE Tickets when requested.|param=integer}}
{{IO|OnGetNFResources|Outputs NF Resources when requested.|param=integer}}
{{O|OnGetNFResources|Outputs NF Resources when requested.|param=integer}}
{{IO|OnGetBEResources|Outputs BE Resources when requested.|param=integer}}
{{O|OnGetBEResources|Outputs BE Resources when requested.|param=integer}}
{{IO|OnWaitPhaseEnd|Fires when the wait phase ends. Parameter is set to 1 if this map is a commander map.|param=integer|deprecated=1}}
{{O|OnWaitPhaseEnd|Fires when the wait phase ends. Parameter is set to 1 if this map is a commander map.|param=integer|deprecated=1}}
{{IO|OnPhaseBeginTactics|Fires when the tactics phase begins or is skipped.|param=void}}
{{O|OnPhaseBeginTactics|Fires when the tactics phase begins or is skipped.|param=void}}
{{IO|OnPhaseBeginWait|Fires when the commander vote/player wait phase begins.|param=void}}
{{O|OnPhaseBeginWait|Fires when the commander vote/player wait phase begins.|param=void}}
{{IO|OnPhaseBeginGame|Fires when the game begins.|param=void}}
{{O|OnPhaseBeginGame|Fires when the game begins.|param=void}}
{{IO|OnPhaseBeginInfSuddenDeath|Fires when infantry sudden death begins.|param=void}}
{{O|OnPhaseBeginInfSuddenDeath|Fires when infantry sudden death begins.|param=void}}
{{IO|OnPhaseBeginCVSuddenDeath|Fires when the CV sudden death begins.|param=void}}
{{O|OnPhaseBeginCVSuddenDeath|Fires when the CV sudden death begins.|param=void}}
{{IO|OnGameEnd|Fires when the game ends, one way or another.|param=void}}
{{O|OnGameEnd|Fires when the game ends, one way or another.|param=void}}
{{IO|OnGameOutcomeNFWin|Fires when NF wins the game.|param=void}}
{{O|OnGameOutcomeNFWin|Fires when NF wins the game.|param=void}}
{{IO|OnGameOutcomeNFLose|Fires when NF loses the game.|param=void}}
{{O|OnGameOutcomeNFLose|Fires when NF loses the game.|param=void}}
{{IO|OnGameOutcomeBEWin|Fires when BE wins the game.|param=void}}
{{O|OnGameOutcomeBEWin|Fires when BE wins the game.|param=void}}
{{IO|OnGameOutcomeBELose|Fires when BE loses the game.|param=void}}
{{O|OnGameOutcomeBELose|Fires when BE loses the game.|param=void}}
{{O BaseEntity}}

Latest revision as of 10:07, 21 April 2025

C++ Class hierarchy
???
CBaseEntity

emp_info_params is a point entity available in Empires Empires. It contains various gameplay parameters and is a bridge for team-related IO.

Warning.pngWarning:Every Empires map must have exactly one of these entities on map start. Attempting to load a map that does not contain an emp_info_params entity will crash the game!

Keyvalues

Allowed Teams (AllowedTeams) <choices>
This controls which teams players will be able to join.

Values:

  • 0: Both Teams
  • 2: Northern Faction Only
  • 3: Brenodi Empire Only
Warning.pngWarning:This option does not affect victory conditions. Even when players are restricted to one team, both teams still need spawn points.
Map Theme (skin) <choices>
This is the setting/theme of the map and is only used to determine the camouflage that players wear.

Values:

  • 0: Default
  • 1: Woodland
  • 2: Snow
  • 3: Desert
  • 4: Urban
Research Starts Complete (AutoResearch) <choices>
Setting this to 'Yes' will automatically research the Research Tree, both teams will have the research tree fully researched. You can also add or remove research items using the maps .cfg file for server side settings.

Values:

  • 0: No
  • 1: Yes
Northern Faction Resources (NFRes) <integer>
The amount of resources the Northern Faction team starts with.
Brenodi Empire Resources (ImpRes) <integer>
The amount of resources the Brenodi Empire team starts with.
Northern Faction Reinforcements (NFReinf) <integer>
The amount of reinforcements the Northern Faction team starts with.
Brenodi Empire Reinforcements (ImpReinf) <integer>
The amount of reinforcements the Brenodi Empire team starts with.
Prevent NF Engineer Building (eng_restrict_NF) <choices>
Select restrictions for the Northern Faction engineers from being able to build on this map.

Values:

  • 0: No Restriction
  • 1: Walls
  • 2: Everything
Prevent Brenodi Engineer Building (eng_restrict_Imp) <choices>
Select restrictions for the Brenodi Empire engineers from being able to build on this map.

Values:

  • 0: No Restriction
  • 1: Walls
  • 2: Everything
Prevent turret building (turretRestrict) <choices>
Select restrictions for the Brenodi Empire engineers from being able to build on this map.

Values:

  • 0: Allow level 1, 2 and 3 turrets
  • 1: Allow level 1 and 2 turrets
  • 2: Allow level 1 turrets
  • 3: Restrict turrets

Inputs

InputNFWin <void>
Input for Northern Faction winning.
InputImpWin <void>
Input for Brenodi Empire winning.
SetNFTickets <integerRedirectInput/integer>
Set the Northern Faction tickets.
SetBETickets <integerRedirectInput/integer>
Set the Brenodi Empire tickets.
ModifyNFTickets <integerRedirectInput/integer>
Modify the Northern Faction tickets.
ModifyBETickets <integerRedirectInput/integer>
Modify the Brenodi Empire tickets.
SetNFResources <floatRedirectInput/float>
Set the Northern Faction resources.
SetBEResources <floatRedirectInput/float>
Set the Brenodi Empire resources.
ModifyNFResources <floatRedirectInput/float>
Modify the Northern Faction resources.
ModifyBEResources <floatRedirectInput/float>
Modify the Brenodi Empire resources.
GetNFTickets <integerRedirectInput/integer>
Get the Northern Faction tickets from OnGetNumber.
GetBETickets <integerRedirectInput/integer>
Get the Brenodi Empire tickets from OnGetNumber.
GetNFResources <integerRedirectInput/integer>
Get the Northern Faction resources from OnGetNumber.
GetBEResources <integerRedirectInput/integer>
Get the Brenodi Empire resources from OnGetNumber.

Outputs

OnGetNFTickets <integerRedirectOutput/integer>
Outputs NF Tickets when requested.
OnGetBETickets <integerRedirectOutput/integer>
Outputs BE Tickets when requested.
OnGetNFResources <integerRedirectOutput/integer>
Outputs NF Resources when requested.
OnGetBEResources <integerRedirectOutput/integer>
Outputs BE Resources when requested.
OnWaitPhaseEnd <integerRedirectOutput/integer> Obsolete
Deprecated.
Fires when the wait phase ends. Parameter is set to 1 if this map is a commander map.
OnPhaseBeginTactics <void>
Fires when the tactics phase begins or is skipped.
OnPhaseBeginWait <void>
Fires when the commander vote/player wait phase begins.
OnPhaseBeginGame <void>
Fires when the game begins.
OnPhaseBeginInfSuddenDeath <void>
Fires when infantry sudden death begins.
OnPhaseBeginCVSuddenDeath <void>
Fires when the CV sudden death begins.
OnGameEnd <void>
Fires when the game ends, one way or another.
OnGameOutcomeNFWin <void>
Fires when NF wins the game.
OnGameOutcomeNFLose <void>
Fires when NF loses the game.
OnGameOutcomeBEWin <void>
Fires when BE wins the game.
OnGameOutcomeBELose <void>
Fires when BE loses the game.