AtomicTorch Studio Forums

CryoFall => Modding info => Topic started by: MightyMonte88 on January 18, 2021, 10:03:09 am

Title: Question about WeaponFireTracePreset variable
Post by: MightyMonte88 on January 18, 2021, 10:03:09 am
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.Firear m,
                traceSpeed: 40,
                traceSpriteWidthPixels: 363,
                traceStartOffsetPixels: -10);
Title: Re: Question about WeaponFireTracePreset variable
Post by: ai_enabled on January 19, 2021, 08:30:25 am
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!