PHP Code:
//#define P_SKILL1 1 // Skill 1 level
//#define P_SKILL2 2 // Skill 2 level
//#define P_SKILL3 3 // Skill 4 level
//#define P_ULTIMATE 4 // Ultimate level
#define P_LEVEL 5 // Player Level
#define P_XP 6 // Current XP
// Miscellaneous options
#define P_SPECMODE 7 // Used to determine if the player is spectating or not
#define P_SHOWRACEMENU 8 // Should we show the race menu when the player respawns?
#define P_SHOWICONS 9 // Show player icons/levels for this player?
#define P_CHANGERACE 10 // Holds the value of what race to change to when the following round starts
// Used for weapon Reincarnation
#define P_FLASHCOUNT 11 // Number of flash grenades bought that round
#define P_HECOUNT 12 // Number of HE's bought that round
#define P_SMOKECOUNT 13 // Number of smoke grenades bought that round
#define P_ARMORONDEATH 14 // Amount of armor the player had when he/she died
#define P_LASTARMOR 15 // This will contain the previous value of P_ARMORONDEATH
// Used by various ultimates/abilities
#define P_TELEMENU 16 // Used by teleport
#define P_TEAM 17 // Stores the player's team ID
//#define P_SHADOWCOUNT 18 // Number of shadow strikes the player has left
#define P_SERPENTCOUNT 19 // Number of serpent wards the player has left
#define P_RINGS 20
#define P_ULTIMATEDELAY 21
#define P_RESPAWNBY 22 // Stores how the user is going to respawn
// Used for DOD
#define P_MONEY 23 // Amount of money the player has
#define P_LAST 24
I have hard time understanding those #define values p_data has 33 rows for 32 player but ONLY 24 columns
PHP Code:
new p_data[33][P_LAST] // Contains player data
ULT_ResetCooldown( id, iTime, iHideIcon = true )
{
p_data[id][P_ULTIMATEDELAY] = iTime;
// Hide the user's ultimate icon
if ( iHideIcon )
{
ULT_Icon( id, ICON_HIDE );
}
why P_ULTIMATEDELAY has value 21 , there are 32 player , can someone explain in deep
I will really appreciate it.
I'm trying to CREATE my Warcraft 3 MODE for ZOMBIE BIOHAZARD , because this mod is created originally for classic.
and it is frustrating.