⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    AdvancedBulletAmmoEffect MonoBehaviour

    Overview

    The AdvancedBulletAmmoEffect module uses the surfaces system to show impact effects, and imparts damage and force to whatever it hits. It is similar to the [BulletAmmoEffect][4] but adds damage falloff over range and damage randomisation.

    Inspector

    AdvancedBulletAmmoEffect

    Properties

    Name Type Description
    Damage Type DamageType The type of damage the weapon should do with this ammo.
    Randomise Damage Boolean Should the damage value be randomised or not.
    Damage Float The damage the bullet does before falloff is applied. This property is only visible if Randomise Damage is set to False.
    Min Damage Float The minimum damage the bullet does before falloff is applied. This property is only visible if Randomise Damage is set to True.
    Max Damage Float The maximum damage the bullet does before falloff is applied. This property is only visible if Randomise Damage is set to True.
    Falloff Mode Dropdown How to apply damage falloff. None means damage will not fall off over distance or speed, Range means that damage will be reduced the further the target, Speed is used with projectiles to reduce damage as they slow down.
    Effective Range Float The max range where the bullet does the full damage (no falloff applied). This property is only visible if Falloff Mode is set to Range.
    Ineffective Range Float The range where the bullet does 0 damage. This property is only visible if Falloff Mode is set to Range.
    Effective Speed Float The speed above which the bullet does full damage. This property is only visible if Falloff Mode is set to Speed.
    Minimum Speed Float The speed below which the bullet does zero damage. This property is only visible if Falloff Mode is set to Speed.
    Bullet Size Float The size of the bullet. Used to size decals.
    Impact Force Float The force to be imparted onto the hit object before falloff is applied. Requires either a Rigidbody or an impact handler.

    See Also

    Modular Firearms

    Surfaces

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX