Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void launch(MissileType type, AuthCode code, MissilePos pos, MissileData data){
- /*
- (c) US Airforce
- */
- // Authorized?
- bool auth = auth(code,type);
- // Get the result of missile space in launcher.
- bool res = sendHoldData(data.getPosition(pos));
- //Check for greenlight
- if(res == true || auth == true){
- //Send this data to launcher tube
- sendLaunchData(auth,pos);
- //Alert the pilot
- sendMessage(HUD.right_message_box, "Launching : "+type.locale+"");
- //End
- finish(auth,data);
- //Log
- logMissile(data,type,code,pos,Data.getADD());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement