FPS ENGINE DOCUMENTATION
  • Welcome to FPS Engine!
  • BEFORE WE START
    • Early Considerations
    • List of Tutorials
    • List of Add-Ons & Compatible Packages
  • GETTING STARTED
    • 01. Basic set-up
    • 02. Roadmap
  • CONTENT
    • 03. Content
      • 03.1 CAMERA
        • MoveCamera
        • CameraFOVManager
      • 03.2 MOVEMENT
        • PlayerMovement
      • 03.3 PLAYER
        • PlayerStats
        • PlayerMultipliers
        • PLAYER STATES
          • PlayerStates
          • PlayerBaseState
          • PlayerStateFactory
        • WEAPON STATES
          • WeaponStates
          • WeaponBaseState
          • WeaponStateFactory
        • Player Debugging
      • 03.4 WEAPONS
        • Weapon_SO
        • WeaponIdentification
        • WeaponController
        • Bullet
        • ATTACHMENTS
          • Attachment.cs
            • Barrel.cs
            • Flashlight.cs
            • Magazine.cs
            • Scope.cs
            • Stock.cs
            • Laser.cs
            • Grip.cs
          • AttachmentIdentifier_SO.cs
      • 03.5 PICK UP SYSTEM
        • InteractManager
        • Interactable
        • Item_SO
        • Identifiable
        • Pickeable
          • WeaponPickeable
          • BulletsPickeable
          • AttachmentPickeable
      • 03.6 ENEMIES
        • IDamageable
        • EnemyHealth
        • TrainingTarget
        • CIrcularTargetEnemy
        • Turret
        • TurretProjectile
      • 03.7 EFFECTS
        • CameraEffects
        • CamShake
        • CrouchTilt
        • JumpMotion
        • ProceduralShot
        • ProceduralShot_SO
        • WeaponEffects
        • WeaponSway
      • 03.8 UI
        • CowsinsButton
        • Crosshair
        • CrosshairShape
        • Hitmarker
        • UIController
        • UIEvents
        • RebindUI
      • 03.8 EXTRA
        • Checkpoint
        • Coin
        • Compass
        • CompassElement
        • Destructible
        • Crate
        • ExplosiveBarrel
        • PowerUp
        • DamageMultiplier
        • HealMultiplierPowerUp
        • Healthpack
        • DoorInteractable
        • Experience
        • GetGameInformation
        • HurtTrigger
        • JumpPad
        • Lootbox
        • PauseMenu
        • PointCapture
        • Trigger
        • DraggableButtonInSceneView
        • UTILITIES
          • DestroyMe
          • IgnoreCollision
          • LookAt
          • CowsinsUtilities
      • 03.09 MANAGERS
        • CoinManager
        • ExperienceManager
        • GameSettingsManager
        • InputManager
        • SoundManager
        • PoolManager
  • HOW TO USE
    • Getting Started: First Steps
    • Importing FPS Engine into URP / HDRP
    • Add a Player Controller
    • Adding New Weapons
    • Saving & Loading Presets
    • Changing Keybindings
    • Creating New Pickeables
    • Controllable & Not Controllable Player
    • Adding New Surfaces ( Grounds )
    • Working with Attachments
    • Modify Weapon and Camera Effects
    • Adding Custom Key Rebinds
    • Add breakable (Destructible) objects
    • Custom Shot Weapons
    • Adding Enemies
  • FAQ
    • FAQ
  • SUPPORT
    • Support
Powered by GitBook
On this page
  • WEAPON BOB
  • JUMP MOTION
  • WEAPON SWAY SETTINGS
Export as PDF
  1. CONTENT
  2. 03. Content
  3. 03.7 EFFECTS

WeaponEffects

PreviousProceduralShot_SONextWeaponSway

Last updated 10 months ago

New in FPS Engine 1.2

Merges the Weapon Effects in one place. It can be found attached to the Player.

WEAPON BOB

  • bobMethod: Defines the bobbing Pattern / Bobbing

  • gunsEffectsTransform: Guns Effects Transform

  • speed: Controls the overall speed of the bobbing effect. Higher values result in faster bobbing, while lower values produce slower bobbing.

  • distance: Defines the amplitude or magnitude of the bobbing effect.

  • aimingMultiplier: A multiplier applied to the bobbing effect when the player is aiming down sights. This typically reduces the bobbing to provide a steadier aim.

    • rotationMultiplier: Adjusts the amount of rotational bobbing applied to the gun. This affects how much the gun rotates during the bobbing motion.

    • translationSpeed: Specifies the speed at which the gun's position changes during the bobbing effect. It controls the rate of positional movement.

    • rotationSpeed: Specifies the speed at which the gun's rotation changes during the bobbing effect. It controls the rate of rotational movement.

    • movementLimit: Sets the maximum limit for the gun's movement during the bobbing effect. This constrains how far the gun can move from its original position.

    • bobLimit: Sets the maximum limit for the bobbing effect itself.

JUMP MOTION

  • jumpMotion: Animation Curve ( Start Jump Motion )

  • groundedMotion: Animation Curve ( Stop Jump Motion / Land )

  • distance: Amount of Jump Motion Effect

  • rotationAmount: Amount of Jump Motion Rotation

  • evaluationSpeed: How fast the Animation Curve is played

WEAPON SWAY SETTINGS

Weapon Sway can be modified in each Weapon Prefab ( Located at the root of the prefab )


WeaponEffectsEditor can be found at the end of WeaponEffects.cs