I am currently trying to make a Lee-Enfield Mk. I based off of the SMLE Mk. III model, and I want to edit the reload animation in order to make it load one round at a time. How exactly do I edit the gun in entities.blk to have this reload animation?
Easiest way is to reduce the number of bullets in the ammo:
This will cause the gun to be reloaded one by one.
Second solution would be to change reload__singleReloadMaxAmmo:i=
to 10. However for some reason this doesn’t work, that’s why i suggest the first one.
smle_mk3{
_override:b=yes
_use:t="main_weap_slots"
_use:t="reload_not_empty_single_bullet"
_use:t="ironsights_open_rifle"
reload__singleReloadMaxAmmo:i=4 //how many ammo is missing at most to use ->
single_reload__prepareTime:r=1.0 //^ single bullet animation. This does not work idk why.
single_reload__loopTime:r=0.63
single_reload__postTime:r=1.1
animchar__res:t="smle_mk_3_char"
gun__blk:t="content/enlisted/gamedata/weapons/smle_mk3.blk"
item__template:t="smle_mk3_gun_item"
item__proto:t="content/enlisted/gamedata/weapons/smle_mk3.blk"
item__weapTemplate:t="smle_mk3_gun"
item__name:t="items/smle_mk3"
item__weapType:t="rifle"
item__weight:r=4.0
gun__locName:t="Short Magazine Lee-Enfield No. 1 Mk III"
gun__statName:t="rifle"
gun__shotFreq:r=0.92
gun__automaticReload:b=no
gun_spread__maxDeltaAngle:r=0.15
gun_deviation__omegaRange:p2=30.0, 90.0
gun_deviation__omegaDevInc:p2=0.1, 0.5
gun_deviation__movementRange:p2=2.1, 4.0
gun_deviation__movementDevInc:p2=0.0, 15.0
gun_deviation__onShotDeviationChange:r=0.0
gun_deviation__shotTau:r=0.1
gun_deviation__extraDeviationTau:r=0.15
gun_deviation__maxDeviation:r=15.0
gun__reloadTime:r=4.0
gun__kineticDamageMult:r=1.58
"item__id:i"{
value:i=0
_hide:b=yes
}
"gun_shell_ejection__onShootRelease:tag"{
}
"gun__ammoHolders:array"{
ammoHolders:t="lee_enfield_no4_mk1_magazine"
}
"gun__shells:array"{
shells:t="content/enlisted/gamedata/weapons/bullets/303_british_mk7.blk"
}
"gun__firingModes:array"{
"mode:object"{
modeType:t="manual"
}
}
"gun__firingModeNames:array"{
mode:t="bolt_action"
}
}
2 Likes
Thanks man, much appreciated.
1 Like