Generic Cable (CIGI Packets)
| Structure Type | GenericCable | |||
|---|---|---|---|---|
| Packet ID | 208 | |||
| Packet Size (bytes) | 134 | |||
| SpyClient Lookup | host2pcnova→h2ig.dat.fx_data.generic_cable | |||
| Parameter | Type | Description | Range | |
| Mode | char | 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_Mode | char | Allows the user to control the cable manually or through a scripted sequence. 0 = Manual 10 = Scripted | 0, 10 | |
| Type | char | 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_Points | char | In EXPLICIT mode, specifies the number of vertices (segments) in the cable. | 1 - MAX_CABLE_CONTROL_POINTS | |
| Collide_Mode | unsigned 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_Collisions | char | In PHYSICS mode, suppresses self-collisions of the cable segments. 0 = OFF 1 = ON | 0 - 1 | |
| Cable_Length | float | In PHYSICS mode, the length of the physical cable in meters. | 0.0 - MAXFLOAT | |
| Physics_Radius | float | In PHYSICS mode, the radius of cable physics simulation in meters. | 0.0 - MAXFLOAT | |
| Physics_Center | X | double | In PHYSICS mode, the latitude of the center point of cable physics simulation in degrees. | -90.0 - 90.0 |
| Y | double | In PHYSICS mode, the longitude of the center point of cable physics simulation in degrees. | -180.0 - 180.0 | |
| Z | double | In PHYSICS mode, the altitude of the center point of cable physics simulation in feet. | 0.0 - MAXDOUBLE | |
| Parent[0].Type | char | N/A | N/A | |
| Parent[0].ID | unsigned short | Optional entity ID of parent (for parenting the cable origin). | 0 - MAXSHORT | |
| Parent[0].Attachment_Point | char | Optional point to attach to on the parent model if supported. | Model Specific | |
| Parent[1].Type | char | N/A | N/A | |
| Parent[1].ID | unsigned short | Optional entity ID of parent (for parenting the cable endpoint). | 0 - MAXSHORT | |
| Parent[1].Attachment_Point | char | Optional point to attach to on the parent model if supported. | Model Specific | |
| Coord_Cable | X | double | 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 |
| Y | double | 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 | |
| Z | double | 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] | X | double | Tangent X component for the cable origin in SPLINE mode. | 0.0 - MAXDOUBLE |
| Y | double | Tangent Y component for the cable origin in SPLINE mode. | 0.0 - MAXDOUBLE | |
| Z | double | Tangent Z component for the cable origin in SPLINE mode. | 0.0 - MAXDOUBLE | |
| Tgts_Cable[1] | X | double | Tangent X component for the cable end in SPLINE mode. | 0.0 - MAXDOUBLE |
| Y | double | Tangent Y component for the cable end in SPLINE mode. | 0.0 - MAXDOUBLE | |
| Z | double | Tangent Z component for the cable end in SPLINE mode. | 0.0 - MAXDOUBLE | |