Joined: 03 Jul 2015 Location: between heaven and hell "the healln point"
Posted: Mon Jul 06, 2015 12:03 am Post subject:
Virus Tank
Subject description: GI-JOE rise of cobra Example
Hi all I decided to make a tank that shoots a warhead which looks like the green warhead in gi-joe rise of cobra movie using the virus's logic well I made the voxel and hva and I was looking to the codes of virus I noticed that the virus sniper doesn't create the gas or the virus cloud it just has a normal sniper weapon so I wonder how does the virus and gas clouds take place? I am so confused so I really need your help QUICK_EDIT
Joined: 03 Jul 2015 Location: between heaven and hell "the healln point"
Posted: Mon Jul 06, 2015 12:31 am Post subject:
I still didn't get it what should I do as {virusd} is coming from an infantry death but I am talking about buildings and vehicles. I just searched ares deco_ and I saw some how to make new infantry death [Warhead]►InfDeathAnim= but it isn't applied on tanks _________________ QUICK_EDIT
Remember you can set different survivor types to each vehicle, so a vehicle can have a gas dummy and still spawn regular survivors, if you like.
Make the weapon so that it destroys the dummy when it fires, deals no damage and has Range=255. Then look up your virus warhead, check the animation, like for example so:
Add VirusAfterglowWH to your rulesmd and give it Verses to ONLY damage the dummy's armor ('VirusAfterglowOnly' in this example). VirusAfterglowWH should have a death anim that spawns gas clouds.
So, what will happen?
1) Your Virus shot damages the tank. If it still has HP after that, nothing special further happens after the regular hit animation plays.
2) Your Virus shot damages the tank. If its' HP are now 0, it will be destroyed. Congratulations. For now, only a normal explosion will play (depending on the Explosion set on the tank).
3) A survivor spawns! It's the VirusGasDummy!
4) The VirusAfterglow animation triggers! and kills the VirusGasDummy!
5) Virus gas is spawned!
6) If the tank is killed by any other warhead, the dummy also spawns, but will not be killed to cause gas. Instead, it will self-delete after 10 frames (when its' ammo has filled up and it fires its' self-deleting weapon). You may also chose to just let it be killable by any warhead, and just give it an empty DeathAnim= statement so it will not be visible when killed.
This method can be used for many things btw, I use it for recreating a Generals-ish 'firestorm' effect.
Note:
You might need to add a Loop or some other form of delay between VIRUSHIT and VirusAfterglow, because the Survivors do not spawn instantly (ie Frame 0) after the VIRUSHIT animation plays on the tank when it's hit. _________________
Mao Zedong wrote:
Our mission, unfinished, may take a thousand years.
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