Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5 6 ... 10   Go Down

Author Topic: Surface To Air Mod *NEW BETA RELEASE*  (Read 26667 times)

0 Members and 1 Guest are viewing this topic.

Koty

  • Mr. MiG
  • Modder
  • member
  • Offline Offline
  • Posts: 2274
  • It's a MiG!
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #24 on: January 24, 2019, 02:02:08 AM »

It seems that Strela ignores any kind of flares.
Logged
If I don't have to do it, I won't. If I have to do it, I'll make it quick.

BT~wasted

  • Modder
  • member
  • Offline Offline
  • Posts: 1468
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #25 on: January 25, 2019, 04:19:04 AM »

Well thats an easy part to understand, I am interested in aircraft side implementation. Do you have any info on that?
Logged

western0221

  • Modder
  • member
  • Offline Offline
  • Posts: 6790
  • Live in Japan
    • IL-2 itaki blog
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #26 on: January 25, 2019, 05:14:28 AM »

Well thats an easy part to understand, I am interested in aircraft side implementation. Do you have any info on that?

Code: [Select]
    // TypeRadarWarningReceiver setup values
    private RadarWarningReceiverUtils rwrUtils;
    private boolean backfire;
    public boolean bRadarWarning;
    public boolean bMissileWarning;

    private static final int RWR_GENERATION = 1;
    private static final int RWR_MAX_DETECT = 16;
    private static final int RWR_KEEP_SECONDS = 7;
    private static final double RWR_RECEIVE_ELEVATION = 45.0D;
    private static final boolean RWR_DETECT_IRMIS = false;
    private static final boolean RWR_DETECT_ELEVATION = false;
    private boolean bRWR_Show_Text_Warning = true;


    public aircraft()
    {
        if(Config.cur.ini.get("Mods", "RWRTextStop", 0) > 0) bRWR_Show_Text_Warning = false;
        rwrUtils = new RadarWarningReceiverUtils(this, RWR_GENERATION, RWR_MAX_DETECT, RWR_KEEP_SECONDS, RWR_RECEIVE_ELEVATION, RWR_DETECT_IRMIS, RWR_DETECT_ELEVATION, bRWR_Show_Text_Warning);
    }


    public RadarWarningReceiverUtils getRadarWarningReceiverUtils()
    {
        return rwrUtils;
    }

    public void myRadarSearchYou(Actor actor, String soundpreset)
    {
        rwrUtils.recordRadarSearched(actor, soundpreset);
    }

    public void myRadarLockYou(Actor actor, String soundpreset)
    {
        rwrUtils.recordRadarLocked(actor, soundpreset);
    }

    public void onAircraftLoaded()
    {
        super.onAircraftLoaded();

        rwrUtils.onAircraftLoaded();
        rwrUtils.setLockTone("aircraft.usRWRScan", "aircraft.usRWRLock", "aircraft.usRWRLaunchWarningMissileMissile", "aircraft.usRWRThreatNew");
    }

    public void startCockpitSounds()
    {
        rwrUtils.setSoundEnable(true);
    }

    public void stopCockpitSounds()
    {
        rwrUtils.stopAllRWRSounds();
    }

    public void update(float f)
    {
        rwrUtils.update();
        backfire = rwrUtils.getBackfire();
        bRadarWarning = rwrUtils.getRadarLockedWarning();
        bMissileWarning = rwrUtils.getMissileWarning();

        super.update(f);
    }


RWR_GENERATION :  0=play modulate sound of radar wave, 1=play specific warning tone or Betty voice
RWR_MAX_DETECT : maximum detecting number of missiles / radars
RWR_KEEP_SECONDS : A radar warning information is expired when this second passes from last detect
RWR_RECEIVE_ELEVATION : RWR cannot detect radar over this degree numbers; too upper or too lower
RWR_DETECT_IRMIS : true=can detect IR Homing missiles, false=cannot; true is only 2010y~ current Israel one + a few. 20th century ones=false.
RWR_DETECT_ELEVATION : RWR HUD text show elevation information Above / Level / Below .... true=can, false=cannot; USA and early USSR are false, current USSR is true.
bRWR_Show_Text_Warning : true is default for HUD text messages. To stop it for reality, write conf.ini [Mods] section line to make it false.

rwrUtils.setLockTone() : setup RWR_GENERATION=1 time warning tone or voice sound presets. (Scan radar, Lock radar, Missile coming, Threat New)

Default HUD text warning direction sector number is 12 (in "which o'clock" text 1 ~ 12).
For older system with fewer sector numbers like early MiG-21, 8 or 4 can be set with this setup.
Or early RWRs can only detect Radar Search or Lock / but not Missile; like also early MiG-21.
Code: [Select]
rwrUtils = new RadarWarningReceiverUtils(this, RWR_GENERATION, RWR_MAX_DETECT, RWR_KEEP_SECONDS, RWR_RECEIVE_ELEVATION, RWR_DETECT_RHMIS, RWR_DETECT_IRMIS, RWR_DETECT_ELEVATION, RWR_SECTOR_NUM, bRWR_Show_Text_Warning);RWR_DETECT_RHMIS : true or false
RWR_SECTOR_NUM : 4 or 8 or default 12 (other numbers are rounded into one of these)


For visual cockpit instruments, those 4x getter methods provide each recorded "Actor" arraylist.
Code: [Select]
ArrayList getIRmissileList();
ArrayList getRHmissileList();
ArrayList getRadarList();
ArrayList getRadarLockList();

cockpit class can calculate each actors' direction / distance after get a actor from the arraylist.
Contents of arraylists are sorted by distance from near.
Logged

BT~wasted

  • Modder
  • member
  • Offline Offline
  • Posts: 1468
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #27 on: January 25, 2019, 09:32:01 AM »

WOW! That looks just amazing! I am impressed by the amount of work that you have put here!

Is there any aircraft that uses this new features to try?
Logged

western0221

  • Modder
  • member
  • Offline Offline
  • Posts: 6790
  • Live in Japan
    • IL-2 itaki blog
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #28 on: January 25, 2019, 09:42:41 AM »

WOW! That looks just amazing! I am impressed by the amount of work that you have put here!

Is there any aircraft that uses this new features to try?

Only sound + HUD text:
F-14 , F/A-18 AV-8B+ v4.0.- , A-4 v0.9.4 , A-6 , Su-25 pre v4.0

(I don't grasp Vega uses new RWR utils on his release mods .... some more existing ? )

Visual cockpit display reading arraylist data is never implemented.
If I can try, it will be on F/A-18. Hier nodes limit is a difficulty, then.
Logged

Vampire_pilot

  • member
  • Online Online
  • Posts: 8536
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #29 on: February 01, 2019, 08:18:15 AM »

Does anyone has this working in BAT 3.5?

I have problems, please drop me a note.
There are conflicting classes with the Engine Mod for example. What to do with this?

western0221

  • Modder
  • member
  • Offline Offline
  • Posts: 6790
  • Live in Japan
    • IL-2 itaki blog
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #30 on: February 06, 2019, 04:01:16 AM »

Visual cockpit display reading arraylist data is never implemented.
If I can try, it will be on F/A-18. Hier nodes limit is a difficulty, then.

progress ----- https://www.sas1946.com/main/index.php/topic,59208.msg666717.html#msg666717
Logged

BT~wasted

  • Modder
  • member
  • Offline Offline
  • Posts: 1468
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #31 on: February 08, 2019, 03:23:41 AM »

How do you detect the type of the threat? I mean that lots of radars has similar characteristics, so that you can only define with what type of the radar it is illuminated.

create a default list with something like this:

int radarType

1 - ZU-23 like
2 - Strela-1
3 - S-75
4 - MiG-21
5 - F-16

and etc

and then define a specific sound for each type for soviet and nato rwr systems along with icons.

Logged

western0221

  • Modder
  • member
  • Offline Offline
  • Posts: 6790
  • Live in Japan
    • IL-2 itaki blog
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #32 on: February 08, 2019, 04:02:31 AM »

How do you detect the type of the threat? I mean that lots of radars has similar characteristics, so that you can only define with what type of the radar it is illuminated.

Current CockpitF_18C.class has hard-coded lines comparing text strings between internal database and threat's class name.

It cannot detect Newly coming mod class not born at the time of CockpitF_18C.class is written.


create a default list with something like this:

int radarType

2 - Strela-1

Strela-1 doesn't have any radar illuminater / emitter.
9M31 missile uses IR Homing and no radars, its TEL 9K31 does also.
Some 9K31 has enemies' Radar wave receiver units, but it doesn't give emission.

So, NATO jets having only classical RWR cannot detect pure IR missiles like Strela-1 or Strela-2.
Logged

BT~wasted

  • Modder
  • member
  • Offline Offline
  • Posts: 1468
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #33 on: February 08, 2019, 04:11:43 AM »

Strela-1 was my mistake, sorry. It was just as an example.

Quote
Current CockpitF_18C.class has hard-coded lines comparing text strings between internal database and threat's class name.

It cannot detect Newly coming mod class not born at the time of CockpitF_18C.class is written.

That is the problem that I was thinking of and that is why I purpose to develop a list of default radar types so that we can use them across new and old mods, so that there will be no compatibility issues.

Maybe it is needed to change this method:
((TypeRadarWarningReceiver) theAircraft).myRadarSearchYou(Actor actor of the radar owner, int radarType type of the predefined radar type that decides the sound and icon)

How do you think?
Logged

Koty

  • Mr. MiG
  • Modder
  • member
  • Offline Offline
  • Posts: 2274
  • It's a MiG!
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #34 on: February 12, 2020, 04:16:27 PM »




New launcher 3D model, it is now animated. Two launchers available, SM-90 with V-755 and SM-90 with V-755U. Some more work is needed, V-755U will need a duplicite class (which will be loaded instead for low-flying targets - pure beam-riding mode), the missile can engage targets down to 200m! (And I also need to stop the launchers from tracking once the radar is destroyed :)) )
Logged
If I don't have to do it, I won't. If I have to do it, I'll make it quick.

MADMICK71

  • member
  • Offline Offline
  • Posts: 425
  • FACTIS NON VERBIS
Re: Surface To Air Mod *NEW BETA RELEASE*
« Reply #35 on: February 12, 2020, 05:16:51 PM »


Great update thank you.
Logged
FACTIS NON VERBIS
Pages: 1 2 [3] 4 5 6 ... 10   Go Up
 

Page created in 0.042 seconds with 24 queries.