Parent Directory | Revision Log
Revision 17 - (view) (download)
1 : | ian | 1 | /* CSX functions |
2 : | * | ||
3 : | * (c) 2004, SidLuke | ||
4 : | * This file is provided as is (no warranties). | ||
5 : | */ | ||
6 : | |||
7 : | #if defined _csx_included | ||
8 : | #endinput | ||
9 : | #endif | ||
10 : | #define _csx_included | ||
11 : | |||
12 : | #include <csstats> | ||
13 : | |||
14 : | #if AMXX_VERSION_NUM >= 175 | ||
15 : | #pragma reqclass xstats | ||
16 : | #if !defined AMXMODX_NOAUTOLOAD | ||
17 : | #pragma defclasslib xstats csx | ||
18 : | #endif | ||
19 : | #else | ||
20 : | #pragma library csx | ||
21 : | #endif | ||
22 : | |||
23 : | /* | ||
24 : | * Forwards | ||
25 : | */ | ||
26 : | |||
27 : | /* Function is called after player to player attacks , | ||
28 : | * if players were damaged by teammate TA is set to 1 */ | ||
29 : | forward client_damage(attacker,victim,damage,wpnindex,hitplace,TA); | ||
30 : | |||
31 : | /* Function is called after player death , | ||
32 : | * if player was killed by teammate TK is set to 1 */ | ||
33 : | forward client_death(killer,victim,wpnindex,hitplace,TK); | ||
34 : | |||
35 : | forward grenade_throw( index,greindex,wId ); | ||
36 : | |||
37 : | forward bomb_planting(planter); | ||
38 : | forward bomb_planted(planter); | ||
39 : | forward bomb_explode(planter,defuser); | ||
40 : | forward bomb_defusing(defuser); | ||
41 : | forward bomb_defused(defuser); | ||
42 : | |||
43 : | /************* Shared Natives Start ********************************/ | ||
44 : | |||
45 : | /* Custom Weapon Support */ | ||
46 : | /* function will return index of new weapon */ | ||
47 : | native custom_weapon_add( const wpnname[],melee = 0,const logname[]="" ); | ||
48 : | /* Function will pass damage done by this custom weapon to stats module and other plugins */ | ||
49 : | native custom_weapon_dmg( weapon, att, vic, damage, hitplace=0 ); | ||
50 : | /* Function will pass info about custom weapon shot to stats module */ | ||
51 : | native custom_weapon_shot( weapon,index ); // weapon id , player id | ||
52 : | |||
53 : | /* function will return 1 if true */ | ||
54 : | native xmod_is_melee_wpn(wpnindex); | ||
55 : | |||
56 : | /* Returns weapon name. */ | ||
57 : | native xmod_get_wpnname(wpnindex,name[],len); | ||
58 : | |||
59 : | /* Returns weapon logname. */ | ||
60 : | native xmod_get_wpnlogname(wpnindex,name[],len); | ||
61 : | |||
62 : | /* Returns weapons array size */ | ||
63 : | native xmod_get_maxweapons(); | ||
64 : | |||
65 : | /* Returns stats array size */ | ||
66 : | native xmod_get_stats_size(); | ||
67 : | |||
68 : | ian | 17 | /************* Shared Natives End ********************************/ |
Contact | ViewVC Help |
Powered by ViewVC 1.0.4 |