More Efficient Automatic Ore Extraction

Tutorial for Yuri's Revenge YR

Avatar of Nighthawk

Nighthawk

Category: Code
Level: Expert
Created: Wednesday July 29, 2009 - 3:12
Updated: Wednesday July 29, 2009 - 3:14
Views: 2298
Summary: Create an automatic ore extractor like that in Robot Storm
Rating
  • Staff-
  • Members-
  • Average-

0 votes

Original Author: Apollo

Hey, here is my & gamemate's version of Ore spawner method which works better ore amount wise than AGs and won't cause lag which artmd.ini linked anim style tends to do. all of this is mostly rules coding.

first of all..your building entry should have entrys like

              
Code
WorkingSound=OreMineExtract
Primary=OreField
AttackFriendlies=yes
GuardRange=255
DefaultToGuardArea=yes
OpportunityFire=yes


they are mostly ensuring the auto firing logic works purposes wise there.

and the weapon entry

              
Code
[OreField]
Damage=1;so game allows fire it unlike 0
ROF=600
Range=500;or 255.whatever seems work
Speed=2;doesnt matter really
AreaFire=yes
FireOnce=no
Projectile=Invisible;should work fine with just this
Warhead=OreWarhead
Report=OreMineExtract
DecloakToFire=no;note..i only used this as i got bases with cloak generator..so keeps working cloaked too than stay uncloaked.


notice..the ROF here is one good way to control ore spawning rate

next the warhead..remember add it to the [Warheads] list, XX=OreWarhead

              
Code
[OreWarhead]
Verses=50%,50%,50%,50%,50%,50%,50%,50%,50%,50%,50%
InfDeath=0
CellSpread=1;doesnt matter much..
MinDebris=12;how much ore spawner pieces to spawn every time weapon is fired
MaxDebris=12;same, just making sure
DebrisTypes=PEBBLE;old entry used in only old meteor codes but feel free do a new entry too.
DebrisMaximums=12;same deal again


and that voxel piece code..
              
Code
[PEBBLE]
Name=TiberiumShard
Image=TIRE;for example..i edited it to 1 dot vxl in RS as original vxl is ugly as hell..
Elasticity=0.0
MinAngularVelocity=12.0
MaxAngularVelocity=24.0
MinZVel=30.0
MaxZVel=32.0
MaxXYVel=18.0
Duration=5
ExpireAnim=TWNK1;totally optional..you can leave blank too..just in for coolness.
Damage=0
DamageRadius=0
Warhead=AP
IsTiberium=true
TiberiumRadius=7;adjust as like
TiberiumSpawnType=TIB08;just one of many you could pick
IsMeteor=true


and then we go edit the ore (tiberium heh) itself..find following in rules and change the values to what i propose.

              
Code
[Riparius]; do not just copy paste this in replacing original entry entirely! just the tags listed!
Name=Tiberium Riparius
Growth=100
GrowthPercentage=.95;yes our ore grows!! :P
Spread=2200
SpreadPercentage=.06;.06 is normal but you can raise this if you want ore to start spreading around


and do same for [Vinifera] ;)

but that should be it..problems? lemme know and ill update the tutorial if necessary.

Change GrowthRate= to a much lower number e.g. 1.5 for faster ore growth

Credits

Original AuthorApollo

Return to top