Special Aircraft Service

Please login or register.

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

Author Topic: Disappearing cannons on Hurricane IIc  (Read 1065 times)

0 Members and 1 Guest are viewing this topic.

rkalhorn109

  • member
  • Offline Offline
  • Posts: 715
Disappearing cannons on Hurricane IIc
« on: January 10, 2016, 08:41:22 PM »

In my DBW install the Hurricane IIc looks complete in the QMB screen, but the cannon barrels disappear when the mission starts.  Is there a thread somewhere that discusses this problem and the fix for it?
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23561
  • Taking a timeout
    • STFU
Re: Disappearing cannons on Hurricane IIc
« Reply #1 on: January 10, 2016, 11:53:16 PM »

DBW, in contrast to Stock IL-2, has Hurricane IIc models where the guns aren't part of the wing mesh, but separate meshes instead.
They're shown by default, but depending on the selected loadout they get hidden when the plane spawns.
This takes place here:
Code: [Select]
  public void onAircraftLoaded()
  {
    super.onAircraftLoaded();
    if ((getGunByHookName("_CANNON01") instanceof GunEmpty))
    {
      hierMesh().chunkVisible("CannonL_D0", false);
      hierMesh().chunkVisible("CannonR_D0", false);
    }
//(...)
There's three loadout options available that would hide the cannons:
2x250_NoCannon, 2x500_NoCannon and empty.

Best regards - Mike
Logged
Don't split your mentality without thinking twice.

rkalhorn109

  • member
  • Offline Offline
  • Posts: 715
Re: Disappearing cannons on Hurricane IIc
« Reply #2 on: January 11, 2016, 06:08:37 PM »

Thanks, Mike! Problem solved.  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.069 seconds with 25 queries.