Thread: Area heal
View Single Post
Old 08-19-2004, 11:12 AM   #1 (permalink)
Rulke
Senior Member
 
Join Date: Jul 2004
Location: England
Posts: 104
Default Area heal

I'm trying to give yuri a tank that will heal other tanks from a range, and that works perfectly. However, I also want it to be able to deply into a mode in which it generates a field around itself that everything gets repaired in, like the Desolators deploy weapon, but without the radiation and with negative damage, so that it will heal everything near it. I have tried everything I can think of, but it still refuses to work. Here is the code I've used, in case I have got any errors in it.
Code:
;Units list
85=PSYR

;Warhead list
106=AreaHeal

[PSYR];Psychic Repairer
UIName=Name:PSYR
Name=Master Mind;this was based on a clone of the mastermind
Image=MIND
Prerequisite=YAWEAP,YATECH
Primary=RangeHealT;Ranged Heal weapon for tanks; this works
Secondary=AreaHealA;Area heal for all; this doesn't
Strength=500
Category=AFV
Armor=heavy
BuildLimit=-4;This means that 4 of these can be built, but if any are destroyed they can't be replaced. This also works
;Turret=yes
IsTilter=yes
;TargetLaser=yes
TooBigToFitUnderBridge=true
TechLevel=2
Sight=9
Speed=4
CrateGoodie=no
Crusher=no
Owner=YuriCountry
Cost=1750
Soylent=1750
Points=25
ROT=5
AllowedToStartInMultiplayer=no
IsSelectableCombatant=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=MasterMindSelect
VoiceMove=MasterMindMove
VoiceAttack=MasterMindAttackCommand
VoiceFeedback=
DieSound=GenVehicleDie
MoveSound=MasterMindMoveStart
CrushSound=TankCrush
Maxdebris=3
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Destroyer
ThreatPosed=40	; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
DamageSmokeOffset=100, 100, 275
Weight=3.5
Accelerates=false
ZFudgeColumn=8
ZFudgeTunnel=13
Size=6
OpportunityFire=yes
ImmuneToPsionics=yes
SelfHealing=yes;If it can heal others, it can heal itself
Trainable=no;it can't kill anything, so why should it be promoted?
Deployer=yes;For deploy weapon
DeployFire=yes;For deploy weapon
UndeployDelay=150;For Undeployment

;Ranged tank heal weapon
[RangeHealT]
Damage=-60
ROF=40
Range=7
Projectile=InvisibleAll
Speed=40
Report=FloatingDiscAttack
Warhead=Mechanical
Bright=yes
;IsRadBeam=yes
LaserInnerColor=184,0,216
LaserOuterColor=88,0,80
LaserOuterSpread=10,0,20
LaserDuration=15
IsLaser=true	; this flag tells the game to use the special laser draw effect
DiskLaser=no; new ring draw laser
OmniFire=yes
FireOnce=yes

;Area effect healing weapon
[AreaHealA]
Damage=-80
ROF=30
Range=1
Projectile=AreaHealP
Speed=1
Warhead=AreaHeal
Bright=yes
;IsRadBeam=yes
AreaFire=yes
FireOnce=yes

;Area heal projectile
[AreaHealP]
Inviso=yes
Image=none

;Area heal warhead
[AreaHeal]
CellSpread=4.5
PercentAtMax=.85
Verses=100%,110%,120%,110%,130%,150%,140%,170%,200%,100%,100%
InfDeath=5
AffectsAllies=yes;I want this to affect everything, or just me and my allies if this is possible
Any help with this will be greatly appreciated.
Rulke is offline   Reply With Quote