class piercing
Grenade
piercing.Grenade
- 8 properties
- 9 functions
Extends BaseProjectile game.ItemObject game.TimeDilatable game.Object ent.GameEntity ent.Entity IScriptable ISerializable
Properties
| Property | Type | Offset | |
|---|---|---|---|
piercingEffect | game.EffectRef | 0x180 | scripted |
pierceTime | float | 0x1A8 | scripted |
energyLossFactor | float | 0x1AC | scripted |
startVelocity | float | 0x1B0 | scripted |
grenadeLifetime | float | 0x1B4 | scripted |
gravitySimulation | float | 0x1B8 | scripted |
trailEffectName | CName | 0x1C0 | scripted |
alive | bool | 0x1C8 | scripted |
Functions
bool OnProjectileInitialize(game.projectile.SetUpEvent eventData)overrideRTTIre.Hooks.Place( "piercingGrenade", "OnProjectileInitialize", (Grenade_OnProjectileInitialize x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnProjectileInitialize( piercing.Grenade self, game.projectile.SetUpEvent? eventData );void StartTrailEffect()RTTIre.Hooks.PlaceVoid( "piercingGrenade", "StartTrailEffect;", (Grenade_StartTrailEffect x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_StartTrailEffect( piercing.Grenade self );bool OnShoot(game.projectile.ShootEvent eventData)overrideRTTIre.Hooks.Place( "piercingGrenade", "OnShoot", (Grenade_OnShoot x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnShoot( piercing.Grenade self, game.projectile.ShootEvent? eventData );bool OnShootTarget(game.projectile.ShootTargetEvent eventData)overrideRTTIre.Hooks.Place( "piercingGrenade", "OnShootTarget", (Grenade_OnShootTarget x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnShootTarget( piercing.Grenade self, game.projectile.ShootTargetEvent? eventData );bool OnTick(game.projectile.TickEvent eventData)RTTIre.Hooks.Place( "piercingGrenade", "OnTick", (Grenade_OnTick x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnTick( piercing.Grenade self, game.projectile.TickEvent? eventData );bool OnCollision(game.projectile.HitEvent eventData)overrideRTTIre.Hooks.Place( "piercingGrenade", "OnCollision", (Grenade_OnCollision x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnCollision( piercing.Grenade self, game.projectile.HitEvent? eventData );void Explode(Vector4 position)RTTIre.Hooks.PlaceVoid( "piercingGrenade", "Explode;Vector4", (Grenade_Explode x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_Explode( piercing.Grenade self, Vector4 position );void Pierce(Vector4 position)RTTIre.Hooks.PlaceVoid( "piercingGrenade", "Pierce;Vector4", (Grenade_Pierce x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_Pierce( piercing.Grenade self, Vector4 position );void StopMovement()RTTIre.Hooks.PlaceVoid( "piercingGrenade", "StopMovement;", (Grenade_StopMovement x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_StopMovement( piercing.Grenade self );