This commit is contained in:
fed 2023-01-29 00:59:05 +01:00
parent 4024ca483a
commit 52c681eac9

View File

@ -295,6 +295,16 @@ isvalidweapon(var_0, var_1)
isvalidsecondary(var_0, var_1) isvalidsecondary(var_0, var_1)
{ {
if (maps\mp\_utility::is_true(var_1))
{
return isvalidprimary(var_0);
}
if (maps\mp\_utility::islootweapon(var_0))
{
var_0 = maps\mp\gametypes\_class::getbasefromlootversion(var_0);
}
if (is_custom_weapon(var_0)) if (is_custom_weapon(var_0))
{ {
return true; return true;