> For the complete documentation index, see [llms.txt](https://cowsinss-organization.gitbook.io/fps-engine-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cowsinss-organization.gitbook.io/fps-engine-documentation/content/03.-content/03.7-effects/weaponeffects.md).

# WeaponEffects

<mark style="background-color:orange;">New in FPS Engine 1.2</mark>

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

### WEAPON BOB&#x20;

<figure><img src="https://2716441118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkdlNMXOYYmupb4VpBGHT%2Fuploads%2FMIEaJ9Fep7BylWiklYSa%2FFPSAsset%20-%20MovementShowroom%20-%20PC%2C%20Mac%20%26%20Linux%20Standalone%20-%20Unity%202021.1.16f1%20Personal%20_DX11_%202024-06-29%2022-28-43_2.gif?alt=media&amp;token=8786b64d-058c-46e8-b7da-33a3704abb6f" alt=""><figcaption></figcaption></figure>

* <mark style="color:purple;">bobMethod</mark>: Defines the bobbing Pattern / Bobbing
* <mark style="color:purple;">gunsEffectsTransform</mark>: Guns Effects Transform
* <mark style="color:purple;">speed</mark>: Controls the overall speed of the bobbing effect. Higher values result in faster bobbing, while lower values produce slower bobbing.
* <mark style="color:purple;">distance</mark>: Defines the amplitude or magnitude of the bobbing effect.
* <mark style="color:purple;">aimingMultiplier</mark>: A multiplier applied to the bobbing effect when the player is aiming down sights. This typically reduces the bobbing to provide a steadier aim.
  * <mark style="color:purple;">rotationMultiplier</mark>: Adjusts the amount of rotational bobbing applied to the gun. This affects how much the gun rotates during the bobbing motion.
  * <mark style="color:purple;">translationSpeed</mark>: Specifies the speed at which the gun's position changes during the bobbing effect. It controls the rate of positional movement.
  * <mark style="color:purple;">rotationSpeed</mark>: Specifies the speed at which the gun's rotation changes during the bobbing effect. It controls the rate of rotational movement.
  * <mark style="color:purple;">movementLimit:</mark> 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.
  * <mark style="color:purple;">bobLimit</mark>: Sets the maximum limit for the bobbing effect itself.

### JUMP MOTION&#x20;

<figure><img src="https://2716441118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkdlNMXOYYmupb4VpBGHT%2Fuploads%2FPxG19Knh5v7aHCPg0vYv%2FFPSAsset%20-%20MovementShowroom%20-%20PC%2C%20Mac%20%26%20Linux%20Standalone%20-%20Unity%202021.1.16f1%20Personal%20_DX11_%202024-06-29%2022-28-43.gif?alt=media&amp;token=12ab59c8-5019-4b4b-98b1-3824959d9836" alt=""><figcaption></figcaption></figure>

* <mark style="color:purple;">jumpMotion</mark>: Animation Curve ( Start Jump Motion )&#x20;
* <mark style="color:purple;">groundedMotion</mark>: Animation Curve ( Stop Jump Motion / Land )&#x20;
* <mark style="color:purple;">distance</mark>: Amount of Jump Motion Effect
* <mark style="color:purple;">rotationAmount</mark>: Amount of Jump Motion Rotation
* <mark style="color:purple;">evaluationSpeed</mark>: How fast the Animation Curve is played

### WEAPON SWAY SETTINGS&#x20;

{% hint style="info" %}
Weapon Sway can be modified in each Weapon Prefab ( Located at the root of the prefab )
{% endhint %}

***

WeaponEffectsEditor can be found at the end of WeaponEffects.cs
