branchrust_reboot/main/NewWoundingcancel

116 Commits over 30 Days - 0.16cph!

4 Years Ago
Allow crawling players to use doors, gates, and hatches
4 Years Ago
If there are UI actions on the thing being looked at, but none of them are currently available to be shown, don't return any of them. Previously if no options were available, the first option would be returned.
4 Years Ago
Replace wounded start anim so it shows crawl->incapacitated instead of stand->incapacitated
4 Years Ago
Added new UsableWhileWounded menu attribute and added it to the code generator
4 Years Ago
Don't show interaction if interaction is not possible
4 Years Ago
Prevent interaction while crawling (will add special cases later)
4 Years Ago
Merge Main->NewWounding
4 Years Ago
Merge Main->NewWounding
4 Years Ago
Adding a future option to cancel any pending health when entering wounded state. Currently unused.
4 Years Ago
added crawl to wounded player anim
4 Years Ago
updated blendtree and wounded player anims
4 Years Ago
Added crawlingminhealth and crawlingmaxhealth convars
4 Years Ago
Fixed ducking while crawling affecting the player's view position
4 Years Ago
More eye fixes, crawling looking good from first-person at all angles now
4 Years Ago
Remove debug print
4 Years Ago
Fixed eye position not handling view offsets with a z offset (keep old handling for mountables where we want to cancel the x/z - see #22833)
4 Years Ago
Get the view height right for first-person crawling. Change crawling cam to FirstPersonWithArms. Fix BodyLeanOffset not handling view offsets that aren't y-axis only.
4 Years Ago
Various changes to accommodate crawling into eye and view code
4 Years Ago
Add crawling position to the IsPlayerVisible checks
4 Years Ago
Reduced eight IsPlayerVisible check methods to one.
4 Years Ago
Fix the slow animation always playing on the world space player. All correct syringe animations now play
4 Years Ago
Adjust use_other_wounded viewmodel animation event position and overall speed so that the event fires right at 5.25s
4 Years Ago
updated vm healing player wounded and updated speed playback of anim in animator
4 Years Ago
updated override controller to play correct anim when healing wounded players
4 Years Ago
updated vm anim for healing wounded players
4 Years Ago
Setting up world model alt animation for wounded player syringe use. Set modelState.aiming = true for the duration.
4 Years Ago
Merge Main->NewWounding
4 Years Ago
Re-enable syringe revives with longer, 5.25 second animation. Need viewmodel animation replacement - using a slowed-down version for now. World model update not done yet.
4 Years Ago
Reorder recovery code. Check needs to be done before the flags reset
4 Years Ago
Remove 20HP revive cap, reverting behaviour to how it is on release so that players can heal while wounded and keep it all when revived. Add special handling for crawling state, so player can have more health while crawling, yet revive from crawling to having a weak amount of health, and also still take into account healing gained while in crawling state.
4 Years Ago
extended syringe player anim
4 Years Ago
Revert syringes to not revive players, at least until/unless we get a longer animation variant done
4 Years Ago
▄▆▌▅▅▇▇▅▋ ▄█ ▅▇█▆▆ ▉▉▊ ▆▉▇▄▍▇▅ ▍█▌▄ ▇▆▄▆▅▇▇▄▇ ▍▌ ▌▅▄
4 Years Ago
Syringe use on a wounded player now revives them again (was disabled intentionally in #15918, Aug 2016)
4 Years Ago
Cap health to 20HP when revived
4 Years Ago
Recover properly
4 Years Ago
Change to large medkit recovery. Only use up the large medkit to recover if the player fails their recovery check and was going to die. So if they get lucky and would have recovered for free anyway, the medkit is not used up.
4 Years Ago
Increase woundedmaxfoodandwaterbonus from 20% to 25%
4 Years Ago
Fix inverse lerp that should have been a lerp.
4 Years Ago
Minor syntax edit
4 Years Ago
Is player has a large medkit in their belt when becoming wounded, their chance to recover when time runs out is locked at 100%. Recovering then uses up the medkit but doesn't provide any bonus health.
4 Years Ago
Food and water levels now affect recovery chance from wounded state. Added convar woundedmaxfoodandwaterbonus that sets the maximum percent chance increase
4 Years Ago
Minor spelling edit
4 Years Ago
Editor-only convars for dev. WoundedFreeCamera and WoundedNeverEnds. Also in the Rust Editor window.
4 Years Ago
Change crawl speed to 0.6m/s to correctly match the animation speed
4 Years Ago
Recover chance difference for crawling vs. incapacitated. Added convars for each.
4 Years Ago
Reset wounded timer if player goes from crawling to incapacitated. Some refactoring.
4 Years Ago
Set speed thresholds in the crawling blendtree to 0.5 instead of 1.0, since we only crawl at 0.75 (currently)
4 Years Ago
Animation: Give look look direction a 0 weight while crawling.
4 Years Ago
Don't show health while wounded