int Reload(aref reload_group, string locator_name, string current_location)
{
ref PChar = GetMainCharacter();
if(dialogRun || dialogSelf)//MAXIMUS -->
{
DialogExit();
}
PChar.condition = "reload";//MAXIMUS <--
if(sti(GetStorylineVar(FindCurrentStoryline(), "DISABLE_TIPS")) < 1) SetReloadNextTipsImage(); // JRH
// changed by MAXIMUS -->
dialogDisable = !ownDeckStarted(); // KK
// changed by MAXIMUS <--
reload_xaddress.active = "false";
//Check locked locator
trace("Reload: Process started for locator_name = " + locator_name + " and lockedReloadLocator = " + lockedReloadLocator); // PB
if(locator_name == lockedReloadLocator)
{
if(CheckAttribute(PChar, "ForceReload")) // PB: To fix potentially getting stuck
{
TraceAndLog("Reload: Continue despite locked locator. Please report this at piratesahoy.net!"); // PB: For testing
}
else
{
lockedReloadLocator = "";
// PlaySound("knock");//MAXIMUS
return -1;
}
}
DeleteAttribute(PChar, "ForceReload"); // PB