View Single Post
Javierko
AlliedModders Donor
Join Date: Sep 2017
Location: Czech republic
Old 09-03-2018 , 04:14   Re: [CS:GO] First Person View Models Interface (with World Models support)
Reply With Quote #158

Quote:
Originally Posted by Qes View Post
Hello,
I have problem with model knife change.
My code change model when player use button "R" (reload) on knife (model crossbow). In the beginning it changes into crossbows, and then you can change back to a knife, but when i change back to a knife, i have bug - the model of the crossbow is and is with the knife model. To fix it, I have to change my weapon and go back to the knife...
Code:
	if(CW==CKNIFE)
	{
		if(!ma_kusze[id])
		{
			ma_kusze[id] = true;
			FPVMI_AddViewModelToClient(id, "weapon_knife", ICrossbow);
		}
		else
		{
			ma_kusze[id] = false;
			FPVMI_RemoveViewModelToClient(id, "weapon_knife");
		}
	}
Is there any solution? I have same problem.
__________________
My Github & Sourcemod work.
If you like my work and if you want to support me, you can through PayPal.

Official SourceMod CZ/SK Discord: https://discord.gg/Qvar55a
Javierko is offline