示例#1
0
void isdf20Mission::Setup(void)
{
	SetAutoGroupUnits(false);
/*
	Here's where you set the values at the start.  
*/

//  bools
	start_done = false;
	first_thing= true;
	ambush1_spawned= false;
	go_home= false;
	seen_scout1= false;
	seen_scout2= false;
  //  floats
  uhoh = 99999.0f;
  ambush_delay=999999.0f;

	next_scrap=GetTime()+30.0f;
//  handles
	player = GetPlayerHandle();
	mbike_1 = NULL;
	mbike_2 = NULL;
	mbike_3 = NULL;
	tank_1 = NULL;
	tank_2 = NULL;
	etank_1 = NULL;
	etank_2 = NULL;
//  etank_3 = NULL;
	earch_1 = NULL;
	earch_2 = NULL;
//  earch_3 = NULL;
	eatank_1 = NULL;
	eatank_2 = NULL;
	eatank_3 = NULL;
	scav_1 = NULL;
	scav_2 = NULL;
	espir_2 = NULL;
	esent_1 = NULL;
	esent_2 = NULL;
	espir_1 = NULL;
	after_briefing = NULL;
	rckt_1 = NULL;
	rckt_2 = NULL;
	base_1 = NULL;
	base_2 = NULL;
	base_3 = NULL;
	espir_3 = NULL;
	esent_3 = NULL;
	esent_4 = NULL;
	annoy_scout1=NULL;
	annoy_scout2=NULL;
//  integers
	annoy_timer=0;
	comp_team=6;
	SetTeamColor(comp_team,114,197,255);
	mission_state=0;

}
示例#2
0
bool isdf20Mission::PostLoad(bool missionSave)
{
	bool ret = SPMission::PostLoad(missionSave);

	if (missionSave)
		return ret;
	SetTeamColor(comp_team,114,197,255);

//	SetTeamColor(2,0,127,255);  //BRADDOCK
//	SetTeamColor(3,0,127,255);  //BRADDOCK


	return ret;
}
示例#3
0
bool ApResourceUnit::PlayerCommand_Pick(void)
{
	return (SetBackgroundType(eBT_Combo) && SetRowColumnType(eRCT_Light) && SetTeamColor(eTC_None) && SetSetType(eST_None));
}
示例#4
0
bool ApResourceUnit::FieldCommand_Own(eTeamColor teamColor)
{
	return (SetBackgroundType(eBT_Owned) && SetRowColumnType(eRCT_Light) && SetTeamColor(teamColor) && SetSetType(eST_2Set));
}
示例#5
0
bool ApResourceUnit::FieldCommand_Neutral(void)
{
	return (SetBackgroundType(eBT_Neutral) && SetRowColumnType(eRCT_Dark) && SetTeamColor(eTC_None) && SetSetType(eST_None));
}
示例#6
0
void isdf05Mission::Setup(void)
{
	SetAutoGroupUnits(false);
	/*
	Here's where you set the values at the start.  
	*/
	Ally(3,1);
	Ally(1,3);

	//  bools
	start_done = false;
	out_of_range = false;
	out_of_ship = false;
	in_combat = false;
	fire_message = false;

	patrol_phase=false;  // while you patrol
	scout_phase=false;  // while you scout
	attack_phase=false;
	get_mbike=false;		// you get mbikes to destroy turret
	turrets_destroyed=false;  // turrets destroyed
	been_north=false;
	been_south=false;
	been_east=false;
	been_west=false;
	found_field1=false;
	found_field2=false;
	scav1_deployed=false;
	scav2_deployed=false;
	killed_turrets=false;
	manson_message=false;
	gun_tower_message=false;  // got gun tower message
	hop_out_message=false;
	warning_message=false;
	teleport_blown=false;
	wait_up=true;
	power2=false;
	drop_off=false;
	com1=false;
	factory=false;
	out_of_ship_ever=false;  // if you ever get out of your ship
	shab_dead=false;
	wasDead1=false;
	wasDead2=false;
	//  floats
	fire_reset = 1.0f;
	range_check = 999999.9f;

	//  handles
	player = GetPlayerHandle();
	//	player_ship = GetHandle("player_ship");
	//	recycler = GetHandle("unnamed_ivrec5");
	//	wingman1 = GetHandle("wingman1");
	off_power = GetHandle("off_power");
	off_service = GetHandle("off_service");
	teleportal = GetHandle("unnamed_ibtele");
	//	empty_scav1 = GetHandle("empty_scav1");
	//	empty_scav2 = GetHandle("empty_scav2");
	//	empty_scav3 = GetHandle("empty_scav3");
	//	empty_construct1 = GetHandle("empty_construct1");
	//	empty_construct2 = GetHandle("empty_construct2");
	//	empty_construct3 = GetHandle("empty_construct3");
	//	recycler2 = GetHandle("recycler2");

	pool1=GetHandle("pool1");
	pool2=GetHandle("pool2");

	sturret1 = GetHandle("sturret1");
	sturret2 = GetHandle("sturret2");
	sturret3 = GetHandle("sturret3");
	sturret4 = GetHandle("sturret4");
	sturret5 = GetHandle("sturret5");
	sturret6 = GetHandle("sturret6");


	lurker1=NULL;
	lurker2=NULL;
	lurker3=NULL;
	lurker4=NULL;

	scav1 = NULL;
	scav2 = NULL;
	manson = NULL;
	nav1=NULL;
	nav2=NULL;
	atk1=NULL;
	pgen1=NULL;
	pgen2=NULL;
	cbunker=NULL;
	//  integers
	mission_state=0;
	raid_count=0;
	wait_count=0;
	ReallyKillCineractive = 0;

	SetTeamColor(3,0,127,255);  //Blue
}