Advertisement
Guest User

(c) US AIRFORCE LAUNCH DATA

a guest
Oct 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. void launch(MissileType type, AuthCode code, MissilePos pos, MissileData data){
  2.  
  3. /*
  4. (c) US Airforce
  5. */
  6. // Authorized?
  7. bool auth = auth(code,type);
  8. // Get the result of missile space in launcher.
  9. bool res = sendHoldData(data.getPosition(pos));
  10. //Check for greenlight
  11. if(res == true || auth == true){
  12. //Send this data to launcher tube
  13. sendLaunchData(auth,pos);
  14. //Alert the pilot
  15. sendMessage(HUD.right_message_box, "Launching : "+type.locale+"");
  16. //End
  17. finish(auth,data);
  18. //Log
  19. logMissile(data,type,code,pos,Data.getADD());
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement