mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 22:05:37 +03:00
Working at time of commission
This commit is contained in:
parent
b381fc9141
commit
60586fdda4
38
dlls/sven/svencoop_const.inc
Normal file
38
dlls/sven/svencoop_const.inc
Normal file
@ -0,0 +1,38 @@
|
||||
/* Sven Coop Constants
|
||||
*
|
||||
* This file is provided as is (no warranties).
|
||||
*/
|
||||
|
||||
#if defined _svencoop_const_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _svencoop_const_included
|
||||
|
||||
// The PDATA defines are for using with FM
|
||||
// The SVEN_WEP_* defines are for sc_ weapon natives
|
||||
// Please, use the provided stocks.
|
||||
|
||||
#define PDATA_FRAGS 0x9
|
||||
#define PDATA_DEATHS 0x21B0
|
||||
#define PDATA_ALLY 0x28
|
||||
|
||||
#define SVEN_WEP_9MM 0
|
||||
#define PDATA_9MM 0x216D
|
||||
#define PDATA_9MM2 0x218D
|
||||
|
||||
#define SVEN_WEP_SHOTGUN 1
|
||||
#define PDATA_SHOTGUN 0x216E
|
||||
#define PDATA_SHOTGUN2 0x218E
|
||||
|
||||
#define SVEN_WEP_RPG 2
|
||||
#define PDATA_RPG 0x2195
|
||||
#define PDATA_RPG2 0x21B5
|
||||
|
||||
#define SVEN_WEP_RADIO 3
|
||||
#define PDATA_RADIO 0x217A
|
||||
#define PDATA_RADIO2 0x219A
|
||||
|
||||
#define SVEN_WEP_SNARK 4
|
||||
#define PDATA_SNARK 0x217A
|
||||
#define PDATA_SNARK2 0x219A
|
||||
|
31
dlls/sven/svencoop_stocks.inc
Normal file
31
dlls/sven/svencoop_stocks.inc
Normal file
@ -0,0 +1,31 @@
|
||||
/* 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; }
|
Loading…
Reference in New Issue
Block a user