Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add modifiable clock rate for spawn attempts #186

Merged
merged 5 commits into from
Feb 19, 2023

Conversation

SpicyBagpipes
Copy link
Contributor

No description provided.

@@ -125,3 +125,14 @@ private _settingsGroup = ["GRAD Civilians", "2) lifecycle - performance & spawni
},
false
] call CBA_fnc_addSetting;

[
QGVAR(clockrate),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

semantic nitpick: a rate is a count over time (like, X per second) whereas this setting here is a time value (delay or timeout in seconds).

Either:

  • we rename this var accordingly (maybe "spawnDelay")?,

Or:

  • change description to "spawn attempts per second" and
  • a value of 1 / GVAR(clockrate) in the CBA_fnc_addPerFrameHandler call below

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll just go ahead and do the latter one, I like that

@Fusselwurm Fusselwurm merged commit 7ae6688 into gruppe-adler:main Feb 19, 2023
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.

2 participants