Resource Donation Units

Tutorial for Red Alert 2 RA2, Yuri's Revenge YR

Avatar of Allied General

Allied General

Category: Code
Level: Intermediate
Created: Wednesday July 29, 2009 - 4:55
Updated: Sunday October 11, 2009 - 8:17
Views: 3563
Summary: How to create units which donate resources between players.
Rating
  • Staff-
  • Members-
  • Average-

0 votes

I first saw this in Robot Storm as in actual gameplay but its a feature of Mooman YR Squared and Mental Omega and AG:RH

Unit should have following tag

              
Code
DeploysInto=DUMMY
BuildTimeMultiplier=.4 ; something low so its builds fast


the DUMMY building should be invisible and should have following properties

              
Code
WorkingSound=CrateMoney
NotWorkingSound=CrateMoney
CrateBeneath=true
CrateBeneathIsMoney=true


the DUMMY building should have a DUMMY animation with a Damage= tag so when the vehicle deploys it kills itself and thus reveals money.

To change amount of money the crate gives go to

              
Code
[Powerups]
Money=10,MONEY,yes,2000

and the change the last value. Please note this affects the power up crates too.

Issues
  • If unit cost is not equal to money of truck then you can make money (issue is most common when you have an structure with industrial plant logic) Only issue is to make the unit more expensive so when they have such a building the exploit isn't so obvious or is nullified.

  • For instance my unit provides $3000 but an industrial plant reduces its build cost so instead i make the vehicle cost $4000 but only provide $3000

    When industrial plant is avaliable cost of unit is reduced to $3000

  • If crates are on, more crates start appearing, noticeable if deploys loads only solution is crates= off


To make this work in the original RA2, simply don't use the BuildTimeMultiplier tag.

Return to top