[Enhancement] Scale Enemy Health with Size#3393
Merged
briaguya0 merged 1 commit intoHarbourMasters:developfrom Dec 28, 2023
Merged
[Enhancement] Scale Enemy Health with Size#3393briaguya0 merged 1 commit intoHarbourMasters:developfrom
briaguya0 merged 1 commit intoHarbourMasters:developfrom
Conversation
briaguya0
approved these changes
Nov 19, 2023
|
|
||
| if (CVarGetInteger("gEnemySizeScalesHealth", 0) && (actor->category == ACTORCAT_ENEMY)) { | ||
| // Scale the health based on a smaller factor than randomScale | ||
| float healthScalingFactor = 0.8f; // Adjust this factor as needed |
Contributor
There was a problem hiding this comment.
How much has this been playtested to make sure it makes sense?
I imagine the smallest enemy should probably be a one hit kill, whereas the largest probably should have like 3x the amount of health?
Contributor
Author
There was a problem hiding this comment.
I have tested it a bit, but I will do more testing today.
And bigger does mean tougher in this PR. That's the whole point..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When Randomized Enemy Sizes is on, this can be toggled on to also scale the health based on the enemies sizes. It will only affect normal enemies and not bosses, due to how their health is handled differently.
Build Artifacts