Skip to content

Knowing if it is Warmup time? #674

Discussion options

You must be logged in to vote

After experimenting and stumbling on these docs: https://cs2.poggu.me/dumped-data/entity-list/
I managed to get gamerules working by changing
var gameRules = Utilities.FindAllEntitiesByDesignerName<CBaseEntity>("cs_gamerules").Single().As<CCSGameRules>();
to
var gameRules = Utilities.FindAllEntitiesByDesignerName<CBaseEntity>("cs_gamerules").Single().As<CCSGameRulesProxy>().GameRules!;

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@antero-lukkonen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by antero-lukkonen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants