Thought I could promote my own script here for changing view model..
It's been on GitHub for quite some time, but it was never finished. I have now spent some more time on the project and hopefully it's more "work" and less "not work"
I wrote this script in goal of having no glitches at all, and a lot of voodoo magic has gone in to making that possible. (At least, as close as possible)
However, the API and file config should be easy enough for most people to use
Not much time has gone into testing. Maybe I could get some help with that
Source:
https://github.com/Andersso/SM-WeaponModels
Here is some old video i posted some time ago on a different thread
Mini example of API:
PHP Code:
#include <sourcemod>
#include <weaponmodels>
public void OnMapStart()
{
WeaponModels_AddWeaponByClassName("weapon_knife", "models/weapons/v_my_custom_knife.mdl", NULL_STRING, WeaponModels_OnWeapon);
}
public bool WeaponModels_OnWeapon(int weaponIndex, int client, int weapon, const char[] className, int itemDefIndex)
{
return true;
}