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.Firearm,
                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!