ReactiveDrop / reactivedrop_public_src

Alien Swarm: Reactive Drop game source code and issue tracker.
https://reactivedrop.com
124 stars 36 forks source link

[bug]custom camera rotation command applies to all clients #385

Open ywgATustcbbs opened 2 years ago

ywgATustcbbs commented 2 years ago

one guy has some custom camera rotation settings. not sure if this is cheating or client mods. but the rotation setting applied to my client. i did not know how to revert the setting and had to restart the game.

dem file

https://1drv.ms/u/s!AjHhxntCwFpDtt0yA9pxiSdeQccC-w

https://user-images.githubusercontent.com/11514506/200241535-710ab1ef-95c7-4088-97e1-4c3984765045.mp4

BenLubar commented 2 years ago

Weird, rd_cam_marine_yaw_rate is a non-replicated client cheat convar.

ywgATustcbbs commented 2 years ago

Weird, rd_cam_marine_yaw_rate is a non-replicated client cheat convar.

I guess it was caused by spectating that guy and then my client "synced" with his cvars somehow

mithrand0 commented 2 years ago

rd_cam_marine_yaw_rate is the animation time I think.

rd_cam_marine_yaw_desired.SetValue( pPlayer->m_flMovementAxisYaw );
...
asw_cam_marine_yaw.SetValue(pPlayer->m_flMovementAxisYaw);

Looking at above, it seems to follow the players' camera rotation. Probably this is on a modded server.

ywgATustcbbs commented 2 years ago

rd_cam_marine_yaw_rate is the animation time I think.

rd_cam_marine_yaw_desired.SetValue( pPlayer->m_flMovementAxisYaw );
...
asw_cam_marine_yaw.SetValue(pPlayer->m_flMovementAxisYaw);

Looking at above, it seems to follow the players' camera rotation. Probably this is on a modded server.

Not a moded server. This happened in my lobby. And i am not using any mod related to camera rotation. That is why i am confused. Don't know how could he influence my client in my lobby.

mithrand0 commented 2 years ago

The most logical explanation is, a cheater entered your lobby, with a custom client, that modifies camera angle on his marine. When you spectate it, your client (or in this case host) simply copies the result of what he does.

It's not nice of that player, but would make sense.

ywgATustcbbs commented 2 years ago

The most logical explanation is, a cheater entered your lobby, with a custom client, that modifies camera angle on his marine. When you spectate it, your client (or in this case host) simply copies the result of what he does.

It's not nice of that player, but would make sense.

Is there any way to not let the cheater's settings override my client's? Or Perhaps add a setting that rejects a connection from a cheated client?