mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2025-01-09 23:03:27 +08:00
First person xbox control adjustment (left trigger boost)
This commit is contained in:
parent
5d0a3334a8
commit
093ed36139
@ -628,6 +628,7 @@ namespace CodeWalker
|
||||
Vector3 move = lftxy * movecontrol.X + fwdxy * movecontrol.Y;
|
||||
Vector2 movexy = new Vector2(move.X, move.Y);
|
||||
|
||||
movexy *= (1.0f + (Input.xblt * 15.0f)); //boost with left trigger
|
||||
|
||||
pedEntity.ControlMovement = movexy;
|
||||
pedEntity.ControlJump = Input.kbjump || Input.ControllerButtonPressed(GamepadButtonFlags.X);
|
||||
|
Loading…
Reference in New Issue
Block a user