#define DMG_HEGRENADE (1 << 24)

#define ID_TEAM (taskid - TASK_TEAM)

#define PRINT(%1) client_print(1,print_chat,%1)

const MAX_SPAWNS = 21
const MAX_SPAWNS_GROUP = 31
const MAX_NPC = 20
const MAX_LEVEL = 40
const MAX_ROUND = 51

new const LANG_FILE[] = "bte_npc.bte"

new const SPAWNS_FILE[] = "%s/bte/npc/sp_%s.cfg"
new const LEVEL_FILE[] = "%s/bte/npc/level_%s.cfg"

new const npc_class[] = "npc_zombie"
new const Float:healthstart = 10000.0

new const startmoney = 7500

new const match_ready_sound[] = { "npc_scenario/scenario_ready.mp3" }
new const match_start_sound[] = { "npc_scenario/scenario_start.mp3" }
new const dead_sound[] = { "bte/npc/zbs_death_1.wav" }
new const dead_female_sound[] = { "bte/npc/zbs_death_female_1.wav" }
new const attack_sound[][] = { "bte/npc/zombi_attack_1.wav", "bte/npc/zombi_attack_2.wav", "bte/npc/zombi_attack_3.wav" }
new const round_clear_sound[] = { "sound/bte/npc/roundclear.wav" }
new const round_fail_sound[] = { "sound/bte/npc/roundfail.wav" }
new const level_up_sound[] = { "sound/bte/npc/td_heal.wav" }

new canuse[33]

new g_class_round_total[MAX_ROUND]
new g_class_round[MAX_ROUND][20]
new g_max_round

new respawn_time[33], Float:bot_nextattack[33], g_givewpn[33]
new g_count, g_check
new Float:g_spawns[MAX_SPAWNS_GROUP][MAX_SPAWNS][3],g_total_spawns[MAX_SPAWNS_GROUP],g_total_spawns_groups,Float:g_wayponits[MAX_SPAWNS_GROUP][10][3] ,g_total_wayponits[MAX_SPAWNS_GROUP], g_total_npc, g_total_class
new Array:g_class_name, Array:g_class_model, Array:g_class_health, Array:g_class_speed, Array:g_class_sex, Array:g_class_modelindex,Array:g_class_money,Array:g_class_damage
new cache_bloodspray, cache_blood, idsprites_smoke
new g_npcham, g_fwNpcCreate, g_fwNpcDead, g_fwDummyResult, g_fwNpcThink
new g_money[33]

new g_team_kills,g_kills[33],g_round=1

new cvar_npc_stop

new g_is_round_end

new g_level[2][33]
// Remarks
enum
{
	THINKING = pev_iuser1,
	ATTACKER = pev_iuser2,
	GROUP = pev_iuser3,
	NEXTPOINT = pev_iuser4,
	NEXT_ATK = pev_fuser1,
	CLASS = pev_fuser4,
	TYPE = pev_message
}
// cs team
enum
{
	FM_CS_TEAM_UNASSIGNED = 0,
	FM_CS_TEAM_T,
	FM_CS_TEAM_CT,
	FM_CS_TEAM_SPECTATOR
}

enum (+=1)
{
	TYPE_HEALTH = 0,
	TYPE_DAMAGE
}
