Convert gunslinger:cheetah to automatic mode again

This commit is contained in:
Anand S 2019-01-18 18:20:34 +05:30
parent 0507fe7296
commit 12daaffc35
No known key found for this signature in database
GPG Key ID: 3AD8A3C4A51AAB97
2 changed files with 3 additions and 4 deletions

View File

@ -108,7 +108,7 @@ local function fire(stack, player)
collisiondetection = true,
collision_removal = true,
object_collision = true,
glow = 3
glow = 5
})
-- Fire!
@ -248,7 +248,6 @@ local function on_step(dtime)
end
end
end
end
if not lite then
minetest.register_globalstep(on_step)
@ -320,7 +319,7 @@ function gunslinger.register_gun(name, def)
end
def.unit_wear = math.ceil(max_wear / def.clip_size)
def.unit_time = math.ceil(1 / def.fire_rate)
def.unit_time = 1 / def.fire_rate
guns[name] = def
minetest.register_tool(name, def.itemdef)

View File

@ -6,7 +6,7 @@ gunslinger.register_gun("gunslinger:cheetah", {
wield_scale = {x = 4, y = 4, z = 1}
},
mode = "burst",
mode = "automatic",
base_dmg = 1,
fire_rate = 6,
clip_size = 50,