-
-
Notifications
You must be signed in to change notification settings - Fork 105
Closed
Labels
Type: 🚀 enhancementImprovement or addition of a new feature.Improvement or addition of a new feature.
Description
Usage example:
new InventorySlotType: slot = rg_get_weapon_info(rg_get_weapon_info("weapon_ak47", WI_ID), WI_SLOT) // PRIMARY_WEAPON_SLOTGet it from ReGameDLL:
https://github.com/s1lentq/ReGameDLL_CS/blob/e090a52846c769f21eaf40e20d4e1f6082e62bb3/regamedll/dlls/weapontype.cpp#L560-L569
temporary solution:
static stock InventorySlotType: GetWeaponSlot(const weaponId) {
static const weaponSlotInfo[] = {0,2,0,1,4,1,5,1,1,4,2,2,1,1,1,1,2,2,1,1,1,1,1,1,1,4,2,1,1,3,1}
if (weaponId < 0 || weaponId >= sizeof(weaponSlotInfo))
return NONE_SLOT
return InventorySlotType: weaponSlotInfo[weaponId]
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: 🚀 enhancementImprovement or addition of a new feature.Improvement or addition of a new feature.