View Single Post
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 03-20-2017 , 10:35   Re: Precache Models, Materials and Sound for replacing weapon model
Reply With Quote #5

Quote:
Originally Posted by cravenge View Post
Unfortunately, no, unless you're talking about CS:GO, I definitely remember numerous posts about it. Look up for something like world model, view model, etc. using Search above.
I found this: https://forums.alliedmods.net/showthread.php?t=164630 but not sure how it works, but I also found this:

Code:
new index = PrecacheModel("models/weapons/w_fire_rapier.mdl")
SetEntData(weapon, FindSendPropOffs("CBaseCombatWeapon", "m_iWorldModelIndex"), index, 4, true)
SetEntData(weapon, FindSendPropOffs("CBaseEntity", "m_nModelIndex"), index, 4, true)
But I heard it cause some problems.
RumbleFrog is offline