View Single Post
Qes
AlliedModders Donor
Join Date: Jul 2014
Old 09-25-2017 , 06:55   Re: [CS:GO] First Person View Models Interface (with World Models support)
Reply With Quote #152

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");
		}
	}
Qes is offline