Posted by: precision_bomber - Tuesday, July 22, 2014 10:14:43 PM
http://www.moddb.com/mods/death-label/images/after-a-very-long-break4#imagebox
The Raptors there are 'drones.'
The thing is the when the Raptors are spawned I spawn 5 once the upgrade is purchased.
Here's the kicker, [b]I can buy the upgrade again after 1 Raptor is dead.[/b]
So I can have infinite raptors... Though Spawning them to patrol over your command center is a hefty cost, its still ridiculous to have someone stack the upgrade.
Now for the question:
Is there a way to make it so that you have to take out all 5 Raptors before being able to purchase them? Is so, how?
Things I tried:
1. Making a single drone unit that acts like a Mob Nexus.
Result: The game crashed as soon as I spawned the Mob Nexus Drone.
2. Trying number 1 again
Result: The Upgrade Stays Purchased even if the Mob is destroyed.
3. Drone Controlling Drones...
Result: Drone unable to spawn drones.
4. Buying Drone as a Unit with MaxSimultaneousOfType = 1
Result: It doesn't become a slave anymore.
Posted by: Rrtaya_tsamsiyu - Wednesday, July 23, 2014 12:25:05 AM
if there can only be one of your command centers, i would try making it to where you buy the raptors individually, and the max production limit is 5.
Posted by: precision_bomber - Wednesday, July 23, 2014 9:08:09 AM
It uses the drone logic from USA Vehicles.
I'm not sure if producing them as normal units would make them slaved to the command center.
Posted by: Annihilationzh - Wednesday, July 23, 2014 6:37:07 PM
[quote=precision_bomber;132670]Things I tried:
1. Making a single drone unit that acts like a Mob Nexus.
Result: The game crashed as soon as I spawned the Mob Nexus Drone.
[/quote]
I don't think you should give up on this. I can't think of any reason why this wouldn't work if it's coded properly.
Posted by: acidbrain - Thursday, July 24, 2014 3:32:47 AM
Did some testing yesterday and got the nexus to work properly but im having trouble to remove the upgrade, dont have much experience with nexus, is the nexus killed when you destroy all slaves or not?, added an upgradedie module to the nexus but the upgrade isnt removed when all slaves are killed.
Posted by: precision_bomber - Friday, July 25, 2014 1:23:20 PM
Maybe because, Nexus never actually dies, it just gets removed out of existence.
Posted by: klingondragon - Friday, July 25, 2014 1:57:34 PM
From my experience an upgrade stays forever no matter what
The drones on us vehicles arnt proper upgrades maybe there is something there you could use
Posted by: Annihilationzh - Friday, July 25, 2014 2:45:52 PM
[quote=acidbrain;132692]Did some testing yesterday and got the nexus to work properly but im having trouble to remove the upgrade, dont have much experience with nexus, is the nexus killed when you destroy all slaves or not?, added an upgradedie module to the nexus but the upgrade isnt removed when all slaves are killed.[/quote]
I could solve this with my most convoluted workaround ever, but I think it's better to try the method Rrtaya_tsamsiyu mentioned first.
[quote=KlingonDragon;132765]From my experience an upgrade stays forever no matter what
The drones on us vehicles arnt proper upgrades maybe there is something there you could use[/quote]
Upgrades for a single unit are called Object upgrades, and the others are called player upgrades.
Posted by: klingondragon - Friday, July 25, 2014 2:51:57 PM
Yes. But still the drones are slightly different to something like the overlord upgrades
Posted by: precision_bomber - Friday, July 25, 2014 3:37:52 PM
[quote=KlingonDragon;132769]Yes. But still the drones are slightly different to something like the overlord upgrades [/quote]
Reminds me so much Rrtaya_tsamsiyu's topic of destructible portables.
Posted by: Annihilationzh - Friday, July 25, 2014 4:02:32 PM
[quote=KlingonDragon;132769]Yes. But still the drones are slightly different to something like the overlord upgrades[/quote]
I don't see much of a difference. The overlord upgrades aren't very different from drones. They're both slaves to their vehicle. The napalm bomb is substantially more different.
Posted by: klingondragon - Friday, July 25, 2014 4:06:23 PM
It was just the first upgrade I could think of
Posted by: precision_bomber - Sunday, July 27, 2014 12:31:05 PM
I have managed to do what AcidBrain did.
Spawning a Mob Nexus Drone.
And had faced the same problem of the upgrade not disabling itself after 'dying'
I also tried making the Nexus an Actual unit; but still the upgrade still stays purchased.
hmm.
Posted by: precision_bomber - Sunday, July 27, 2014 12:43:43 PM
Next to try: Drone controlling Drones
Posted by: acidbrain - Sunday, July 27, 2014 1:46:11 PM
Well i also got the remove upgrade stuff working now, i spawned a second object with the nexus wich removes the upgrade succesfully but the upgrade can be purchased when the raptors are still alive, added a commandsetupgrade to switch to a commandset without the upgrade button but the new problem is that it's a pain in the azz to switch back to the default commandset, tried to combine it with a few scripts but unsuccesfully...and the testing goes on
*edit*
What if you spawn an object in the commandcenter which has the raptor drones and you give the raptors a FireWeaponWhenDeadBehavior module with a weapon that takes out a 5th of the health from the object you spawned so when 5 raptors are killed the object which spawned the raptors also gets killed and frees the upgrade again, didnt test it yet, just a thought.
Posted by: precision_bomber - Sunday, July 27, 2014 2:07:13 PM
What complicates this is that the buttons to summon raptors is actually an alternate command set so that I can have more space for Generals Powers and separate the Command Center's Emergency Protocols.
Posted by: acidbrain - Monday, July 28, 2014 10:17:56 AM