Skip to content

Commit

Permalink
Reorganize new fuel tank types
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman committed Oct 7, 2023
1 parent 1dd9033 commit f86a4a2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 34 deletions.
18 changes: 18 additions & 0 deletions lua/acf/entities/fuel_tanks/box.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
local FuelTanks = ACF.Classes.FuelTanks

FuelTanks.Register("FTS_B", {
Name = "Fuel Box",
Description = "Scalable fuel tank; required for engines to work."
})

do
FuelTanks.RegisterItem("Box", "FTS_B", {
Name = "Fuel Box",
Description = "", -- Blank to allow for dynamic descriptions better
Model = "models/fueltank/fueltank_4x4x4.mdl",
Shape = "Box",
Preview = {
FOV = 120,
},
})
end
18 changes: 18 additions & 0 deletions lua/acf/entities/fuel_tanks/drum.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
local FuelTanks = ACF.Classes.FuelTanks

FuelTanks.Register("FTS_D", {
Name = "Fuel Drum",
Description = "Scalable fuel drum; required for engines to work."
})

do
FuelTanks.RegisterItem("Drum", "FTS_D", {
Name = "Fuel Drum",
Description = "Tends to explode when shot.",
Model = "models/props_c17/oildrum001_explosive.mdl",
Shape = "Drum",
Preview = {
FOV = 120,
},
})
end
34 changes: 0 additions & 34 deletions lua/acf/entities/fuel_tanks/misc.lua
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
local FuelTanks = ACF.Classes.FuelTanks

FuelTanks.Register("FTS_B", {
Name = "Fuel Box",
Description = "Scalable fuel tank; required for engines to work."
})

do
FuelTanks.RegisterItem("Box", "FTS_B", {
Name = "Fuel Box",
Description = "", -- Blank to allow for dynamic descriptions better
Model = "models/fueltank/fueltank_4x4x4.mdl",
Shape = "Box",
Preview = {
FOV = 120,
},
})
end

FuelTanks.Register("FTS_D", {
Name = "Fuel Drum",
Description = "Scalable fuel drum; required for engines to work."
})

do
FuelTanks.RegisterItem("Drum", "FTS_D", {
Name = "Fuel Drum",
Description = "Tends to explode when shot.",
Model = "models/props_c17/oildrum001_explosive.mdl",
Shape = "Drum",
Preview = {
FOV = 120,
},
})
end

FuelTanks.Register("FTS_M", {
Name = "Miscellaneous",
Description = "Random fuel tank models, some of them can only be used for refueling.",
Expand Down

0 comments on commit f86a4a2

Please sign in to comment.