Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
unknao opened this issue Jul 23, 2023 · 3 comments
Open

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

unknao opened this issue Jul 23, 2023 · 3 comments

Comments

@unknao
Copy link
Contributor

unknao commented Jul 23, 2023

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
Copy link
Contributor Author

unknao commented Jul 23, 2023

Seems to draw on NPCS aswell.

@pingu7867
Copy link
Collaborator

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
Copy link
Contributor Author

unknao commented Jul 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants