GRW ScriptHook 0.11.0
Plugin API for Ghost Recon Wildlands
Loading...
Searching...
No Matches
ShRay Struct Reference

dir is a full length vector, so origin + dir is the end of the trace rather than a unit direction. More...

#include <scripthook.h>

Data Fields

ShVec3 origin
ShVec3 dir
ShVec3 hitPos
 first record, when hits > 0
uint32_t hits
 collector count
uint64_t descriptor
uint64_t collector
uint8_t raw [32]
 collector head, for layout work
uint64_t projectile
 Bullets cast with the descriptor at projectile+0x1D0, so the projectile and its hits are reachable.
uint32_t projHits
 count at projectile+0xA6A
uint64_t hitObject
 first hit record, at +0x38
float hitDist
 first hit record, at +0x48

Detailed Description

dir is a full length vector, so origin + dir is the end of the trace rather than a unit direction.

The collector is an OUTPUT, empty when the call starts, so results are read back one ray later.

Field Documentation

◆ origin

ShVec3 ShRay::origin

◆ dir

ShVec3 ShRay::dir

◆ hitPos

ShVec3 ShRay::hitPos

first record, when hits > 0

◆ hits

uint32_t ShRay::hits

collector count

◆ descriptor

uint64_t ShRay::descriptor

◆ collector

uint64_t ShRay::collector

◆ raw

uint8_t ShRay::raw[32]

collector head, for layout work

◆ projectile

uint64_t ShRay::projectile

Bullets cast with the descriptor at projectile+0x1D0, so the projectile and its hits are reachable.

0 when this is not a bullet

◆ projHits

uint32_t ShRay::projHits

count at projectile+0xA6A

◆ hitObject

uint64_t ShRay::hitObject

first hit record, at +0x38

◆ hitDist

float ShRay::hitDist

first hit record, at +0x48


The documentation for this struct was generated from the following file: