branchrust_reboot/main/NewWoundingcancel

116 Commits over 30 Days - 0.16cph!

3 Years Ago
Allow crawling players to use doors, gates, and hatches
3 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.
3 Years Ago
Replace wounded start anim so it shows crawl->incapacitated instead of stand->incapacitated
3 Years Ago
Added new UsableWhileWounded menu attribute and added it to the code generator
3 Years Ago
Don't show interaction if interaction is not possible
3 Years Ago
Prevent interaction while crawling (will add special cases later)
3 Years Ago
Merge Main->NewWounding
3 Years Ago
Merge Main->NewWounding
3 Years Ago
Adding a future option to cancel any pending health when entering wounded state. Currently unused.
3 Years Ago
added crawl to wounded player anim
3 Years Ago
updated blendtree and wounded player anims
3 Years Ago
Added crawlingminhealth and crawlingmaxhealth convars
3 Years Ago
Fixed ducking while crawling affecting the player's view position
3 Years Ago
More eye fixes, crawling looking good from first-person at all angles now
3 Years Ago
Remove debug print
3 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)
3 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.
3 Years Ago
Various changes to accommodate crawling into eye and view code
3 Years Ago
Add crawling position to the IsPlayerVisible checks
3 Years Ago
Reduced eight IsPlayerVisible check methods to one.
3 Years Ago
Fix the slow animation always playing on the world space player. All correct syringe animations now play
3 Years Ago
Adjust use_other_wounded viewmodel animation event position and overall speed so that the event fires right at 5.25s
3 Years Ago
updated vm healing player wounded and updated speed playback of anim in animator
3 Years Ago
updated override controller to play correct anim when healing wounded players
3 Years Ago
updated vm anim for healing wounded players
3 Years Ago
Setting up world model alt animation for wounded player syringe use. Set modelState.aiming = true for the duration.
3 Years Ago
Merge Main->NewWounding
3 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.
3 Years Ago
Reorder recovery code. Check needs to be done before the flags reset
3 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.
3 Years Ago
extended syringe player anim
3 Years Ago
Revert syringes to not revive players, at least until/unless we get a longer animation variant done
3 Years Ago
▄▆▌▅▅▇▇▅▋ ▄█ ▅▇█▆▆ ▉▉▊ ▆▉▇▄▍▇▅ ▍█▌▄ ▇▆▄▆▅▇▇▄▇ ▍▌ ▌▅▄
3 Years Ago
Syringe use on a wounded player now revives them again (was disabled intentionally in #15918, Aug 2016)
3 Years Ago
Cap health to 20HP when revived
3 Years Ago
Recover properly
3 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.
3 Years Ago
Increase woundedmaxfoodandwaterbonus from 20% to 25%
3 Years Ago
Fix inverse lerp that should have been a lerp.
3 Years Ago
Minor syntax edit
3 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.
3 Years Ago
Food and water levels now affect recovery chance from wounded state. Added convar woundedmaxfoodandwaterbonus that sets the maximum percent chance increase
3 Years Ago
Minor spelling edit
3 Years Ago
Editor-only convars for dev. WoundedFreeCamera and WoundedNeverEnds. Also in the Rust Editor window.
3 Years Ago
Change crawl speed to 0.6m/s to correctly match the animation speed
3 Years Ago
Recover chance difference for crawling vs. incapacitated. Added convars for each.
3 Years Ago
Reset wounded timer if player goes from crawling to incapacitated. Some refactoring.
3 Years Ago
Set speed thresholds in the crawling blendtree to 0.5 instead of 1.0, since we only crawl at 0.75 (currently)
3 Years Ago
Animation: Give look look direction a 0 weight while crawling.
3 Years Ago
Don't show health while wounded