Printable Version of Topic

Click here to view this topic in its original format

SWR Productions Forum _ Custom Maps _ Custom Map code: Better Airport Paradrops

Posted by: Generalcamo 4 Jan 2016, 14:37

So, you feel that the current Tech Airport is not powerful enough to fit your map? So did I, so I changed it.

This is map.ini code that modifies the Tech Airport Paradrops. This can be customized as you see fit, or left as they were. Thanks to SoraZ to helping me with a slight problem. Now here is the code:

CODE
; Airport Drops are more useful
ObjectCreationList OCL_ParaTroopersUSA
  DeliverPayload
    Transport = AmericaJetCargoPlane
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 4
    DropOffset = X:0 Y:0 Z:-10
    DropDelay = 30        ; time in between each item dropped (if more than one)
    ParachuteDirectly = Yes; will tell all contained parachutes to go ahead and bunch
    PutInContainer = AmericaParachute
    Payload = AmericaInfantryRanger 8
    Payload = AmericaInfantryMissileDefender 4
    Payload = AmericaInfantryVanguard 4
    DeliveryDistance = 0 ;when outbound vehicle must be this close to target to continue delivery
    PreOpenDistance = 300;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery
    DeliveryDecalRadius = 50
    DeliveryDecal
      Texture           = SCCParaDrop
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:227 G:229 B:22 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End

; -----------------------------------------------------------------------------
ObjectCreationList OCL_ParaTroopersCHI
  DeliverPayload
    Transport = ChinaJetCargoPlane
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 4
    DropOffset = X:0 Y:0 Z:-10
    DropDelay = 30        ; time in between each item dropped (if more than one)
    ParachuteDirectly = Yes; will tell all contained parachutes to go ahead and bunch
    PutInContainer = ChinaParachute
    Payload = ChinaInfantryRedguard 8
    Payload = ChinaInfantryTankHunter 4
    Payload = ChinaInfantryPyroTechnician 4
    DeliveryDistance = 0 ;when outbound vehicle must be this close to target to continue delivery
    PreOpenDistance = 300;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery
    DeliveryDecalRadius = 50
    DeliveryDecal
      Texture           = SCCParaDrop
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:227 G:229 B:22 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End

; -----------------------------------------------------------------------------
ObjectCreationList OCL_ParaTroopersRUS
  DeliverPayload
    Transport = RussiaCargoHelicopter
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 4
    DropOffset = X:0 Y:0 Z:-10
    DropDelay = 30        ; time in between each item dropped (if more than one)
    ParachuteDirectly = Yes; will tell all contained parachutes to go ahead and bunch
    PutInContainer = RussianParachute
    Payload = RussiaInfantryConscript 8
    Payload = RussianInfantryRPGConscript 4
    Payload = RussianInfantryIglaTrooper 2
    Payload = RussianInfantryShmelTrooper 2
    DeliveryDistance = 0 ;when outbound vehicle must be this close to target to continue delivery
    PreOpenDistance = 300;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery
    DeliveryDecalRadius = 50
    DeliveryDecal
      Texture           = SCCParaDrop
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:227 G:229 B:22 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End

; -----------------------------------------------------------------------------
ObjectCreationList OCL_ParaTroopersGLA
  DeliverPayload
    Transport = GLAJetCargoPlane
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 4
    DropOffset = X:0 Y:0 Z:-10
    DropDelay = 30        ; time in between each item dropped (if more than one)
    ParachuteDirectly = Yes; will tell all contained parachutes to go ahead and bunch
    PutInContainer = GLAParachute
    Payload = GLAInfantryRebel 8
    Payload = GLAInfantryTunnelDefender 4
    Payload = GLAInfantryTerrorist 4
    DeliveryDistance = 0 ;when outbound vehicle must be this close to target to continue delivery
    PreOpenDistance = 300;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery
    DeliveryDecalRadius = 50
    DeliveryDecal
      Texture           = SCCParaDrop
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:227 G:229 B:22 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End

; -----------------------------------------------------------------------------
ObjectCreationList OCL_ParaTroopersECA
  DeliverPayload
    Transport = EuropeJetCargoPlane
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 4
    DropOffset = X:0 Y:0 Z:-10
    DropDelay = 30        ; time in between each item dropped (if more than one)
    ParachuteDirectly = Yes; will tell all contained parachutes to go ahead and bunch
    PutInContainer = EuropeParachute
    Payload = EuropeInfantryFelin 10
    Payload = EuropeInfantryPanzerFaust 4
    Payload = EuropeInfantryMedic 2
    DeliveryDistance = 0 ;when outbound vehicle must be this close to target to continue delivery
    PreOpenDistance = 300;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery
    DeliveryDecalRadius = 50
    DeliveryDecal
      Texture           = SCCParaDrop
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:227 G:229 B:22 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End

Posted by: M01 6 Jan 2016, 13:58

wanted to add some more types of infantry

what are the code names of other infantry

just to make it a bit diverse

Posted by: mr_Skittles 6 Jan 2016, 15:34

QUOTE (M01 @ 6 Jan 2016, 12:58) *
wanted to add some more types of infantry

what are the code names of other infantry

just to make it a bit diverse


well u can load any map with worldbuilder, and go to the object list, all the inf are in there with the names u need

Posted by: M01 7 Jan 2016, 12:27

QUOTE (mr_Skittles @ 6 Jan 2016, 22:34) *
well u can load any map with worldbuilder, and go to the object list, all the inf are in there with the names u need


didn't thought of that first... still my many tanks

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)