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 05-31-2004, 05:28 PM   #1 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: USA
Posts: 442
Send a message via MSN to EvilViking
Default PCTeen1's Unit Paradrop Tutorial Released!

Yes, after much nagging, I finally got it done! Please excuse any spelling errors, I'm still forced to use the family computer (which I own 80% of the parts!), so I had to work on it off & on today. If you don't know what it's for, it shows you how to make units paradrop in when built, like the Nod Airsrtip in Renegade. Here's a picture:

http://www.membres.lycos.fr/actofwar/dozerdrop.jpg

Get it here: http://www.planetcnc.com/actofwar/downloads.htm

If any of you want to mirror it, just let me know. Deezire, feel free to add it to the tutorial area. Oh, one last thing, right now, it's only hosted on Gamespy.

Have fun!

EDIT: The file is broken, so here ya go!

Paradropping a unit
By PCTeen1Team Leader of the Zero Hour TC "An Act of War"

[img]lhttp://www.planetcnc.com/actofwar/nbanner.gif[/imgl]

Please excuse any spelling errors!
This tutorial explains how to get units dropped in by paradrops, like the Nod Airstrip in C&C Renegade. For this tutorial, I will be using the “Dozer Drop”, featured in An Act of War.

http://www.membres.lycos.fr/actofwar/dozerdrop.jpg

Let’s get started. You will need the following INI files:

CommandButton.ini, Commandset.ini, ObjectCreationList.ini, SpecialPower.ini, Spawns.ini (included), Science.ini, whatever INI file the unit that transports your tank in is in. (AAOWUnits.ini in this case)


IMPORTANT: Download Spawns.ini here: http://www.membres.lycos.fr/actofwar/Spawns.ini

We start off in SpecialPower.ini. We need to create a superweapon that will bring in the drop, much like the US’s Crate Drop:
Quote:
;-----------------------------------------------------------------------------
SpecialPower SuperweaponDozerDrop
Enum = SPECIAL_CRATE_DROP
ReloadTime = 1 ; in milliseconds  This does not matter, but set it at 1 just to be sure
RequiredScience = SCIENCE_DozerDrop
PublicTimer = Yes
ViewObjectDuration = 30000
ViewObjectRange = 250
RadiusCursorRadius = 100
ShortcutPower = Yes ;Capable of being fired by the side-bar shortcut.
End
Now, we need the science for it. From Science.ini:

Quote:
Science SCIENCE_DozerDrop
PrerequisiteSciences = None
SciencePurchasePointCost = 0 ; note that this means "not purchasable", NOT "free"!
IsGrantable = Yes
DisplayName = SCIENCE:TempName
Description = SCIENCE:TempDescription
End
So, we’ve got our main superweapon, and it’s science. Now, we need to make the OCL that does most of the work! This is from ObjectCreationList.ini:

Quote:
; -----------------------------------------------------------------------------
ObjectCreationList SUPERWEAPON_DozerDrop
DeliverPayload
Transport = AmericaJetC5Galaxy  This is what drops your dozer.
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 4  How many times the transport plane will try to drop your unit. I recommend 4-5, because every once in a while, you lose one to a circling transport.
DropOffset = X:0 Y:0 Z:-5
DropDelay = 1 ;500 ; time in between each item dropped (if more than one)
PutInContainer = LargeParachute  Because the unit needs a large parachute, after all, it’s a bulldozer!
Payload = AmericaVehicleDozer 1  What unit is being dropped off
DeliveryDistance = -45
DeliveryDecalRadius = 100
This is what you normally see for a superweapon. I’m trying to get it to go away, as it paints a red circle around the building that the unit is being built from:
DeliveryDecal
Texture = EXTargeterAlpha
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:0 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End
Now, we have to add the superweapon to the transport. This is from AAOWUnits.ini, you can add this tag to any aircraft belonging to the same side as the unit you’re dropping:

Quote:
;------------------------------------------------------------------------------
Object AmericaJetC5Galaxy

***Unit code taken out to save space***

