-
Notifications
You must be signed in to change notification settings - Fork 740
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
optimize suicide bomber zeus module #6314
Conversation
- decrease check frequency from each frame to 1 per second - simplify some math - remove some very redundant parenthesis - re-formated if control structure for readability
Btw. this module uses |
On second thought, I don't think the math turns out to be the same. But the original one is kind of weird, I'm not sure what was intended. Original:
This PR:
|
I think the maths makes more sense after this |
Also I'm pretty sure one wants to use |
One could also argue that the area the suicide bomber scans around him should grow linearly with skill, instead of the distance, but that's probably pedantic at that point. |
The distance scaling in this PR is what was intended and |
- revert to intended spotting distance formula, clarify in comment - use more appropriate skillFinal - macro to change check delay, set to 0 in debug mode for debug line drawing
Done. |
Oh no! Sorry for the confusion, I meant the changes introduced in this PR ( |
- revert the revert of the suicide bomber spotting distance calculation
- decrease check frequency from each frame to 1 per second - simplify some math - remove some very redundant parenthesis - re-formated if control structure for readability - use more appropriate skillFinal - macro to change check delay, set to 0 in debug mode for debug line drawing
When merged this pull request will:
skillFinal