How to add new weapon and ammo
Tutorial help you to understand how to add new weapons and ammo to the game
How to add weapon HUD image




Last updated
Tutorial help you to understand how to add new weapons and ammo to the game
How to add weapon HUD image




Last updated
"ammo_obrez": {
"name": "itm.ammo.obrez.name",
"caption": "itm.ammo.obrez.caption",
"icon": "assets/ui/items/ammo_obrez.png",
"price": 30,
"weight": 0.1,
"type": "item"
}"itm.ammo.obrez.name": "12x70mm buckshot",
"itm.ammo.obrez.caption": "A common 12-gauge cartridge loaded with 6mm buckshot. At close ranges, it has a huge killing effect.",
"itm.obrez.name": "Sawed-off shotgun",
"itm.obrez.caption": "A sawn-off BM-17 rifle. It is lighter and more compact than the original two-barrel rifle, but it is effective only at a close range. One of the weapons most commonly used by beginners.""w_obrez": {
"name": "itm.obrez.name",
"caption": "itm.obrez.caption",
"icon": "assets/ui/items/w_obrez.png",
"price": 400,
"weight": 1.9,
"slot": "rifle",
"type": "weapon",
"profile": "w_obrez_profile"
}"w_obrez_profile": {
"clip_ammo_max": 2,
"damage": 3.9,
"accuracy": 0.10,
"fire_sound": "pistol_sound",
"hud": "assets/ui/w_obrez_hud.png",
"sparkle_position": [0.026,-0.025, -0.109],
"hud_position": [-0.015, 0, -0.054],
"ammo_type": "ammo_obrez",
"reload_anim": "reload",
"speed": 0.38,
"shoot_count": 1
}func _ready():
GameAPI.RunOutsideScript("HUD_Coordinator")._ready() #don't forget to place script file near p_game.gd"sparkle_position": [0.019, -0.031, -0.109],
"hud_position": [-0.018, 0.001, -0.054]