diff --git a/dlls/sven/svencoop_const.inc b/dlls/sven/svencoop_const.inc new file mode 100644 index 00000000..a44a7b4e --- /dev/null +++ b/dlls/sven/svencoop_const.inc @@ -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 + \ No newline at end of file diff --git a/dlls/sven/svencoop_stocks.inc b/dlls/sven/svencoop_stocks.inc new file mode 100644 index 00000000..84d2b1bf --- /dev/null +++ b/dlls/sven/svencoop_stocks.inc @@ -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 + +//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; } \ No newline at end of file