WeaponMechanicsPlus
All WikisDownloadDonate
  • Home
  • Attachment
  • Modifiers
    • Damage Modifier
    • Shoot Modifier
    • Projectile Modifier
    • Reload Modifier
    • Scope Modifier
    • Explosion Modifier
  • Armor Modifiers
  • Firemode
  • Placeholders
  • Other
Powered by GitBook
On this page
  • Override_Projectile_Settings
  • Gravity
  • Minimum_Speed
  • Maximum_Speed
  • Maximum_Alive_Ticks
  • Drag
  • Override_Sticky
  • Override_Through
  • Maximum_Through_Amount
  • Override_Bouncy
  • Maximum_Bounce_Amount
Edit on GitHub
  1. Modifiers

Projectile Modifier

Modifies the projectile config of a weapon

  Projectile_Modifier:

    # ProjectileSettings modifiers
    Override_Projectile_Settings: <ProjectileSettings>
    Gravity: <DoubleModifier>
    Minimum_Speed: <DoubleModifier>
    Maximum_Speed: <DoubleModifier>
    Max_Alive_Ticks: <IntModifier>
    Drag:
      Base: <DoubleModifier>
      In_Water: <DoubleModifier>
      When_Raining_Or_Snowing: <DoubleModifier>
    
    # Sticky modifiers
    Override_Sticky: <Sticky>

    # Through modifiers
    Override_Through: <Through>
    Maximum_Through_Amount: <DoubleModifier>
    
    # Bouncy modifiers
    Override_Bouncy: <Bouncy>
    Maximum_Bounce_Amount: <IntModifier>

Override_Projectile_Settings

In general, this feature should not be used as it is not very compatible with other attachments. Use with caution, or set this priority to be the first attachment.

Gravity

Minimum_Speed

Maximum_Speed

Maximum_Alive_Ticks

Drag

  • Base -> When not in water, and not in the rain.

  • In_Water -> When the projectile is traveling through water.

  • When_Raining_Or_Snowing -> When it is raining.

Subtly Increase Drag Example

This example increases the drag of the projectile. This should be used for suppressors or other muzzle attachments.

    Projectile_Modifier:
      Drag:
        Base: MULTIPLY 0.98        

Override_Sticky

Override_Through

Maximum_Through_Amount

Override_Bouncy

Maximum_Bounce_Amount

PreviousShoot ModifierNextReload Modifier

Last updated 1 year ago

Completely overrides the projectile settings (See ) of the shot projectile.

Modifies the of the projectile, how fast it accelerates downwards over time.

Modifies the Speed of the projectile.

Modifies the Speed of the projectile.

Modifies the of the projectile. This can be used to make the projectile last for a shorter or longer amount of time. This can be used to create longer range laser weapon attachments, or similar.

Modifies the constants of the projectile. Remember that a drag of 1.0 is actually no drag at all. A number like 0.98 will slow the projectile down a little bit over time.

Completely overrides the current settings. This should probably only be used on explosive weapons.

Completely overrides the current settings.

In order for this modifier to work, the weapon must already have a Through section configured, or an attachment with a lower must be attached to the weapon and use the Override_Through feature. Otherwise, this modifier will have no effect.

Modifies the of the through settings. This can be used to create ammunition that pierces through more walls/entities.

Completely overrides the current settings.

In order for this modifier to work, the weapon must already have a Bouncy section configured, or an attachment with a lower must be attached to the weapon and use the Override_Bouncy feature. Otherwise, this modifier will have no effect.

Modifies the of the bouncy settings.

Projectile
#gravity
#minimum
#maximum
#maximum_alive_ticks
#drag
Sticky
Through
#maximum_through_amount
Bouncy
#maximum_bounce_amount
Priority
Priority