Skip to content
Discussion options

You must be logged in to vote

So, up to now, the best workaround seems to be:

  demoFile.entities.on('change', ({ tableName, varName, newValue }) => {
    if (tableName === 'DT_CSGameRules' && varName === 'm_bFreezePeriod' && !newValue) {
      demoFile.gameEvents.emit('round_freeze_end', {});
    }
  });

In my case, I don't really care that round_freeze_end is fired twice for most of the rounds since I only use that event to set up some variables.

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by saul
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #185 on February 28, 2021 14:00.