Advertisement
conan513

Untitled

Jul 24th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. w.GamePos = r3dPoint3D(0, 0, 0);
  2. r3dOutToLog("Hunz MapID: %i\n", w.GameMapId);
  3. if (w.GameMapId == 3)//for Cliffside
  4. sscanf(xmlItem.attribute("GamePos2").value(), "%f %f %f %f", &w.GamePos.x, &w.GamePos.y, &w.GamePos.z, &w.GameDir);
  5. else if (w.GameMapId == 4)//for ServerTest
  6. sscanf(xmlItem.attribute("GamePos3").value(), "%f %f %f %f", &w.GamePos.x, &w.GamePos.y, &w.GamePos.z, &w.GameDir);
  7. else if (w.GameMapId == 5)//HunZ Colorado2
  8. sscanf(xmlItem.attribute("GamePos4").value(), "%f %f %f %f", &w.GamePos.x, &w.GamePos.y, &w.GamePos.z, &w.GameDir);
  9. else
  10. sscanf(xmlItem.attribute("GamePos").value(), "%f %f %f %f", &w.GamePos.x, &w.GamePos.y, &w.GamePos.z, &w.GameDir);
  11. w.GameFlags = xmlItem.attribute("GameFlags").as_int();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement