31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
/* Sven Coop Stocks
|
|
*
|
|
* This file is provided as is (no warranties).
|
|
*/
|
|
|
|
#if defined _svencoop_stocks_included
|
|
#endinput
|
|
#endif
|
|
#define _svencoop_stocks_included
|
|
|
|
#include <svencoop_const>
|
|
|
|
//Stocks for 9mm ammo (mp5, uzi(akimbo))
|
|
stock sc_get_bpammo_9mm(id) { return sc_get_weapon_ammo(id,SVEN_WEP_9MM; }
|
|
stock sc_set_bpammo_9mm(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_9MM; }
|
|
|
|
//Stocks for RPG ammo (RPG launcher)
|
|
stock sc_get_bpammo_rpg(id) { return sc_get_weapon_ammo(id,SVEN_WEP_RPG; }
|
|
stock sc_set_bpammo_rpg(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_RPG; }
|
|
|
|
//Stocks for radioactive ammo (gauss, egon)
|
|
stock sc_get_bpammo_radio(id) { return sc_get_weapon_ammo(id,SVEN_WEP_RADIO; }
|
|
stock sc_set_bpammo_radio(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_RADIO; }
|
|
|
|
//Stocks for snark ammo
|
|
stock sc_get_bpammo_snark(id) { return sc_get_weapon_ammo(id,SVEN_WEP_SNARK; }
|
|
stock sc_set_bpammo_snark(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_SNARK; }
|
|
|
|
//Stocks for shotgun ammo
|
|
stock sc_get_bpammo_shot(id) { return sc_get_weapon_ammo(id,SVEN_WEP_SHOTGUN; }
|
|
stock sc_set_bpammo_shot(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_SHOTGUN; }
|