From 027ae6dc7e415f442f1237db135bcb29e0b799a3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 4 Oct 2004 08:09:52 +0000 Subject: [PATCH] *** empty log message *** --- plugins/include/csx.inc | 59 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 plugins/include/csx.inc diff --git a/plugins/include/csx.inc b/plugins/include/csx.inc new file mode 100755 index 00000000..508d81a7 --- /dev/null +++ b/plugins/include/csx.inc @@ -0,0 +1,59 @@ +/* CSX functions + * + * (c) 2004, SidLuke + * This file is provided as is (no warranties). + */ + +#if defined _csx_included + #endinput +#endif +#define _csx_included + +#include + +/* +* Forwards +*/ + +/* Function is called after player to player attacks , +* if players were damaged by teammate TA is set to 1 */ +forward client_damage(attacker,victim,damage,wpnindex,hitplace,TA); + +/* Function is called after player death , +* if player was killed by teammate TK is set to 1 */ +forward client_death(killer,victim,wpnindex,hitplace,TK); + +forward grenade_throw( index,greindex,wId ); + +forward bomb_planting(planter); +forward bomb_planted(planter); +forward bomb_explode(planter,defuser); +forward bomb_defusing(defuser); +forward bomb_defused(defuser); + +/************* Shared Natives Start ********************************/ + +/* Custom Weapon Support */ +/* function will return index of new weapon */ +native custom_weapon_add( wpnname[],melee = 0,logname[]="" ); +/* Function will pass damage done by this custom weapon to stats module and other plugins */ +native custom_weapon_dmg( weapon, att, vic, damage, hitplace=0 ); +/* Function will pass info about custom weapon shot to stats module */ +native custom_weapon_shot( weapon,index ); // weapon id , player id + +/* function will return 1 if true */ +native xmod_is_melee_wpn(wpnindex); + +/* Returns weapon name. */ +native xmod_get_wpnname(wpnindex,name[],len); + +/* Returns weapon logname. */ +native xmod_get_wpnlogname(wpnindex,name[],len); + +/* Returns weapons array size */ +native xmod_get_maxweapons(); + +/* Returns stats array size */ +native xmod_get_stats_size(); + +/************* Shared Natives End ********************************/ \ No newline at end of file