Jump to content

Superweapon that only gives money

From ModEnc²
Revision as of 12:37, 26 January 2011 by en>Gordon-creAtive (Stolen from Thread: http://forums.renegadeprojects.com/showthread.php?tid=1765)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.