weapon_models_api.inc
Original include source with line numbers.
| 1 | #if defined _weapon_models_api_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _weapon_models_api_included |
| 5 | |
| 6 | #if AMXX_VERSION_NUM >= 175 |
| 7 | #pragma reqlib weapon_models_api |
| 8 | #if !defined AMXMODX_NOAUTOLOAD |
| 9 | #pragma loadlib weapon_models_api |
| 10 | #endif |
| 11 | #else |
| 12 | #pragma library weapon_models_api |
| 13 | #endif |
| 14 | |
| 15 | enum |
| 16 | { |
| 17 | ADD_BY_WEAPONBOX, |
| 18 | ADD_BY_ARMORY_ENTITY, |
| 19 | ADD_BY_BUYZONE |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Called when weapon deployed. |
| 24 | * |
| 25 | * @param id Player index. |
| 26 | * @param weapon Weapon entity index. |
| 27 | * @param weaponid CSW_ const. |
| 28 | */ |
| 29 | forward cs_weapon_deploy(id, weapon, weaponid); |
| 30 | |
| 31 | /** |
| 32 | * Called when weapon holstered. |
| 33 | * |
| 34 | * @param id Player index. |
| 35 | * @param weapon Weapon entity index. |
| 36 | * @param weaponid CSW_ const. |
| 37 | */ |
| 38 | forward cs_weapon_holster(id, weapon, weaponid); |
| 39 | |
| 40 | /** |
| 41 | * Called when weapon droped. |
| 42 | * Forward should return 1 if weaponbox model changed |
| 43 | * |
| 44 | * @param id Player index. |
| 45 | * @param weaponbox Weaponbox entity index. |
| 46 | * @param weapon Weapon entity index. |
| 47 | * @param weaponid CSW_ const. |
| 48 | */ |
| 49 | forward cs_weapon_drop(id, weaponbox, weapon, weaponid); |
| 50 | |
| 51 | /** |
| 52 | * Called when weapon added to player. |
| 53 | * |
| 54 | * @param id Player index. |
| 55 | * @param weapon Weapon entity index. |
| 56 | * @param weaponid CSW_ const. |
| 57 | * @param type Add type. |
| 58 | */ |
| 59 | forward cs_weapon_add_to_player(id, weapon, weaponid, type); |
| 60 | |