How can i remove ( and add ) sits?, hide/remove turret's vehicles, and remove pre placed lights?

hi there. as i’m currently working my way through to complete my pve, i kinda have a few questions in order to make it perfect.

so, here are my questions:

  1. is it possible to lock for example, sits or add new ones?

here is what i want to make, a working ( ish ) halftruck:

problem is, i kinda want to lock the gunner position, and add passenger sits in the back. since the vanilla halftracks, can only ( theorically ) carry 3 troopers included the driver.

so… is… it possible to do? perhaps by sticking a truck sits somehow? ( is that… even possible to melt the two together? )

and ( which it’s also related, but i kinda need it for other things as well ):

  1. is it possible to hide or remove turrets from vehicles?
    in these scenarios:

in the first one, i want to remove the AA turret because i already have a auto_machinegun_mg42 reskinned with a browning. but it looks odd, and i’d like to semi make it look ok.

second scenario, i want to remove the rockets, and instead, add a AA/AT gun to make some sort of variations of the sdkfz 6.

so… is it possible to remove or to the very least, hide the turrets?

and last but not least;

  1. remove pre placed lights ?
    so, i have this annoying situation, where generated lights appears out of no where because i removed a building that was there, but the lights remain:

tried with the scenery remover, but the tool doesn’t detect those lights.

cheers.

7 Likes

I think it’s possible.
And I think you can set special possition where you soldier will stay/sit.
Not sure that you can create another seat area, but you can reuse old one and move soldier to another area.
Maybe. But here I success put 3 soldiers to one “vehicle”, but also a bit wrongly edited their transform:

Maybe not possible. Because it’s part of model.
And it will be possible when we can edit models or add user models.
But not 100% sure.

Hmmm… I too don’t have any ideas :frowning:
And you can’t remove them by any ways, right?

3 Likes

now that is a thicc and wide boi.

lol.

anyway, sure, how can i move the sits then?

for example, move the M13 gunner position.

i mean, i saw @tommyZZM hiding the sweedish LVT AA and make it as an emplacement. he created a few AA base on vehicles by hiding parts.

i… just don’t know how to hide parts.

no. because if i remove them, they will just pop up again.

that’s… why i was asking here on the forum :joy:

as, i always try to do everything on my own. and ask as a last resort for solution.

2 Likes

You can add more seats by this way:
Add more vehicle_seats__slots and edit attachTM.


Code for flak:

  "vehicle_seats__seats:shared:array"{

    "seats:object"{
      name:t="main_gunner"
      locName:t="vehicle_seats/gunner"
      attachNode:t="char_driver_pivot"
      attachTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [0.0, 0.0, 0.0]]
      seatComponent:t="isDriver"
      ignoreAttachNodeRotation:b=yes
      cameraType:t="gunner"
      cameraNodeName:t="sight"
      cameraOffset:p3=0.0, 0.5, 0.0
      directTurretControl:b=yes
      cockpitTemplate:t="germ_20mm_flak38_flakvierling_gunner_cockpit"
      hideHeroAnimcharLocal:b=yes
      canLoadInHatch:b=yes
      maxPosWithOpenHatch:r=0.0
      hatchRotationAxis:p3=0.0, 0.0, 0.0
      isHatchControlInversed:b=yes
      isHoldGunModeAllowed:b=no

      "hatchNodes:array"{
        node:t="scope"
      }

      "hatchTurretNames:array"{
        turret:t="turret_01"
        turret:t="turret_02"
        turret:t="turret_03"
        turret:t="turret_04"
      }

      "turretNames:array"{
        turret:t="turret_01"
        turret:t="turret_02"
        turret:t="turret_03"
        turret:t="turret_04"
      }
    }
  }

Maybe it’s a bit old.
Just add it after this

{
  _template:t="cannon_germ_20mm_flak38_flakvierling"
  transform:m=[.........]

To add new seat you must add code that starts with "seats:object"{.
Do it accurate, don’t forgot about { & }. Mistake here can cause crashes.

Edit:
M13 seats code:



  "vehicle_seats__seats:shared:array"{

    "seats:object"{
      name:t="main_gunner"
      locName:t="vehicle_seats/gunner"
      attachNode:t="gunner"
      ignoreAttachNodeRotation:b=yes
      attachTm:m=[[0.848, 0.53, 0.0] [-0.53, 0.848, 0.0] [0.0, 0.0, 1.0] [-0.15, -0.3, 0.0]]
      seatComponent:t="isGunner"
      nextSeat:t="driver"
      shouldHideOwner:b=no
      receiveDamageFromDMPart:t="gunner"
      cameraNodeName:t="bone_camera_gunner"
      cockpitTemplate:t="us_halftrack_m13_gunner_cockpit"
      directTurretControl:b=yes
      canLoadInHatch:b=yes
      seatAnimUpper:t="drive_driver"
      seatAnimLower:t="drive_driver"

      "turretNames:array"{
        turretNames:t="turret_01"
        turretNames:t="turret_02"
      }

      "loaderTurretNames:array"{
        turret:t="turret_01"
        turret:t="turret_02"
      }
    }

    "seats:object"{
      name:t="driver"
      locName:t="vehicle_seats/driver"
      seatOwnsEntityControl:b=yes
      attachNode:t="driver"
      ignoreAttachNodeRotation:b=yes
      attachTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [-0.0, 0.2, -0.13]]
      seatComponent:t="isDriver"
      nextSeat:t="main_gunner"
      shouldHideOwner:b=no
      receiveDamageFromDMPart:t="driver"
      cameraNodeName:t="bone_camera_driver"
      cockpitTemplate:t="us_halftrack_m13_driver_cockpit"
      seatAnimUpper:t="drive_passenger"
      seatAnimLower:t="drive_passenger"
    }

    "seats:object"{
      name:t="machine_gunner"
      locName:t="vehicle_seats/commander"
      attachNode:t="commander"
      shouldHideOwner:b=no
      ignoreAttachNodeRotation:b=yes
      attachTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [-0.0, 0.2, 0.11]]
      seatComponent:t="isPassenger"
      isHoldGunModeAllowed:b=no
      receiveDamageFromDMPart:t="commander"
      seatAnimUpper:t="drive_passenger"
      seatAnimLower:t="drive_passenger"
    }
  }
}

Hmmm… I don’t know. Would be happy too hear him.

3 Likes

errr. the more i look at it, the more my heads bounce around. i’d like to understand though,

so… what exactely i’m looking at?

and… how did you reach this point.

this stuff it’s still unknown to me.

1 Like

Well… It’s code that allows add seats?
I not sure 100%, but…
name:t="main_gunner" - seat name in code. Can be same… maybe.
locName:t="vehicle_seats/gunner" - seat text name, it’s prints in hud.
attachNode:t="gunner" - area where soldier will be.
attachTm:m=[[0.848, 0.53, 0.0] [-0.53, 0.848, 0.0] [0.0, 0.0, 1.0] [-0.15, -0.3, 0.0]] - area position.
ignoreAttachNodeRotation:b=yes - soldier ignore object rotation?
seatComponent:t="isGunner" - soldier/bot role in this seat?
nextSeat:t="driver" - maybe it’s priority seats for bots.
shouldHideOwner:b=no - display soldier model in this seat.
cameraNodeName:t="bone_camera_gunner" - camera zone that see player when sit in this seat.
cameraOffset:p3=0.0, 0.5, 0.0 - changes camera position; it’s XZY. You can reuse same camera node name and a bit offset it for another seat.
cockpitTemplate:t="us_halftrack_m13_gunner_cockpit" - maybe another one camera? but when you use right mouse click?
seatOwnsEntityControl:b=yes - seat that changes team and some other vehicle info.
directTurretControl:b=yes - seat that allows control vehicle gun.
isHoldGunModeAllowed:b=no - allows soldier use him weapon.
seatAnimUpper:t="drive_driver" - soldier animation?
seatAnimLower:t="drive_driver" - soldier animation?
maxPosWithOpenHatch:r=0.0 - ???
hatchRotationAxis:p3=0.0, 0.0, 0.0 - ???
isHatchControlInversed:b=yes - ???
canLoadInHatch:b=yes - ???
"turretNames:array" & "loaderTurretNames:array" - seat that allows use these turrets.

I think here will be problem that you can’t add new turret, because it’s not part of vehicle.
But you can allow soldier use him weapon like in vehicles.

Almost randomly when want make usable aircraft carrier turrets.
scene.txt (42.9 КБ)
It’s still not finished & some camera are broken because I don’t know how to add new cameraNodeName and attachedNodes.

3 Likes

by disableDMParts attribute

You can see this attribute through pzkpfw_IV_ausf_H_turret, which is the No. 4 turret on the locomotive, made by hiding the tank hull body.

Each attribute in blk corresponds to the attribute of entity, which is the information displayed in the attribute panel in the editor

The naming of attributes always has its practical meaning. First, you can guess its function through the named word and the type of attribute value, and then verify your guess through simple experiments.

Possibly controls whether the main gun can be reloaded when the commander pokes his head out, similar to the T60

Seems to affect the position and height of the commander when poking his head out

May be some 3d model related attributes. It is related to the character orientation of the binding point

2 Likes

dunno if i’m doing something wrong or what…

but i tried to copy through the blk file the dmdisable list and apply it onto the m13, nothing.

then i tried to directly change the pz iv turret with just the vehicle it self. same result.

all of this because the m13 ( or the panzerwarfare ) do not have the disabledmparts and it does not allow me to add the template via editor as well.

1 Like

Because the template of some vehicles does not enable the disableDMParts property, if you do not see the property in the editor’s properties panel, it does not take effect.

The current workable way to do this is to patch a template that define the disableDMParts field before your m13. such as germ_panzer_i+ or vw_kubelwagen+

Or if you use a custom template, you can directly define disableDMParts to your own templates in entities.blk, after that you can see the prop in the editor Properties pane

2 Likes

i converted a panther into an m13

( needless to say it’s not ideal… althoguh i partially worked around that )

problem is, i don’t know the nodes names.

is there… somewhere where i can see them?

because, i only see numbers in the other dmsparts.

but, thanks for the VW_kubelwagen tip. i would have never got to that point. i must admit.
( otherwise i would still have stuck with the panther. which, if if i would shoot for accicent, the entire halftruck would fly in the air lmao )

2 Likes

Install warthunder and warthunder CDK(warthunder mod tools and player creation tools made by gaijin), which has a gaijin official tools call AssetViewer that you can see the 3d model infos of the vehicle.

Or just checkout the damage model blk of the vehicle you can also see some useful node names.

2 Likes

through the turret:
image

i managed to remove a few things:

but it’s not enough. i still miss the barells, and gun shield.

good idea. i hope i’ll be able to find what i’m looking for.

but for now, thanks!.

2 Likes

I’m guessing there are some decorations that damage blk hasn’t defined yet, preventing them from being completely removed, but redefining damage blk with a custom template should give them full control

I will also try to further research in these days

1 Like

i did managed to remove partially the gun:

thanks to this:

i’m getting closer i think

3 Likes

very close to get a pure m3halftrack :heart:

3 Likes

Our mod producers have been doing very well! Come on, everyone! I occasionally come to see it.
Unfortunately, because I am busy this year, I may not be able to help

2 Likes

mission accomplished everyone:

4 Likes

the only problem is, the gun is fully functional despite not showing up

2 Likes

Remove the turret in config.

Or use a transport vehicle without turret like gmc353 to make it. by Replace the gmc353 anichar

2 Likes

how xd

1 Like