class sample
SmartBullet
sample.SmartBullet
- 44 properties
- 22 functions
Extends BaseProjectile game.ItemObject game.TimeDilatable game.Object ent.GameEntity ent.Entity IScriptable ISerializable
Properties
| Property | Type | Offset | |
|---|---|---|---|
meshComponent | ent.IComponent? | 0x180 | scripted |
effect | game.EffectRef | 0x190 | scripted |
countTime | float | 0x1B8 | scripted |
startVelocity | float | 0x1BC | scripted |
lifetime | float | 0x1C0 | scripted |
bendTimeRatio | float | 0x1C4 | scripted |
bendFactor | float | 0x1C8 | scripted |
useParabolicPhase | bool | 0x1CC | scripted |
parabolicVelocityMin | float | 0x1D0 | scripted |
parabolicVelocityMax | float | 0x1D4 | scripted |
parabolicDuration | float | 0x1D8 | scripted |
parabolicGravity | Vector4 | 0x1E0 | scripted |
spiralParams | game.projectile.SpiralParams? | 0x1F0 | scripted |
useSpiralParams | bool | 0x200 | scripted |
alive | bool | 0x201 | scripted |
hit | bool | 0x202 | scripted |
trailName | CName | 0x208 | scripted |
statsSystem | game.StatsSystem? | 0x210 | scripted |
weaponID | ent.EntityID | 0x220 | scripted |
parabolicPhaseParams | game.projectile.ParabolicTrajectoryParams? | 0x228 | scripted |
followPhaseParams | game.projectile.FollowCurveTrajectoryParams? | 0x238 | scripted |
linearPhaseParams | game.projectile.LinearTrajectoryParams? | 0x248 | scripted |
targeted | bool | 0x258 | scripted |
trailStarted | bool | 0x259 | scripted |
phase | ESmartBulletPhase | 0x25A | scripted |
timeInPhase | float | 0x260 | scripted |
randStartVelocity | float | 0x264 | scripted |
smartGunMissDelay | float | 0x268 | scripted |
smartGunHitProbability | float | 0x26C | scripted |
smartGunMissRadius | float | 0x270 | scripted |
randomWeaponMissChance | float | 0x274 | scripted |
randomTargetMissChance | float | 0x278 | scripted |
readyToMiss | bool | 0x27C | scripted |
stopAndDropOnTargetingDisruption | bool | 0x27D | scripted |
shouldStopAndDrop | bool | 0x27E | scripted |
targetID | ent.EntityID | 0x280 | scripted |
ignoredTargetID | ent.EntityID | 0x288 | scripted |
owner | WeakHandle<game.Object> | 0x290 | scripted |
weapon | WeakHandle<game.Object> | 0x2A0 | scripted |
startPosition | Vector4 | 0x2B0 | scripted |
hasExploded | bool | 0x2C0 | scripted |
attack | game.IAttack? | 0x2C8 | scripted |
BulletCollisionEvaluator | BulletCollisionEvaluator? | 0x2D8 | scripted |
trackedTargetComponent | WeakHandle<game.TargetingComponent> | 0x2E8 | scripted |
Functions
bool OnRequestComponents(ent.EntityRequestComponentsInterface ri)overrideRTTIre.Hooks.Place( "sampleSmartBullet", "OnRequestComponents", (SmartBullet_OnRequestComponents x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnRequestComponents( sample.SmartBullet self, ent.EntityRequestComponentsInterface ri );bool OnTakeControl(ent.EntityResolveComponentsInterface ri)overrideRTTIre.Hooks.Place( "sampleSmartBullet", "OnTakeControl", (SmartBullet_OnTakeControl x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnTakeControl( sample.SmartBullet self, ent.EntityResolveComponentsInterface ri );bool OnProjectileInitialize(game.projectile.SetUpEvent eventData)overrideRTTIre.Hooks.Place( "sampleSmartBullet", "OnProjectileInitialize", (SmartBullet_OnProjectileInitialize x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnProjectileInitialize( sample.SmartBullet self, game.projectile.SetUpEvent? eventData );void StartTrailEffect()RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "StartTrailEffect;", (SmartBullet_StartTrailEffect x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_StartTrailEffect( sample.SmartBullet self );void Reset()RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "Reset;", (SmartBullet_Reset x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_Reset( sample.SmartBullet self );bool OnShoot(game.projectile.ShootEvent eventData)overrideRTTIre.Hooks.Place( "sampleSmartBullet", "OnShoot", (SmartBullet_OnShoot x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnShoot( sample.SmartBullet self, game.projectile.ShootEvent? eventData );void SetCurrentDamageTrailName()RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "SetCurrentDamageTrailName;", (SmartBullet_SetCurrentDamageTrailName x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_SetCurrentDamageTrailName( sample.SmartBullet self );bool OnShootTarget(game.projectile.ShootTargetEvent eventData)overrideRTTIre.Hooks.Place( "sampleSmartBullet", "OnShootTarget", (SmartBullet_OnShootTarget x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnShootTarget( sample.SmartBullet self, game.projectile.ShootTargetEvent? eventData );void SetupCommonParams(Vector4 weaponVel)RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "SetupCommonParams;Vector4", (SmartBullet_SetupCommonParams x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_SetupCommonParams( sample.SmartBullet self, Vector4 weaponVel );void StartPhase(ESmartBulletPhase phase)RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "StartPhase;ESmartBulletPhase", (SmartBullet_StartPhase x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_StartPhase( sample.SmartBullet self, ESmartBulletPhase phase );void StartNextPhase()RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "StartNextPhase;", (SmartBullet_StartNextPhase x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_StartNextPhase( sample.SmartBullet self );bool OnTick(game.projectile.TickEvent eventData)RTTIre.Hooks.Place( "sampleSmartBullet", "OnTick", (SmartBullet_OnTick x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnTick( sample.SmartBullet self, game.projectile.TickEvent? eventData );bool OnCollision(game.projectile.HitEvent projectileHitEvent)overrideRTTIre.Hooks.Place( "sampleSmartBullet", "OnCollision", (SmartBullet_OnCollision x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnCollision( sample.SmartBullet self, game.projectile.HitEvent? projectileHitEvent );bool OnAcceleratedMovement(game.projectile.AcceleratedMovementEvent eventData)RTTIre.Hooks.Place( "sampleSmartBullet", "OnAcceleratedMovement", (SmartBullet_OnAcceleratedMovement x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnAcceleratedMovement( sample.SmartBullet self, game.projectile.AcceleratedMovementEvent? eventData );bool OnLinearMovement(game.projectile.LinearMovementEvent eventData)RTTIre.Hooks.Place( "sampleSmartBullet", "OnLinearMovement", (SmartBullet_OnLinearMovement x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnLinearMovement( sample.SmartBullet self, game.projectile.LinearMovementEvent? eventData );void DealDamage(game.projectile.HitEvent eventData)RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "DealDamage;gameprojectileHitEvent", (SmartBullet_DealDamage x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_DealDamage( sample.SmartBullet self, game.projectile.HitEvent? eventData );bool OnFollowSuccess(game.projectile.FollowEvent eventData)RTTIre.Hooks.Place( "sampleSmartBullet", "OnFollowSuccess", (SmartBullet_OnFollowSuccess x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_OnFollowSuccess( sample.SmartBullet self, game.projectile.FollowEvent? eventData );void BulletRelease()RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "BulletRelease;", (SmartBullet_BulletRelease x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_BulletRelease( sample.SmartBullet self );void UpdateReadyToMiss()RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "UpdateReadyToMiss;", (SmartBullet_UpdateReadyToMiss x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_UpdateReadyToMiss( sample.SmartBullet self );void EnableTargetCollisions(ent.EntityID targetID)RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "EnableTargetCollisions;EntityID", (SmartBullet_EnableTargetCollisions x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_EnableTargetCollisions( sample.SmartBullet self, ent.EntityID targetID );void DisableTargetCollisions(ent.EntityID targetID)RTTIre.Hooks.PlaceVoid( "sampleSmartBullet", "DisableTargetCollisions;EntityID", (SmartBullet_DisableTargetCollisions x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_DisableTargetCollisions( sample.SmartBullet self, ent.EntityID targetID );float GetInitialDistanceToTarget()RTTIre.Hooks.Place( "sampleSmartBullet", "GetInitialDistanceToTarget;", (SmartBullet_GetInitialDistanceToTarget x) => { return re.Hooks.CallOriginal<re.msgpack.Float>(); } ); [Msgpack.Gen] public readonly partial record struct SmartBullet_GetInitialDistanceToTarget( sample.SmartBullet self );