Bug Tracker – Full Text Bug Listing

Bug 1248

Summary: Add sv_sharekeys
Product: Odamex Reporter: Ralph Vickers <Ralphis>
Component: Server & ClientAssignee: 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
Add sv_sharekeys for coop. Shares keys between the players. When a key is picked up, print a global notification.
Comment 1 Maƫllig Desmottes 2019-01-26 07:02:28 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.