Skip to content

Communication Jammer

Hypoxic edited this page Aug 24, 2025 · 4 revisions

Commmunication Jammer

Module Description

Creates a communication jammer at module location OR synchronized object. Will update its position based on this object. Can be given multiple formulas for calculating jamming strength. Stop jamming by either deleting the module, or the syncronized module object.

Module Properties

See Module Properties

isGlobal = 2;
isTriggerActivated = 0;
isDisposable = 1;
is3DEN = 1;

canSetArea = 1;
canSetAreaShape = 1;
canSetAreaHeight = 1;
class AttributeValues {
    size3[] = {100, 100, 100};
    isRectangle = 0;
};

Module Arguments

Jam Formula

  • Description:
    The formula used to calculate the jam amount. Based on distance of the player to the jammer center/object. Normalized for max radius of the module area (No ellipses - pure circles).

    Test Formulas

  • Default:
    LINEAR

Linear

  • Formula:
    _jamAmount = 1 - (_distance / _radius)
  • Suggested k Value:
    1
  • Function Restrictions:
    None

Power

  • Formula:
    _jamAmount = 1 - ((_distance / _radius) ^ _k)
  • Suggested k Value:
    2
  • Function Restrictions:
    k > 0

Exponential

  • Formula:
    _jamAmount = (e ^ (-_k * (_distance / _radius)))
  • Suggested k Value:
    5
  • Function Restrictions:
    k >= 0

Logarithmic

  • Formula:
    _jamAmount = (1 - (log(1 + (_distance / _radius)) / log(_k min 2)))
  • Suggested k Value:
    2
  • Function Restrictions:
    k >= 2

Inverse Power

  • Formula:
    _jamAmount = 1 - (1 / (1 + ((_distance / _radius) ^ _k)))
  • Suggested k Value:
    2
  • Function Restrictions:
    k >= 2

Sine Wave

  • Formula:
    _jamAmount = (cos(_k * pi * (_distance / _radius)) + 1) / 2
  • Suggested k Value:
    1
  • Function Restrictions:
    None

Sigmoid

  • Formula:
    _jamAmount = 1 / (1 + e ^ (_k * ((_distance / _radius) - 0.5)))
  • Suggested k Value:
    10
  • Function Restrictions:
    None

k Value

  • Description:
    Modifier of the formula.

    Quadratic: The steepness changes with k.
    Exponential: Larger k makes the drop-off faster.
    Logarithmic: k adjust how gradual the fall-off is.
    Inverse: Steeper curves for larger k. Sine: Frequency increases with k.
    Sigmoid: The S-Curve becomes steeper as k increases.

    Test k Values

  • Accepts:
    Float

  • Default:
    1

Visualize Radius

  • Description:
    Shows colored spheres that indicate the strength of the jamming depending on the forumula and k value selected.

    Green: 0-49%
    Yellow: 50-74%
    Red: 75-100%

  • Default:
    None

Object Synchronization

Accepted Objects

  • Object
  • Vehicle
  • Unit
  • Trigger

Trigger Effects

Activation

  • Activating with a trigger starts the jammer

Deactivation

  • None

Clone this wiki locally