Posted: Wed Oct 24, 2012 5:55 pm Post subject:
Slaved units able to attack
Subject description: Possible or not?
I've been playing Submarine Titans and I liked the Silicon's Bio-Mine and Jump-Mine Launchers. I'm now attempting to recreate them in YR using the SlaveMiner logic. For those who don't know how this is supposed to work: it will spawn a number of mines (or brainwashed suicide bombers ) which will run straight into their target and detonate when in range. Spent mines will be automatically respawned from the parent building as the Slave Miner normally would.
So far I only managed to get the building to spawn slaves but the slaves don't do anything. The slaved infantry (Terrorists as placeholders for now) have CanPassiveAcquire=yes and CanRetaliate=yes just for good measure but nothing's working. Can slaved units actually do anything else other than mining?
Oops! Accidentally posted this in an old thread ^_^lll _________________ The future belongs to The Forgotten!
Its well known fact I thought that they can't do anything else than mine... as long as they are slaved, their Primary= is not allowed to be used in any shape or form or any independant actions take place. Only option is to have the miner be killed and subjects freed but thats not suiting the wanted idea here. QUICK_EDIT
There was a "bodyguard" logic proposed for ares, but it lost out to more popular features.... _________________ MIdAS - Turning wages into beer since 2002 QUICK_EDIT
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Wed Oct 24, 2012 7:53 pm Post subject:
I took a quick look a year ago or more and for me it seemed Slave logic is too much hardcoded, and it would be simpler to expand spawn logic for that role.
Don't take this as a plan tho, I just did a quick look and since then many of my base tpoints have changed but atm I can'tcheck it further. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
Robot logic? You mean the Robot Tank? That just causes the unit to shutdown when it's parent building is missing/destroyed. Or are you talking about some other logic?
Guess this isn't possible then. Well, time for plan B... _________________ The future belongs to The Forgotten!
Why not use aircraft carrier unit spawn logic?
Just make sure the spawned units use a low flying height, so they count as ground units. Give them a suicide weapon. Done. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Reviving this thread cuz I'm back to trying to get this thing to work. I've considered LKO's method beforehand but just tried the slaved thing first just to see what happens. Since the slave thing is only for mining, LKO's method is most feasible. Trouble is, I don't no shit about suicide airplanes. I'm not kidding. Must be my rather derpy modding knowledge but this is the only part that I'm screwing up at. Spawn works fine, flight level set to low enough to emulate hover units, but I just can't figure out how to get the planes to self-destruct. I'm aware Suicide= only works for an AircraftType's DeathWeapon= (on Primary=, it IEs).
I've tried LimboLaunch= but that causes the planes to stick around as if they're alive so they don't get respawned. I've also tried Dubzac's method of having the bomb blow up inside the plane (NpatchExt causes planes with Explodes=yes to just blow up in midair, so I can use DeathWeapon here instead), but only ridiculously strong warheads can kill a plane with frickin' Armour=1 apparently. And though Dubzac's method was the most successful one so far, the game IEs when it tries to respawn planes. The IE was so bad the exe was not responding ._.
Seriously, I'm ripping my hair off over a simple task of just getting cute little planes to blow themselves up. _________________ The future belongs to The Forgotten!
[KILLME]
Image=CLRANIM ;an SHP with a few empty frames
Start=0
End=1
Damage=1000 ;enough to kill the unit
rules.ini
Code:
[Animations]
xxx=KILLME
[SuicideWeap]
Projectile=SuicidePlane
Anim=KILLME ;muzzle flash animation with damage to kill the unit when it fires the weapon
;rest is usual weapon code
[SuicidePlane]
Image=TheSuicidePlane ;use the plane itself as image
ROT=10
;rest is usual projectile code
Not sure if RA2 allows an aircraft to be killed instantly in midair, without having it crash.
If it always crashes, use an invisible projectile which flies about as fast as the crashing aircraft. If weapon range and aircraft flight level are right, it looks like the crashing aircraft is doing the damage, while it's actually the weapon.
You could also use a Deathweapon and have Primary only kill the unit via the KILLME anim. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Tue Jun 03, 2014 8:11 pm Post subject:
It does not by default and god knows what NPExt allows.
The old casual way was to kill the aircraft via Primary (with said Primary having short range) and use DeathWeapon as actual delivering weapon, but yea, if AA kils off the plane before that, well dmg is delivered to there. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
NpatchExt causes planes with Explodes=yes to just blow up in midair, so I can use DeathWeapon here instead
Well, I tried your method LKO and it works, except the game thought respawning suicide airplanes was too much for the engine to handle and IEs. As in, the bloody .exe stopped responding ._. Guess I'll have to think of another kind of weapon... _________________ The future belongs to The Forgotten!
Don't use the Explodes=yes on planes, it causes memory leak in NPExt and game will eventually crash for it or so I recall LH mouse having said. QUICK_EDIT
Spawning Logic is limited to [AircraftTypes] so AFAIK you can't have a different locomotor otherwise it IE's.
I would imagine a low-flying missile wouldn't IE when it tries to respawn them, as they are supposed to explode anyway; Just put {B7B49766-E576-11d3-9BD9-00104B972FE8} missile loco on the plane, though I'm not sure if it has a different flight pattern. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
- Attempting to spawn 6 or more spawned aircraft was the actual reason for the IEs.
- Range=2 or less on the spawn aircraft causes it to just land and do nothing (haven't seen if this happens between Range=2 to Range=3).
Needless to say, I've finally succeeded in getting this shit to work Just need to touch up on the self-destructing bit and make a voxel for the aircraft. Thx for the help you guys
EDIT: Hornet (and possibly Orca Bomber) attack pattern is unaffected. The spawned aircraft can now detonate at point-blank range. I've succeeded in recreating, or at least emulating, the Bio and Jump Mine Launchers in YR!! YOOHOO!!! _________________ The future belongs to The Forgotten!
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