3D spaceshooter with online scoreboard, online demos, ship building. Now entirely defunct, but might be resurrected

shark.xml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <pack>
  3. <driver name="shark" extends="basic_ship">
  4. <check for="in_zone1" id="ck1" after="can_fire">
  5. <fn str="IS_IN_RECT" />
  6. <x range="-20:20" />
  7. <z range="-5:60" />
  8. </check>
  9. <check for="in_zone2" id="ck2" after="ck1">
  10. <fn str="IS_IN_RECT" />
  11. <x range="-20:20" />
  12. <z range="-5:80" />
  13. </check>
  14. <task replace="fire" if="can_fire*in_zone1">
  15. <fn str="SHOOT" />
  16. <count range="4:8" />
  17. <bullets range="3:5" />
  18. <gap_group num="1.5" />
  19. <gap_shot num="0.02" />
  20. <gun num="0" /> <!--range="0-1" -->
  21. </task>
  22. <task replace="avoid">
  23. <fn str="AVOID" />
  24. <avoid str="NATURAL,SHOT_GOOD,SHOT_BAD,ENEMY,MINE" />
  25. <weight num="1.7" />
  26. </task>
  27. <task replace="fly">
  28. <fn str="FLY_TO_RECT" />
  29. <x range="-5-5" />
  30. <z range="18:34" />
  31. <weight num="30" />
  32. </task>
  33. <task replace="turn" if="!in_zone1">
  34. <fn str="TURN_TO" />
  35. <dir coord="MOVE_DIR" />
  36. </task>
  37. <task id="t1" after="turn" if="in_zone1">
  38. <fn str="TURN_TO" />
  39. <dir coord="PLAYER_DIR" />
  40. </task>
  41. <!-- <TASK AFTER="T1" ID="T2" IF="IN_ZONE"> -->
  42. <!-- <FN STR="SET_SPEED"/> -->
  43. <!-- <SPEED NUM="0.5"/> -->
  44. <!-- </TASK> -->
  45. <!-- <task after="t2" if="!in_zone"> -->
  46. <!-- <fn str="SET_SPEED"/> -->
  47. <!-- <speed num="1"/> -->
  48. <!-- </task> -->
  49. </driver>
  50. </pack>