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

Change material of model #180

Open
k4r3l01 opened this issue Aug 3, 2017 · 3 comments
Open

Change material of model #180

k4r3l01 opened this issue Aug 3, 2017 · 3 comments

Comments

@k4r3l01
Copy link
Contributor

k4r3l01 commented Aug 3, 2017

Hello please its will be possible to change material of model via gsc its will be decreased number of needed models like weapons with camo. or in future.

@T-Maxxx
Copy link
Contributor

T-Maxxx commented Aug 3, 2017

Client changes required.

@k4r3l01
Copy link
Contributor Author

k4r3l01 commented Aug 3, 2017

i know but its will be great :)

@T-Maxxx
Copy link
Contributor

T-Maxxx commented Aug 3, 2017

Server:

  • Invoke on player
  • Find weapon and material by name
  • Send message to player to change weapon's current material.

Client:

  • Find desired weapon and material
  • Find correct offset in xmodel structure
  • Replace pointer

Result:

  • Each client may have its own texture on weapon, server still think its default one
  • One xmodel, N textures, less work on adding new texture than new model
  • Same weapon index means same texture for two clients even they see it as different one
  • Less work == less quality (I'm talking about this texture mismatch).

@callofduty4x/dev Any limitations? Like weapon in common_mp and texture in mod?

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

No branches or pull requests

3 participants