Tweak walk cycle parameters
This commit is contained in:
@@ -15,11 +15,9 @@ pictureWeaponOnAim
|
||||
-> Int -- ^ Position of item in inventory
|
||||
-> Picture
|
||||
pictureWeaponOnAim p cr posInInv
|
||||
| isSelected && _posture (_crStance cr) == Aiming
|
||||
&& isTwisting
|
||||
| isSelected && _posture (_crStance cr) == Aiming && isTwisting
|
||||
= onLayer PtLayer twistWep
|
||||
| isSelected && _posture (_crStance cr) == Aiming
|
||||
&& isOneHand
|
||||
| isSelected && _posture (_crStance cr) == Aiming && isOneHand
|
||||
= onLayer PtLayer oneHandWep
|
||||
| isSelected && _posture (_crStance cr) == Aiming
|
||||
= onLayer PtLayer drawnWep
|
||||
@@ -34,7 +32,7 @@ pictureWeaponOnAim p cr posInInv
|
||||
twistWep = uncurry translate (0.5 * _crRad cr,0) p
|
||||
--twistWep = uncurry translate (0.5 * _crRad cr,negate 0.5 * _crRad cr) p
|
||||
oneHandWep = uncurry translate (1.5 * _crRad cr,0) p
|
||||
holsteredWep = uncurry translate (_crRad cr,0) (rotate (sRot + 1) p)
|
||||
holsteredWep = uncurry translate (_crRad cr ,0) (rotate (sRot + 1.2) p)
|
||||
holsteredOneHandWep = uncurry translate (_crRad cr * 0.7 + handPos,_crRad cr * negate 0.7) p
|
||||
handPos = case cr^? crStance . carriage of
|
||||
Just (Walking x LeftForward) -> f x * 50
|
||||
|
||||
Reference in New Issue
Block a user