Blackmesa sp gamerules: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{CDA|CBM_SP_GameRulesProxy|CGameRulesProxy|CBaseEntity|}}
{{ent not in fgd|nolink=1|because=it spawns automatically initially, you can't use it anyhow as well}}
{{ent not in fgd|nolink=1|because=it spawns automatically initially, you can't use it anyhow as well}}
{{this is a|logical entity|name=blackmesa_sp_gamerules|game=Black Mesa}} This entity controls singleplayer game rules. Spawns automatically with map launch.  
{{this is a|logical entity|name=blackmesa_sp_gamerules|game=Black Mesa}} This entity controls singleplayer game rules. Spawns automatically with map launch.  
Line 10: Line 11:


This breaks entire game if will not use {{command|map|mapname}} or {{command|restart}} console commands. The issues will continue happen even if you'll spawn this entity via {{ent|ent_create|blackmesa_sp_gamerules}}.
This breaks entire game if will not use {{command|map|mapname}} or {{command|restart}} console commands. The issues will continue happen even if you'll spawn this entity via {{ent|ent_create|blackmesa_sp_gamerules}}.
Represented by class <code>CBM_SP_GameRulesProxy</code>.

Latest revision as of 23:03, 26 May 2025

C++ Class hierarchy
CBM_SP_GameRulesProxy
CGameRulesProxy
CBaseEntity
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it spawns automatically initially, you can't use it anyhow as well.

blackmesa_sp_gamerules is a logical entity available in Black Mesa Black Mesa. This entity controls singleplayer game rules. Spawns automatically with map launch.

Killing this entity will give the player the ability to be reborn, but it will also cause multiple problems:

  • You can't pick up items (weapons still can be picked up with +use).
  • Collisions with physics and dynamic objects (NPCs, prop_dynamic, etc) are broken.
  • You can't touch triggers.
  • Bullets can't hit you.
Confirm:More ?

This breaks entire game if will not use map mapname or restart console commands. The issues will continue happen even if you'll spawn this entity via ent_create blackmesa_sp_gamerules.