Behavior = OCLSpecialPower ModuleTag_14  Make sure this number is unique in the unit’s code
SpecialPowerTemplate = SuperweaponDozerDrop  the superweapon we did first
OCL = SUPERWEAPON_DozerDrop  the OCL from ObjectCreationList.ini
CreateLocation = USE_OWNER_OBJECT
ScriptedSpecialPowerOnly = Yes  can only be called in by the CommandBar
End

Behavior = TransportContain ModuleTag_10
Slots = 100 ; hey, it's a BIG transport
ScatterNearbyOnExit = No
OrientLikeContainerOnExit = Yes
KeepContainerVelocityOnExit = Yes
ExitPitchRate = 30
ExitBone = WeaponA01
AllowInsideKindOf = INFANTRY VEHICLE PROJECTILE DOZER PARACHUTABLE  Make sure it can carry vehicles
;gs I added parachutable as a catch all to prevent making new kindofs (like CRATE)
DoorOpenTime = 0 ; this prevents the Contain module from messing with the doors, since we want DeliverPayload to handle 'em
NumberOfExitPaths = 0
DestroyRidersWhoAreNotFreeToExit = Yes ; 'destroy' as opposed to 'kill'
End
Now, here’s the tricky part. We need to create a unit, that when built, is invisible, and is immediately destroyed, spawning the paradrops. Also, remember to change the cost of this unit and the time it takes for it to build, as it’s this that you’re technically paying for, not the unit that is dropped!

This is from Spawns.ini, which was included:

Quote:
;--------------------------- Yes, this is the US Dozer spawner...--------

Object AmericaVehicleDozerSpawner

; *** ART Parameters ***

SelectPortrait = SACDozer_L  Be sure to put the unit that you want to build’s icon here, so it will show up properly on the command bar!
ButtonImage = SACDozer

Draw = W3DModelDraw ModuleTag_01  The unit has no model, so it’s invisible
DefaultConditionState
Model = None
End
End

; ***DESIGN parameters ***
DisplayName = MISSING
Side = America  Be sure to put the right side!
EditorSorting = VEHICLE
TransportSlotCount = 0 ;how many "slots" we take in a transport (0 == not transportable)

ArmorSet
Conditions = None
Armor = TankArmor
DamageFX = TankDamageFX
End
BuildCost = 1000  Put the cost of the unit you want to build here
BuildTime = 3.5 ;in seconds  Put less then you normally would here, as it has to travel from the side of the map too
VisionRange = 125
ShroudClearingRange = 300
Prerequisites
Object = AmericaCommandCenter Be sure to put the right prerequisite on here
End

; *** ENGINEERING Parameters ***
RadarPriority = STRUCTURE
KindOf = VEHICLE IMMOBILE
Body = ActiveBody ModuleTag_02  It’s invincible… or is it?
MaxHealth = 99999.0
InitialHealth = 99999.0
End
Behavior = LifetimeUpdate ModuleTag_03  This is very important, this time must be longer than the time in the OCL Update below!
MinLifetime = 15 ; min lifetime in msec
MaxLifetime = 15 ; max lifetime in msec
End

Behavior = OCLUpdate ModuleTag_04 ;  This spawns the OCL right before the unit dies
OCL = SUPERWEAPON_DozerDrop
MinDelay = 5
MaxDelay = 5
CreateAtEdge = Yes ;  The transport spawns at the edge of the map, instead of right on top of the building!
End

Geometry = BOX
GeometryMajorRadius = 1.0
GeometryMinorRadius = 1.0
GeometryHeight = 1.0
GeometryIsSmall = Yes

End
OK, all that’s left is to make the button that builds the dummy unit. CommandButten.ini:

Quote:
CommandButton Command_ConstructAmericaDozer
Command = UNIT_BUILD
Object = AmericaVehicleDozerSpawner
TextLabel = CONTROLBAR:ConstructAmericaDozer
ButtonImage = SACDozer
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUSABuildDozer
End
As you can see, all I did was change what object is spawned to the dummy unit. The name and descriptions will remain the same, letting the player think he’s building the actual unit… tricky, eh?

If you’re doing a different unit, you must, of course, make a new command button entry, and then add it to CommandSet.ini. As for me, though, that’s it! Boot up the game & try it out.

Find any problems? Did I forget something? Was I completely wrong about something? Let me know! PCTeen1ATcncgames.every1.net

Know bugs:
1. Eva says “Unit Lost” every time you build the unit
2. There is a red circle around the building that is building the unit

If you can help with these, please email me!

Extra: Getting the AI to build your new unit

There is one problem with this, the AI will still try to build the actual dozer, not the dummy object! The solution is simple if you know how to edit the AI, simply open up the Teams and change the Dozer team to the dummy object instead of the actual dozers. Now, the AI will use it just fine!




Tutorial, code, and images © 2004 PCTeen1. Please, if you use this in a mod, give credit where credit is due! Thanks!
EvilViking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2004, 05:31 PM   #2 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: UK
Posts: 676
Send a message via MSN to DJRowley
Default

Ah, is that the OCL method, where you build the 'unit beacon' thingys instead of the object itself? I can't tell because I can't actually download it.... It goes to the page with the server list, but both lists are empty...
DJRowley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2004, 06:01 PM   #3 (permalink)
Senior Member
 
Join Date: Jan 2004
Location: London, UK
Posts: 390
Send a message via AIM to Slye_Fox Send a message via MSN to Slye_Fox Send a message via Yahoo to Slye_Fox
Default

I just get the Fileplanet error page,
Why don't you put it in the member written tutorials section?
Slye_Fox is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2004, 06:31 PM   #4 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: USA
Posts: 442
Send a message via MSN to EvilViking
Default

There ya go. I haven't fully converted it yet, so be carefull copying the code! Where you see boxes (sort of like this: [] ) there should be a ";" . There may be a few missing too. I'll try to fix the file as soon as I can.
EvilViking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-01-2004, 06:38 AM   #5 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: UK
Posts: 676
Send a message via MSN to DJRowley
Default

If you don't want the delivery decal, just delete all lines of code which refer to it That's what I did for my laser-guided airstrike, and that worked
DJRowley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-01-2004, 07:14 AM   #6 (permalink)
Member
 
Join Date: Mar 2003
Location: Berlin, Germany
Posts: 69
Send a message via ICQ to Chriz
Default

Nice Tutorial, but why do you work with a Science?
Delete the "RequiredScience = SCIENCE_DozerDrop" line and it should work without a science.
Chriz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-01-2004, 09:03 AM   #7 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: UK
Posts: 676
Send a message via MSN to DJRowley
Default

I expect that is to stop people who capture the command centre being able to request dozers.
DJRowley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-01-2004, 10:27 AM   #8 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: USA
Posts: 442
Send a message via MSN to EvilViking
Default

Actually, I thought the same thing when I was writing the tut. Once I got it working, I just left it there and got back to trying to get the 1.0 release working, lol. It can work without the science if you want toher sides to be able to build Dozers. Thanks for the tip, DJRowley! I'll try it out.
EvilViking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-01-2004, 10:59 AM   #9 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: UK
Posts: 676
Send a message via MSN to DJRowley
Default

I think requiring the science is a good idea. But change it to SCIENCE_USA so that you don't have to select it or anything.

It's agood idea because the USAF delivering dozers to their enemies is a bit stupid really....
DJRowley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-01-2004, 12:09 PM   #10 (permalink)
Senior Member
 
Join Date: Nov 2003
Location: Hell
Posts: 272
Default

just a few Misc. fixes

the spawner object EditorSorting should be System, and kindof NO_COLLIDE, no VEHICLE Kindof

and for Eva not to say "Unit Lost" give it a PROJECTILE kindof

as for the red circle, i think u should remove the DeliveryDecal part
4hammer 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
Unit Creation tutorial? Slon Generals & Zero Hour Editing 5 08-26-2004 04:59 AM
Paradrop unit ability LuftWaffle Generals & Zero Hour Editing 3 12-13-2003 03:00 PM
different paradrop load Indigo Generals & Zero Hour Editing 4 08-08-2003 09:51 AM
Multiple Unit Paradrop mastermind2003 Generals & Zero Hour Editing 24 05-21-2003 11:43 AM
Paradrop Clone11b Red Alert 2 & Yuri's Revenge Editing 12 02-04-2003 01:20 AM


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


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