Would it be possible to put an m1919 machine gun on a willys?
Well… In theory… Yes, it’s possible to do. But it will be very hard and with some problems with animations.
Maybe you will need to use universal carrier vehicle/animchar. Hide apc model. Attach willys and m1919 mg to carrier and then edit other stats. Like bren turret to m1919, disable AT rifle, add seats and phys & collres__res from willys. And maybe it will work, but yeah… Willys will be without animations.
Some entities.blk code example:
MG replaced by Breda mod. 30:
stationary_breda_mod_30{
_use:t="stationary_mg42"
gun__ammo:i=6000
gun__shotFreq:r=8.03
gun__locName:t="breda_mod_30"
item__name:t="items/breda_mod_30"
gun__overheatPerShot:r=0.05
gun__overheatReduceOnOverheat:r=0.3
gun__overheatReduce:r=0.0
gun__length:r=0.4
gun_deviation__shotTau:r=0.1
gun_deviation__omegaRange:p2=30.0, 90.0
gun_deviation__omegaDevInc:p2=0.07, 0.5
gun_deviation__movementRange:p2=0.1, 4.0
gun_deviation__movementDevInc:p2=14.0, 35.0
gun_deviation__onShotDeviationChange:r=0.0
gun_deviation__extraDeviationTau:r=0.2
gun_deviation__maxDeviation:r=20.0
gun_shell_ejection__timeMult:r=0.35
gun_spread__maxDeltaAngle:r=0.36
gun__recoilAmount:r=0.055
gun__recoilDirAmount:r=0.6
gun__recoilDir:r=0.0
gun__recoilControlMult:r=0.9
gun__recoilOffsMult:r=0.1
gun__visualRecoilMult:r=0.4
"gun__shells:array"{
shells:t="content/enlisted/gamedata/weapons/bullets/6.5x52_carcano_tracer.blk"
}
_group{
_tags:t="sound"
gun_sound__forceOneshot:b=yes
}
"gun_sound__shotPath:shared:object"{
_tags:t="sound"
path:t="/weapon/mgun/zb_26"
}
"attach_decorators__entities:list<eid>"{
}
"attach_decorators__templates:array"{
"attach_decorators__templates:object"{
relativeTm:m=[[-0.999961, 3.72529e-08, 1.51061e-06] [-1.09516e-06, -0.999961, -2.72546e-06] [1.89897e-06, -9.8662e-08, 0.999956] [-0.000361009, -0.776566, 7.61304e-05]]
template:t="breda_mod_30_animchar"
nodeName:t="gunFx_main"
}
}
"disableDMParts:list<t>"{
part:t="mg42_ammo"
part:t="mg_body"
}
}
attach_decorators__entities and attach_decorators__templates let you attach other entities.
disableDMParts let you turn on model parts.
Fake Breda mod. 30 animchar.
breda_mod_30_animchar{
_use:t="base_vehicle_decor"
animchar__res:t="breda_mod_30_char"
collres__res:t="breda_mod_30_collision"
"disableDMParts:list<t>"{
part:t="bipod_1_mesh"
part:t="bipod_2_mesh"
}
}
So you will need to use disableDMParts on carrier (console command collres.draw_names may help with it). And then attach m1919 and willys.
Maybe better to wait when devs will give us tools that let edit animchars/models.
I’ll try to sent some code later.
There also two another ways, but they’re too hard and contain even more problems (you will unable control vehicle and/or normally control turret).
In past I tried to do them. But they’re kinda fail + it seems that I lost source code.
Motorbike is probably was most success way (I lost picture with corrected position location), but still isn’t very good, because turret or vehicle can be controlled only by another one player.