Preparation for a new class
This commit is contained in:
parent
ea20089d4c
commit
e17faefa86
6 changed files with 38 additions and 1 deletions
|
@ -188,3 +188,26 @@ ctf_classes.register("rocketeer", {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--[[ctf_classes.register("axefighter", {
|
||||||
|
description = "Axe Fighter",
|
||||||
|
pros = { "* Equipped with battleaxe" },
|
||||||
|
cons = {},
|
||||||
|
color = "#96a",
|
||||||
|
properties = {
|
||||||
|
initial_stuff = {
|
||||||
|
"ctf_classes:battleaxe"
|
||||||
|
},
|
||||||
|
|
||||||
|
allowed_guns = {
|
||||||
|
"shooter_guns:pistol",
|
||||||
|
},
|
||||||
|
|
||||||
|
crafting = {
|
||||||
|
"default:axe_bronze",
|
||||||
|
"default:axe_mese",
|
||||||
|
"default:axe_diamond",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
]]--
|
||||||
|
|
|
@ -62,7 +62,7 @@ function ctf_classes.show_gui(name, player)
|
||||||
fs[#fs + 1] = "container_end[]"
|
fs[#fs + 1] = "container_end[]"
|
||||||
|
|
||||||
x = x + 1
|
x = x + 1
|
||||||
if x > 3 then
|
if x > 4 then
|
||||||
x = 0
|
x = 0
|
||||||
y = y + 1
|
y = y + 1
|
||||||
end
|
end
|
||||||
|
|
|
@ -129,3 +129,17 @@ end)
|
||||||
ctf.register_on_new_game(function()
|
ctf.register_on_new_game(function()
|
||||||
sword_special_timer = {}
|
sword_special_timer = {}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_tool("ctf_classes:battleaxe", {
|
||||||
|
inventory_image = "ctf_classes_axefighter.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 3,
|
||||||
|
max_drop_level=1,
|
||||||
|
groupcaps={
|
||||||
|
choppy={times={[1]=2.75, [2]=1.70, [3]=1.15}, uses=0, maxlevel=2},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=10},
|
||||||
|
punch_attack_uses = 0,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
BIN
mods/ctf/ctf_classes/textures/ctf_classes_axefighter.png
Normal file
BIN
mods/ctf/ctf_classes/textures/ctf_classes_axefighter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 272 B |
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in a new issue