|
GRW ScriptHook 0.11.0
Plugin API for Ghost Recon Wildlands
|
Shots and impacts from the projectile hook. More...
Data Structures | |
| struct | ShHit |
| Bullets often strike a child part, so root is resolved for you and is the one worth acting on. More... | |
| struct | ShShot |
| A shot, reported on the projectile's first step. More... | |
Macros | |
| #define | SH_EVT_MINE_ONLY 0x1 |
| Flags on the subscription. | |
| #define | SH_EVT_NO_SELF 0x2 |
Typedefs | |
| typedef void(*) | ShHitFn(const ShHit *hit, void *user) |
| Receivers run on a worker thread the API owns, so any API call is safe from inside one. | |
| typedef void(*) | ShFireFn(const ShShot *shot, void *user) |
Functions | |
| SH_API int | ShHitHookInstall (void) |
| Install the hook. | |
| SH_API int | ShHitHookReady (void) |
| SH_API int | ShOnHit (ShHitFn fn, void *user, int flags) |
| Register a receiver, up to eight. | |
| SH_API int | ShOffHit (ShHitFn fn) |
| Remove one receiver, or all of them when fn is NULL. | |
| SH_API uint32_t | ShHitCount (void) |
| A ring, for callers that would rather poll. | |
| SH_API int | ShGetHits (ShHit *out, int max) |
| SH_API int | ShOnFire (ShFireFn fn, void *user, int flags) |
| Register a receiver for shots, up to eight. | |
| SH_API int | ShOffFire (ShFireFn fn) |
| SH_API uint32_t | ShShotCount (void) |
| SH_API int | ShGetShots (ShShot *out, int max) |
Shots and impacts from the projectile hook.
| #define SH_EVT_MINE_ONLY 0x1 |
Flags on the subscription.
0 delivers every event. MINE_ONLY depends on the shooter field, which some projectiles omit, so it is opt in.
| #define SH_EVT_NO_SELF 0x2 |
| typedef void(*) ShHitFn(const ShHit *hit, void *user) |
Receivers run on a worker thread the API owns, so any API call is safe from inside one.
| typedef void(*) ShFireFn(const ShShot *shot, void *user) |
| SH_API int ShHitHookInstall | ( | void | ) |
Install the hook.
Needed before any hit is reported.
| SH_API int ShHitHookReady | ( | void | ) |
| SH_API uint32_t ShHitCount | ( | void | ) |
A ring, for callers that would rather poll.
Register a receiver for shots, up to eight.
| SH_API uint32_t ShShotCount | ( | void | ) |