Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playermodel legs and other player anim improvements #316

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Blixibon
Copy link
Member

This PR makes the following player model-related changes:

  • Support for player legs - Uses a modified version of the built-in meathook camera. Every standard human animation model will have a new KV block defining camera offsets, which can be seen in Improved player animations mapbase-model-src#4 alongside other changes related to this PR. Unique models which don't use HL2 human animations may need to define their own to work properly as legs.
  • Improved Animation State
    • Weapon lowering gestures - The playermodel will visibly lower its weapon according to the viewmodel.
    • Better duck timing - The playermodel matches up with the player's actual duck timing better.
    • Player choreo gestures - The playermodel will play gestures from choreographed scenes.
    • Other miscellaneous fixes and improvements, including fixes related to the weapon model not drawing properly in first/third person or emitting muzzle flashes in strange ways.
  • Better shadow control - 4 cvars related to the player model separately casting projected texture and RTT shadows in first and third person mode have been added. They are prefixed with cl_player_allow_.

Unique walking animations have also been disabled in favor of slowed running animations for the time being. They can be re-enabled using sv_playeranimstate_use_walk_anims.

The animation state class has also been renamed from "Singleplayer animation state" to "Mapbase animation state" due to having several independent changes which may be carried over to the MP port.


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

@Blixibon Blixibon force-pushed the mapbase/feature/improved-animstate branch 2 times, most recently from 10f48a5 to 2fc1670 Compare August 11, 2024 20:20
@Blixibon Blixibon force-pushed the mapbase/feature/improved-animstate branch from 2fc1670 to abeb035 Compare September 1, 2024 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant