Board index FlightGear Development New features

How to change rocket and weapons direction

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

How to change rocket and weapons direction

Postby selmane » Mon Jun 05, 2017 12:14 pm

Hello ,
I'm using the MI MI 24 aircraft to fly and i can shoot with this one :)
But I want to change the directions of the missiles !!
Who have an idea ??!

Image
selmane
 
Posts: 7
Joined: Mon Jun 05, 2017 12:03 pm
Version: 2017.1.2
OS: Windows 10

Re: How to change rocket and weapons direction

Postby legoboyvdlp » Mon Jun 05, 2017 2:50 pm

Turn the aircraft round, using the INSERT and ENTER keys (or Tab Key until you get a + symbol and then right mouse -- hold it and move the mouse for rudder, and release the right button for ailerons / elevator) :)
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: How to change rocket and weapons direction

Postby PINTO » Mon Jun 05, 2017 4:09 pm

As in you want guided missiles?

Hoo boy.

The basic tl;dr is you need a nasal script that calculates the missile's new heading/lat/lon/speed and moves the model.

The best (in my opinion) way to do this is with guided-missiles.nas as it's currently implemented in the Viggen (link to file). You'll also need a way to locate the target, either by radar (here's a really good radar logic file, it's complex though) or if infrared is more your speed, you can see my (admittedly simple) method of obtaining a lock in this file (mostly the same as the last file, but as I use it in the MiG-21).

This is definitely just a high level overview - actually implementing these scripts can be a tad bit of work.

Your best bet is to just do what Lego recommended :)
Actively developing the MiG-21bis (github repo) (forum thread) (dev discord) (fg wiki)

http://opredflag.com is an active flightgear dogfighting community (using a system that isn’t bombable)
User avatar
PINTO
 
Posts: 966
Joined: Wed Oct 21, 2015 7:28 pm
Callsign: pinto
Version: stable
OS: Win10

Re: How to change rocket and weapons direction

Postby selmane » Tue Jun 06, 2017 2:33 pm

Thx i will try :)
selmane
 
Posts: 7
Joined: Mon Jun 05, 2017 12:03 pm
Version: 2017.1.2
OS: Windows 10


Return to New features

Who is online

Users browsing this forum: No registered users and 10 guests

cron