Revert to old grenade behavior
This commit is contained in:
parent
408f6286a1
commit
27f36d5d24
2 changed files with 12 additions and 12 deletions
|
@ -290,13 +290,13 @@ crafting.register_recipe({
|
||||||
level = 1,
|
level = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
crafting.register_recipe({
|
-- crafting.register_recipe({
|
||||||
type = "inv",
|
-- type = "inv",
|
||||||
output = "grenades:frag_sticky 1",
|
-- output = "grenades:frag_sticky 1",
|
||||||
items = { "grenades:frag", "default:stick 4" },
|
-- items = { "grenades:frag", "default:stick 4" },
|
||||||
always_known = true,
|
-- always_known = true,
|
||||||
level = 1,
|
-- level = 1,
|
||||||
})
|
-- })
|
||||||
|
|
||||||
crafting.register_recipe({
|
crafting.register_recipe({
|
||||||
type = "inv",
|
type = "inv",
|
||||||
|
|
|
@ -73,14 +73,14 @@ local fragdef = {
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
grenades.register_grenade("grenades:frag", table.copy(fragdef))
|
|
||||||
|
|
||||||
fragdef.description = "Sticky Frag grenade (Sticks to surfaces)"
|
-- fragdef.description = "Sticky Frag grenade (Sticks to surfaces)"
|
||||||
fragdef.image = "grenades_frag_sticky.png"
|
-- fragdef.image = "grenades_frag_sticky.png"
|
||||||
fragdef.on_collide = function(obj)
|
fragdef.on_collide = function(obj)
|
||||||
return "stop"
|
return true
|
||||||
end
|
end
|
||||||
grenades.register_grenade("grenades:frag_sticky", fragdef)
|
grenades.register_grenade("grenades:frag", table.copy(fragdef))
|
||||||
|
--grenades.register_grenade("grenades:frag_sticky", fragdef)
|
||||||
|
|
||||||
-- Flashbang Grenade
|
-- Flashbang Grenade
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue