I didn’t know this, so how do I do it?
Should I make it like I did the zombie guns?
thank you man, i will try to do this
I can give you my M16A4 code that is a modified M4A1 gun
that would be great
If you want use blaster weapon then probably code will be looks like:
valken_38e_gun{
_use:t="blaster_germany_gun"
animchar__res:t="fg_42_with_grenade_launcher_char"
gun__shotFreq:r=9.6
gun__reloadTime:r=3.8
gun__altReloadTime:r=3.25
gun__kineticDamageMult:r=10.8
gun__overheatPerShot:r=0.01
gun__overheatReduce:r=0.012
gun__overheatReduceOnOverheat:r=0.15
gun__firingModeName:t="semi_auto_4_shots"
gun__locName:t="Valken-38E"
item__name:t="Valken-38E"
item__template:t="valken_38e_gun_item"
"gun__firingModes:array"{
"gun__firingModes:object"{
burstSize:i=4
modeType:t="burst"
}
"gun__firingModes:object"{
modeType:t="automatic"
}
}
"gun__firingModeNames:array"{
gun__firingModeNames:t="semi_auto_4_shots"
gun__firingModeNames:t="automatic"
}
}
valken_38e_gun_item{
_use:t="blaster_germany_gun_item"
animchar__res:t="fg_42_with_grenade_launcher_char"
item__weapTemplate:t="valken_38e_gun"
item__name:t="Valken-38E"
}
Probably. All weapons changes inside new entities.
Here
m16a4_zombie_gun{
_use:t=“m4_gun”
_use:t=“gun_with_initial_ammo”
_use:t=“paid_loot_ressuply”
item__template:t=“m16a4_zombie_gun_item”
item__weapTemplate:t=“m16a4_zombie_gun”
paid_loot__ressuplyCost:i=150
“gun__firingModes:array”{“mode:object”{
modeType:t=“burst”
burstSize:i=3
}
“mode:object”{
modeType:t=“burst”
burstSize:i=1
}
}
“gun__firingModeNames:array”{
mode:t=“semi_auto_3_shots”
mode:t=“semi_auto”
}
gun__locName:t=“M16A4”
item__name:t=“M16A4”
}m16a4_zombie_gun_item{
_use:t=“item_gun”
_use:t=“m16a4_zombie_gun”
collres__res:t=“m4_collision”
_group{
_tags:t=“server”"gun__initialAmmoHoldersCount:list<i>"{ item:i=6 }
}
}
dude, you are incredible, thank you very much.
I will try now
Dude, publish your code as preformatted text if you want, otherwise it looks confusing.
by the way thank you for the code
Sorry, my mobile device just doesn’t type the normal ‘’’
So it doesn’t work.
No problem buddy, you can share the code whenever you want.
You are welcome, all the codes on my 3 maps are open-sourced and you can download, modify, and reuse freely. You can find the link to my google drive at one of my post of my maps at forum and sandbox
I added an automatic fire mode option to the m16a4 code you made. If you want, you can add this weapon to your own mod, it will be much better.
code:
Spoiler
m16a4_zombie_gun{
_use:t="m4_gun"
_use:t="gun_with_initial_ammo"
_use:t="paid_loot_ressuply"
item__template:t="m16a4_zombie_gun_item"
item__weapTemplate:t="m16a4_zombie_gun"
gun__kineticDamageMult:r=1.25
gun__reloadTime:r=2.57
paid_loot__ressuplyCost:i=270
"gun__firingModes:array"{
"mode:object"{
modeType:t="burst"
burstSize:i=3
}
"mode:object"{
modeType:t="burst"
burstSize:i=1
}
"mode:object"{
modeType:t="automatic"
}
}
"gun__firingModeNames:array"{
mode:t="semi_auto_3_shots"
mode:t="semi_auto"
mode:t="automatic"
}
gun__locName:t="M16A4"
item__name:t="M16A4"
}
m16a4_zombie_gun_item{
_use:t="item_gun"
_use:t="m16a4_zombie_gun"
collres__res:t="m4_collision"
_group{
_tags:t="server"
"gun__initialAmmoHoldersCount:list<i>"{
item:i=10
}
}
}
I know how to do that but i thought m16A4 only has 3 round burst in real life?
Or just another call of duty inaccuracy
The m16a2 actually has 3 different modes. The code I made looks similar to the m16a2 weapon, but I have no information about the m16a4 weapon, I have never held it in my hand and examined it.
I looked at the m16a4 gun on the internet and it does not have a full automatic mode.
Some of the weapons I made for Random Box can be used by modders.
Spoiler
random box and wall guns.txt (51.6 KB)
when I enter a room I created in ZOMBIE BUNKER RAID mod, the game crashes and takes me to the main menu.
This is really interesting. This started with the secret update that came yesterday. It does not always crash, but there is an big chance that the game crashes.
There is no Collision on the wall, I can easily pass through it, but only players can do it, grenades and bullets cannot pass through the wall.
some screenshots
there is some issue with my mod also
The zombie_spawn_mode crashes my editor and now it does not tell you whether you miss out a } or other errors, it just dies
I already knew this a long time ago, but with the last update, the game crashes when players go to that area, this is very strange.