Started with investigating the Bad conversion: bool message for clients on mission start. Turns out it was caused by the old getVirtualCargo function.
Rewritten the crawling of valid arsenal items. Due to this the message is gone and the already time consuming crawling was improved from taking 395ms down to "just" taking 260ms.
The old function also added "combined weapon classnames" like "arifle_Katiba_ARCO_pointer_snds_F" to the items array, which shouldn't have happened.
Content:
[x] New KPLIB_fnc_crawlAllItems as replacement for the old KPLIB_fnc_getVirtualCargo
Description:
Started with investigating the
Bad conversion: bool
message for clients on mission start. Turns out it was caused by the oldgetVirtualCargo
function. Rewritten the crawling of valid arsenal items. Due to this the message is gone and the already time consuming crawling was improved from taking 395ms down to "just" taking 260ms. The old function also added "combined weapon classnames" like"arifle_Katiba_ARCO_pointer_snds_F"
to the items array, which shouldn't have happened.Content:
KPLIB_fnc_crawlAllItems
as replacement for the oldKPLIB_fnc_getVirtualCargo
Successfully tested on: