Game mp gamerules: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 4: Line 4:


==Keyvalues==
==Keyvalues==
{{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|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.}}
{{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|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.}}
{{IO|SetPointsPerFrag|param=integer|Set how many points players will get for each kill. Doesn't effect suicide points.}}

Revision as of 00:25, 18 February 2024

game_mp_gamerules is an e0 available in Black Mesa Black Mesa. This entity allows mappers to control some multiplayer gamerules via Hammer and I/O.

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.
Black Mesa Level Creation

Keyvalues

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.


Inputs

Outputs