Posted: Sat Feb 24, 2024 6:28 am Post subject:
Mindcontroller Repair Unit Not Working
I'm trying to make a unit that can repair damaged units but also mind control 3 units from a long range but only tanks.
The unit repairs but does not mind control.
;Allied Repair Control
[ARC]
UIName=Name:Allied Repair Control
Name=Allied Repair Control
Image=ARC
Prerequisite=GAWEAP;GATECH
Primary=MindControlDevice
Secondary=RepairBullet
Turret=yes
Strength=600
Category=AFV
Armor=heavy
CanPassiveAquire=yes ; Won't try to pick up own targets
IsTilter=yes
TooBigToFitUnderBridge=true
TechLevel=10
Sight=11
Speed=4
PipScale=Passengers
Passengers=4
OpenTopped=yes;passengers can shoot out
SizeLimit=2;1 ;gs like half track and Blackhawk. Terror Drones and Brutes are allowed in.
CrateGoodie=yes
Crusher=yes
OmniCrusher=yes;gs can crush things not normally crushable
Owner=British,Germans,Alliance
Cost=1500
Soylent=2000
Points=50
ROT=5
IsSelectableCombatant=yes
AllowedToStartInMultiplayer=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=26
DebrisTypes=TIRE,AXLE
DebrisMaximums=13,13
VoiceSelect=BattleFortressSelect
VoiceMove=BattleFortressMove
VoiceAttack=BattleFortressAttackCommand
VoiceFeedback=
DamageSound=ShellImpact
DieSound=GenVehicleDie
MoveSound=BattleFortressMoveStart
EnterTransportSound=EnterTransport
LeaveTransportSound=ExitTransport
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=CrusherAll;gs OmniCrush handles crushing tanks and such, this handles walls
ThreatPosed=35 ; This value MUST be 0 for all building addons
SpecialThreatValue=1
DamageParticleSystems=SparkSys,SmallGreySSys
DamageSmokeOffset=100, 100, 275
Weight=3.5
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Accelerates=false
ZFudgeColumn=8
ZFudgeTunnel=13
Size=6
OmniCrushResistant=yes;
GuardRange=175
BuildLimit=2
[MindControlDevice]
Damage=3; this is an infinite mind control, so this just affects pips
InfiniteMindControl=yes; this will let infinite, it will look up on the table of "MasterMind Overload" damage way above (where there is a 0 damage level)
ROF=45
Range=30
Projectile=PsychicControl
Speed=100
Warhead=DeviceController
;Report=YuriMindControl
Anim=YURICNTL
FireOnce=yes
OmniFire=yes;doesn't need turret to shoot any direction
[DeviceController];Mind control warhead. Will skip normal damage like EMP did
Verses=0%,0%,0%,100%,100%,100%,0%,0%,0%,100%,100%
MindControl=yes
AnimList=YURICNTL QUICK_EDIT
The [DeviceController] warhead and the [Mechanical] warhead (used by RepairBullet) both have the same Verses= settings, so whatever is in primary will override the secondary. Each warhead needs different verses settings that target different types of armour in order for both of the weapons to work, so you could make the unit repair tanks and mind control infantry etc but you cant make both weapons target tanks.
You only way that I can think of to make this type of unit work would be to use InitialPayload & OpenTopped to add an extra independent weapon with a dummy infantry. Trying to combine offensive and defensive weapons using this method will limit the units targeting tho, you would have to pick one to be the active primary and the secondary would have to be an passive automatic weapon.
For example you can make it target and mind control enemy units but you wouldn't be able to click on a damaged unit to repair it, you'd have to move the damaged unit close to the repair tank for it to automatically repair it. The other option would be to make it so you can click on damaged units to repair them but you wouldn't be able to click on enemy units to mind control them, you'd have to move the unit closer to the enemy, then it would automatically mind control them when they are within weapon range.
Side note that repair weapons only work when targeting the same type of unit that is using the weapon, so tanks can repair tanks or infantry can heal other infantry but you cant make an infantry repair a tank etc. I'm not sure if the game would consider an infantry using a weapon inside an OpenTopped unit as a tank or an infantry so you might be even more limited in how you can use this workaround. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum