Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Bat 4.2.2, gunner still shooting after dead  (Read 443 times)

0 Members and 1 Guest are viewing this topic.

gmc150104

  • member
  • Offline Offline
  • Posts: 4
Bat 4.2.2, gunner still shooting after dead
« on: August 28, 2023, 01:31:20 PM »

i looked that the gunners of the majority of planes still shooting the guns even after the animation of dead, only the new models of the b 17 is working.
Logged

Frankiek

  • SAS Team
  • member
  • Offline Offline
  • Posts: 3179
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #1 on: August 28, 2023, 01:33:27 PM »

Well i didn't check much but in the past we had planes firing even after the bail out
Logged

gmc150104

  • member
  • Offline Offline
  • Posts: 4
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #2 on: August 28, 2023, 02:19:41 PM »

Well i didn't check much but in the past we had planes firing even after the bail out

well, if its happening just to me i think it must be a conf problem, no?
Logged

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9589
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #3 on: August 28, 2023, 04:45:28 PM »

You're not the only one, I assure you...  ;)
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

gmc150104

  • member
  • Offline Offline
  • Posts: 4
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #4 on: August 28, 2023, 06:21:22 PM »

 :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :(
You're not the only one, I assure you...  ;)
Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6092
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #5 on: August 28, 2023, 07:16:52 PM »

A couple or few years ago there was a mod plane, the Helldiver, with this issue that I fixed when looking at the methods,

doMurderPilot
doWoundPilot

In the gunner's class. I forget the details at the moment.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

gmc150104

  • member
  • Offline Offline
  • Posts: 4
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #6 on: August 28, 2023, 08:28:49 PM »

A couple or few years ago there was a mod plane, the Helldiver, with this issue that I fixed when looking at the methods,

doMurderPilot
doWoundPilot

In the gunner's class. I forget the details at the moment.
hey wxtech, u effects are really cool in bat, its hard to do that?
Logged

TXZCJSP

  • member
  • Offline Offline
  • Posts: 180
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #7 on: August 28, 2023, 10:13:44 PM »

I get this all the time.
my friend says his self-defense gunner is dead, but I still see machine gun fire.
Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6092
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #8 on: August 29, 2023, 12:40:19 AM »

This snippet is from Shrike123.class, which applies to all SB2C Helldivers. The problem was caused by method doKillPilot(), which I effectively removed (by enclosing that code between /*  */ characters.)

I can't remember if method doWoundPilot() was already present, or if I added it.

This should provide some inspiration in dealing with other instances of a dead gunner still firing. Naturally, for those who can work with the java classes.  ;)

Code: [Select]
/*    public void doKillPilot(int i)  //cause of dead rear gunner still firing gun???
    {
        switch(i)
        {
        case 1: // '\001'
            FM.turret[0].bIsOperable = false;
            break;
        }
    }  */

    public void doWoundPilot(int i, float f)
    {
        switch(i)
        {
        case 1: // '\001'
            FM.turret[0].setHealth(f);
            break;
        }
    }

    public void doMurderPilot(int i)
    {
        switch(i)
        {
        case 0: // '\0'
            hierMesh().chunkVisible("Pilot1_D0", false);
            hierMesh().chunkVisible("Head1_D0", false);
            hierMesh().chunkVisible("HMask1_D0", false);
            hierMesh().chunkVisible("Pilot1_D1", true);
            break;

        case 1: // '\001'
            hierMesh().chunkVisible("Pilot2_D0", false);
            hierMesh().chunkVisible("HMask2_D0", false);
            hierMesh().chunkVisible("Pilot2_D1", true);
            break;
        }
    }
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6092
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #9 on: August 29, 2023, 12:54:46 AM »

I thought I had made this mod available over two years ago, but can't find it here. And so, just in case I haven't, here's my fixes for the earlier SB2C-1C Helldiver, including this zombie gunner fix. If B.A.T. still has this problem, this should be a fix for that plane, and perhaps the others in the family. Java files are included.

https://www.mediafire.com/file/7wtibgtdtwpoaku/SB2C-1C_fix_Mar2021.7z/file
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9589
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Bat 4.2.2, gunner still shooting after dead
« Reply #10 on: August 29, 2023, 02:21:51 AM »

doMurderPilot
doWoundPilot

In the gunner's class. I forget the details at the moment.
doKillPilot
Normally, every Class-mother or Class-daughter should have this method, with the gunners' index deactivating the turret...
Example :

   public void doKillPilot(int i) {
      switch (i) {
      case 1: // '\001'
         super.FM.turret[0].bIsOperable = false;
         break;

      case 2: // '\002'
         super.FM.turret[1].bIsOperable = false;
         break;

      case 3: // '\003'
         super.FM.turret[2].bIsOperable = false;
         break;
      }
   }

Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -
Pages: [1]   Go Up
 

Page created in 0.043 seconds with 21 queries.