⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    PenetratingHitscanAmmoEffect MonoBehaviour

    Overview

    The PenetratingHitscanAmmoEffect module allows projectiles to bounce off surfaces based on the impact angle and the distance travelled. If you are using a projectile shooter, then there is a separate PenetratingProjectileAmmoEffect that should be used instead of this.

    This ammo effect is also used alongside another effect to apply damage and visual elements.

    Inspector

    PenetratingHitscanAmmoEffect

    Properties

    Name Type Description
    Damage Type DamageType The type of damage the weapon should do with this ammo.
    Initial Hit Effect BaseAmmoEffect The effect of the ammo when it first hits.
    Second Hit Effect BaseAmmoEffect The effect of the ammo after it has penetrated something.
    Max Penetration Float The maximum thickness of object the bullet can penetrate.
    Max Distance Float The maximum distance that the weapon will register a hit (includes the distance travelled up to the penetration).
    Layers LayerMask The layers bullets will collide with.
    Max Scatter Angle Float Randomises the deflected bullet direction within this cone angle.
    Exit Effect Size Float Uses the surface system to show a bullet hit effect on exit. Set this to zero if you don't want it to happen.
    Tracer Prototype PooledObject The optional pooled tracer prototype to use (must implement the IPooledHitscanTrail interface)
    Tracer Size Float How size (thickness/radius) of the tracer line.
    Tracer Duration Float How long the tracer line will last.

    See Also

    Modular Firearms

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