M1 |
M2 |
055 |
001
Summary: | Add sv_sharekeys | ||
---|---|---|---|
Product: | Odamex | Reporter: | Ralph Vickers <Ralphis> |
Component: | Server & Client | Assignee: | Odamex Bug Reporter <odamex-bug-reporter> |
Status: | NEW --- | ||
Severity: | enhancement | CC: | Ch0wW |
Priority: | P5 | ||
Version: | 0.8.x | ||
Hardware: | All | ||
OS: | Other |
Description
Ralph Vickers
2019-01-25 16:05:56 UTC
Shouldn't be hard to do it (without even making some protocol changes !) 1) Make serverside (or commonside ?) the CVAR sv_sharekeys 2) Make from the server a byte[MAX KEYS] flagging keys. 3) Whenever a client gets a key, increment from that byte. 4) in the Player Think, check if we don't have the same keys from the server. If so, sync them with the server. 5) In the player (re?)spawn function, sync 6) (Optionnal ?) If we enable the CVAR midgame, sync them between all players. |