View Single Post
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 07-15-2016 , 13:50   Re: [TF2] Custom Weapons 3 (Beta 1)
Reply With Quote #5

"insert a block into your"

just give a [spoiler]'d [code] for an example weapon config, it's much easier than trying to get the average layman to come to the same conclusion that they're using keyvalue config syntax in a very specific way.





I would've kept the convar names the same, that way nobody really needs to update their configs ;p


quick, remind people you've already been running CW3 for a while now lolo!!

PHP Code:
stock WeaponSwitch(iClientiSlot)
{
    
ClientCommand(iClient"slot%i"iSlot+1);

This can make people weapon switch without needing to do anything special to fix the viewmodels. Setting m_hActiveWeapon directly won't fire OnWeaponSwitch, which the core plugin uses to change whether or not viewmodels are visible or not.
__________________

Last edited by Chdata; 07-15-2016 at 14:04.
Chdata is offline