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

Sending player model only in modelindex field (stop use userinfo for this) #342

Open
WPMGPRoSToTeMa opened this issue Feb 10, 2017 · 7 comments

Comments

@WPMGPRoSToTeMa
Copy link
Contributor

WPMGPRoSToTeMa commented Feb 10, 2017

I have found some cool feature - player model can be send only via modelindex, you can stop use userinfo for this.
What are benefits of this?

  • You can change player model without resending his userinfo, that means you can change models of all players at one time without overflows and other problems.
  • You can use any folder, not only models/player/X/X.mdl, also you can use sprites

Where we can implement this? We can implement this not only in ReHLDS, but in ReGameDLL and AMXModX.
What we need to implement this in ReHLDS? We need 3 things:

  • Setting modelindex for players according to their model field in userinfo
  • Removing model field from userinfo when transmitting it to clients
  • Saving and checking old sended userinfo to avoid sending the same userinfo twice or more (when gamedll changing player model via model field, userinfo is totally unchanged, because we removing the model field)
@spark512
Copy link
Contributor

spark512 commented Feb 10, 2017

hmm, i've tried changing the player's modelindex before with AMXModX on AddToFullPack, but i wasn't able to get it working. I got it to change other entities into different models(grenades for example), but i wasn't able to change players into different models. Not sure why, is there something forcing the player models based on the model userinfo?

@WPMGPRoSToTeMa
Copy link
Contributor Author

@spark512 you need to remove model field from userinfo.

@LevShisterov
Copy link
Collaborator

Just be aware, in HL (and probably some other games), in mp_teamplay 0 mode players are not forced to specific models and can set them to "bla-bla-bla" and "whatever". And in mp_teamplay 1 mode player models are not precached.

@WPMGPRoSToTeMa
Copy link
Contributor Author

@LevShisterov yep, therefore there will be a cvar for that.

@afwn90cj93201nixr2e1re
Copy link
Contributor

afwn90cj93201nixr2e1re commented Feb 11, 2017

You can also prevent the use of such software as: ExtraMirror(https://github.com/shelru/ExtraMirror/blob/master/MiniBase/client.cpp#L214), Ct-Shield, Cardinal, who use the форумулы to calculate SteamId players received in svc_extrainfo
To do this, you should add to quark, not only a model, but also sid*

@theAsmodai
Copy link
Collaborator

who use the форумулы to calculate
👍

@afwn90cj93201nixr2e1re
Copy link
Contributor

Изначально забыл правильно написание formules, пару раз буквы местами перепутал и забил. Написал по 'русски', и даже так перепутал. Хех.

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

5 participants