WeaponMechanics
All WikisDownloadDonate
  • Home
  • Weapon Modules
    • Info
    • Shoot
      • Spread
      • Recoil
    • Scope
    • Reload
      • Ammo
    • Skin
    • Projectile
      • Sticky
      • Bouncy
      • Through
    • Explosion
      • Block Damage
    • Damage
      • Damage Modifiers
    • Firearm_Action
    • Melee
  • Trigger
  • Addons
  • Common Questions
  • Developer API
    • Cloning Repository
    • Projectile Scripts
  • 📄Articles
    • Optimizing Explosions
Powered by GitBook
On this page
  1. Weapon Modules
  2. Projectile

Through

Projectiles pierce through walls to "wall bang" kill entities

    Through:
      Maximum_Through_Amount: <amount>
      Blocks:
        Allow_Any: <true/false>
        Default_Speed_Multiplier: <multiplier>
        Whitelist: <true/false>
        List:
          - <Material>
          - <Material> <speed multiplier>
          - <etc.>
      Entities:
        Allow_Any: <true/false>
        Default_Speed_Multiplier: <multiplier>
        Whitelist: <true/false>
        List:
          - <EntityType>
          - <EntityType> <speed multiplier>
          - <etc.>

Maximum_Through_Amount

The maximum amount of this projectile can go through entities and blocks. Defaults to 1. Setting value to -1 means infinite.

Blocks

  • Allow_Any

    • If this is true then all blocks are valid.

    • This overrides Whitelist and List.

  • Default_Speed_Multiplier

    • The number to multiply the projectile speed by.

    • This is the default speed multiplier, meaning that if the following list does not contain specific information for speed about the hit block, then it defaults to this value.

  • Whitelist

    • Whether the use List as whitelist or blacklist.

    • True = only blocks listed in List can be passed through.

  • List

    • Material list of valid blocks depending on Whitelist.

    • Second argument is speed multiplier which multiplies the projectile's current speed with its value.

Entities

  • Allow_Any:

    • If this is true then all entities are valid.

    • This overrides Whitelist and List.

  • Default_Speed_Multiplier

    • The number to multiply the projectile speed by.

    • This is the default speed multiplier, meaning that if the following list. does not contain specific information for speed about the hit entity, then it defaults to this value.

  • Whitelist

    • Whether the use List as whitelist or blacklist.

    • True = only entities listed in List can be passed through.

  • List

    • Entity list of valid entities depending on Whitelist.

    • The second argument is speed multiplier which multiplies the projectile's current speed with its value.

Last updated 1 year ago

Use the list for your version.

Use the list for your version.

#material
#entity