Home » MODDING HQ 1.13 » v1.13 General Development Talk » Slay
Slay[message #348220] Fri, 13 January 2017 15:20 Go to next message
Vincent J. Claymore

 
Messages:269
Registered:February 2011
Slay is a lot of trouble:
- first you have to have luck that he even exists (unless you set all terrorists to be available in the INI)
- then you have to find him randomly
- they you have to give him the Diskette / beat him into submission
- then you have to make sure he doesn't get to meet Flo
- then you lose him anyway after one week (again, unless you make him stay permanently in the INI)
- then he costs $3300/day, which is quite a bit
- AND THEN he has a seemingly high chance to randomly disappear at the top of every hour...

I know, he is basically a slave and has all the motivation to abandon you once he is unsupervised, but please make this optional. Slay is already really hard to get and keep, having him randomly disappear (without so much as a comment from you other mercs or a popup window or anything) just makes it super tedious, because you basically have to save and reload every hour to keep him from disappearing.


tl;dr: Could you please make the "Slay randomly disappears when left alone"-mechanic optional in the INI?
Re: Slay[message #349440 is a reply to message #348220] Sat, 08 April 2017 18:54 Go to previous message
sevenfm

 
Messages:1172
Registered:December 2012
Location: Russia
Quote:
AND THEN he has a seemingly high chance to randomly disappear at the top of every hour...

15% chance every hour to leave.

void HourlyCheckIfSlayAloneSoHeCanLeave()
{
	SOLDIERTYPE *pSoldier;
	pSoldier = FindSoldierByProfileID( SLAY, TRUE );
	if( !pSoldier )
	{
		return;
	}
	if( pSoldier->flags.fBetweenSectors )
	{
		return;
	}
	if( !pSoldier->bActive || !pSoldier->stats.bLife )
	{
		return;
	}
	if( PlayerMercsInSector( (UINT8)pSoldier->sSectorX, (UINT8)pSoldier->sSectorY, pSoldier->bSectorZ ) == 1 )
	{
		if( Chance( 15 ) )
		{
			pSoldier->ubLeaveHistoryCode = HISTORY_SLAY_MYSTERIOUSLY_LEFT;
			TacticalCharacterDialogueWithSpecialEvent( pSoldier, 0, DIALOGUE_SPECIAL_EVENT_CONTRACT_ENDING_NO_ASK_EQUIP, 0, 0 );
		}
	}
}



Stable 7609+fix (14.09.2016)
Stable 7609+AI (r410 31.03.2017)
Improved weapon sounds
Youtube channel


Previous Topic: Weapon status
Next Topic: Quick Guide for Compiling and Debugging Source Code in Visual Studio
Goto Forum:
  


Current Time: Tue Apr 25 00:00:33 EEST 2017

Total time taken to generate the page: 0.00531 seconds