Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(extra-natives-five): add SET_PED_TURNING_THRESHOLDS. Allows tun-…
…ability of the aiming transition threshold angles. TL;DR - It is currently faster to shoot while strafing right vs. strafing left.
- Loading branch information
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
ns: CFX | ||
apiset: client | ||
--- | ||
## SET_PED_TURNING_THRESHOLDS | ||
|
||
```c | ||
void SET_PED_TURNING_THRESHOLDS(float min, float max); | ||
``` | ||
Purpose: The game's default values for these make shooting while traveling Left quite a bit slower than shooting while traveling right (This could be a game-balance thing?) | ||
Default Min: -45 Degrees | ||
Default Max: 135 Degrees | ||
\ ,- ~ ||~ - , | ||
, ' \ x x ' , | ||
, \ x x x , | ||
, \ x x , | ||
, \ x x , | ||
, \ x , | ||
, \ x , | ||
, \ x x , | ||
, \ x , | ||
, \, ' | ||
' - , _ _ _ , ' \ | ||
If the transition angle is within the shaded portion (x), there will be no transition(Quicker) | ||
The angle corresponds to where you are looking(North on the circle) vs. the heading of your Ped. | ||
Note: For some reason, | ||
You can set these values to whatever you'd like with this native, but keep in mind that the transitional spin is only clockwise for some reason. | ||
I'd personally recommend something like -135/135 | ||
## Parameters | ||
* **min**: Leftside angle on the above diagram | ||
* **max**: Rightside angle on the above diagram |