View Single Post
Andersso
Member
Join Date: Nov 2009
Location: E8 2A 2A 2A 2A
Old 12-11-2015 , 20:28   Re: [CS:GO] Custom Viewmodel
Reply With Quote #59

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_STRINGWeaponModels_OnWeapon);
}

public 
bool WeaponModels_OnWeapon(int weaponIndexint clientint weapon, const char[] classNameint itemDefIndex)
{
    return 
true;

Andersso is offline