The ACS function "GetPlayerSkin" now respects "cl_skins", the "NOSKIN" actor flag, etc. when returning a player's personal skin
This is in response to some of the feedback left here: https://zandronum.com/tracker/view.php?id=4122#c23088
-
GetPlayerSkin
now respects the client'scl_skins
CVar and will return "Base" instead of their personal skin if the client has disabled all skins, or if they only disabled cheat skins and a player's using one. - It also checks if a player's class has the
NOSKIN
flag enabled or is currently morphed, and will return "Base" if either of these conditions are true.
These changes are only relevant to GETPLAYERSKIN_USERINFO
and GETPLAYERSKIN_VISIBLE
. They don't affect GETPLAYERSKIN_WEAPON
or GETPLAYERSKIN_ACS
since these skins take precedence over cl_skins
and NOSKIN
.