CapsAdmin / pac3

advanced avatar customization for garrysmod
GNU General Public License v3.0
205 stars 94 forks source link

Outfits draw on players that are set to not draw. #1301

Open unknao opened 1 year ago

unknao commented 1 year ago

When you set the player to not draw with any of the nodraw functions or hooks the outfit still renders regardless if the player is drawn or not, this is not the case if the outfit wearer is not a player.

unknao commented 1 year ago

Seems to draw on NPCS aswell.

pingu7867 commented 1 year ago

Are you sure it's a bug? The entity part isn't for controlling the whole outfit. It's only an entity modifier to modify some of the owner's properties.

Also, "any of the nodraw functions or hooks" is quite unspecific. Hooks? Name them.

unknao commented 1 year ago

To me the indication that it hides the outfits on props and not players or npcs make it look like its a bug and not an intended thing on PACs part. The function i used was SetNoDraw and the hooks were PrePlayerDraw and ShouldDrawLocalPlayer.