Skip to content

Redirect CGameRulesProxy to CGameRules in CScriptNetPropManager#535

Open
azzyr wants to merge 1 commit into
mapbase-mp-2025from
feature/gamerules-netpropmanager
Open

Redirect CGameRulesProxy to CGameRules in CScriptNetPropManager#535
azzyr wants to merge 1 commit into
mapbase-mp-2025from
feature/gamerules-netpropmanager

Conversation

@azzyr
Copy link
Copy Markdown
Collaborator

@azzyr azzyr commented May 14, 2026

This PR makes CScriptNetPropManager handle GameRules proxy entities by redirecting networked property access from CGameRulesProxy to the underlying CGameRules object

This matches TF2 SDK behavior and fixes GetProp/SetProp methods returning 0 for gamerules properties
NetProps.GetPropInt(Entities.FindByClassname(null, "tf_gamerules"), "m_iRoundState")


Does this PR close any issues?

  • Not to my knowledge

PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant