-
Notifications
You must be signed in to change notification settings - Fork 10
Playerset model bug #24
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
Comments
My own test code (ignore this):
|
The problem seems to be
The emulator is actually calculating correctly, but it also needs to overflow to emulate
|
After fixing
|
I can confirm that this exact issue is still present with the latest emulator version. |
Yes, it's because of the math issue mentioned previously. That's why this is still an open issue. |
Ok, I understand. Is there any way I can help with this? I'm not a programmer but I'd love to help in terms of testing on my CSGO server. I would even bounty (pay off) this bug since it's quite an important issue atm. Anyways as always, thank you so much for all the effort you've put into the emulator. |
I did some extensive testing with @Xiazee and found the line which causes the issue. Line 1673 in es_playergetset.txt: The whole block works fine until that line, the playerset color resets the model to the previous one for some odd reason. You can test this by setting a delay of 2-3 seconds on the line and you'll see the model changing correctly and after the delay is over it'll switch back to the previous faulty model. Commenting out this line will fix the issue, but I'm pretty sure the line is needed to make sure the colors are reset upon changing races/models. A temporary fix regarding wcs would be to use "es wcs_color" instead of "es playerset model", has been tested and works fine. |
Thanks for your tests! The problem is simply the lack of time. Currently, I don't even have enough time to check Pull Requests. Regarding the issue: yes, it's caused by re-/setting the color. Internally, it uses |
No problem, it's ok. Just reporting whatever issues we find so it is atleast logged somewhere.
|
Sure, we could completly replace the playerget/set functionality with ES Python code or SP Python code, but then the issue with |
1 similar comment
Sure, we could completly replace the playerget/set functionality with ES Python code or SP Python code, but then the issue with |
Uh oh!
There was an error while loading. Please reload this page.
When you use the playerset model command it will set the player model to the intended model, so this part works flawlessly.
But if you later wish to change the player's model then using the command again the model will not be changed, and the same goes if you use it on any other player in the game. The first model that is being applied to someone on the server will be the model that is added to everyone the playerset model command is used on afterwards.
An example would be that I apply a barrel model to player1 and thereafter I apply a zombie model to player2.
Player 1 will now look like a zombie and player two will also look like a zombie, although he was supposed to look like a zombie and the path would refer to the zombie model.
Code used for testing:
The text was updated successfully, but these errors were encountered: