Added Project Files
Added all files from the project and edited the readme.md
This commit is contained in:
@@ -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"]
|
||||
|
31
Random Corpses/media/lua/server/PA_Trash_ClientComms.lua
Normal file
31
Random Corpses/media/lua/server/PA_Trash_ClientComms.lua
Normal 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)
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user