Hello List

I've made some modifications to support Combat Engineer for the AI in Skirmish 
and MP.

I will send first this patch, it's the small one with the modifications for the 
source. The .slo/.vlo
patch will follow, but first i need to look over them since there was a lot of 
change in the
current svn compared to then when i've started my work.
Index: src/scriptai.c
===================================================================
--- src/scriptai.c	(revision 1365)
+++ src/scriptai.c	(working copy)
@@ -1436,11 +1436,21 @@
 			goto failTempl;
 		}
 		break;
+	case DROID_CONSTRUCT:
+		if( apCompLists[player][COMP_CONSTRUCT][psTempl->asParts[COMP_CONSTRUCT]] != AVAILABLE )
+		{
+			goto failTempl;
+		}
+		break;
+	case DROID_CYBORG_CONSTRUCT:
+		if( apCompLists[player][COMP_CONSTRUCT][psTempl->asParts[COMP_CONSTRUCT]] != AVAILABLE )
+		{
+			goto failTempl;
+		}
+		break;
 
 	case DROID_COMMAND:
-	case DROID_CONSTRUCT:	        // Constructor droid
 	case DROID_PERSON:		        // person
-    case DROID_CYBORG_CONSTRUCT:	// cyborg-construct thang
     case DROID_CYBORG_REPAIR:		// cyborg-repair thang
 	case DROID_TRANSPORTER:	        // guess what this is!
 	case DROID_DEFAULT:		        // Default droid
Index: src/scripttabs.c
===================================================================
--- src/scripttabs.c	(revision 1365)
+++ src/scripttabs.c	(working copy)
@@ -1628,6 +1628,7 @@
 	{ "DROID_SENSOR",		VAL_INT,	FALSE,	DROID_SENSOR,		NULL, NULL, 0.0f },
 	{ "DROID_ECM",			VAL_INT,	FALSE,	DROID_ECM,			NULL, NULL, 0.0f },
 	{ "DROID_CONSTRUCT",	VAL_INT,	FALSE,	DROID_CONSTRUCT,	NULL, NULL, 0.0f },
+	{ "DROID_CYBORG_CONSTRUCT",	VAL_INT,	FALSE,	DROID_CYBORG_CONSTRUCT,	NULL, NULL, 0.0f },
 	{ "DROID_PERSON",		VAL_INT,	FALSE,	DROID_PERSON,		NULL, NULL, 0.0f },
 	{ "DROID_CYBORG",		VAL_INT,	FALSE,	DROID_CYBORG,		NULL, NULL, 0.0f },
 	{ "DROID_TRANSPORTER",	VAL_INT,	FALSE,	DROID_TRANSPORTER,	NULL, NULL, 0.0f },
Index: src/target.c
===================================================================
--- src/target.c	(revision 1365)
+++ src/target.c	(working copy)
@@ -127,6 +127,7 @@
 	DROID_SENSOR,		// Sensor droid
 	DROID_ECM,			// ECM droid
 	DROID_CONSTRUCT,	// Constructor droid
+	DROID_CYBORG_CONSTRUCT,	// Cyborg Constructor droid (Combat Engineer)
 	DROID_PERSON,		// person
 	DROID_CYBORG,		// cyborg-type thang
 	DROID_TRANSPORTER,	// guess what this is!
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to