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

[Renderer][Request] StudioModel Texture Replacer change every newround #469

Open
asdian opened this issue Aug 13, 2024 · 4 comments
Open

Comments

@asdian
Copy link

asdian commented Aug 13, 2024

I'm making a certain plugin that change the texture skin for .mdl under some cases (by buying in-game, etc.). However, currently client has to restart the game on every texture change. So as written on the title, new round / client connect / player spawn / etc. whatever possible.

@hzqst
Copy link
Owner

hzqst commented Aug 13, 2024

is changing pev->skin or pev->body not enough in this case?

@asdian
Copy link
Author

asdian commented Aug 13, 2024

that doesn't work with viewmodels. if only that works though...

*edit
if you're talking about the code for metahook plugin, i've tried but can't to get them working. besides, i preferred your method of using external file which can be easily modified

@hzqst
Copy link
Owner

hzqst commented Aug 13, 2024

that doesn't work with viewmodels. if only that works though...

*edit if you're talking about the code for metahook plugin, i've tried but can't to get them working. besides, i preferred your method of using external file which can be easily modified

The only way to change viewent.curstate.body in vanilla engine is to send svc_weaponanim

I mean how do you notify the client to change textures ? like sending a custom network message from server?

@asdian
Copy link
Author

asdian commented Aug 13, 2024

I mean how do you notify the client to change textures ? like sending a custom network message from server?

well for now yeah, sending custom messages. that's fine for me.

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