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

Forum Info
Forum Members: 18,677
Total Threads: 8,798
Posts: 95,843

Administrators:
DeeZire, Redemption

There are currently 35 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > Member Written Tutorials » [RA2/YR] Spawns= and Enslaves= Tutorial

Member Written Tutorials A compilation and archive of tutorials written by members. You cant post here, but you can read the threads.

Reply
 
LinkBack Thread Tools
Old 03-06-2004, 03:05 AM   #1 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: Argentina
Posts: 608
Send a message via MSN to ArgCmdr
Default [RA2/YR] Spawns= and Enslaves= Tutorial

Stickify this, put it on the tutorials section, or may all of us be doomed because...

...I wrote this in a desesperate attempt to prevent every question regarding Spawns= and Enslaves= cause its getting crowded of repeated doubts everywhere.

About Spawns= Logic

Facts:
+ Only Aircraft can be spawned fully functionally.
+ Spawned units have two routines ONLY given by the Spawns logic, Attack and Return.
+ Spawned Units can be made to look like ground vehicles by modifying their FlightLevel=. However, theyll still be aircraft.
+ Ships, Tanks and 1x1 Buildings can use Spawns= with no problems.
+ Jumpjets can spawn units, but depending on the coding, units will either crash the game, or aircraft will fly in circles or be static until jumpjet lands, as its hardcoded to land at ground. So, Spawns from Aircrafts work, as long as Jumpjet hasn´t BalloonHover=yes set
+ Buildings that are more than 1x1 may spawn units, however, the return routine generates difficulties at the time of executing, as it is coded to land in the middle of a cell (thus, middle of where a unit/structure). On structures that are not 1x1. the center is between cells, so the odds are that the unit will wander around one or another cell trying to land, or crash the game. (Actually, someone should try if 3x3 structures can Spawn aircraft)
+ It is untested if Aircrafts can Spawn other Aircrafts, but its likely that logic has the same restrictions as Jumpjet locomotor
+ The Spawner controls the target of the Spawned, so whenever you retarget with Spawner, Spawned will also retarget. Notice that giving autonomy control to Spawned, either doesnt work, crashes the game, or clogs the Spawned (effect seems to vary, for some reason)
+ You always need a Spawner and a Spawned, Spawned units always need to have Spawned=yes, and Spawners need to have Spawns=X, and a weapon that has Spawner=yes, OmniFire=yes, and Warhead=Special
+ If what you want to get spawned are missiles, then Spawned must have MissileSpawn=yes set, flag which prevents the unit from executing the return routine.

Related Tags:
[Spawner]
Spawns=Spawned ; Obvious, aint it.
SpawnsNumber= ; Number of Spawned Type units Spawner Spawns
SpawnRegenRate=600 ; Rate at which a spawned is regenerated in frames (15 frames = 1 sec)
SpawnReloadRate=150 ; Rate at which a spawned gets its ammo reloaded in frames (15 frames = 1 sec)
Primary=Weapon of the Spawner ; Links Spawn act with attack command.

[Weapon of the Spawner]
Damage=1 ; positive and low value, used to trigger the target effect.
OmniFire=yes ; Firer doesnt need to face target
Spawner=yes ; Passes targeting from spawner to spawned, needs Warhead=Special to conform a hardcoded routine that does so, and obviously, needed.
Warhead=Special ; Again, its part of the logic

[Spawned]
Spawned=yes ; Needed for logic to work, recognises object as spawned
Landable=yes ; Needed, even if spawned, as it always has to reload
PipScale=Ammo ; Type of image at the low left corner of the selection box
Ammo=1 ; Quantity of Ammo...this is important, as non reloading spawnees can take ages to go back and land if they cant kill their target

About Enslaves= Logic

Facts:
+ Only one Enslaved unit can be done at a time
+ Enslaved units are hardcoded to be called SLAV
+ Enslaved routine is only one, and its Harvest. Theres no way to have standard infantry slaves.
+ Enslaved units seem to be hardcoded to be infantry, or infantry that looks like vehicles (need confirmation here)
+ Enslaver can be any ground vehicle / building. Untested on infantry (would look odd anyway)

As you can see, theres not much to work around. So:

Related Tags:
[Enslaver]
Enslaves=Enslaved ; Sets which infantry unit is freed upon this object´s destruction.
SlaveNumber= ; Number of slaves it spawns (doh)
SlaveRegenRate= ; In frames, regeneration of a slave upon its destruction
SlaveReloadRate= ; In frames, respawn of slave after it has returned with ore

[Enslaved]
HarvestRate= ; Used for harvesting infantry logic, speed of harvesting, would be, said fastly.
Slaved=yes ; needed, and a structure needs to have Enslaves=Enslaved for logic to work


Credits to:
DeeZire (explaining Slave logic at its time, and for all the INI keys research)
Me, for compiling this whole...errr...thing, and testing around as much as possible.
Kravvitz, one or two bits of info around his posts that id have missed if i didnt read em.

And im open to contributions, so, p0st your additional info.
ArgCmdr 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
How can I change the AircraftType that HoverPad=yes spawns? DCoder Red Alert 2 & Yuri's Revenge Editing 5 08-06-2005 01:01 PM
GEN DEV Tutorial SCIENCES goblinsleez Generals & Zero Hour Editing 9 04-04-2005 05:17 PM
Conditionstate tutorial sinebar Generals & Zero Hour Editing 25 03-03-2004 10:28 PM
UVMapping Tutorial! Oldfaq Generals & Zero Hour Editing 0 07-01-2003 03:42 AM
Tutorial? are there any? Tesla-Chrono Red Alert 2 & Yuri's Revenge Editing 3 01-05-2003 08:16 PM


All times are GMT -4. The time now is 04:24 AM.


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