Skip to main content
Skip table of contents

Generic Cable (CIGI Packets)

Structure TypeGenericCable
Packet ID208
Packet Size (bytes)134
SpyClient Lookuphost2pcnova→h2ig.dat.fx_data.generic_cable
ParameterTypeDescriptionRange
Modechar

Allows the user to switch between spline, explicit, or a physics-based cable.


0 = OFF

1 = SPLINE

2 = EXPLICIT

3 = PHYSICS_V_SHAPE

4 = PHYSICS_HELIX

5 = PHYSICS_UPWARD_WITH_ARC

0 - 5
Update_Modechar

Allows the user to control the cable manually or through a scripted sequence.


0 = Manual

10 = Scripted

0, 10
Typechar

The cable size scaling factor and the cable texture type.


0 = Default Size

1 = 2x size

2 = 3x size

3 = 4x size

4 = 5x size

5 = 6x size

6 = 7x size

7 = 8x size

0 - 7
Number_of_Control_Pointschar

In EXPLICIT mode, specifies the number of vertices (segments) in the cable.

1 - MAX_CABLE_CONTROL_POINTS
Collide_Modeunsigned short

A bitfield specifying what objects the cable should collide with.


0 = None

1 = Terrain

2 = Cultural

4 = Air Targets

8 = Sea Targets

16 = Ground Targets

32 = Weapon Targets

64 = Sling Load

128 = Ground Actor

256 = Cable

0 - 2, 4, 8, 16, 32, 64, 128, 256
Suppress_Self_Collisionschar

In PHYSICS mode, suppresses self-collisions of the cable segments.


0 = OFF

1 = ON

0 - 1
Cable_Lengthfloat

In PHYSICS mode, the length of the physical cable in meters.

0.0 - MAXFLOAT
Physics_Radiusfloat

In PHYSICS mode, the radius of cable physics simulation in meters.

0.0 - MAXFLOAT
Physics_CenterXdouble

In PHYSICS mode, the latitude of the center point of cable physics simulation in degrees.

-90.0 - 90.0
Ydouble

In PHYSICS mode, the longitude of the center point of cable physics simulation in degrees.

-180.0 - 180.0
Zdouble

In PHYSICS mode, the altitude of the center point of cable physics simulation in feet.

0.0 - MAXDOUBLE
Parent[0].Typechar

N/A

N/A
Parent[0].IDunsigned short

Optional entity ID of parent (for parenting the cable origin).

0 - MAXSHORT
Parent[0].Attachment_Pointchar

Optional point to attach to on the parent model if supported.

Model Specific
Parent[1].Typechar

N/A

N/A
Parent[1].IDunsigned short

Optional entity ID of parent (for parenting the cable endpoint).

0 - MAXSHORT
Parent[1].Attachment_Pointchar

Optional point to attach to on the parent model if supported.

Model Specific
Coord_CableXdouble

For PHYSICS and SPLINE modes, the latitude of the cable start (control_point_index = 0) and end (control_point_index = 1) in degrees.

For EXPLICIT mode, the latitude in degrees of a control point.

-90.0 - 90.0
Ydouble

For PHYSICS and SPLINE modes, the longitude of the cable start (control_point_index = 0) and end (control_point_index = 1) in degrees.

For EXPLICIT mode, the longitude in degrees of a control point.

-180.0 - 180.0
Zdouble

For PHYSICS and SPLINE modes, the altitude of the cable start (control_point_index = 0) and end (control_point_index = 1) in feet.

For EXPLICIT mode, the altitude in feet of a control point.

0.0 - MAXDOUBLE
Tgts_Cable[0]Xdouble

Tangent X component for the cable origin in SPLINE mode.

0.0 - MAXDOUBLE
Ydouble

Tangent Y component for the cable origin in SPLINE mode.

0.0 - MAXDOUBLE
Zdouble

Tangent Z component for the cable origin in SPLINE mode.

0.0 - MAXDOUBLE
Tgts_Cable[1]Xdouble

Tangent X component for the cable end in SPLINE mode.

0.0 - MAXDOUBLE
Ydouble

Tangent Y component for the cable end in SPLINE mode.

0.0 - MAXDOUBLE
Zdouble

Tangent Z component for the cable end in SPLINE mode.

0.0 - MAXDOUBLE
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.