Battlezone Universe

Battlezone Universe => Maps and Modding => Battlezone 2 => Modding Tutorials => Topic started by: TheJamsh on November 30, 2009, 05:10:50 AM

Title: Silent Sounds and Unlimited Health
Post by: TheJamsh on November 30, 2009, 05:10:50 AM
I decided to post this because it seems that very few people know about two nifty tricks in ODF files that save you time and processing power, and its very irritating to see people doing the opposite of these things.

Making your object silent.
Most people will tell you to use "silence.wav" if you want something to seem like its making no noise, but ive got news for you. Silence.wav STILL takes up a sound channel! and for no reason. Its FAR safer and simpler to do this:

sound = ""

Unlimited Health
So long as you are working in the 1.3 patch, DONT use 99999999 if you want to give an object unlimited health. First of all, 9999999 is NOT the same as infinity, and your still giving the game something to keep track of. Use this:

maxHealth = 0
Title: Re: Silent Sounds and Unlimited Health
Post by: TwinShadow on December 19, 2009, 03:28:46 AM
The "infinite" health trick is neat, but I've known about it for a while no thanks to Sonic. However, if you make the health regeneration extremely fast, you can essentially solve a 'red screen of death' thing that you would get when trying to poke fun in an MPI base.
Title: Re: Silent Sounds and Unlimited Health
Post by: General BlackDragon on December 19, 2009, 08:01:31 AM
Also, the word "infinite" works in place of 0.