Added Project Files

Added all files from the project and edited the readme.md
This commit is contained in:
2025-09-18 00:51:59 +01:00
parent afd7535bf3
commit 63f78c2b8e
17 changed files with 531 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
require "Items/Distributions"
require "Items/ProceduralDistributions"
require "Vehicles/VehicleDistributions"
SuburbsDistributions["all"]["Trash"] = SuburbsDistributions["all"]["bin"]
SuburbsDistributions["all"]["TrashPaper"] = SuburbsDistributions["all"]["filingcabinet"]

View File

@@ -0,0 +1,31 @@
-- this method was copied from the excellent Skateboard mod by Dislaik https://steamcommunity.com/sharedfiles/filedetails/?id=2728300240
-- I considered making new code from scratch, albeit I would still be "copying their homework", but decided against, for the sake of ease of comprehension + conistency
if not isServer() then return end
local Commands = {}
Commands.PA_Trash = {}
Commands.PA_Trash.Spawn = function(origin, args)
-- print("Trash command recieved " .. tostring(origin) .. " - " .. tostring(args))
local cell = origin:getCell()
-- if not cell then print("No cell!") return end
local x = args.x
local y = args.y
local z = args.z
-- print("Trash command recieved " .. tostring(origin) .. " - " .. tostring(cell) .. " - " .. tostring(args))
-- print("Trash command recieved " .. tostring(x) .. " - " .. tostring(y) .. " - " .. tostring(z))
local square = cell:getGridSquare(x, y, z) or cell:getOrCreateGridSquare( x, y, x)
-- local square = args.square
-- if not square then print("No square!") return end
-- print("Recieved trash call from client -" .. tostring(origin) .. " - " .. tostring(square))
trashSquare(square)
end
local onClientCommand = function(module, command, player, args)
if Commands[module] and Commands[module][command] then
Commands[module][command](player, args)
end
end
Events.OnClientCommand.Add(onClientCommand)

View File

@@ -0,0 +1,69 @@
require "Camping/camping_fuel"
----------------------- Add Fuel for Campfire -----------------------
local i = 0
while i < 54 do
local trash = ("trash_01_" .. (tostring(i)))
campingFuelType[trash]= 15.0/60
campingLightFireType[trash]= 15.0/60
i = i +1
end
-- campingFuelType.trash_01_0 = 5.0/60
-- campingFuelType["trash_01_0"] = 5.0/60
-- campingFuelType.trash_01_1 = 5.0/60
-- campingFuelType["trash_01_1"] = 5.0/60
-- campingFuelType.trash_01_2 = 5.0/60
-- campingFuelType["trash_01_2"] = 5.0/60
-- campingFuelType.trash_01_3 = 5.0/60
-- campingFuelType["trash_01_3"] = 5.0/60
-- campingFuelType.trash_01_4 = 5.0/60
-- campingFuelType["trash_01_4"] = 5.0/60
-- campingFuelType.trash_01_5 = 5.0/60
-- campingFuelType["trash_01_5"] = 5.0/60
-- campingFuelType.trash_01_6 = 5.0/60
-- campingFuelType["trash_01_6"] = 5.0/60
-- campingFuelType.trash_01_7 = 5.0/60
-- campingFuelType["trash_01_7"] = 5.0/60
-- campingFuelType.trash_01_8 = 5.0/60
-- campingFuelType["trash_01_8"] = 5.0/60
-- campingFuelType.trash_01_9 = 5.0/60
-- campingFuelType["trash_01_9"] = 5.0/60
-- campingFuelType.trash_01_10 = 5.0/60
-- campingFuelType["trash_01_10"] = 5.0/60
-- campingFuelType.trash_01_11 = 5.0/60
-- campingFuelType["trash_01_11"] = 5.0/60
-- ----------------------- Add Starter for Campfire -----------------------
-- campingLightFireType.trash_01_0 = 5.0/60
-- campingLightFireType["trash_01_0"] = 5.0/60
-- campingLightFireType.trash_01_1 = 5.0/60
-- campingLightFireType["trash_01_1"] = 5.0/60
-- campingLightFireType.trash_01_2 = 5.0/60
-- campingLightFireType["trash_01_2"] = 5.0/60
-- campingLightFireType.trash_01_3 = 5.0/60
-- campingLightFireType["trash_01_3"] = 5.0/60
-- campingLightFireType.trash_01_4 = 5.0/60
-- campingLightFireType["trash_01_4"] = 5.0/60
-- campingLightFireType.trash_01_5 = 5.0/60
-- campingLightFireType["trash_01_5"] = 5.0/60
-- campingLightFireType.trash_01_6 = 5.0/60
-- campingLightFireType["trash_01_7"] = 5.0/60
-- campingLightFireType.trash_01_1 = 5.0/60
-- campingLightFireType["trash_01_1"] = 5.0/60
-- campingLightFireType.trash_01_1 = 5.0/60
-- campingLightFireType["trash_01_1"] = 5.0/60
-- campingLightFireType.trash_01_1 = 5.0/60
-- campingLightFireType["trash_01_1"] = 5.0/60
-- campingLightFireType.trash_01_1 = 5.0/60
-- campingLightFireType["trash_01_1"] = 5.0/60
-- campingLightFireType.trash_01_11 = 5.0/60
-- campingLightFireType["trash_01_11"] = 5.0/60