Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New Feature: Radio Operator  () 1 Vote
Re: New Feature: Radio Operator[message #336485] Tue, 07 October 2014 08:37 Go to previous messageGo to previous message
Ocular

 
Messages:24
Registered:September 2014
Nav|Naf
Is it somehow intended (like there is no actual mortar in that sector and I have set militia to pick up sectors equipment) or a bug? It worked in 7516 and there is no note in changelog.txt.


This might be an intentional change, but ordering Militia bombardment can be re-enabled with the following patch:

diff --git a/Build/Tactical/Soldier Control.cpp b/Build/Tactical/Soldier Control.cpp
index ff76300..eed0b2a 100644
--- a/Build/Tactical/Soldier Control.cpp	
+++ b/Build/Tactical/Soldier Control.cpp	
@@ -17811,7 +17811,8 @@ BOOLEAN SOLDIERTYPE::CanAnyArtilleryStrikeBeOrdered( UINT32* pSectorID )		// can
 		if ( loopX < 1 || loopX >= MAP_WORLD_X - 1 || loopY < 1 || loopY >= MAP_WORLD_Y - 1 )
 			continue;
 
-		if ( IsValidArtilleryOrderSector( loopX, loopY, this->bSectorZ, this->bTeam ) )
+		if ( IsValidArtilleryOrderSector( loopX, loopY, this->bSectorZ, this->bTeam ) ||
+		     ( this->bTeam == OUR_TEAM && IsValidArtilleryOrderSector( loopX, loopY, this->bSectorZ, MILITIA_TEAM ) ) )
 		{
 			*pSectorID = (UINT32)SECTOR( loopX, loopY );
 			return TRUE;

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Feature: militia volunteer pool
Next Topic: New feature: combat jeeps
Goto Forum:
  


Current Time: Mon Sep 21 15:24:34 EEST 2020

Total time taken to generate the page: 0.01662 seconds