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

Add new CVar sv_usercmd_custom_random_seed #837

Conversation

SergeyShorokhov
Copy link
Member

@SergeyShorokhov SergeyShorokhov commented Jun 11, 2021

CVar Def. value Description
sv_usercmd_custom_random_seed 0 When enabled server will populate an additional random seed independent of the client.

Ported from CS:GO leaked source code

Thanks to danil.nesvetaev for the reminder of this functionality in CS:GO. 👍

Video description:
https://youtu.be/xyG8XYBsBTY

@SergeyShorokhov SergeyShorokhov added HLDS: Dedicated Priority: 🔥 high Tasks with high priority that require immediate attention. Type: 🚀 enhancement Improvement or addition of a new feature. Status: 🕐 pending Issue is penging list. labels Jun 11, 2021
@SergeyShorokhov SergeyShorokhov requested a review from s1lentq June 11, 2021 12:29
@SergeyShorokhov SergeyShorokhov self-assigned this Jun 11, 2021
@SergeyShorokhov SergeyShorokhov changed the title Add new CVar sv_usercmd_custom_random_seed [WIP] Add new CVar sv_usercmd_custom_random_seed Jun 11, 2021
@SergeyShorokhov SergeyShorokhov force-pushed the add-new-cvar-sv_usercmd_custom_random_seed branch from 8746fdc to b624d90 Compare June 11, 2021 14:39
@SergeyShorokhov SergeyShorokhov changed the title [WIP] Add new CVar sv_usercmd_custom_random_seed Add new CVar sv_usercmd_custom_random_seed Jun 11, 2021
@SergeyShorokhov SergeyShorokhov force-pushed the add-new-cvar-sv_usercmd_custom_random_seed branch from b624d90 to 780204f Compare June 12, 2021 12:04
@s1lentq s1lentq merged commit 39b4410 into rehlds:master Jun 13, 2021
@metita
Copy link

metita commented Jun 14, 2021

Is there any reason for this change to be implemented? AFAIK having this cvar on 1 will just make the visual bullet landing worse, so...?

EDIT: Just investigated and having this on 1 will make no-recoil/no-spread hacks to not work right?

@WPMGPRoSToTeMa
Copy link
Contributor

@metita no-recoil will still work.

@metita
Copy link

metita commented Jun 14, 2021

@metita no-recoil will still work.

Any pro / cons on this then?

@WPMGPRoSToTeMa
Copy link
Contributor

Any pro / cons on this then?

@metita pros: no-spread will not work. Cons: client-side and server-side gunshot positions are different. E.g. you hit a player on the client-side, but a wall on the server-side (so no decals on the client-side) or vice versa. Or just different positions on a wall.

@afwn90cj93201nixr2e1re
Copy link
Contributor

afwn90cj93201nixr2e1re commented Jun 14, 2021

73M, 707 n4P3Hb 35/I1 ch70 n3P3nP0D437 ch00}|{13 P4607bl.
-)70 74K, K 5/I0800.
(Слову)

Да оффтоп, но не переведут.

@SergeyShorokhov SergeyShorokhov deleted the add-new-cvar-sv_usercmd_custom_random_seed branch June 14, 2021 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 🔥 high Tasks with high priority that require immediate attention. Status: 🕐 pending Issue is penging list. Type: 🚀 enhancement Improvement or addition of a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants