mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-28 07:42:07 +08:00
First person xbox control adjustment (left trigger boost)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user