ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Superweapon that only gives money

From ModEnc
Revision as of 10:37, 26 January 2011 by Gordon-creAtive (talk | contribs) (Stolen from Thread: http://forums.renegadeprojects.com/showthread.php?tid=1765)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In RP/NP, we could with Type=Money and AutoFire=yes make a super weapon that automatically give us money. In Ares there is no Type=Money, but we have other tags. I am trying to create this effect in Ares. Here is the codes I used:

[MoneySpecial]
UIName=NOSTR:Give Money
Name=Donate
IsPowered=true
RechargeTime=.1
SidebarImage=
Type=SonarPulse;We must use some type, or it wont work
Action=None
ShowTimer=no
DisableableFromShell=no

;With these 3 values on these 3 tags, we have a dummy super weapon
SW.Range=-1
SW.AffectsHouse=none
SonarPulse.Delay=0

Money.Amount=10000
SW.AutoFire=yes

SW.AITargeting=NoTarget

Type=SonarPulse uses SW.AITargeting=Stealth as default, which might be undesirable in this case, because you only get money if one of the affected houses (which is set to none) has cloaked units. That's why we use SW.AITargeting=NoTarget.