Quote:
Originally Posted by thetwistedpanda
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
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.
__________________