rehlds / ReGameDLL_CS

:hammer: Reverse-engineered gamedll (CS 1.6 / CZero)
GNU General Public License v3.0
584 stars 203 forks source link

Bug with spectator #61

Closed spark512 closed 8 years ago

spark512 commented 8 years ago

Hey,

I'm sure you've heard of this bug before. If a player joins the game, picks a team, but doesn't select a skin(leet, urban, gign, etc...) he gets spawned, but he teleports around the map where there are cameras. We tested this with a friend, he said it works through the old style menus.

Here is a map with cameras to test the issue: zm_toronto_v4 - https://www.sendspace.com/file/6sa8kj

To reproduce the issue, switch to old style menus, join, pick a team without picking a skin and when you get spawned you keep teleporting around the map where there are cameras

ghost commented 8 years ago

я лично не обнаружил

s1lentq commented 8 years ago

@spark512, when you get spawned Please explain this, as the player get spawned? from gameplay? or 3rd-party?

spark512 commented 8 years ago

Yes, i believe when he's spawned from new round. I'm not sure what exactly is going on and how to explain it, i can show you in a test server if you'd like..

s1lentq commented 8 years ago

@spark512 If it is possible for you can provide a video or demo?

spark512 commented 8 years ago

After a bit of testing i found out more about this bug. So the bug happens when you're between jointeam and joinclass. You have a team selected, but you dont have a class yet. The problem is produced when you are spawned by 3rd party plugins (since there is nothing to spawn you under normal circumstances), basically anything that spawns you in this state. The previous cause was the Zombie Plague mod, but i managed to use AMX_Super to reproduce the same problem.

To reproduce with AMX_Super, select a team(without selecting a class of course) and spawn yourself with amx_revive or with amx_transfer.

Here is a demo of what happens: https://www.sendspace.com/file/rj6cr1

You get teleported to the places where there are cameras because you were spawned without properly selecting a class. I think i add need to add a check in these plugins to prevent spawning when there is no class selected. But i also think those cameras should only affect unassigned players, and not players who selected a team...

spark512 commented 8 years ago

Tested and it's working, players are not able to spawn. Good job 👍