vbawol/DayZ-Epoch — pull request #1562 by ebaydayz (2014-09-05 20:11:43+00:00)
Title: Prevent player_switchModel hang ups

Is this necessary? If yes, is there some other way we can do it or ensure that the condition is always met? I have tested quickly adding gear, respawning, relogging and changing clothes several times. All of my gear, backpack items, magazines and weapons are readded correctly and I don't see any problems with it removed.

I suspect these waitUntils are responsible for player_switchModel hanging up indefinitely sometimes. Here are the relevant changes that were made March 18 / 1.0.5.1 for reference: https://github.com/vbawol/DayZ-Epoch/commit/ad2642a5f91c5a47465d488dbf52e087f297386f

Since those changes were made we have noticed some strange problems that could only be caused by the player_switchModel function not completing. For example: a lot of people have noticed players sometimes rolling back after skin change. That could be caused by character ID not being set on the new unit at the bottom of player_switchModel because of a hang up when calling gearDialog_create or player_countMagazines by these waitUntils.
http://epochmod.com/forum/index.php?/topic/14296-sometimes-character-stops-updating-after-skin-change/page-2#entry114023

Another strange problem that may be related is the black screen on login issue many people are experiencing. Since player_switchModel is called on login, if it were to hang up for any reason the player would get stuck on loading:
http://epochmod.com/forum/index.php?/topic/13405-clients-can-hear-sound-move-but-stuck-on-loading/

@icomrade - If you are around please check this out and let us know if it is really needed or not.