random_weapon_box{
_override:b=yes
item__name:t=“Random Powerful Weapon”
paid_loot__cost:i=200
“paid_loot__weapTemplates:list”{
item:t=“vickers_berthier_gun_item+item_in_world+ui_visible+disable_update”
item:t=“bren_mk1_gun_item+item_in_world+ui_visible+disable_update”
item:t=“bren_mk2_gun_item+item_in_world+ui_visible+disable_update”
item:t=“browning_m1918_gun_item+item_in_world+ui_visible+disable_update”
item:t=“browning_m1918a1_gun_item+item_in_world+ui_visible+disable_update”
item:t=“browning_m1918a2_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1941_johnson_mg_gun_item+item_in_world+ui_visible+disable_update”
item:t=“browning_m1919a6_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m50_reising_gun_item+item_in_world+ui_visible+disable_update”
item:t=“sten_mk2_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m3_submachine_gun_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m3a1_grease_gun_gun_item+item_in_world+ui_visible+disable_update”
item:t=“winchester_model_1912_gun_item+item_in_world+ui_visible+disable_update”
item:t=“owen_mk1_42_gun_item+item_in_world+ui_visible+disable_update”
item:t=“browning_auto_5_gun_item+item_in_world+ui_visible+disable_update”
item:t=“lanchester_32_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1a1_thompson_gun_item+item_in_world+ui_visible+disable_update”
item:t=“thompson_m1928a1_box_mag_item+item_in_world+ui_visible+disable_update”
item:t=“m1_thompson_gun_item+item_in_world+ui_visible+disable_update”
item:t=“thompson_m1928a1_50_drum_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1903_springfield_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1903a1_springfield_usmc_gun_item+item_in_world+ui_visible+disable_update”
item:t=“enfield_p14_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1917_enfield_gun_item+item_in_world+ui_visible+disable_update”
item:t=“ross_rifle_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1_carbine_gun_item+item_in_world+ui_visible+disable_update”
item:t=“smle_mk3_gun_item+item_in_world+ui_visible+disable_update”
item:t=“lee_enfield_no4_mk1_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1_garand_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1941_johnson_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m2_carbine_gun_item+item_in_world+ui_visible+disable_update”
item:t=“t20_rifle_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1903_springfield_with_grenade_launcher_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1_carbine_grenade_launcher_gun_item+item_in_world+ui_visible+disable_update”
item:t=“smle_mk3_grenade_launcher_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1_garand_grenade_launcher_m7_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1903a1_springfield_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1903a3_springfield_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1903a4_springfield_gun_item+item_in_world+ui_visible+disable_update”
item:t=“lee_enfield_no4_mk1_with_scope_gun_item+item_in_world+ui_visible+disable_update”
item:t=“sniper_m1_garand_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1c_garand_gun_item+item_in_world+ui_visible+disable_update”
item:t=“atr_boys_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1_bazooka_gun_item+item_in_world+ui_visible+disable_update”
item:t=“piat_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m9_bazooka_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1_flamethrower_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m1a1_flamethrower_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m2_flamethrower_gun_item+item_in_world+ui_visible+disable_update”
item:t=“two_inch_mortar_gun_item+item_in_world+ui_visible+disable_update”
item:t=“m2_mortar_gun_item+item_in_world+ui_visible+disable_update”
}
Not very useful in zombies game
Since you do not have gun_with_initial_ammo and you cannot resupply ammo as well
thats why i made in my mod all us weapons to have 50 mil ammo (yes ik is excessive)
if anyone wants the file, which is entities.blk, or more spec, the code, here it is:
//machine gun
vickers_berthier_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“vickers_berthier_magazine”
ammo_holder__ammoCount:i=50000000
}
bren_mk1_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“bren_mk1_magazine”
ammo_holder__ammoCount:i=50000000
}
bren_mk2_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“bren_mk2_magazine”
ammo_holder__ammoCount:i=50000000
}
browning_m1918_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“browning_m1918_magazine”
ammo_holder__ammoCount:i=50000000
}
browning_m1918a1_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“browning_m1918a1_magazine”
ammo_holder__ammoCount:i=50000000
}
browning_m1918a2_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“browning_m1918a2_magazine”
ammo_holder__ammoCount:i=50000000
}
m1941_johnson_mg_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1941_johnson_mg_magazine”
ammo_holder__ammoCount:i=50000000
}
browning_m1919a6_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“browning_m1919a6_magazine”
ammo_holder__ammoCount:i=50000000
}
//submachine gun
m50_reising_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m50_reising_magazine”
ammo_holder__ammoCount:i=50000000
}
sten_mk2_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“sten_mk2_magazine”
ammo_holder__ammoCount:i=50000000
}
m3_submachine_gun_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m3_submachine_gun_magazine”
ammo_holder__ammoCount:i=50000000
}
m3a1_grease_gun_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m3a1_grease_gun_magazine”
ammo_holder__ammoCount:i=50000000
}
winchester_model_1912_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“winchester_model_1912_magazine”
ammo_holder__ammoCount:i=50000000
}
owen_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“owen_magazine”
ammo_holder__ammoCount:i=50000000
}
browning_auto_5_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“browning_auto_5_magazine”
ammo_holder__ammoCount:i=50000000
}
lanchester_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“lanchester_magazine”
ammo_holder__ammoCount:i=50000000
}
m1928a_thompson_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1928a_thompson_magazine”
ammo_holder__ammoCount:i=50000000
}
thompson_m1928a1_box_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“thompson_m1928a1_box_magazine”
ammo_holder__ammoCount:i=50000000
}
m1_thompson_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1_thompson_magazine”
ammo_holder__ammoCount:i=50000000
}
thompson_m1928a1_50_drum_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“thompson_m1928a1_50_drum_magazine”
ammo_holder__ammoCount:i=50000000
}
//rifle
m1903_springfield_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1903_springfield_magazine”
ammo_holder__ammoCount:i=50000000
}
enfield_p14_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“enfield_p14_magazine”
ammo_holder__ammoCount:i=50000000
}
m1917_enfield_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1917_enfield_magazine”
ammo_holder__ammoCount:i=50000000
}
ross_rifle_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“ross_rifle_magazine”
ammo_holder__ammoCount:i=50000000
}
m1_carbine_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1_carbine_magazine”
ammo_holder__ammoCount:i=50000000
}
lee_enfield_no4_mk1_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“lee_enfield_no4_mk1_magazine”
ammo_holder__ammoCount:i=50000000
}
lee_enfield_no4_mk1_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“lee_enfield_no4_mk1_magazine”
ammo_holder__ammoCount:i=50000000
}
m1_garand_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1_garand_magazine”
ammo_holder__ammoCount:i=50000000
}
m1941_johnson_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1941_johnson_magazine”
ammo_holder__ammoCount:i=50000000
}
m2_carbine_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m2_carbine_magazine”
ammo_holder__ammoCount:i=50000000
}
t20_rifle_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“t20_rifle_magazine”
ammo_holder__ammoCount:i=50000000
}
//sniper rifle
m1903_springfield_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1903_springfield_magazine”
ammo_holder__ammoCount:i=50000000
}
m1903_springfield_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1903_springfield_magazine”
ammo_holder__ammoCount:i=50000000
}
m1903_springfield_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1903_springfield_magazine”
ammo_holder__ammoCount:i=50000000
}
lee_enfield_no4_mk1_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“lee_enfield_no4_mk1_magazine”
ammo_holder__ammoCount:i=50000000
}
//anti-tank weapon
atr_boys_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“atr_boys_magazine”
ammo_holder__ammoCount:i=50000000
}
m1_bazooka_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1_bazooka_magazine”
ammo_holder__ammoCount:i=50000000
}
piat_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“piat_magazine”
ammo_holder__ammoCount:i=50000000
}
m9_bazooka_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m9_bazooka_magazine”
ammo_holder__ammoCount:i=50000000
}
//flamethrower
m1_flamethrower_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1_flamethrower_magazine”
ammo_holder__ammoCount:i=50000000
}
m1a1_flamethrower_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m1a1_flamethrower_magazine”
ammo_holder__ammoCount:i=50000000
}
m2_flamethrower_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m2_flamethrower_magazine”
ammo_holder__ammoCount:i=50000000
}
//mortar
two_inch_mortar_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“two_inch_mortar_magazine”
ammo_holder__ammoCount:i=50000000
}
m2_mortar_magazine{
_override:b=yes
_use:t=“infinite_magazine”
ammo_holder__templateName:t=“m2_mortar_magazine”
ammo_holder__ammoCount:i=50000000
}
You can try to learn from my code here to make ammo resupply work (try):
m1941_johnson_zombie_gun{
_use:t="m1941_johnson_gun"
_use:t="gun_with_initial_ammo"
_use:t="paid_loot_ressuply"
item__template:t="m1941_johnson_zombie_gun_item"
item__weapTemplate:t="m1941_johnson_zombie_gun"
paid_loot__ressuplyCost:i=100
}
m1941_johnson_zombie_gun_item{
_use:t="item_gun"
_use:t="m1941_johnson_zombie_gun"
collres__res:t="m1941_johnson_collision"
_group{
_tags:t="server"
"gun__initialAmmoHoldersCount:list<i>"{
item:i=10
}
}
}
no need since is literally self explanatory in my now edited reply to ur comment