User:Reflex Reaction/junkpage

Blue units - 1000 series HMMWV teams 10XX series Ground patrols 11XX series 110X series - Squad 1 111X series - Squad 2 Blue HQ - 15XX series Attached sprites 19XX series //UNIT

//	id = 0; //	label = dummy;

//END


 * 1) UNIT

id = 1001; label =HMMWVLeader;

display style =SPRITE; //SPRITE or NEVER DISPLAY sprite = truck; sprite index0 = ; sprite text = ; sprite rotates = ; //TRUE or FALSE x0 = 0; 	y0 = 0;

force membership = BLUE{BLUE} ;  //phase name{ force membership ? trigger - phase name,... }, ..., ~first phase; classification = ;

sensors = lookforcontacts {BlueVision ? BlueHasNewContact - reportcontacts}, reportcontacts {HMMWVRadio, BlueVision ? TargetsReported - lookforcontacts};  //phase name{ sensors : contact hold time ? trigger - phase name,... }, ..., ~first phase; sensor vulnerabilities = CommandRadio, RedVision; //phase name{ sensors ? trigger - phase name,... }, ..., ~first phase;

orders = initial{CLEAR, 0, WAYPOINT, infinitespeed, 950, 400 ? //Orginal values -->1241, 430 Turn2 - waitforinstructions}, waitforinstructions {IDLE, 0 ? CoordQfilled - goalongpath, BypassRandomWaypoint - priortoattack}, //Debugging - skip random movement goalongpath{CLEAR, 0, CONTINUOUS PATH, HMMWVspeed, OPEN, AStarPathH ? ReachedEnd - wait}, wait{CLEAR, 0 ? DoneWaiting - goalongpath, HMMWVDonePatrolling - priortoattack}, priortoattack{CLEAR, 0, CONTINUOUS PATH, HMMWVspeed, OPEN, AStarPathH? ReachedSpotPriorToAttack - movetoattackposition}, movetoattackposition{CLEAR, 0, CONTINUOUS PATH, HMMWVspeed, OPEN, AStarPathT ? BlueSeesInsurgents - attackinsurgents}, attackinsurgents {IDLE, 1 ? BlueAttacksPosition - pursue}, pursue {CLEAR, 0, CONTINUOUS PATH, HMMWVpursuespeed, OPEN, AStarPathH};

reporting chain = BlueHQ; //phase name{ units ? trigger - phase name,... }, ..., ~first phase; // reporttoHQ {BlueHQ:30 SECONDS}; //phase name{ units ? trigger - phase name,... }, ..., ~first phase;

queues = EndX, EndY, HMMWVContactsQ; //queue name (queue initial values) queue events = // trigger action name (action parameters), unit ref), ...;		addnewitemtoQ (GROWH(EndX: RandX)), addnewitemtoQ (GROWH(EndY: RandY)),		Turn1 (GROWH(EndX:119, 377)), Turn1 (GROWH(EndY:594, 795)), // 2 planned waypoints, at second see insurgents		TurnBeforeDoneWating (CUTH(EndX:1)), TurnBeforeDoneWating (CUTH(EndY: 1)),		ReachedSpotPriorToAttack (CUTH(EndX:1)), ReachedSpotPriorToAttack (CUTH(EndY: 1)),		BlueSeesInsurgents (GROWH(EndX: 280)), BlueSeesInsurgents (GROWH(EndY: 650)), //		Contact Queues		BlueHasNewContact (GROWH(HMMWVContactsQ: BlueHMMWVContacts));

//		CoordQJustEmptied (GROWH(EndX:377)), CoordQJustEmptied (GROWH(EndY: 795)), //		HasEndPoints(GROWH(EndX: sEndCoordx)), HasEndPoints(GROWH(EndY: sEndCoordy));


 * END


 * 1) UNIT

id = 1002; label = HMMWVUnit2;

display style =SPRITE; //SPRITE or NEVER DISPLAY sprite = truck; x0 = 0; 	y0 = 0;

force membership = BLUE{BLUE}; sensors = lookforcontacts {BlueVision ? BlueHasNewContact - reportcontacts}, reportcontacts {HMMWVRadio, BlueVision ? TargetsReported - lookforcontacts};  //phase name{ sensors : contact hold time ? trigger - phase name,... }, ..., ~first phase; sensor vulnerabilities = CommandRadio, RedVision; //phase name{ sensors ? trigger - phase name,... }, ..., ~first phase;

orders = initial{CLEAR, 0, WAYPOINT ,infinitespeed, 950, 400 ? Turn2 - follow}, follow{CLEAR, 0, FOLLOW, HMMWVspeed, HMMWVLeader, 180, 15 ? }; // ? SpotEnemy - engageenemy


 * END

UNIT

id = 1003; label = HMMWVUnit3;

display style =SPRITE; //SPRITE or NEVER DISPLAY sprite = truck; x0 = 0; 	y0 = 0;

force membership = BLUE{BLUE}; //phase name{ force membership ? trigger - phase name,... }, ..., ~first phase; classification = ;

sensors = HMMWVRadio; //phase name{ sensors : contact hold time ? trigger - phase name,... }, ..., ~first phase; sensor vulnerabilities = CommandRadio; //phase name{ sensors ? trigger - phase name,... }, ..., ~first phase;

orders = initial{CLEAR, 0, WAYPOINT ,infinitespeed, 1241, 430 ? Turn2 - follow}, follow{CLEAR, 0, FOLLOW, HMMWVspeed, HMMWVLeader, 180, 30}; // ? SpotEnemy - engageenemy

END


 * 1) UNIT

id = 1500; label = BlueHQ; display style = SPRITE; sprite = c2node ; x0=1467; y0 = 511; z0 = 300; force membership = BLUE{BLUE}; sensors = CommandRadio; //phase name{ sensors : contact hold time ? trigger - phase name,... }, ..., ~first phase; sensor vulnerabilities = HMMWVRadio; //phase name{ sensors ? trigger - phase name,... }, ..., ~first phase; orders = giveorders{CLEAR, 0 ? CoordQfilled - receiveinfo}, receiveinfo{BLIND, 0}; queues = BlueContactsQ; // still needs to be worked out ///	queue events = BlueSeesInsurgents (GROWH(Insurgent: 280)), Turn2 (GROWH(EndY: 650));


 * END

UNIT id = 1991; label = HMMWVsprite1;

display style = SPRITE; //SPRITE or NEVER DISPLAY sprite = truck; sprite index0 = ; sprite text = ; sprite rotates = ; //TRUE or FALSE x0 = 0; 	y0 = 0;

orders = attachtounit{CLEAR, 0, ATTACH, infinitespeed, HMMWVLeader};

END

UNIT id = 1992; label = HMMWVsprite2;

display style = SPRITE; //SPRITE or NEVER DISPLAY sprite = truck; sprite index0 = ; sprite text = ; sprite rotates = ; //TRUE or FALSE x0 = 0; 	y0 = 0;

orders = attachtounit{CLEAR, 0, ATTACH, infinitespeed, HMMWVUnit1};

END