mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2025-01-10 09:12:53 +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;
|
Vector3 move = lftxy * movecontrol.X + fwdxy * movecontrol.Y;
|
||||||
Vector2 movexy = new Vector2(move.X, move.Y);
|
Vector2 movexy = new Vector2(move.X, move.Y);
|
||||||
|
|
||||||
|
movexy *= (1.0f + (Input.xblt * 15.0f)); //boost with left trigger
|
||||||
|
|
||||||
pedEntity.ControlMovement = movexy;
|
pedEntity.ControlMovement = movexy;
|
||||||
pedEntity.ControlJump = Input.kbjump || Input.ControllerButtonPressed(GamepadButtonFlags.X);
|
pedEntity.ControlJump = Input.kbjump || Input.ControllerButtonPressed(GamepadButtonFlags.X);
|
||||||
|
Loading…
Reference in New Issue
Block a user