Recoded ztele, removed old ztele, made conversion function.

This commit is contained in:
Greyscale
2009-05-05 06:56:34 +02:00
parent dca8aa330b
commit a36e0dab5a
12 changed files with 369 additions and 674 deletions

View File

@ -14,6 +14,15 @@
*/
#define GENERAL_DXLEVEL_MIN 90
/**
* @section Conversion factors.
*/
#define CONVERSION_UNITS_TO_FEET 16.000
#define CONVERSION_FEET_TO_UNITS 0.0625
/**
* @endsection
*/
/**
* The DirectX level of a client.
*/
@ -24,6 +33,18 @@ new dxLevel[MAXPLAYERS + 1];
*/
new bool:g_bZombieSpawned;
/**
* Function to convert numbers to defined units.
*
* @param number The number to convert.
* @param conversion The conversion factor to multiply by. (See defines above)
* @return The converted number.
*/
Float:ZRConvertUnitsFloat(Float:number, Float:conversion)
{
return number / conversion;
}
/**
* Create an array populated with eligible clients to be zombie.
*