logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,581
Total Threads: 8,667
Posts: 94,503

Administrators:
DeeZire, Redemption

There are currently 48 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 03-03-2003, 02:55 PM   #1 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default Bringing units in Nod Airstrip, TD, style

I'm currently trying to get units in trough airdrops in stead of vehicles, (Just like Nod got it's vehicles from the airstrip in TD) and I have good results in it

First, the necassery codes:
Code:
Behavior       = OCLUpdate ModuleTag_XX ;Make XX for appropiate module
    OCL          = SUPERWEAPON_Paradrop1  ; Or another random OCL
    MinDelay     = 2000                                ; It takes 2000 msecs to start the OCL
    MaxDelay     = 2000                               ; ditto
    CreateAtEdge = Yes ; as opposed to just creating on self
  End

  Behavior = LifetimeUpdate ModuleTag_XX  ; Make XX for appropiate module
    MinLifetime = 10   ;Makes unit die after XX msecs
    MaxLifetime = 10   ; Ditto
  End
This gives a paradrop of 5 rangers in stead of the bought unit.

PS: Do not try this with the ranger, because the death ranger will spawn 5 rangers, they each spawn 5 rangers, and so on!!!
The values for lifetime and OCL updates are tested, please do not change them, or you get hundreds of airplanes swarming everything!

[edit]For the ones who saw this post in it's first 5 minutes, it works now.
To reflect my amazement, I want to quote a dutch saying:
Quote:
Let me get titties now!
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2003, 03:12 PM   #2 (permalink)
Member
 
Join Date: Dec 2002
Location: UK
Posts: 46
Default

ok im jusr want to ask you one question, so forgive me if im being naive but why the hell do you want to bring old stuff back?? why dont you just play cnc instead of creating lots of new problems?
Abel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2003, 03:18 PM   #3 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: England
Posts: 194
Send a message via ICQ to Black_Eagle
Default

hmm looks interesting, so wht in tht code says wht unit for it to drop? or do u just put them codes under the section of the unit u want to drop?
Black_Eagle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2003, 03:30 PM   #4 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: UK, England
Posts: 178
Send a message via ICQ to FoxMcCloud Send a message via MSN to FoxMcCloud
Default

Quote:
Originally Posted by Abel
ok im jusr want to ask you one question, so forgive me if im being naive but why the hell do you want to bring old stuff back?? why dont you just play cnc instead of creating lots of new problems?
Bcause, people want a TD mod, in order to make it realistic, its gonna have to happen. Also when people make new buildings, for example a GLA building might require a plane to drop off a unit or two or something.
FoxMcCloud is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2003, 03:31 PM   #5 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

Black_Eagle: the OCL, see SUPERWEAPON_Paradrop1

Abel: I need it for my TC, in which I don't want units to be build, but flown in by helicopters and transport aircraft.

Not to recreate TD. (altough it can be used for it. I used the TD example so everybody would know what it would do.)
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2003, 03:36 PM   #6 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: England
Posts: 194
Send a message via ICQ to Black_Eagle
Default

hmm i supppose thts kind of obvious really lol
Black_Eagle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2003, 04:43 PM   #7 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

Update on the ObjectCreationList, with the paradrop1 example (
Code:
ObjectCreationList SUPERWEAPON_Paradrop1
  DeliverPayload
    Transport = AmericaJetCargoPlane
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 4
    DropOffset = X:0 Y:0 Z:-10
    DropDelay = 150         ; 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 5
    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_USA
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:227 G:229 B:22 A:255 
      OnlyVisibleToOwningPlayer = Yes
    End
    ;RequiresLivePlayer = Yes ; I want to require a live player, but I'll settle for dropping neutral rangers instead
  End
End
)

You can have multiple payloads.

Inserting this: Payload =AmericaInfantryColonelBurton 1 lets you have an Burton dropped with the 5 rangers too!
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2003, 06:35 PM   #8 (permalink)
Junior Member
 
Join Date: Dec 2002
Location: The Internet
Posts: 23
Send a message via AIM to Corbin Send a message via Yahoo to Corbin
Default

this is cool if it works! great idea phoib!
Corbin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2003, 07:16 PM   #9 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

It works.

See here for a bugged version that spawned 10 airplanes. (The OCL update timer was too low).
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2003, 08:19 PM   #10 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

Did some more research, here are my results:
  • Vehicles can be deliverd too, they just need the right container (eg put them in AmericaParachute and they will just fall. See AmericaParachute for this...)
  • The huge OCL update came from the use of the MissileDefender to test this theory. Will post the necassery codes for the right use ASAP.
  • This also works with planes, to get planes from outside the map, and let them land on the airfield.
In order for this to work, I did the following:

I gave the stealth fighter following lines:
Code:
Behavior       = OCLUpdate ModuleTag_11 ; Context window is a reaction to this, no CommandSet ; start tw test
    OCL          = SUPERWEAPON_Paradrop2
    MinDelay     = 8
    MaxDelay     = 8
    CreateAtEdge = Yes ; as opposed to just creating on self
  End

  Behavior = LifetimeUpdate ModuleTag_12
    MinLifetime = 10   ; min lifetime in msec
    MaxLifetime = 10   ; max lifetime in msec
  End
with Paradrop2 being the following:
Code:
ObjectCreationList SUPERWEAPON_Paradrop2
  DeliverPayload
    Transport = CINE_AmericaJetStealthFighter
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 4
    DropOffset = X:0 Y:0 Z:-10
    DropDelay = 80        ; 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 = AmericaJetRaptor 1
    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 
      End
End
This will get the CINE Stealth fighter to land at your base! (The payload remains unused. Will test this later.)

The only current drawback is, the plane takes off from the side of the map...
See these pictures:




I will look into the taking off thing, and report later.
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Engineers C&C style full_circle Generals & Zero Hour Editing 8 05-10-2008 05:50 PM
My new Airstrip won't build sidewinder Generals & Zero Hour Editing 11 06-28-2005 11:54 PM
ID4 style SuperWeapon Razyd Generals & Zero Hour Editing 11 01-19-2004 12:48 PM
INI OCL Overlord Style Upgrade Help Sy Generals & Zero Hour Editing 8 12-30-2003 05:22 AM
the classic C&C style back:) ravage Generals & Zero Hour Editing 17 06-24-2003 03:17 AM


All times are GMT -4. The time now is 07:01 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.