• Welcome to Battlezone Universe.
 

News:

Welcome to the BZU Archive dated December 24, 2009. Topics and posts are in read-only mode. Those with accounts will be able to login and browse anything the account had access granted to at the time. No changes to permissions will be made to be given access to particular content. If you have any questions, please reach out to squirrelof09/Rapazzini.

Main Menu

Silent Sounds and Unlimited Health

Started by TheJamsh, November 30, 2009, 05:10:50 AM

Previous topic - Next topic

TheJamsh

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


BZII Expansion Pack Development Leader. Coming Soon.

TwinShadow

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.

General BlackDragon

Also, the word "infinite" works in place of 0.



*****General BlackDragon*****