KaukausInsurgency / ki-dcs

Kaukasus Insurgency
5 stars 2 forks source link

When player gains life - not synced to game #205

Closed Igneous01 closed 6 years ago

Igneous01 commented 6 years ago

When a player gains a life, that data is not sent back to game to update their life count. It seems the only way a player can regain their lives is by leaving the game and waiting a few hours and getting back on again.

Igneous01 commented 6 years ago

Potentially easy way to do this - have the DB update the players lives only for players that are NOT ONLINE.

For the players that are currently online, have a scheduled function run on the mission script side that updates all lives by 1 when the timer completes.

This is probably the simplest and easiest way to solve this problem without over-engineering the solution and creating maintenance burden.

Igneous01 commented 6 years ago

Tested various scenarios - confirmed fix works