DAZZLE'S UPGRADE PACK

If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.

Health Gate

Modding questions, answers, help.....

Moderators: Warfare, Admin, Moderator

Post Reply
_Anonymous_
New Brainjar
New Brainjar
Posts: 23
Joined: Fri Apr 24, 2009 8:46 pm

Health Gate

Post by _Anonymous_ »

I played around with the special.cs and found a way to make a healthgate that works for any type of game. If you want, you can also make it a power-up gate.

Find this in you special.cs:

Code: Select all

   else if (%db.type $= "ammo")
   {
      %this.playUserThread(1,1,true);
      %tank.setProjectile(%tank.getDataBlock().defaultProjectile);

      // schedule say Reload
      if (isObject(%tank.client))
         %tank.client.schedule(1000,"play2D","ActivateReload");
   }
Now change it to this:

Code: Select all

   else if (%db.type $= "ammo")
   {
      %tank.hurtMe(-100);     <----This for the health
      %this.playUserThread(1,1,true);
      %tank.setProjectile(%tank.getDataBlock().defaultProjectile);
      %choice = getRandom($NumPupTypes-1);     <----this for the power-ups
      %tank.setProjectile($pupTypes[%choice]);    <----this for the power-ups

      // schedule say Reload
      if (isObject(%tank.client))
         %tank.client.schedule(1000,"play2D","ActivateReload");[/b]
   }
I will still reload your normal shots too.
If at first you don't succeed, failure may be your style.
- Quentin Crisp
User avatar
Metal
Need Major Repair
Need Major Repair
Posts: 1278
Joined: Fri Dec 26, 2008 5:48 pm

Re: Health Gate

Post by Metal »

LOL You didn't make it.... you just copied it man...
Nice idea though.
_Anonymous_
New Brainjar
New Brainjar
Posts: 23
Joined: Fri Apr 24, 2009 8:46 pm

Re: Health Gate

Post by _Anonymous_ »

I did? Nope, but I wouldn't be surprised if someone came up with it before.
If at first you don't succeed, failure may be your style.
- Quentin Crisp
Post Reply