Changed the mode 1 of NPC combat control

* now requires sfall debugging mode to control all critters.
This commit is contained in:
NovaRain
2022-06-24 09:39:31 +08:00
parent 2950140e3a
commit 0e0d884a97
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -623,7 +623,7 @@ PipboyTimeAnimDelay=50
;Allows you to directly control other critters in combat ;Allows you to directly control other critters in combat
;Set to 0 to disable ;Set to 0 to disable
;Set to 1 to control all critters in combat ;Set to 1 to control all critters in combat (allowed only in sfall debugging mode)
;Set to 2 to control all party members ;Set to 2 to control all party members
ControlCombat=0 ControlCombat=0
;If you want to control only specific critters, uncomment the ControlCombatPIDList line and set a comma delimited list of PIDs ;If you want to control only specific critters, uncomment the ControlCombatPIDList line and set a comma delimited list of PIDs
+2
View File
@@ -478,6 +478,8 @@ void PartyControl::OnGameLoad() {
void PartyControl::init() { void PartyControl::init() {
Mode = IniReader::GetConfigInt("Misc", "ControlCombat", 0); Mode = IniReader::GetConfigInt("Misc", "ControlCombat", 0);
if (Mode > 2) Mode = 0; if (Mode > 2) Mode = 0;
else if (Mode == 1 && !isDebug) Mode = 2;
if (Mode > 0) { if (Mode > 0) {
dlogr("Initializing party control...", DL_INIT); dlogr("Initializing party control...", DL_INIT);
std::vector<std::string> pidList = IniReader::GetConfigList("Misc", "ControlCombatPIDList", "", 512); std::vector<std::string> pidList = IniReader::GetConfigList("Misc", "ControlCombatPIDList", "", 512);