enum WeaponId
{
WEPID_NONE, // 0
WEPID_PISTOL, // 1
WEPID_SMG, // 2
WEPID_PUMPSHOTGUN, // 3
WEPID_AUTOSHOTGUN, // 4
WEPID_RIFLE, // 5
WEPID_HUNTING_RIFLE, // 6
WEPID_SMG_SILENCED, // 7
WEPID_SHOTGUN_CHROME, // 8
WEPID_RIFLE_DESERT, // 9
WEPID_SNIPER_MILITARY, // 10
WEPID_SHOTGUN_SPAS, // 11
WEPID_FIRST_AID_KIT, // 12
WEPID_MOLOTOV, // 13
WEPID_PIPE_BOMB, // 14
WEPID_PAIN_PILLS, // 15
WEPID_GASCAN, // 16
WEPID_PROPANE_TANK, // 17
WEPID_OXYGEN_TANK, // 18
WEPID_MELEE, // 19
WEPID_CHAINSAW, // 20
WEPID_GRENADE_LAUNCHER, // 21
WEPID_AMMO_PACK, // 22
WEPID_ADRENALINE, // 23
WEPID_DEFIBRILLATOR, // 24
WEPID_VOMITJAR, // 25
WEPID_RIFLE_AK47, // 26
WEPID_GNOME_CHOMPSKI, // 27
WEPID_COLA_BOTTLES, // 28
WEPID_FIREWORKS_BOX, // 29
WEPID_INCENDIARY_AMMO, // 30
WEPID_FRAG_AMMO, // 31
WEPID_PISTOL_MAGNUM, // 32
WEPID_SMG_MP5, // 33
WEPID_RIFLE_SG552, // 34
WEPID_SNIPER_AWP, // 35
WEPID_SNIPER_SCOUT, // 36
WEPID_RIFLE_M60, // 37
WEPID_TANK_CLAW, // 38
WEPID_HUNTER_CLAW, // 39
WEPID_CHARGER_CLAW, // 40
WEPID_BOOMER_CLAW, // 41
WEPID_SMOKER_CLAW, // 42
WEPID_SPITTER_CLAW, // 43
WEPID_JOCKEY_CLAW, // 44
WEPID_MACHINEGUN, // 45
WEPID_VOMIT, // 46
WEPID_SPLAT, // 47
WEPID_POUNCE, // 48
WEPID_LOUNGE, // 49
WEPID_PULL, // 50
WEPID_CHOKE, // 51
WEPID_ROCK, // 52
WEPID_PHYSICS, // 53
WEPID_AMMO, // 54
WEPID_UPGRADE_ITEM // 55
};
// These values are arbitrary
enum MeleeWeaponId
{
WEPID_MELEE_NONE,
WEPID_KNIFE,
WEPID_BASEBALL_BAT,
WEPID_CHAINSAW,
WEPID_CRICKET_BAT,
WEPID_CROWBAR,
WEPID_DIDGERIDOO,
WEPID_ELECTRIC_GUITAR,
WEPID_FIREAXE,
WEPID_FRYING_PAN,
WEPID_GOLF_CLUB,
WEPID_KATANA,
WEPID_MACHETE,
WEPID_RIOT_SHIELD,
WEPID_TONFA
};
// Weapon names for each of the weapons, used in identification.
new const String:WeaponNames[WeaponId][] =
{
"weapon_none", "weapon_pistol", "weapon_smg", // 0
"weapon_pumpshotgun", "weapon_autoshotgun", "weapon_rifle", // 3
"weapon_hunting_rifle", "weapon_smg_silenced", "weapon_shotgun_chrome", // 6
"weapon_rifle_desert", "weapon_sniper_military", "weapon_shotgun_spas", // 9
"weapon_first_aid_kit", "weapon_molotov", "weapon_pipe_bomb", // 12
"weapon_pain_pills", "weapon_gascan", "weapon_propanetank", // 15
"weapon_oxygentank", "weapon_melee", "weapon_chainsaw", // 18
"weapon_grenade_launcher", "weapon_ammo_pack", "weapon_adrenaline", // 21
"weapon_defibrillator", "weapon_vomitjar", "weapon_rifle_ak47", // 24
"weapon_gnome", "weapon_cola_bottles", "weapon_fireworkcrate", // 27
"weapon_upgradepack_incendiary", "weapon_upgradepack_explosive", "weapon_pistol_magnum", // 30
"weapon_smg_mp5", "weapon_rifle_sg552", "weapon_sniper_awp", // 33
"weapon_sniper_scout", "weapon_rifle_m60", "weapon_tank_claw", // 36
"weapon_hunter_claw", "weapon_charger_claw", "weapon_boomer_claw", // 39
"weapon_smoker_claw", "weapon_spitter_claw", "weapon_jockey_claw", // 42
"weapon_machinegun", "vomit", "splat", // 45
"pounce", "lounge", "pull", // 48
"choke", "rock", "physics", // 51
"ammo", "upgrade_item" // 54
};
// Long weapon names
new const String:LongWeaponNames[WeaponId][] =
{
"None", "Pistol", "Uzi", // 0
"Pump", "Autoshotgun", "M-16", // 3
"Hunting Rifle", "Mac", "Chrome", // 6
"Desert Rifle", "Military Sniper", "SPAS Shotgun", // 9
"First Aid Kit", "Molotov", "Pipe Bomb", // 12
"Pills", "Gascan", "Propane Tank", // 15
"Oxygen Tank", "Melee", "Chainsaw", // 18
"Grenade Launcher", "Ammo Pack", "Adrenaline", // 21
"Defibrillator", "Bile Bomb", "AK-47", // 24
"Gnome", "Cola Bottles", "Fireworks", // 27
"Incendiary Ammo Pack", "Explosive Ammo Pack", "Deagle", // 30
"MP5", "SG552", "AWP", // 33
"Scout", "M60", "Tank Claw", // 36
"Hunter Claw", "Charger Claw", "Boomer Claw", // 39
"Smoker Claw", "Spitter Claw", "Jockey Claw", // 42
"Turret", "vomit", "splat", // 45
"pounce", "lounge", "pull", // 48
"choke", "rock", "physics", // 51
"ammo", "upgrade_item" // 54
};
new const String:WeaponModels[WeaponId][] =
{
"",
"/w_models/weapons/w_pistol_B.mdl",
"/w_models/weapons/w_smg_uzi.mdl",
"/w_models/weapons/w_shotgun.mdl",
"/w_models/weapons/w_autoshot_m4super.mdl",
"/w_models/weapons/w_rifle_m16a2.mdl",
"/w_models/weapons/w_sniper_mini14.mdl",
"/w_models/weapons/w_smg_a.mdl",
"/w_models/weapons/w_pumpshotgun_a.mdl",
"/w_models/weapons/w_desert_rifle.mdl", // "/w_models/weapons/w_rifle_b.mdl"
"/w_models/weapons/w_sniper_military.mdl",
"/w_models/weapons/w_shotgun_spas.mdl",
"/w_models/weapons/w_eq_medkit.mdl",
"/w_models/weapons/w_eq_molotov.mdl",
"/w_models/weapons/w_eq_pipebomb.mdl",
"/w_models/weapons/w_eq_painpills.mdl",
"/props_junk/gascan001a.mdl",
"/props_junk/propanecanister001.mdl",
"/props_equipment/oxygentank01.mdl",
"",
"/weapons/melee/w_chainsaw.mdl",
"/w_models/weapons/w_grenade_launcher.mdl",
"",
"/w_models/weapons/w_eq_adrenaline.mdl",
"/w_models/weapons/w_eq_defibrillator.mdl",
"/w_models/weapons/w_eq_bile_flask.mdl",
"/w_models/weapons/w_rifle_ak47.mdl",
"/props_junk/gnome.mdl",
"/w_models/weapons/w_cola.mdl",
"/props_junk/explosive_box001.mdl",
"/w_models/weapons/w_eq_incendiary_ammopack.mdl",
"/w_models/weapons/w_eq_explosive_ammopack.mdl",
"/w_models/weapons/w_desert_eagle.mdl",
"/w_models/weapons/w_smg_mp5.mdl",
"/w_models/weapons/w_rifle_sg552.mdl",
"/w_models/weapons/w_sniper_awp.mdl",
"/w_models/weapons/w_sniper_scout.mdl",
"/w_models/weapons/w_m60.mdl",
new const WeaponSlots[_:WeaponId] =
{
-1, // WEPID_NONE
1, // WEPID_PISTOL
0, // WEPID_SMG
0, // WEPID_PUMPSHOTGUN
0, // WEPID_AUTOSHOTGUN
0, // WEPID_RIFLE
0, // WEPID_HUNTING_RIFLE
0, // WEPID_SMG_SILENCED
0, // WEPID_SHOTGUN_CHROME
0, // WEPID_RIFLE_DESERT
0, // WEPID_SNIPER_MILITARY
0, // WEPID_SHOTGUN_SPAS
3, // WEPID_FIRST_AID_KIT
2, // WEPID_MOLOTOV
2, // WEPID_PIPE_BOMB
4, // WEPID_PAIN_PILLS
-1, // WEPID_GASCAN
-1, // WEPID_PROPANE_TANK
-1, // WEPID_OXYGEN_TANK
1, // WEPID_MELEE
1, // WEPID_CHAINSAW
0, // WEPID_GRENADE_LAUNCHER
3, // WEPID_AMMO_PACK
4, // WEPID_ADRENALINE
3, // WEPID_DEFIBRILLATOR
2, // WEPID_VOMITJAR
0, // WEPID_RIFLE_AK47
-1, // WEPID_GNOME_CHOMPSKI
-1, // WEPID_COLA_BOTTLES
-1, // WEPID_FIREWORKS_BOX
3, // WEPID_INCENDIARY_AMMO
3, // WEPID_FRAG_AMMO
1, // WEPID_PISTOL_MAGNUM
0, // WEPID_SMG_MP5
0, // WEPID_RIFLE_SG552
0, // WEPID_SNIPER_AWP
0, // WEPID_SNIPER_SCOUT
0, // WEPID_RIFLE_M60
-1, // WEPID_TANK_CLAW
-1, // WEPID_HUNTER_CLAW
-1, // WEPID_CHARGER_CLAW
-1, // WEPID_BOOMER_CLAW
-1, // WEPID_SMOKER_CLAW
-1, // WEPID_SPITTER_CLAW
-1, // WEPID_JOCKEY_CLAW
-1, // WEPID_MACHINEGUN
-1, // WEPID_FATAL_VOMIT
-1, // WEPID_EXPLODING_SPLAT
-1, // WEPID_LUNGE_POUNCE
-1, // WEPID_LOUNGE
-1, // WEPID_FULLPULL
-1, // WEPID_CHOKE
-1, // WEPID_THROWING_ROCK
-1, // WEPID_TURBO_PHYSICS
-1, // WEPID_AMMO
-1 // WEPID_UPGRADE_ITEM
};
|