Printable Version of Topic

Click here to view this topic in its original format

SWR Productions Forum _ Generals/Zerohour Modding _ How Can I Make a Subterranean APC?

Posted by: ai_beyondcontrol 25 Jul 2017, 13:23

I'm attempting to make a subterranean APC like the one in Tiberian Sun Nod faction. The key features are as followed.
1.Model changes when dig in or dig out.
2.Contained objects are not released when dig in or dig out (also the unit's HP, veterancy infomation shall not be lost when dig in/out)
3.Subterranean APC does not receive damage when dig in underground and enemy does not target them actively.
4.If it is possible, it would be better if APC moves at different speed when dig in/out.

I tried several approaches.
Initially, I tried to use ArmorUpgrade to finish No.3, but it turns out that ArmorUpgrade is irreversible and so when APC digs out again it would still be invulnerable.
Then I tried to use HiveStructureBody and PropagateDamageToSlaveWhenExisting, but the sequence with which units inside the APC takes damage for the APC appears to be random, which is not acceptable. I wonder if there's possibility to realize the thought. Thx a lot.

Posted by: GearsGoAwryMan 3 Aug 2017, 20:14

I think you're best off using stuff like masked, the same shenanigans that ROTR uses to turn stuff untargetable. these act like weapons of a kind, which you can then probably chain to the commandbuttons so they only activate when you click the dig mode. whether you can make the thing wholly invulnerable during that i don't know. it's possible splash damage still affects it. i faintly remember there being a rotr unit that could turn itself wholly invulnerable but i don't remember which one.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)