{"action":"opened","issue":{"url":"https://api.github.com/repos/DayZMod/DayZ/issues/319","labels_url":"https://api.github.com/repos/DayZMod/DayZ/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/DayZMod/DayZ/issues/319/comments","events_url":"https://api.github.com/repos/DayZMod/DayZ/issues/319/events","html_url":"https://github.com/DayZMod/DayZ/issues/319","id":54245314,"number":319,"title":"Code: (Fix) Login only as Survivor2_DZ On Death","user":{"login":"HeroSmurf","id":10448136,"avatar_url":"https://avatars.githubusercontent.com/u/10448136?v=3","gravatar_id":"","url":"https://api.github.com/users/HeroSmurf","html_url":"https://github.com/HeroSmurf","followers_url":"https://api.github.com/users/HeroSmurf/followers","following_url":"https://api.github.com/users/HeroSmurf/following{/other_user}","gists_url":"https://api.github.com/users/HeroSmurf/gists{/gist_id}","starred_url":"https://api.github.com/users/HeroSmurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeroSmurf/subscriptions","organizations_url":"https://api.github.com/users/HeroSmurf/orgs","repos_url":"https://api.github.com/users/HeroSmurf/repos","events_url":"https://api.github.com/users/HeroSmurf/events{/privacy}","received_events_url":"https://api.github.com/users/HeroSmurf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-13T20:41:56Z","updated_at":"2015-01-13T20:41:56Z","closed_at":null,"body":"Fix for https://github.com/DayZMod/DayZ/issues/293\r\n\"Hero/Bandit skin is gone after a hero/bandit dies and respawns. He is stuck with survivor skin unless we fix it in the database.\"\r\n\r\nBug/Behavior: \r\nplayer_monitor.fsm assigns Survivor2_DZ (male) and SurvivorW2_DZ (female) on login. \r\nThe skin is not reset unless invalid. Below code resets according to humanity values. \r\n\r\nSuggested change to server_playerLogin.sqf\r\nCode snippet : http://pastebin.com/nWKuRWJr\r\n\r\nI have checked the order in which skins are set. \r\nThis code will return the other 2 Male Skins by randomizing the reset of Survivor2_DZ on reset\r\nIf the Survivor's humanity is bandit or hero level the appropriate skin will be set. \r\nFemale Survivors are also accounted for. \r\n\r\nNote: Please check that I am pulling Humanity properly using _playerObj (first active line of code)"}}