Sir skurpsalot player fixes & tweaks (v2)#1715
Open
Sir-Skurpsalot wants to merge 6 commits intoTorqueGameEngines:developmentfrom
Open
Sir skurpsalot player fixes & tweaks (v2)#1715Sir-Skurpsalot wants to merge 6 commits intoTorqueGameEngines:developmentfrom
Sir-Skurpsalot wants to merge 6 commits intoTorqueGameEngines:developmentfrom
Conversation
1.added min and max prone look angle to datablock 2.added crawlsound, triggered like footsteps by animation trigger 3 3.added missing code for prone_side and prone_right animations 4.replaced box left/right/back/front head percentages with torso percentages, makes more sense for general use. 5.getDamageLocation() overhauled for better results in every pose 6.tweak to canSwim() to make sure player is actually submerged enough for the swim bounding box 7.fixed canCrouch(), canProne(), and canStand() calculations to work with lower boxSize.z values. 8.swapped order of canCrouch() and canProne() checks crouch so crouch does not need to be released in order to go prone (allows for scripting momentary crouch but toggle prone type setup if desired) 9.Added an engineMethod to check canProne() from script 10.tweaked canSprint to not allow if mWaterCoverage > 0.5
fixed validator stuff
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.
1.added min and max prone look angle to datablock
2.added crawlsound, triggered like footsteps by animation trigger 3
3.added missing code for prone_side and prone_right animations
4.replaced box left/right/back/front head percentages with torso percentages, makes more sense for general use.
5.getDamageLocation() overhauled for better results in every pose
6.tweak to canSwim() to make sure player is actually submerged enough for the swim bounding box
7.fixed canCrouch(), canProne(), and canStand() calculations to work with lower boxSize.z values.
8.swapped order of canCrouch() and canProne() checks crouch so crouch does not need to be released in order to go prone (allows for scripting momentary crouch but toggle prone type setup if desired)
9.Added an engineMethod to check canProne() from script
10.tweaked canSprint to not allow if mWaterCoverage > 0.5