View Single Post
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 02-15-2013 , 16:30   Re: [ANY] Resize Players - 1.2.0 - 27/11/2012
Reply With Quote #259

Quote:
Originally Posted by thetwistedpanda View Post
The plugin gets very error spam happy if you attempt to resize a player's head on a game that doesn't support it. May want to consider only allowing the command if the game supports it via GetGameFolderName()
The update I'm currently writing checks for the availability of said commands.

Basically boils down to the following:

PHP Code:
g_bResizeAvailable = (FindSendPropInfo("CTFPlayer""m_flModelScale") > 0);
g_bResizeHeadAvailable = (FindSendPropInfo("CTFPlayer""m_flHeadScale") > 0); 
Each boolean is checked once the appropriate command is run, and exits if the netprop is unavailable.

Quote:
Originally Posted by Grot View Post
Is there any way of limiting the maximum and minimum size people can go to?
Also in this update I'm writing. Using a convar like the following...

Code:
sm_resize_bounds "0.25, 3.00"
... will restrict the sm_resize(me) commands to within 0.25 and 3.00. A similar convar will exist for sm_resize(my)head too. Considering making an override for this too.
__________________

Last edited by 11530; 02-15-2013 at 16:33.
11530 is offline