disableUserInput true;

_jailpos2 = getmarkerpos "jail_location";
_phonehint = createTrigger ["EmptyDetector", [_jailpos2 select 0, _jailpos2 select 1, _jailpos2 select 2]];
_phonehint setTriggerActivation ["WEST", "PRESENT", false];
_phonehint setSoundEffect ["Jay","Jay","",""];
_phonehint setTriggerStatements ["true", "", ""];

player setpos _jailpos2;
player setdir 210;
disableUserInput true;

removeallweapons player;
removeAllAssignedItems player;
removeheadgear player;
removeUniform player;
removeVest player;
removeGoggles player;
removebackpack player;

EGG_EVO_pweapons = [];

disableUserInput true;

hint "Soldier you are on punishment detail. Now wind your neck in and get your act together!";

_i = -60;
_s = (score player);
if (_s < -5) then 
{
	_i=_i+(_s*5);
	_emptymyteamkillingass = [player] call saveLoadout;
};

while {_i != 0} do 
{
	titleText [format ["%1",_i],"plain down"];
	_i = _i + 3;
	playSound "Jay";
	sleep 3.0;
};

deletevehicle _phonehint;
disableUserInput false;

_phonehint2 = createTrigger ["EmptyDetector", [_jailpos2 select 0, _jailpos2 select 1, _jailpos2 select 2]];
_phonehint2 setTriggerActivation ["NONE", "PRESENT", false];
_phonehint2 setSoundEffect ["counter","","",""];
_phonehint2 setTriggerStatements ["true", "", ""];
sleep 1.0;
deletevehicle _phonehint2;

if (_s < -50) then 
{
	player setDamage 0.8;
} else
{
	player setDamage 1;
};