cs_weap_models_api.inc
Original include source with line numbers.
| 1 | #if defined _cs_weap_models_api_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _cs_weap_models_api_included |
| 5 | |
| 6 | #if AMXX_VERSION_NUM >= 175 |
| 7 | #pragma reqlib cs_weap_models_api |
| 8 | #if !defined AMXMODX_NOAUTOLOAD |
| 9 | #pragma loadlib cs_weap_models_api |
| 10 | #endif |
| 11 | #else |
| 12 | #pragma library cs_weap_models_api |
| 13 | #endif |
| 14 | |
| 15 | /** |
| 16 | * Sets a custom view model for a specific weapon for a player. |
| 17 | * |
| 18 | * Note: if you pass an empty string, model will be hidden. |
| 19 | * |
| 20 | * @param id Player index. |
| 21 | * @param weaponid Weapon to replace model for. (in CSW_ format) |
| 22 | * @param view_model Full path to model. (e.g. "models/v_knife_custom.mdl") |
| 23 | */ |
| 24 | native cs_set_player_view_model(id, weaponid, const view_model[]) |
| 25 | |
| 26 | /** |
| 27 | * Restores a custom view model for a specific weapon for a player. |
| 28 | * |
| 29 | * @param id Player index. |
| 30 | * @param weaponid Weapon to restore model for. (in CSW_ format) |
| 31 | */ |
| 32 | native cs_reset_player_view_model(id, weaponid) |
| 33 | |
| 34 | /** |
| 35 | * Sets a custom weapon model for a specific weapon for a player. |
| 36 | * |
| 37 | * Note: if you pass an empty string, model will be hidden. |
| 38 | * |
| 39 | * @param id Player index. |
| 40 | * @param weaponid Weapon to replace model for. (in CSW_ format) |
| 41 | * @param view_model Full path to model. (e.g. "models/p_knife_custom.mdl") |
| 42 | */ |
| 43 | native cs_set_player_weap_model(id, weaponid, const weapon_model[]) |
| 44 | |
| 45 | /** |
| 46 | * Restores a custom weapon model for a specific weapon for a player. |
| 47 | * |
| 48 | * @param id Player index. |
| 49 | * @param weaponid Weapon to restore model for. (in CSW_ format) |
| 50 | */ |
| 51 | native cs_reset_player_weap_model(id, weaponid) |
| 52 | |