Author Topic: Question about WeaponFireTracePreset variable  (Read 544 times)

MightyMonte88

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Question about WeaponFireTracePreset variable
« 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);

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1829
    • View Profile
Re: Question about WeaponFireTracePreset variable
« Reply #1 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!