TugClass

Classlabel: "tug"

Class Tree: Entity->GameObject->Craft->HoverCraft->Tug

Supported Animations:
  • Deploy

Description:
Tug is a class that can Deploy to pick up other objects. Unlike BZ1/98R Tugs, the Tugs in BZ2 use a strong Magnetic Field to hold the objects. This means they can wiggle and sway when being held, and technically can be knocked loose with enough force.

Default ODF Properties:
[GameObjectClass]
categoryTypeOverride = 24 //TEAM_SLOT_UTILITY
needPilot = false

[CraftClass]
canRescue = false

Recommended AI Process:
aiName = "TugFriend"
aiName2 = "TugEnemy"

ODF Properties:
  • [TugClass]

    dockSpeed 4.0f
    Time in seconds it takes to pick up an object.

    fieldRadius = 20.0f
    How big the Magnet field is.

    fieldOffset = 4.0f
    Position offset of the field, along the Z axis.
    Note: Inverse of Forward which means positive values are Backwards, and negative values are Forwards.

    accelCenter = 0.0f
    How much acceleration is applied in the Cargo object near the Center of the Magnet Field.

    accelEdge = -50.0f
    How much acceleration is applied to the Cargo object near the Edge of the Magnet Field.

    accelDrag = 10.0f
    Acceleration Drag applied to the Cargo object.

    alphaDamp = 10.0f
    Acceleration Dampening applied to the Cargo object.

    alphaTrack = 20.0f
    Turn Acceleration traction applied to the Cargo object.

    UseLiftSpring = true
    If this is true, it uses the CargoLiftSpring to help keep the Cargo object at a raised altitude.

    CargoLiftSpring = 10.0f
    Only used if UseLiftSpring is true. Life Spring applied to the Cargo object.

    RotateWithTug = false
    If this is true, the Cargo object's rotation is kept relative to the Tug's rotation. If false, Cargo's rotation is independent of Tug's rotation.
On this page