Posted: Fri Jul 22, 2022 11:16 am Post subject:
(Vanilla YR) Healing zone for Ground and Air + anti drone
Subject description: Here's how I made the map crater AKA the Crater of youth
THIS IS PART 1 - AIR HEALING This will be updated later to include Triggers, Anti Drone and ground healing in separate parts
In the meantime, feel free to download the maps attached below.
Healing Vehicles has been well documented and easy to execute. Healing Air units not so much... if at all... and if you try with the most obvious plan / thought processing... you will be Sorley disappointed.
This took me quite a few days to figure out and perfect.
The context of this was to have a healing zone for a quirky 1v1 style map for the content Creator RA2CASHGAMES for his mod Blitz. In other words this was not a player controlled effect but rather a map effect for players to exploit. (Blitz is a sov vs allied format where all unique units of each faction is granted to the player and each side build oil to generate money with the absence of ORE on the maps ; IE, Allied get EAGLES, T Destroyers, snipers, paradrop / SOV get Demo truck, deso, tesla tanks... etc etc). The healing zone was in the middle of the map and made a sort of king of the hill scenario unfold consistently game after game
Here's a video of the map healing ground and air units. Watch for 1 min 30 seconds for the Kirov's and Rockies after
So the mechanism works with dummy units hidden in the map. As Yuri was not used in this Blitz format, i sacrificed a few Yuri units. This was necasarry only for the Air Healing however another work around was later found in which i released a map without any unit sacrifices.
The most important thing to note is you need Gatling logic with a turret for this to function correctly. It is absolutely crucial.
The next most important thing to note is you will need to modify air units that fire at other air units with the same weapon otherwise they retaliate at the dummy unit which targets air
So here is the ORIGIONAL HEAL AIR CODE which sacrificed the Yuri Gattling tank
Spoiler (click here to read it):
;this can certainly be refined, I'll leave it up to other modders who would like to do that as this was made in a time cru5nch for the tournament
[YTNK] ; Gattling Tank
ROT=10
Cost=0
Armor=concrete
Cloak=yes
Stage1=1
Stage2=9999999 ; it will never progress to its final stage
Stage3=9999999
JumpJet=yes
VHPScan=Normal
DieSound=_Amb_WavesLake
Explodes=yes
OmniFire=Yes
Strength=1
Cloakable=yes
Explosion=none
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5}
MoveSound=_Amb_WavesLake
SpeedType=Hover
GuardRange=3
Selectable=no
TypeImmune=no
CanDisguise=yes
DeathWeapon=GatDemo
LegalTarget=no
ThreatPosed=1
AntiAirValue=99
BalloonHover=yes
JumpJetAccel=10
JumpjetClimb=999999999
JumpjetCrash=15
JumpjetSpeed=16
MovementZone=Fly
CloakingSpeed=1
DecloakToFire=no
Insignificant=yes
JumpjetHeight=99999
PermaDisguise=yes
JumpjetWobbles=.1
DistributedFire=yes
InvisibleInGame=yes
JumpJetTurnRate=100
OpportunityFire=yes
JumpjetDeviation=15
JumpjetNoWobbles=yes
DefaultToGuardArea=yes
GuardAreaTargetingDelay=240
[AGGattling] ; so it wont pick up ground targets
ROF=9999
Anim=none
Range=0.01
Report=Dummy
Warhead=DummyWarhead
[AGGattling2] ; so it still wont pick up ground targets - probably not required
ROF=20
Anim=none
Burst=2
Range=0.5
Speed=100
Damage=1
Report=Dummy
Warhead=DummyWarhead ;THIS IS A VANILLA WARHEAD, No NEED to declare
Projectile=Invisiblelow
[AAGattling] ; this does 1dmg to air units with a warhead that is less than 20% - so damage is negated
ROF=1
Anim=none
Range=3.75
Damage=1
Report=Dummy
Warhead=GattWHC
[AAGattling2] ; this does 35 heal
ROF=1
Range=5
Damage=-35
Report=Dummy
IsLaser=true
Projectile=LightShrapP
LaserDuration=3
LaserInnerColor=125,0,0
LaserOuterColor=250,0,0
LaserOuterSpread=0,0,0
[LightShrapP] ; for cool effects, you can cull this down if you want less effects
AA=yes
AG=yes
Image=none
Inviso=yes
ShrapnelCount=1
ShrapnelWeapon=LightShrap
SubjectToWalls=no
SubjectToCliffs=yes
SubjectToElevation=no
Ok, now here are the unit adjustments you need to make for either of these systems
Again, this is for the sole purpose of these specific air units not engaging in an attack mission with a map unit that is not meant to be seen
Actually now i mentioned it, i have not tested if this works with yuri disks cos i kinda never play as yuri :-/
There is a bit of a failsafe though if they do engage with the invisible units and i will mention that later in the triggers
These unit edits were to stop Rocketeers and nighhawk helicopters attacking the air units as they were the most prone to doing so in testing.
"Well what about Disks? What about siege choppers" you might ask?
Upon testing i found that the only way this issue would come up was when you set your units to enter guard mode and i believe the initial stage of gatling was not enough to provoke a response from those untis. The issue can still arise however which is why i added a deathweapon to the hidden unit which will kill all of them all at once ( i think i had 5 of them flying really high). Then there would be a local variable set to call them back which would most likely interrupt the attack mission. In a competitive game this would not be an issue at all as most people are very focused on their opponent and simply has to move 2 cells away or whatever for the whole attack mission to be forgotten.
So in case you don't get the whole point of all this yet, i had to coax and bend the engine into force attacking negative value weapons to air units. you can try other methods for yourself. please let me know if you are successful as i did a lot of testing just to get this working as perfectly as it is.
That concludes part 1 of the tutorial, i will be posting the rest of it later as this was quite in depth and i had to go through a lot of code here. In the meantime feel free to download the maps
The first method is used in the map Crater which is shown in the video which sacrifices Yuri
The second method is used in the map Krasis ex Khaos. It has a lot more visual effects, triggers and crazy stuff going on with an easter egg special crate in the middle which you will have to see for yourself
I really hope i Havn't forgotten anything here, but download the maps and have a look if you can't wait for me to post the next parts of the tutorial
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