mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 01:46:18 +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;
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user