Custom tanks now work once more with the help of @Bazsi37
I tried to make the flak panzer 4 wirbelwind work with this code. And it kind of worked but little bit overpowered and only one gun fires:
wirbelwind_ai_vehicle_tank{
bodyCleanupTime:r=5.0
_use:t="ai_vehicle_tank_fixed_objective"
_use:t="base_flpz_iv_wirbelwind"
paid_loot__pointsForKill:i=500
vehicle_seats__restrictToTeam:i=3
"dontCreateNphysObstacle:tag"{
}
"zombie:tag"{
}
destroyIfNoCrewLeft:b=yes
_group{
_tags:t="server"
ai_vehicle_tank__thinkState:i=1
ai_vehicle_tank__waitTimesUpdatePath:r=1000000.0
ai_vehicle_tank__allowCrewExiting:b=no
zombie_ai_vehicle_tank__timeToDestroy:r=900.0
zombie_ai_vehicle_tank__destroyAtTime:r=0.0
ai_vehicle_tank__ignoreBattleArea:b=yes
}
"vehicle_seats__seats:shared:array"{
"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.25, -0.25, 0.0]]
seatComponent:t="isDriver"
nextSeat:t="main_gunner"
shouldHideOwner:b=yes
receiveDamageFromDMPart:t="driver"
}
"seats:object"{
directTurretControl:b=yes
name:t="main_gunner"
locName:t="vehicle_seats/gunner"
attachNode:t="gunner"
ignoreAttachNodeRotation:b=yes
attachTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [-0.25, -0.5, 0.0]]
seatComponent:t="isGunner"
nextSeat:t="driver"
shouldHideOwner:b=yes
receiveDamageFromDMPart:t="gunner"
"turretNames:array"{
turret:t="turret_01"
turret:t="turret_02"
turret:t="turret_03"
turret:t="turret_04"
}
}
"seats:object"{
attachNode:t="loader"
locName:t="vehicle_seats/loader"
ignoreAttachNodeRotation:b=yes
attachTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [-0.25, -0.5, 0.0]]
seatComponent:t="isPassenger"
shouldHideOwner:b=yes
receiveDamageFromDMPart:t="loader"
"loaderTurretNames:array"{
turret:t="turret_01"
turret:t="turret_02"
turret:t="turret_03"
turret:t="turret_04"
}
}
"seats:object"{
attachNode:t="loader"
locName:t="vehicle_seats/loader"
ignoreAttachNodeRotation:b=yes
attachTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [-0.25, -0.5, 0.0]]
seatComponent:t="isPassenger"
shouldHideOwner:b=yes
receiveDamageFromDMPart:t="loader"
"loaderTurretNames:array"{
turret:t="turret_01"
turret:t="turret_02"
turret:t="turret_03"
turret:t="turret_04"
}
}
"seats:object"{
attachNode:t="machine_gunner"
locName:t="vehicle_seats/radioman"
ignoreAttachNodeRotation:b=yes
attachTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [-0.25, -0.5, 0.0]]
seatComponent:t="isPassenger"
shouldHideOwner:b=yes
receiveDamageFromDMPart:t="machine_gunner"
}
}
}
base_flpz_iv_wirbelwind{
_override:b=yes
gunner_cam_limit__useCockpitDir:b=yes
commanderCockpitFpsCamMaxAngle:p2=40.0, 5.0
}
flpz_iv_wirbelwind_turret_01_20mm_flak38{
_override:b=yes
_group{
_tags:t="server"
tank_turret_ai__maxBurstCount:i=20
tank_turret_ai__longPauseWaitTime:r=0.0
tank_turret_ai__attackDist:r=200.0
}
}
flpz_iv_wirbelwind_turret_02_20mm_flak38{
_override:b=yes
_group{
_tags:t="server"
tank_turret_ai__maxBurstCount:i=20
tank_turret_ai__longPauseWaitTime:r=0.0
tank_turret_ai__attackDist:r=200.0
}
}
flpz_iv_wirbelwind_turret_03_20mm_flak38{
_override:b=yes
_group{
_tags:t="server"
tank_turret_ai__maxBurstCount:i=20
tank_turret_ai__longPauseWaitTime:r=0.0
tank_turret_ai__attackDist:r=200.0
}
}
flpz_iv_wirbelwind_turret_04_20mm_flak38{
_override:b=yes
_group{
_tags:t="server"
tank_turret_ai__maxBurstCount:i=20
tank_turret_ai__longPauseWaitTime:r=0.0
tank_turret_ai__attackDist:r=200.0
}
}
wirbelwind_spawner{
_use:t="zombie_ai_vehicle_tank_spawner"
zombie_ai_vehicle_tank_spawner__template:t="wirbelwind_ai_vehicle_tank"
}