-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* IsPlayerDrivingAgainstTraffic * Change name * Update IsPlayerDrivingDangerously.md Added an enum with different violation types. Added type 0 which I was able to test in-game, it only returns true when driving on paved sidewalks. --------- Co-authored-by: ammonia-cfx <[email protected]>
- Loading branch information
1 parent
a432c57
commit e499934
Showing
2 changed files
with
34 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
ns: PLAYER | ||
aliases: ["0xF10B44FD479D69F3"] | ||
--- | ||
## _IS_PLAYER_DRIVING_DANGEROUSLY | ||
|
||
```c | ||
// 0xF10B44FD479D69F3 0x1E359CC8 | ||
BOOL _IS_PLAYER_DRIVING_DANGEROUSLY(Player player, int type); | ||
``` | ||
Violation types: | ||
``` | ||
enum eViolationType { | ||
VT_PAVED_PEDESTRIAN_AREAS = 0, | ||
VT_RUNNING_REDS, | ||
VT_AGAINST_TRAFFIC | ||
}; | ||
``` | ||
Checks if a player is performing a certain type of traffic violation. | ||
* Type 0: Checks if the player is driving outside designated road areas pedestrians would walk on (specifically paved sidewalks). | ||
* Type 1: Checks if the player is running through reds, takes some time to return true. | ||
* Type 2: Checks if the player is driving on the wrong side of the road (against traffic). | ||
Used solely in "Al Di Napoli" with type 2 for a voiceline. | ||
## Parameters | ||
* **player**: Player ID | ||
* **type**: A violation type from 0 to 2 (`eViolationType`). | ||
## Return value | ||
Whether or not the player is actively performing a certain type of traffic violation. |
This file was deleted.
Oops, something went wrong.