Help - Search - Members - Calendar
Full Version: B3 Carpet Bomb
SWR Productions Forum > Game Modding and Development > Generals/Zerohour Modding
Spec
Hi! Does anyone know how to make the B3 Carpet Bomb OCL go straight only instead of doing a U-Turn? Seems I can't figure out the code TBH

CODE
; -----------------------------------------------------------------------------
ObjectCreationList AirF_SUPERWEAPON_CarpetBombSpec

  DeliverPayload
    Transport = AirF_AmericaJetB3
    FormationSize          = 3
    FormationSpacing       = 200.0
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 1
    DropOffset = X:0 Y:0 Z:-2
    DropVariance = X:30 Y:40 Z:0
    DropDelay = 300 ;500      ; time in between each item dropped (if more than one)
    Payload = AirF_CarpetBomb 10
    DeliveryDistance = 500
    DeliveryDecalRadius = 180
    DeliveryDecal
      Texture           = SCCCarpBomb
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:255 G:0 B:0 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End

  DeliverPayload
    Transport = AirF_AmericaJetB3
    FormationSize          = 3
    FormationSpacing       = 100.0
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = No
    MaxAttempts = 1
    DropOffset = X:0 Y:0 Z:-2
    DropVariance = X:30 Y:40 Z:0
    DropDelay = 300 ;500      ; time in between each item dropped (if more than one)
    Payload = AirF_CarpetBomb 10
    DeliveryDistance = 500
    DeliveryDecalRadius = 180
    DeliveryDecal
      Texture           = SCCCarpBomb
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:255 G:0 B:0 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End

;------------------------------------------------------------------------
ObjectCreationList AirF_SUPERWEAPON_MOAB

  DeliverPayload
    Transport = AirF_AmericaJetB3
    FormationSize          = 3
    FormationSpacing       = 325.0
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 1
    DropOffset = X:0 Y:0 Z:-10
    Payload = AirF_MOAB 1
    DeliveryDistance = 180
    DeliveryDecalRadius = 180
    DeliveryDecal
      Texture           = SCCCarpBomb
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:255 G:0 B:0 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End

  DeliverPayload
    Transport = AirF_AmericaJetB3
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = No
    MaxAttempts = 1
    DropOffset = X:0 Y:0 Z:-10
    Payload = AirF_MOAB 1
    DeliveryDistance = 200
    DeliveryDecalRadius = 180
    DeliveryDecal
      Texture           = SCCCarpBomb
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:255 G:0 B:0 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End


Here is the OCL Special Power:
CODE
  Behavior    = OCLSpecialPower ModuleTag_10
    SpecialPowerTemplate = AirF_SuperweaponParticleUplinkCannon
    UpgradeOCL           = SCIENCE_MOAB AirF_SUPERWEAPON_MOAB
    OCL                  = AirF_SUPERWEAPON_CarpetBombSpec
    CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE;other choices are: *NEAR_SOURCE *FARTHEST_FROM_SOURCE *NEAR_TARGET *FARTHEST_FROM_TARGET
  End
Oliver
Locate its locomotor, that's where you change it probably, in turnrate or something like that
Spec
QUOTE (Oliver @ 22 Jan 2018, 0:46) *
Locate its locomotor, that's where you change it probably, in turnrate or something like that

Thanks for the tip.. Problem Solved
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.