Half-Life и Adrenaline Gamer форум
http://aghl.ru/forum/

Ways to change player model
http://aghl.ru/forum/viewtopic.php?f=12&t=2937
Страница 2 из 2

Автор:  Lev [ 02 апр 2019, 01:54 ]
Заголовок сообщения:  Re: Ways to change player model

engclient_cmd can be called this way:
Код:
engclient_cmd(plrid, "setinfo", "model gina");
The main concept is that actually engine holds model info, but engine doesn't care about teams, so you should let engine hold your custom model, but show a different (team) model to the game dll.
So, when player connects, it pass own model, you can catch setinfo command, execute engclient_cmd on a player to set your custom, and pass a modified info to the game dll.
In that way you don't need to deal with SVC_UPDATEUSERINFO, engine will do it.

Автор:  rtxa [ 02 апр 2019, 06:37 ]
Заголовок сообщения:  Re: Ways to change player model

Sorry, but I still don't get to make your method works, maybe I'm doing something wrong, it would be better you provide a plugin to see if this definitely works. For now, I manage to use Orpheu to hook SVC_UPDATEUSERINFO and change info there, but the bad thing is that it will not work with ReHLDS. :P

Страница 2 из 2 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/