Game mp gamerules: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{This is a|name=game_mp_gamerules|e0|game=Black Mesa|}} This entity allow mappers to control some multiplayer gamerules via Hammer and I/O. {{important| This entity does...")
 
(No idea. datamaps.txt says "CBaseEntity - game_mp_gamerules", but CBM_MP_GameRules don't have it in VTable Dumper. Found EntityMpGameRules, but it don't have anything related to the inputs, while CBM_MP_GameRules have some stuff.)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{This is a|name=game_mp_gamerules|e0|game=Black Mesa|}} This entity allow mappers to control some multiplayer gamerules via [[Hammer]] and I/O.
{{CDA|EntityMpGameRules|CBaseEntity|}}
{{important| This entity does not offer management of ALL multiplayer gamerules; some gamerules can be changed through console commands. {{todo|Document all known cvars that can change multiplayer gamerules.}}}}
{{this is a|logical entity|name=game_mp_gamerules|game=Black Mesa}} This entity allows mappers to control some multiplayer gamerules via [[Hammer]] and inputs.
{{back | Black Mesa Level Creation}}


==Keyvalues==
{{important| This entity does not offer management of ''all'' multiplayer gamerules; some gamerules can only be changed through console commands. {{todo|Document all known cvars that can change multiplayer gamerules.}}}}
{{IO|EnableCanisterDrops|param=void|Enable canister drops on death (canisters drop enabled by default), from a player after death will drop [[item_ammo_canister]] which will contain most of the player's ammunition.}}
{{IO|DisableCanisterDrops|param=void|Disable canister drops on death (canisters drop enabled by default), from a player after death will drop nothing with exception of corpuses.}}
{{IO|SetPointsPerFrag|param=integer|Set how many points players will get for each kill. Doesn't effect suicide points.}}
{{KV BaseEntity|base=1}}


==Inputs==
== Inputs ==
{{I BaseEntity|base=1}}
{{I|EnableCanisterDrops|param=void|Enable canister drops on death (canisters drop enabled by default), from a player after death will drop [[item_ammo_box]] which will contain most of the player's ammunition.}}
 
{{I|DisableCanisterDrops|param=void|Disable canister drops on death (canisters drop enabled by default), from a player after death will drop nothing with exception of corpuses.}}
==Outputs==
{{I|SetPointsPerFrag|param=integer|Set how many points players will get for each kill. Doesn't effect suicide points.}}
{{O BaseEntity}}

Latest revision as of 02:17, 27 May 2025

C++ Class hierarchy
EntityMpGameRules
CBaseEntity

game_mp_gamerules is a logical entity available in Black Mesa Black Mesa. This entity allows mappers to control some multiplayer gamerules via Hammer and inputs.

Icon-Important.pngImportant: This entity does not offer management of all multiplayer gamerules; some gamerules can only be changed through console commands.
Todo: Document all known cvars that can change multiplayer gamerules.

Inputs

EnableCanisterDrops <void>
Enable canister drops on death (canisters drop enabled by default), from a player after death will drop item_ammo_box which will contain most of the player's ammunition.
DisableCanisterDrops <void>
Disable canister drops on death (canisters drop enabled by default), from a player after death will drop nothing with exception of corpuses.
SetPointsPerFrag <integerRedirectInput/integer>
Set how many points players will get for each kill. Doesn't effect suicide points.