void isdf08Mission::AddObject(Handle h) { char ODFName[64]; GetObjInfo(h, Get_CFG, ODFName); /* if ((scav1 == NULL) && (IsOdf2(h,"ivscav"))) { scav1 = h; } else if ((scav2 == NULL) && (IsOdf2(h,"ivscav"))) { scav2 = h; } else if ((turret1 == NULL) && (IsOdf2(h,"ivturr"))) { turret1 = h; } else if ((turret2 == NULL) && (IsOdf2(h,"ivturr"))) { turret2 = h; } else if ((wingman1 == NULL) && (IsOdf2(h,"ivscout"))) { wingman1 = h; } else if ((wingman2 == NULL) && (IsOdf2(h,"ivscout"))) { wingman2 = h; } */ }
CMetadataTree *GetMetaTree(CDocument *pDoc) { CObjInfo *p=GetObjInfo(pDoc); if(p) return p->GetTree(); else return 0; }
CMetaObject *GetMeta(CDocument *pDoc) { CObjInfo *p=GetObjInfo(pDoc); if(p) return p->GetObj(); else return 0; }
void isdf06Mission::DeleteObject(Handle h) { char ODFName[64]; GetObjInfo(h, Get_CFG, ODFName); if (IsOdf2(h,"ivscav")) { scav_count--; } }
void scion02::AddObject(Handle h) { char ODFName[64]; GetObjInfo(h, Get_CFG, ODFName); if (IsOdf2(h,"fbrecy")) { recycler=h; } if (IsOdf2(h,"fbjas2")) { jammer_exists=true; jammer=h; } if ((IsOdf2(h,"fvars2")) && (artillery==NULL)) { artillery=h; } if ((IsOdf2(h,"fvartl")) && (artillery==NULL)) { artillery=h; } if ((IsOdf2(h,"fvars2")) && (artillery2==NULL)) { artillery2=h; } if ((IsOdf2(h,"fvartl")) && (artillery2==NULL)) { artillery2=h; } /* if ((ant_mound == NULL) && (IsOdf2(h,"fbantm"))) { ant_mound = h; } if ((tap == NULL) && (IsOdf2(h,"fbatap"))) { tap = h; } */ }
void isdf07Mission::AddObject(Handle h) { char ODFName[64]; GetObjInfo(h, Get_CFG, ODFName); if (IsOdf2(h,"ibrecy")) { Handle temp=BuildObject("fvscout", comp_team, spawn1); Attack(temp, h, 1); recy=h; recyDeployed=true; } if ((!scavBuilt) && (IsOdf2(h,"ivscav"))) { // Handle temp=BuildObject("fvsent", comp_team, spawn1); // Attack(temp, h, 1); scavBuilt = true; } else if ((!powerBuilt) && (IsOdf2(h,"ibpgen"))) { powerBuilt = true; } else if ((!wallsBuilt) && (IsOdf2(h,"ibwall"))) { wallsBuilt = true; } else if ((!constBuilt) && (IsOdf2(h,"ivcons"))) { SendEnemies(2, h); constBuilt = true; } else if ((!relayBuilt) && (IsOdf2(h,"ibcbun"))) { SendEnemies(3,h); relayBuilt=true; } else if ((!gunTowBuilt) && (IsOdf2(h,"ibgtow"))) { SendEnemies(4, h); gtow=h; gunTowBuilt = true; } else if ((!shabOutOfVehicle) && (IsOdf2(h,"ispilo"))) { if (justHoped) { shabOnFoot = h; shabOutOfVehicle = true; } } else if ((shabOutOfVehicle) && (IsOdf2(h,"isuser"))) { playerOnFoot = true; oldPlayer=player; } if (IsOdf2(h,"ivtank")) { //react to player building a tank SendEnemies(0, h); } else if (IsOdf2(h,"ivrckt")) { //react to the player building a rocket tank SendEnemies(1, h); } else if (IsOdf2(h,"ivturr")) { //react to the player building a turret SendEnemies(3, h); } }
void ActivateObj(CDocument *pDoc) { CObjInfo *p=GetObjInfo(pDoc); if(p) p->Activate(); }
void isdf06Mission::AddObject(Handle h) { char ODFName[64]; GetObjInfo(h, Get_CFG, ODFName); if (start_done) { if ((cbunker==NULL) && (IsOdf2(h,"ibcbun"))) { if (GetDistance(h,"pool")<200.0f) { cbunker=h; ConstructionMessage(); } else { // consturction warning ClearObjectives(); AddObjective("isdf0610.otf",RED,10.0f); } } else { if ((guntow1==NULL) && (IsOdf2(h,"ibgtow"))) { if (GetDistance(h,"pool")<400.0f) { guntow1=h; ConstructionMessage(); } else { // construction warning ClearObjectives(); AddObjective("isdf0610.otf",RED,10.0f); } } else { if ((guntow2==NULL) && (IsOdf2(h,"ibgtow"))) { if (GetDistance(h,"pool")<400.0f) { guntow2=h; ConstructionMessage(); } else { // construction warning ClearObjectives(); AddObjective("isdf0610.otf",RED,10.0f); } } } } if (IsOdf2(h,"fbscav")) // assuming fvscav-> ibscav { escav=h; } if (IsOdf2(h,"ivbomb")) { SetPerceivedTeam(h,2); // so they won't shoot it } } if (IsOdf2(h,"ibscav")) { scav_count++; } // Tweak NM 12/20/03 if the spawned-in scav dies, use any built scav // as a replacement if((mission_state == 4) && (scav == NULL) && (IsOdf2(h,"ivscav"))) { scav = h; Goto(scav,"pool"); } /* if ((scav1 == NULL) && (IsOdf2(h,"ivscav"))) { scav1 = h; } else if ((scav2 == NULL) && (IsOdf2(h,"ivscav"))) { scav2 = h; } else if ((turret1 == NULL) && (IsOdf2(h,"ivturr"))) { turret1 = h; } else if ((turret2 == NULL) && (IsOdf2(h,"ivturr"))) { turret2 = h; } else if ((wingman1 == NULL) && (IsOdf2(h,"ivscout"))) { wingman1 = h; } else if ((wingman2 == NULL) && (IsOdf2(h,"ivscout"))) { wingman2 = h; } */ }
void isdf05Mission::AddObject(Handle h) { char ODFName[64]; GetObjInfo(h, Get_CFG, ODFName); if (IsOdf2(h,"ibrec5")) { recy=h; } if (IsOdf2(h,"ibpgen")) { if (!pgen1) { pgen1=h; // Follow(shabayev,pgen1); Stop(shabayev,1); SetIndependence(shabayev,1); } else { Stop(shabayev,1); pgen2=h; } } if (IsOdf2(h,"ibcbun")) { cbunker=h; Stop(shabayev,1); } if (start_done) { if ((scav1 == NULL) && (IsOdf2(h,"ivscav"))) { scav1 = h; } else if ((scav2 == NULL) && (IsOdf2(h,"ivscav"))) { scav2 = h; } else if ((scav3==NULL) && (IsOdf2(h,"ivscav"))) { scav3=h; } else if ((scav4==NULL) && (IsOdf2(h,"ivscav"))) { scav4=h; } else if (IsOdf2(h,"ibscav")) { if (!scav1_deployed) { scav1_deployed=true; } else { scav2_deployed=true; } } } if (IsOdf2(h,"satchel")) { Goto(manson,"manson_path1",1); AudioMessage("isdf0542.wav"); } }