Changes to pipe bombs, cops, and node groups

This commit is contained in:
2022-11-22 15:32:50 -05:00
parent ba2da987ad
commit 71d289d98e
10 changed files with 56 additions and 88 deletions

View File

@@ -32,27 +32,38 @@ end
minetest.register_on_joinplayer(function(player)
player:set_physics_override({speed = 2.5, jump = 1, gravity = 1.2})
minetest.show_formspec(player:get_player_name(), "story:story_formspec", table.concat(getStoryFormspec(0), "\n"))
music = minetest.sound_play("4K", {
gain = 0,
pitch = 1.2,
pitch = 1,
loop = true,
})
minetest.sound_fade(music, .1, 1)
player:get_inventory():add_item("main", "more_fire:pipebomb 48")
player:get_inventory():add_item("main", "more_fire:molotov 48")
player:get_inventory():add_item("main", "more_fire:molotov_cocktail 48")
minetest.setting_set("time_speed", 0)
minetest.set_timeofday(.06)
minetest.set_timeofday(.21)
end)
minetest.register_on_newplayer(function(ObjectRef)
minetest.place_schematic({x = 0, y = -1, z = 0}, minetest.get_modpath("story") .. "/schems/citymap-v2.mts", "0", nil, true)
minetest.after(4, function() minetest.fix_light({x = 20, y = 129, z = 191}, {x = 236, y = 12, z = 6}) end)
ObjectRef:set_pos({x = 180, y = 42, z = 145})
end)
minetest.register_on_respawnplayer(function(ObjectRef)
minetest.after(.1, function()
ObjectRef:set_pos({x = 180, y = 42, z = 145})
end)
end)
minetest.register_on_player_receive_fields(function(player, formname, fields)
if formname ~= "story:story_formspec" then
return
@@ -76,7 +87,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
minetest.request_shutdown("The game has crashed due to the citizen's neglience.\n This incident will be reported.")
elseif fields.quit then
minetest.after(0.2, function() minetest.show_formspec(player:get_player_name(), "story:story_formspec", table.concat(getStoryFormspec(currentPage), "\n")) end)
minetest.after(.2, function() minetest.show_formspec(player:get_player_name(), "story:story_formspec", table.concat(getStoryFormspec(currentPage), "\n")) end)
end
end
end)