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

Goggles effect fix for other sync types #695

Closed
NexiusTailer opened this issue Jul 9, 2023 · 1 comment
Closed

Goggles effect fix for other sync types #695

NexiusTailer opened this issue Jul 9, 2023 · 1 comment

Comments

@NexiusTailer
Copy link
Contributor

This piece of code is only applied to onfoot synchronization:

// Fix Night Vision & Thermal Goggles visual effect show for all streamed players.
if ((player.armedWeapon_ == PlayerWeapon_Night_Vis_Goggles || player.armedWeapon_ == PlayerWeapon_Thermal_Goggles))
{
footSync.Keys &= ~Key::FIRE;
}

while this could be added in both driver (incar) and passenger types as well.
This can sound weird for normal people to use these weapons inside of a car, but probably possible with cheats.

@NexiusTailer
Copy link
Contributor Author

NexiusTailer commented Jul 11, 2023

Finally had time to test it with a clientside script just to prove this theory and seems like it isn't an issue for the game. Any such manipulations like trying to send KEY_FIRE (or even any other which could be imagined for in-car shooting use) with a holding weapon 44 or 45 make completely nothing for other players if the attacker is in vehicle :/

Anyway it's good that it doesn't need to have extended fix for other sync types too.

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

1 participant