Unsupported PHP app for analysing and displaying stats for Team Fortress 2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536
  1. <?PHP
  2. // Co-ordinates for deathmaps
  3. $coords = array(
  4. 'yaaargh' => array(
  5. 528, 143, -1814, -6,
  6. 364, 325, -71, 2016,
  7. 190, 331, 1823, 2057
  8. ),
  9. 'ctf_casbah' => array(
  10. 494, 433, 1905, -4733, // Middle corner
  11. 123, 89, -3925, 512, // Red cap cliffs -3925 x, 512 y,
  12. 421, 78, 660, 764, // Blue cap
  13. ),
  14. 'cp_king_of_the_hill_b1' => array(
  15. 188, 69, 1433, 1615, // Blue door
  16. 540, 378, -1439, -1642, // Red door
  17. 141, 446, -2040, 2047, // BL corner
  18. ),
  19. 'cp_granary' => array(
  20. 92, 226, -1472, -5178, // Red cap
  21. 690, 361, 1022, 6336, // BR corner
  22. 363, 155, -2751, -17, // Middle ramp
  23. ),
  24. );
  25. function hasDeathmap($map) {
  26. global $coords;
  27. return isset($coords[$map]);
  28. }
  29. ?>