commit 6cacba304e98d40ecfcb4d1656ecab5c48c90e4f Author: LazyJ Date: Mon Jun 16 00:20:18 2014 -0700 first commit diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..243bcd0 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + 14 rue de Plaisance, 75014 Paris, France + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. \ No newline at end of file diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..2b5a897 --- /dev/null +++ b/README.txt @@ -0,0 +1,50 @@ +##### LazyJ's Fork of a very old version of webdesigner97's "Streets" Mod + +This version of 'Streets' is based off of one of webdesigner97's releases +sometime around 2013_04. + +At LinuxGaming.us, we have been using the same release of "Streets" for over a +year. With a few little tweaks, this older, simpler version has met and +exceeded all our road-making needs, then and now. + +I'm publishing this fork of "Streets": + 1. so players can have access to it without having to download a + multi-gigabyte backup copy of Wazuland2, + 2. maybe there are other servers and players who want basic, modern- + looking roads for their worlds without a lot of extras, + 3. to get a little more experience with how GitHub works. + +The newer versions of "Streets" are feature-rich, excellent, and I encourage +you to check them out: + +* Minetest.net +http://forum.minetest.net/viewtopic.php?id=2984 + +* GitHub +https://github.com/webdesigner97/streets + + +~ LazyJ, 2014_06_15 + + + +Minetest version: 0.4.9 +Depends: default, wool +Recommended Additional Mods: none +License: GPL v2 +Source Code: http://github.com/LazyJ/wazuland_streets +Download (.zip): http://github.com/LazyJ/wazuland_streets/archive/master.zip + +Install: + * After downloading, unzip the file. + * Rename the directory "wazuland_streets-master" to "streets" + * Copy the "streets" directory into either + ../minetest/worlds/yourworld'sname/worldmods/ + or + ../minetest/mods/ + * If you put "snow" in the ../minetest/mods/ directory, either + enable the mod from within Minetest's "Configure" button + (main menu, bottom right) or by adding this line to the + world's "world.mt" file: + load_mod_streets = true + diff --git a/changelog.txt b/changelog.txt new file mode 100644 index 0000000..d614580 --- /dev/null +++ b/changelog.txt @@ -0,0 +1,88 @@ +CHANGELOG +~~~~~~~~~~~~~~~~ + + +2014_06_15 + +General: + + * Moved lua files to "modfiles" directory + * Created README.txt + * Created changelog.txt + + + +depends.txt: + + * Added wool as a soft-dependency. It's a default mod in minetest_game + but with the new sub-games being all the rage now, who knows if wool + will be included in them. If not, some of the crafting recipes will + be broken so you'll have to use either the "give" command, play in + creative-mode, or have the creative priv and Unified Inventory. + + + +init.lua: + + * The "tools.lua" file was removed because, other than a comment, it + was empty. + * The "tools.lua" dofile line was removed from this file. + * Lua files moved to "modfiles" directory and links edited accordingly. + + + +crafts.lua: + + * Cheapened the crafting recipe for emergency phones. They were too + expensive and provided too little heart-point boost for their expense + that player the very, very few players who crafted them regretted it. + Emergency phones became one of the most *undesirable* items on our + server. + * Removed the chat messages and coord announcement. Most players, on our + server, don't want their coordinates broadcast and the heart-point line + above the hot-bar is enough to see the increase in health. + * The recuperative powers of the emgergency phone were too limited. + Couple that with the very expensive crafting recipe and the emergency + phone was just not worth it. So I removed the minimum heart-point + requirement and boosted the heart-point increase to full-recovery. + * Increased the light output to 14. Hey, it's an emergency! ;)- + + + +nodes.lua: + + * Updated the code a bit. Replaced "tiles" with "tiles" + * Added sounds (default stone) + * Added screwdriver compatibility to manholes. + * Added low-level light to asphalt stuff so roads are easier to see + at night. Pretend it's the reflective yellow and white road paint + shining in your headlights. + * Emergency Phone - Disabled the minimal heart-point requirement, + increased the heart-point boost to full recovery, made them diggable by + all tools. In their original configuration, the recipe was too expensive + and the health boost to little that they quickly became an undesireable + item. Nobody wanted them. + + POSSIBLE FUTURE CHANGES + + * Make asphalt stuff even harder to dig. + I had considered adding all tools, breakable by hand and making all + asphalt stuff easy to dig but after counciling with one of our + moderators it seemed better to leave the asphalt difficult to dig as a + way to annoy griefers. Road builders on our server will have supplies + to offset the extra difficulty of digging asphalt stuff. Roadwork is + very important and needs to be encouraged. Making asphalt stuff + difficult to dig may go against that encouragement. Roads are difficult + to set protection on because they cut through so many players areas + and builds. If the asphalt stuff were made as hard as possible, that + would at least slow-up any attempts to grief the roads by digging them. + Time and experimentation will tell. Eventually we'll find the right + combination mateiral hardness and ease of use. To make any node as + difficult as possible to dig, limit the groups to only one tool and + increase the level of difficulty to 1. + +settings.lua: + + * Removed the heart-point settings since they are hard-set in the nodes' + definition now. + diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..8babd51 --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +default +wool? diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..8c0590a --- /dev/null +++ b/init.lua @@ -0,0 +1,43 @@ +--[[ + This is the main file for the StreetsMod. + It checks whether all required mods are + installed and loads the settings and + other required files. + StreetsMod requires wool, so you have to + install it in order to use this mod. + -webdesigner97 + + + + LazyJ's Fork + ~~~~~~~~~~~~~~~~~~~ + CHANGES + + * The "tools.lua" file was removed because, other than a comment, it + was empty. + * The "tools.lua" dofile line was removed from this file. + * Lua files moved to "modfiles" directory and links edited accordingly. + + ~ LazyJ + +--]] + +if minetest.get_modpath("wool") then + -- Load settings + dofile(minetest.get_modpath("streets").."/modfiles/settings.lua") + -- Register nodes + dofile(minetest.get_modpath("streets").."/modfiles/nodes.lua") + -- Register crafting recipes + dofile(minetest.get_modpath("streets").."/modfiles/crafts.lua") + print("StreetsMod loaded!") +else + minetest.chat_send_all( + "StreetsMod requires wool! Please install it in order to use this mod!" + ) + minetest.chat_send_all("StreetsMod didn't register anything!") + print( + "StreetsMod requires wool! Please install it in order to use this mod!" + ) + print("StreetsMod didn't register anything!") +end + diff --git a/modfiles/crafts.lua b/modfiles/crafts.lua new file mode 100644 index 0000000..099cac0 --- /dev/null +++ b/modfiles/crafts.lua @@ -0,0 +1,263 @@ +--[[ + + CHANGES + + * Cheapened the crafting recipe for emergency phones. They were too + expensive and provided too little heart-point boost for their expense + that player the very, very few players who crafted them regretted it. + Emergency phones became one of the most *undesirable* items on our + server. + * Removed the chat messages and coord announcement. Most players, on our + server, don't want their coordinates broadcast and the heart-point line + above the hot-bar is enough to see the increase in health. + * The recuperative powers of the emgergency phone were too limited. + Couple that with the very expensive crafting recipe and the emergency + phone was just not worth it. So I removed the minimum heart-point + requirement and boosted the heart-point increase to full-recovery. + * Increased the light output to 14. Hey, it's an emergency! ;)- + + ~ LazyJ + +--]] + + +--Asphalt block + minetest.register_craft({ + type = "cooking", + output = 'streets:asphalt', + recipe = "default:gravel", + cooktime = 2, + }) + + + +--Asphalt block with side line + minetest.register_craft({ + output = 'streets:asphalt_side 9', + recipe = { + {'wool:white', 'streets:asphalt', 'streets:asphalt'}, + {'wool:white', 'streets:asphalt', 'streets:asphalt'}, + {'wool:white', 'streets:asphalt', 'streets:asphalt'}, + } + }) + + + +--Asphalt block with middle dashed line + minetest.register_craft({ + output = 'streets:asphalt_middle_dashed 9', + recipe = { + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + {'streets:asphalt', 'streets:asphalt', 'streets:asphalt'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + } + }) + + + +--Asphalt block with middle solid line + minetest.register_craft({ + output = 'streets:asphalt_middle 9', + recipe = { + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + } + }) + + + +--Asphalt block with lines for edge + minetest.register_craft({ + output = 'streets:asphalt_outer_edge 9', + recipe = { + {'wool:white', 'wool:white', 'wool:white'}, + {'wool:white', 'streets:asphalt', 'streets:asphalt'}, + {'wool:white', 'streets:asphalt', 'streets:asphalt'}, + } + }) + + + +--Asphalt block with manhole + minetest.register_craft({ + output = 'streets:manhole 9', + recipe = { + {'streets:asphalt', 'streets:asphalt', 'streets:asphalt'}, + {'streets:asphalt', 'default:steel_ingot', 'streets:asphalt'}, + {'streets:asphalt', 'streets:asphalt', 'streets:asphalt'}, + } + }) + + + +--Concrete block + minetest.register_craft({ + output = 'streets:concrete 2', + recipe = { + {'', '', ''}, + {'', '', ''}, + {'default:stone', '', ''}, + } + }) + + + +--Steel frame + minetest.register_craft({ + output = 'streets:steel_support 5', + recipe = { + {'default:steel_ingot', '', 'default:steel_ingot'}, + {'', 'default:steel_ingot', ''}, + {'default:steel_ingot', '', 'default:steel_ingot'}, + } + }) + + + +--Concrete seperating wall + minetest.register_craft({ + output = 'streets:seperating_wall 5', + recipe = { + {'', 'streets:concrete', ''}, + {'', 'streets:concrete', ''}, + {'streets:concrete', 'streets:concrete', 'streets:concrete'}, + } + }) + + + +--Asphalt block with "P" + minetest.register_craft({ + output = 'streets:asphalt_parking 9', + recipe = { + {'streets:asphalt', 'wool:white', 'wool:white'}, + {'streets:asphalt', 'wool:white', 'wool:white'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + } + }) + + + +if ENABLE_EMERGENCY_PHONE then + +--Emergency phone + minetest.register_craft({ + output = 'streets:emergency_phone 1', + recipe = { + {'default:mese_crystal','default:mese_crystal','default:mese_crystal'}, + {'default:steel_ingot', 'default:apple', 'default:steel_ingot'}, + {'default:steel_ingot', 'default:stick', 'default:steel_ingot'}, + } + }) + +end + + + +--Asphalt stairs + minetest.register_craft({ + output = 'streets:asphalt_stairs 8', + recipe = { + {'streets:asphalt', '', ''}, + {'streets:asphalt', 'streets:asphalt', ''}, + {'streets:asphalt', 'streets:asphalt', 'streets:asphalt'}, + } + }) + + + +--Asphalt stairs (flipped) + minetest.register_craft({ + output = 'streets:asphalt_stairs 8', + recipe = { + {'', '', 'streets:asphalt'}, + {'', 'streets:asphalt', 'streets:asphalt'}, + {'streets:asphalt', 'streets:asphalt', 'streets:asphalt'}, + } + }) + + + +--Asphalt slab + minetest.register_craft({ + output = 'streets:asphalt_slab 6', + recipe = { + {'', '', ''}, + {'', '', ''}, + {'streets:asphalt', 'streets:asphalt', 'streets:asphalt'}, + } + }) + + + +--delineator + minetest.register_craft({ + output = 'streets:delineator 5', + recipe = { + {'', 'default:torch', ''}, + {'', 'default:stick', ''}, + {'', 'default:stick', ''}, + } + }) + + + +--Asphalt block with arrow straight + minetest.register_craft({ + output = 'streets:asphalt_arrow_straight 9', + recipe = { + {'streets:asphalt', 'streets:asphalt', 'streets:asphalt'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + } + }) + + + +--Asphalt block with arrow left + minetest.register_craft({ + output = 'streets:asphalt_arrow_left 9', + recipe = { + {'streets:asphalt', 'streets:asphalt', 'streets:asphalt'}, + {'wool:white', 'wool:white', 'streets:asphalt'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + } + }) + + + +--Asphalt block with arrow right + minetest.register_craft({ + output = 'streets:asphalt_arrow_right 9', + recipe = { + {'streets:asphalt', 'streets:asphalt', 'streets:asphalt'}, + {'streets:asphalt', 'wool:white', 'wool:white'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + } + }) + + + +--Asphalt block with arrow straight + left + minetest.register_craft({ + output = 'streets:asphalt_arrow_straight_left 9', + recipe = { + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + {'wool:white', 'wool:white', 'streets:asphalt'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + } + }) + + + +--Asphalt block with arrow straight + right + minetest.register_craft({ + output = 'streets:asphalt_arrow_straight_right 9', + recipe = { + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + {'streets:asphalt', 'wool:white', 'wool:white'}, + {'streets:asphalt', 'wool:white', 'streets:asphalt'}, + } + }) + diff --git a/modfiles/nodes.lua b/modfiles/nodes.lua new file mode 100644 index 0000000..4f7a0c5 --- /dev/null +++ b/modfiles/nodes.lua @@ -0,0 +1,353 @@ +--[[ + + CHANGES + + * Updated the code a bit. Replaced "tiles" with "tiles" + * Added sounds (default stone) + * Added screwdriver compatibility to manholes. + * Added low-level light to asphalt stuff so roads are easier to see + at night. Pretend it's the reflective yellow and white road paint + shining in your headlights. + * Emergency Phone - Disabled the minimal heart-point requirement, + increased the heart-point boost to full recovery, made them diggable by + all tools. In their original configuration, the recipe was too expensive + and the health boost to little that they quickly became an undesireable + item. Nobody wanted them. + + POSSIBLE FUTURE CHANGES + + * Make asphalt stuff even harder to dig. + I had considered adding all tools, breakable by hand and making all + asphalt stuff easy to dig but after counciling with one of our + moderators it seemed better to leave the asphalt difficult to dig as a + way to annoy griefers. Road builders on our server will have supplies + to offset the extra difficulty of digging asphalt stuff. Roadwork is + very important and needs to be encouraged. Making asphalt stuff + difficult to dig may go against that encouragement. Roads are difficult + to set protection on because they cut through so many players areas + and builds. If the asphalt stuff were made as hard as possible, that + would at least slow-up any attempts to grief the roads by digging them. + Time and experimentation will tell. Eventually we'll find the right + combination mateiral hardness and ease of use. To make any node as + difficult as possible to dig, limit the groups to only one tool and + increase the level of difficulty to 1. + + ~ LazyJ, 2014_06_15 + +--]] + +-- Asphalt block + minetest.register_node("streets:asphalt", { + description = "Asphalt", + tiles = {"streets_asphalt.png"}, + drawtype = "normal", + light_source = 5, + groups = {cracky=1}, + --groups = {cracky=1, level=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with side line + minetest.register_node("streets:asphalt_side", { + description = "Asphalt with side line", + tiles = {"streets_asphalt_side.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with middle dashed line + minetest.register_node("streets:asphalt_middle_dashed", { + description = "Asphalt with middle dashed line", + tiles = {"streets_asphalt_middle_dashed.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with middle solid line + minetest.register_node("streets:asphalt_middle", { + description = "Asphalt with middle solid line", + tiles = {"streets_asphalt_middle_solid.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with solid line for outer edge + minetest.register_node("streets:asphalt_outer_edge", { + description = "Asphalt with solid line for outer edge", + tiles = {"streets_asphalt_outer_edge.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with manhole + minetest.register_node("streets:manhole", { + description = "Asphalt block with manhole", + tiles = {"streets_manhole.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with "P"-sign + minetest.register_node("streets:asphalt_parking", { + description = "Asphalt block with a parking sign", + tiles = {"streets_p.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with Arrow straight + minetest.register_node("streets:asphalt_arrow_straight", { + description = "Asphalt block with arrow", + tiles = {"streets_arrow_straight.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with Arrow straight + left + minetest.register_node("streets:asphalt_arrow_straight_left", { + description = "Asphalt block with arrow", + tiles = {"streets_arrow_straight_left.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with Arrow left + minetest.register_node("streets:asphalt_arrow_left", { + description = "Asphalt block with arrow", + tiles = {"streets_arrow_left.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with Arrow right + minetest.register_node("streets:asphalt_arrow_right", { + description = "Asphalt block with arrow", + tiles = {"streets_arrow_right.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Asphalt with Arrow straight + right + minetest.register_node("streets:asphalt_arrow_straight_right", { + description = "Asphalt block with arrow", + tiles = {"streets_arrow_straight_right.png", "streets_asphalt.png"}, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Concrete + minetest.register_node("streets:concrete", { + description = "Concrete Block", + tiles = {"streets_concrete.png"}, + drawtype = "normal", + paramtype = "light", + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Concrete seperating wall + minetest.register_node("streets:seperating_wall", { + description = "Seperating wall", + tiles = {"streets_concrete.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + node_box = { + type = "fixed", + fixed = { {-0.4, -0.5, -0.5, 0.4, -0.4, 0.5}, + {-0.1, -0.4, -0.5, 0.1, 0.5, 0.5}} + } + }) + + + +-- Asphalt stairs + minetest.register_node("streets:asphalt_stairs", { + description = "Asphalt stairs", + tiles = {"streets_asphalt.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + {-0.5, 0, 0, 0.5, 0.5, 0.5}, + }, + }, + }) + + + +-- Asphalt slab + minetest.register_node("streets:asphalt_slab", { + description = "Asphalt slab", + tiles = {"streets_asphalt.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + light_source = 5, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + }, + }, + }) + + + +-- delineator + minetest.register_node("streets:delineator", { + description = "delineator", + tiles = {"streets_delineator_top.png","streets_delineator.png"}, + drawtype = "nodebox", + paramtype = "light", + groups = {cracky=3, oddly_breakable_by_hand=2}, + light_source = DELINEATOR_LIGHT_RANGE, + groups = {cracky=1}, + sunlight_propagates = true, + node_box = { + type = "fixed", + fixed = { + {-0.1, -0.5, -0.1, 0.1, 0.5, 0.1}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.1, -0.5, -0.1, 0.1, 0.5, 0.1}, + }, + }) + + + +-- Steel frame + minetest.register_node("streets:steel_support", { + description = "Steel frame", + tiles = {"streets_support.png"}, + drawtype = "glasslike", + paramtype = "light", + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + + +-- Emergency Phone (only if enabled) + if ENABLE_EMERGENCY_PHONE then + minetest.register_node("streets:emergency_phone", { + description = "Emergency Phone", + tiles = { + "streets_sos_top.png","streets_sos_bottom.png", + "streets_sos_side.png","streets_sos_side.png", + "streets_sos_side.png","streets_sos_front.png" + }, + drawtype = "normal", + paramtype = "light", + paramtype2 = "facedir", + -- Just hard enough to punch for health, but not so hard that + -- it wears down tools. Set it, use it, dig it, move on. ~ LazyJ + groups = { + cracky=2, crumbly=2, choppy=2, snappy=2, + oddly_breakable_by_hand=2, dig_immediate=2 + }, + light_source = 14, -- Increased ~ LazyJ + sounds = default.node_sound_stone_defaults(), + on_construct = function(pos) + local meta = minetest.env:get_meta(pos) + meta:set_string("infotext", "S.O.S") + end, + on_punch = function(pos, node, puncher) + -- Most of our players don't want their coords annouced to + -- everyone and the increase in heart-points is the better way + -- to confirm "healing" since chat can get flooded with other + -- stuff from other mods and regular chat. + -- The healing trigger and limited health restoration coupled + -- with the expensive crafting recipe made the emergency phones + -- an undesirable item. I'm tempted to make a cheaper recipe for + -- them and either find a better purpose for them or just + -- relegate them to a design block. + -- ~ LazyJ + puncher:set_hp(20) + end + }) + else + print("StreetsMod: -!- Emergency-Phone is disabled!") + end diff --git a/modfiles/settings.lua b/modfiles/settings.lua new file mode 100644 index 0000000..730e70a --- /dev/null +++ b/modfiles/settings.lua @@ -0,0 +1,10 @@ +-- This file stores all settings for the "StreetsMod" + +-- Emergency Phone +-- true or false -> default = true | Do you want it to be enabled in your game? + ENABLE_EMERGENCY_PHONE = true + +-- Delineator +-- a number -> default = 8 | How much light do you want it to give? + DELINEATOR_LIGHT_RANGE = 8 + diff --git a/textures/streets_arrow_left.png b/textures/streets_arrow_left.png new file mode 100644 index 0000000..c1d0da4 Binary files /dev/null and b/textures/streets_arrow_left.png differ diff --git a/textures/streets_arrow_right.png b/textures/streets_arrow_right.png new file mode 100644 index 0000000..bcc1df9 Binary files /dev/null and b/textures/streets_arrow_right.png differ diff --git a/textures/streets_arrow_straight.png b/textures/streets_arrow_straight.png new file mode 100644 index 0000000..3add4be Binary files /dev/null and b/textures/streets_arrow_straight.png differ diff --git a/textures/streets_arrow_straight_left.png b/textures/streets_arrow_straight_left.png new file mode 100644 index 0000000..0de2cd7 Binary files /dev/null and b/textures/streets_arrow_straight_left.png differ diff --git a/textures/streets_arrow_straight_right.png b/textures/streets_arrow_straight_right.png new file mode 100644 index 0000000..45188af Binary files /dev/null and b/textures/streets_arrow_straight_right.png differ diff --git a/textures/streets_asphalt.png b/textures/streets_asphalt.png new file mode 100644 index 0000000..3740905 Binary files /dev/null and b/textures/streets_asphalt.png differ diff --git a/textures/streets_asphalt_middle_dashed.png b/textures/streets_asphalt_middle_dashed.png new file mode 100644 index 0000000..ed18736 Binary files /dev/null and b/textures/streets_asphalt_middle_dashed.png differ diff --git a/textures/streets_asphalt_middle_solid.png b/textures/streets_asphalt_middle_solid.png new file mode 100644 index 0000000..05f819f Binary files /dev/null and b/textures/streets_asphalt_middle_solid.png differ diff --git a/textures/streets_asphalt_outer_edge.png b/textures/streets_asphalt_outer_edge.png new file mode 100644 index 0000000..366c5b8 Binary files /dev/null and b/textures/streets_asphalt_outer_edge.png differ diff --git a/textures/streets_asphalt_side.png b/textures/streets_asphalt_side.png new file mode 100644 index 0000000..3fcb106 Binary files /dev/null and b/textures/streets_asphalt_side.png differ diff --git a/textures/streets_concrete.png b/textures/streets_concrete.png new file mode 100644 index 0000000..e25342f Binary files /dev/null and b/textures/streets_concrete.png differ diff --git a/textures/streets_delineator.png b/textures/streets_delineator.png new file mode 100644 index 0000000..51663e4 Binary files /dev/null and b/textures/streets_delineator.png differ diff --git a/textures/streets_delineator_top.png b/textures/streets_delineator_top.png new file mode 100644 index 0000000..3551ffe Binary files /dev/null and b/textures/streets_delineator_top.png differ diff --git a/textures/streets_manhole.png b/textures/streets_manhole.png new file mode 100644 index 0000000..cb08d97 Binary files /dev/null and b/textures/streets_manhole.png differ diff --git a/textures/streets_p.png b/textures/streets_p.png new file mode 100644 index 0000000..30a1b8e Binary files /dev/null and b/textures/streets_p.png differ diff --git a/textures/streets_sos_bottom.png b/textures/streets_sos_bottom.png new file mode 100644 index 0000000..0437ef1 Binary files /dev/null and b/textures/streets_sos_bottom.png differ diff --git a/textures/streets_sos_front.png b/textures/streets_sos_front.png new file mode 100644 index 0000000..80e2c25 Binary files /dev/null and b/textures/streets_sos_front.png differ diff --git a/textures/streets_sos_side.png b/textures/streets_sos_side.png new file mode 100644 index 0000000..af83757 Binary files /dev/null and b/textures/streets_sos_side.png differ diff --git a/textures/streets_sos_top.png b/textures/streets_sos_top.png new file mode 100644 index 0000000..2b5790f Binary files /dev/null and b/textures/streets_sos_top.png differ diff --git a/textures/streets_support.png b/textures/streets_support.png new file mode 100644 index 0000000..e92a88d Binary files /dev/null and b/textures/streets_support.png differ