MagnetGunClass

Classlabel: "magnetgun"

Class Tree: Entity->Wepaon->MagnetGun

Description:
Magnet Gun Class is a weapon that can push things while Active.

ODF Properties:
  • [MagnetGunClass]

    ammoCost = 10.0f
    Ammo cost per second.

    activeSound = ""
    Sound file played while Active.

    coneAngle = 0.3f
    Cone angle for the Field.

    fieldRadius = 20.0f
    How far the field extends outward.

    objPushCenter = 30.0f
    Object push force at Center of field.

    objPushEdge = 3.0f
    Object push force at Edge of field.

    objDragCenter = 0.0f
    Object Drag at Center of field.

    objDragEdge = 0.0f
    Object Drag at Edge of field.

    objDrag = ObjDragCenter.
    If this is set, it is used for both objDragCenter and objDragEdge, and overrides those settings.

    ordPushCenter = 100.0f
    Ordnance push force at Center of field.

    ordPushEdge = 10.0f
    Ordnance push force at Edge of field.

    ordDragCenter = 0.0f
    Ordnance Drag at Center of field.

    ordDragEdge = 0.0f
    Ordnance Drag at Edge of field.

    ordDrag = OrdDragCenter.
    If this is set, it is used for both ordDragCenter and ordDragEdge , and overrides those settings.

    TeamFilter = 0
    Team Filter for what Teams to affect. Valid values are: 0 = all teams, 1 = same team only, 2 = allies, 3 = enemies

    UseCone = true
    If this is false, it doesn't use the coneAngle and just uses Radius.

    ForceMass = -1
    If this is < 0, default behavior is applied. If this is > 0, then the Force applied to the object is multiplied by (ForceMass / Target's Mass).

    MinForceMassScale = 0.0001
    If ForceMass is > 0, this is the minimum mass it clamps to.

    MaxForceMassScale = 1.0
    If ForceMass is > 0, this is the maximum mass it clamps to.
On this page