Open
Description
Describe the bug
To reproduce
bind 2 anim fat fatsprint
give uzi
- stand still
- hold right mouse button to aim, move mouse around and observe that camera movement moves the arm around
- whilst still aiming, press
2
to apply the animation - aiming no longer works (if you continue holding RMB)
- aim target is locked (if you continue holding RMB, or even if you let go of RMB)
Expected behaviour
One of the following:
- aiming should continue to work
- aiming should be reset completely
Screenshots
tasks before (nothing, just standing with a gun):
tasks before (just aiming):
tasks after (aiming + anim):
tasks after (not aiming + anim):
Version
49ffc91 windows
Additional context
It seems that TASK_SIMPLE_USE_GUN
(type TASK_SECONDARY_ATTACK
) ordinarily does the following:
- set type
TASK_SECONDARY_IK
toTASK_SIMPLE_IK_MANAGER
when you aim - resets
TASK_SECONDARY_IK
and hide the aiming reticle when you try to aim behind you - resets
TASK_SECONDARY_IK
, hide the aiming reticle, and removeTASK_SECONDARY_ATTACK
when you stop aiming (release RMB)
All of the above doesn't happen if TASK_PRIMARY
is set (to TASK_SIMPLE_NAMED_ANIM
). I'm not sure if this is intended behaviour.