Godmode fix for DMG_CRUSH and point_hurt#1188
Merged
rtldg merged 3 commits intoshavitush:masterfrom Apr 29, 2023
Merged
Conversation
Collaborator
|
Can you split these into two separate cvar values (4 & 5)? |
Contributor
Author
|
For the world/fall damage also preventing damage from entities I understand, but what would be the other option? |
Collaborator
|
Oh yeah I guess the thing for case 2 doesn't really need to be split out. |
Contributor
Author
|
This should do, I hope I didn't miss anything and didn't create any error. |
…ed too since the convar has min/max limits
Contributor
Author
|
Didn't know ty for merging |
Collaborator
|
yeah it's a sourcepawn quirk that I forgot about too that thankfully the workflow threw an error for |
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.
Fixes DMG_CRUSH (by moving/falling objects for example (with cs_enable_player_physics_box 1))
Handles correctly damage dealt by point_hurt entities (see https://developer.valvesoftware.com/wiki/Point_hurt)
IMPORTANT:shavit_misc_godmode 1will now block damage dealt by ALL entities that aren't players, instead of only 0 (world).If you don't want to make it like that, please tell me.
-- Added
shavit_misc_godmode 4for that