• Welcome to AtomicTorch Studio Forums.
 

Question about WeaponFireTracePreset variable

Started by MightyMonte88, January 18, 2021, 10:03:09 AM

MightyMonte88

When defining a new WeaponFireTracePreset, would "tracespeed" dictate the speed of the projectile??


example
        public static readonly WeaponFireTracePreset HonedPragmiumShard
            = new WeaponFireTracePreset(
                traceTexturePath: "FX/WeaponTraces/HonedPragmiumShard",
                hitSparksPreset: WeaponHitSparksPresets.Firearm,
                traceSpeed: 40,
                traceSpriteWidthPixels: 363,
                traceStartOffsetPixels: -10);

ai_enabled

Hello!
Yes. While the attack is hit-scan, a projectile is drawn with the specified speed (in world tiles per second)ΓÇöan old trick used in the majority of FPS shooters.

Regards!