class nanowire
Grenade
nanowire.Grenade
- 8 properties
- 9 functions
Extends BaseProjectile game.ItemObject game.TimeDilatable game.Object ent.GameEntity ent.Entity IScriptable ISerializable
Properties
| Property | Type | Offset | |
|---|---|---|---|
countTime | float | 0x180 | scripted |
timeToActivation | float | 0x184 | scripted |
energyLossFactor | float | 0x188 | scripted |
startVelocity | float | 0x18C | scripted |
grenadeLifetime | float | 0x190 | scripted |
gravitySimulation | float | 0x194 | scripted |
trailEffectName | CName | 0x198 | scripted |
alive | bool | 0x1A0 | scripted |
Functions
bool OnProjectileInitialize(game.projectile.SetUpEvent eventData)overrideRTTIre.Hooks.Place( "nanowireGrenade", "OnProjectileInitialize", (Grenade_OnProjectileInitialize x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnProjectileInitialize( nanowire.Grenade self, game.projectile.SetUpEvent? eventData );void StartTrailEffect()RTTIre.Hooks.PlaceVoid( "nanowireGrenade", "StartTrailEffect;", (Grenade_StartTrailEffect x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_StartTrailEffect( nanowire.Grenade self );void Reset()RTTIre.Hooks.PlaceVoid( "nanowireGrenade", "Reset;", (Grenade_Reset x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_Reset( nanowire.Grenade self );bool OnShoot(game.projectile.ShootEvent eventData)overrideRTTIre.Hooks.Place( "nanowireGrenade", "OnShoot", (Grenade_OnShoot x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnShoot( nanowire.Grenade self, game.projectile.ShootEvent? eventData );bool OnShootTarget(game.projectile.ShootTargetEvent eventData)overrideRTTIre.Hooks.Place( "nanowireGrenade", "OnShootTarget", (Grenade_OnShootTarget x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnShootTarget( nanowire.Grenade self, game.projectile.ShootTargetEvent? eventData );bool OnTick(game.projectile.TickEvent eventData)RTTIre.Hooks.Place( "nanowireGrenade", "OnTick", (Grenade_OnTick x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnTick( nanowire.Grenade self, game.projectile.TickEvent? eventData );bool OnCollision(game.projectile.HitEvent eventData)overrideRTTIre.Hooks.Place( "nanowireGrenade", "OnCollision", (Grenade_OnCollision x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_OnCollision( nanowire.Grenade self, game.projectile.HitEvent? eventData );void Explode(Vector4 position)RTTIre.Hooks.PlaceVoid( "nanowireGrenade", "Explode;Vector4", (Grenade_Explode x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_Explode( nanowire.Grenade self, Vector4 position );void StopMovement()RTTIre.Hooks.PlaceVoid( "nanowireGrenade", "StopMovement;", (Grenade_StopMovement x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct Grenade_StopMovement( nanowire.Grenade self );