Skip to content
Open

Dev #509

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
ee8a4cf
Changed ammo crate sizing
Stooberton Sep 25, 2025
c8cffb2
Change HEAT damage multiplier from 10x pre spall to 4x pre spall
LengthenedGradient Nov 2, 2025
0c5785f
Changed Model Data Gathering
Stooberton Nov 2, 2025
7d059b4
Missiles and bombs can now be seen inside crates
Stooberton Nov 2, 2025
f6e1cd8
Merge branch 'crate-sizing' into dev
Stooberton Nov 2, 2025
9a86656
Try fixing iteration issue missing bullets (?)
marchc1 Nov 3, 2025
a7c970a
Revert "Try fixing iteration issue missing bullets (?)"
marchc1 Nov 3, 2025
57c9c9d
Stop making debris for primitives
marchc1 Nov 3, 2025
01db8cd
Improve the aircraft baseplate explosion effect
marchc1 Nov 3, 2025
a5216dc
Null check just in case
marchc1 Nov 3, 2025
65b2b67
Tracers no longer affect projectile length
Stooberton Nov 3, 2025
98ce7c4
Set Ammo Crate max size to 192x96x96
Stooberton Nov 4, 2025
ce7ffce
Safezone editor prototype WIP
marchc1 Nov 4, 2025
4563ae6
Fix a few issues, move things around
marchc1 Nov 4, 2025
1c68c3a
Fix delta-time calc in scanner, safezone editor
marchc1 Nov 4, 2025
eb951e3
Update safezones.lua
marchc1 Nov 4, 2025
87ccdd0
Fix ListView data height
thecraftianman Nov 4, 2025
1e0de00
Merge branch 'dev' of https://github.com/ACF-Team/ACF-3 into dev
thecraftianman Nov 4, 2025
471fe85
Add entity limit settings to the menu
thecraftianman Nov 4, 2025
bce5a99
Make Missiles load its own Workshop content
thecraftianman Nov 4, 2025
33a1e4e
Remove some useless prints
thecraftianman Nov 4, 2025
2550e0c
Overhaul ammo rendering
Stooberton Nov 6, 2025
36a23cf
Temporary fix for fuel
marchc1 Nov 7, 2025
75bcee0
Give PostMenuSpawn the input Trace
marchc1 Nov 9, 2025
d21b435
Added Supply Crates
Stooberton Nov 9, 2025
6dc37f6
Revert "Changed Model Data Gathering"
marchc1 Nov 9, 2025
a6ae3b7
Add ACF.NiceNumber
marchc1 Nov 9, 2025
a228a4e
Better format for HE blast energy
marchc1 Nov 9, 2025
337a1c7
Fix comparing previous with nil
marchc1 Nov 9, 2025
7a300ca
Check class of incoming updateAmmoCount target
marchc1 Nov 9, 2025
6059243
Fix missing contraption tables causing errors
marchc1 Nov 9, 2025
5e56a46
Add backwards compat for fuel size
marchc1 Nov 9, 2025
4e14c56
Add autoregister capabilities for better backwards compat
marchc1 Nov 9, 2025
7b2af29
Detour starfall_component stool to allow baseplate linking
marchc1 Nov 9, 2025
135f46e
Refactor verification into a context object
marchc1 Nov 9, 2025
2ee8512
Add wiremod inputs, outputs for autoreg
marchc1 Nov 9, 2025
6b064d5
Add ACF_OnSpawn
marchc1 Nov 9, 2025
a77d589
Convert piledrivers to separated files + autoreg
marchc1 Nov 9, 2025
45dcbf7
Fix GroupClassType.Getter
marchc1 Nov 9, 2025
78e67bf
oops, wrong key to change
marchc1 Nov 9, 2025
4c9a8f9
Missing dep for registration
marchc1 Nov 9, 2025
006b128
oops, wrong parameter
marchc1 Nov 9, 2025
23b333d
PDs: missing deps, various other screwups
marchc1 Nov 9, 2025
562c63f
Pass Player, ClientData to ACF_Limit
marchc1 Nov 9, 2025
a50121c
Fix piledriver limit
marchc1 Nov 9, 2025
17bdc8d
Separate baseplates into their own files
marchc1 Nov 9, 2025
d158bab
Update crew.lua
marchc1 Nov 9, 2025
82bd901
Merge spawning/updating/validation into one file
marchc1 Nov 9, 2025
738959f
these files dont exist now
marchc1 Nov 9, 2025
5fd2cfd
Fixed localizations
Stooberton Nov 9, 2025
8e7fd55
UserVars isn't needed for verif. contexts
marchc1 Nov 10, 2025
ff3c10d
Expose verif. contexts
marchc1 Nov 10, 2025
a2a853a
Removed leftovers mentioning tracers affect projectile length
Stooberton Nov 10, 2025
af6158d
Supplies dont refill things in-combat
Stooberton Nov 10, 2025
afc0307
Merge branch 'acf_supply' into dev
Stooberton Nov 10, 2025
eb5085e
Fix supplies not saving size when duped
Stooberton Nov 10, 2025
6307245
Add Breech Rotation Check
LengthenedGradient Nov 10, 2025
2a8aef6
Merge branch 'dev' of https://github.com/ACF-Team/ACF-3 into dev
LengthenedGradient Nov 10, 2025
cb20435
Make last commit respect legal checks
LengthenedGradient Nov 10, 2025
b10e293
Attempt to integrate uservars with the menu
marchc1 Nov 10, 2025
39e6ad3
Check the key changed here
marchc1 Nov 10, 2025
44d916a
Merge branch 'autoreg-based-menus' into dev
marchc1 Nov 10, 2025
9245644
Explosion FX changes
marchc1 Nov 10, 2025
4c6ed56
Update AIO steer logic
LengthenedGradient Nov 10, 2025
97e2cc4
Merge branch 'dev' of https://github.com/ACF-Team/ACF-3 into dev
LengthenedGradient Nov 10, 2025
0984380
Improve AIO car instructions
LengthenedGradient Nov 10, 2025
026e172
Typo
LengthenedGradient Nov 10, 2025
7e20832
Update init.lua
LengthenedGradient Nov 10, 2025
64451fa
Baseplate type think hooks
marchc1 Nov 10, 2025
8e3e6a1
This comment was wrong
marchc1 Nov 10, 2025
073d1ce
Bidirectional link tests
marchc1 Nov 10, 2025
b61e0f3
Revert "Bidirectional link tests"
marchc1 Nov 10, 2025
ef58b40
Expand upon linking
marchc1 Nov 10, 2025
283211a
Rewrite guns to use this new system
marchc1 Nov 10, 2025
86563ab
Add custom arguments for class methods
marchc1 Nov 10, 2025
9cb7d50
Unlink might happen here - don't give more info
marchc1 Nov 10, 2025
d8aae6e
Move checks around here
marchc1 Nov 10, 2025
1c0f0c7
Update init.lua
marchc1 Nov 10, 2025
015519d
Fix unlinking issues
marchc1 Nov 10, 2025
7bee854
Hide G-Force tick interval on non-aircraft BP menu
marchc1 Nov 11, 2025
10854cd
Add basic water jet entity structure
LengthenedGradient Nov 11, 2025
f5a6ddc
Basic water jet menu support
LengthenedGradient Nov 11, 2025
a760cd8
WIP
LengthenedGradient Nov 11, 2025
510299d
Commented test
marchc1 Nov 11, 2025
24ebac4
Add reload angle option to AIO
LengthenedGradient Nov 11, 2025
726fe91
Render aim indicators for all AIO linked weapons
LengthenedGradient Nov 11, 2025
4998992
Satisfy Linter
LengthenedGradient Nov 11, 2025
cb3b29a
Please?
LengthenedGradient Nov 12, 2025
cc00b0b
Steve :sob:
LengthenedGradient Nov 12, 2025
e7f756e
Finally?
LengthenedGradient Nov 12, 2025
a71a4a4
WIP
LengthenedGradient Nov 12, 2025
f8a2398
Fixed ammo crates not exploding
Stooberton Nov 12, 2025
acb9c7f
Added new shape models
Stooberton Nov 12, 2025
ce0398b
AIO weld brake removal for cars, hud fix and instructions improvements
LengthenedGradient Nov 12, 2025
1ce0ce1
HE blasts can penetrate
Stooberton Nov 13, 2025
fd5159c
Removed debug prints
Stooberton Nov 13, 2025
1e0227b
Merge branch 'fixing-HE-somewhat' into dev
Stooberton Nov 13, 2025
30ae9fc
Halve RAC ROF
LengthenedGradient Nov 13, 2025
a598c6e
Merge branch 'dev' of https://github.com/ACF-Team/ACF-3 into dev
LengthenedGradient Nov 13, 2025
698485d
:(
LengthenedGradient Nov 13, 2025
feb052e
Update init.lua
marchc1 Nov 14, 2025
3b65f63
Fix
LengthenedGradient Nov 14, 2025
e3e5010
It works... Kinda...
LengthenedGradient Nov 14, 2025
9534003
Add reversing to effectors
LengthenedGradient Nov 14, 2025
a5b7963
Waterjet blade animation
marchc1 Nov 14, 2025
fba485a
Add steering
LengthenedGradient Nov 14, 2025
4697740
:(
LengthenedGradient Nov 14, 2025
4933291
Update baseplate_convert_sv.lua
marchc1 Nov 14, 2025
b5b6c98
Can we get much higher
LengthenedGradient Nov 14, 2025
ac7330d
Update shared.lua
LengthenedGradient Nov 14, 2025
78d37b6
Update init.lua
LengthenedGradient Nov 14, 2025
5a5a535
Merge pull request #508 from ACF-Team/amphibious-experiments
LengthenedGradient Nov 14, 2025
6a436e6
Satisfy Linter
LengthenedGradient Nov 14, 2025
dc348e4
Add function to restore crew for gamemodes
LengthenedGradient Nov 14, 2025
dd4336b
Fix FOV of various models in menu and fix fuel shape not being selected
LengthenedGradient Nov 14, 2025
a9a526e
:(
LengthenedGradient Nov 14, 2025
a01ac6c
Automatically scale ModelPreviews if FOV not specified
LengthenedGradient Nov 15, 2025
e889f3b
Satisfy Linter
LengthenedGradient Nov 15, 2025
49eb9ce
Autoloader buff + various minor fixes
thecraftianman Nov 15, 2025
5ebe220
Update contraption_sv.lua
marchc1 Nov 15, 2025
0eb5644
Try fixing controllers not linking to engines
marchc1 Nov 15, 2025
79f19be
Revert "Try fixing controllers not linking to engines"
marchc1 Nov 15, 2025
d9f48fb
Revert RAC ROF and remove HE
LengthenedGradient Nov 16, 2025
d891046
Fix Physical Parent breaking SetModel detour
Stooberton Nov 17, 2025
4febe51
Micro optimize clock
Stooberton Nov 17, 2025
34649e1
Optimized damage.getRandomPos
Stooberton Nov 17, 2025
cc802a9
Moved engine:CalcRPM to ENT:Think
Stooberton Nov 17, 2025
18e7082
Added ModelData validity checks for missing models
Stooberton Nov 20, 2025
6e242d9
Ponder ACF Menu Test
LengthenedGradient Nov 21, 2025
cb28f86
Merge branch 'dev' of https://github.com/ACF-Team/ACF-3 into dev
LengthenedGradient Nov 21, 2025
08aa576
Try to fix worldpen overflows + broken engines
thecraftianman Nov 21, 2025
024f810
Merge branch 'dev' of https://github.com/ACF-Team/ACF-3 into dev
LengthenedGradient Nov 21, 2025
eb72c26
Basic sound support for waterjets
thecraftianman Nov 22, 2025
3b9f02a
More Ponder Stuff
LengthenedGradient Nov 23, 2025
14dcf84
Merge branch 'dev' of https://github.com/ACF-Team/ACF-3 into dev
LengthenedGradient Nov 23, 2025
dc0377d
More Ponder Stuff
LengthenedGradient Nov 23, 2025
189e657
Make lethal weapon distance error more descriptive
LengthenedGradient Nov 23, 2025
c088cb1
Satisfy Linter
LengthenedGradient Nov 23, 2025
17d3b0f
Cleanup Ponder Menu Support
LengthenedGradient Nov 23, 2025
7243d62
Fix Typo
LengthenedGradient Nov 23, 2025
17bc9b9
:(
LengthenedGradient Nov 23, 2025
9fe44de
Finally Fixed
LengthenedGradient Nov 23, 2025
6b40c80
Switch order of length and width in baseplate menu
LengthenedGradient Nov 23, 2025
35169d9
Fix wirelinks overdriving engines
Stooberton Nov 23, 2025
e7376b8
Merge remote-tracking branch 'origin/dev' into dev
Stooberton Nov 23, 2025
3212d48
Disable player contraption limit (see comment)
marchc1 Nov 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/acf/ballistics/world_pen_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function Ballistics.DigTrace(From, To, Filter)

return false
else -- Penetration
return true, Back.HitPos
return true, Dig.StartPos
end
end
end
Expand Down
11 changes: 6 additions & 5 deletions lua/acf/compatibility/baseplate_convert_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,16 @@ function ACF.ConvertEntityToBaseplate(Player, Target)
local permutation = foundTranslation.permutation
local w, l, t = BoxSize[permutation.x], BoxSize[permutation.y], BoxSize[permutation.z]
Baseplate.Class = "acf_baseplate"
Baseplate.Length = w
Baseplate.Width = l
Baseplate.Thickness = t
Baseplate.ACF_UserData = Baseplate.ACF_UserData or {}
Baseplate.ACF_UserData.Length = w
Baseplate.ACF_UserData.Width = l
Baseplate.ACF_UserData.Thickness = t
Baseplate.PhysicsObjects[0].Angle = Baseplate.PhysicsObjects[0].Angle + foundTranslation.addAngles

-- Swap width/thickness if necessary
if foundTranslation.addAngles.z == 90 then
Baseplate.Width = t
Baseplate.Thickness = l
Baseplate.ACF_UserData.Width = t
Baseplate.ACF_UserData.Thickness = l
end

-- Delete everything now
Expand Down
11 changes: 6 additions & 5 deletions lua/acf/contraption/contraption_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,12 @@ do -- ASSUMING DIRECT CONTROL
end

function ENT:SetModel(Model)
-- MARCH: Just a notice - if you get "attempt to index field ACF (a nil value)" issues here,
-- DON'T just add a if self.ACF check - this is intended to be called on ACF entities
-- and they should have an ACF table, so you're just suppressing an issue here, only for it to
-- probably show up later... do more investigation into *why* self.ACF returned nil.
if self.IsACFEntity then Contraption.SetModel(self, self.ACF.Model) return end
if self.IsACFEntity and self.ACF and self.ACF.Model then
-- Only enforce model if the entity has been initialized by ACF
-- ents.Create("acf_ammo") doesn't set ent.ACF, for example
Contraption.SetModel(self, self.ACF.Model)
return
end

SetModel(self, Model)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ hook.Add("cfw.contraption.split", "ACF_CFW_TrackPlayersInContraptions", function
-- Reset the parent and child contraption states
ResetContraptionTimes(ParentContraption)
ResetContraptionTimes(ChildContraption)
--[[
print("Parent: ")
print(" Table Address : " .. tostring(ParentContraption))
print(" Player Count : " .. table.Count(ParentContraption.ACF_TrackPlayers))
print("Child: ")
print(" Table Address : " .. tostring(ChildContraption))
print(" Player Count : " .. table.Count(ChildContraption.ACF_TrackPlayers))
]]
end)

-- Engine hooks to track players entering vehicles
Expand Down Expand Up @@ -98,7 +106,7 @@ function ResetTime(Entity)
QueryTimes[Entity] = nil
Entity:RemoveCallOnRemove("ACF_CleanUpPlayerContraptionCheck")
end

--[[
local Clock = ACF.Utilities.Clock

local NO_CONTRAPTION = 0
Expand All @@ -109,7 +117,7 @@ local OK = 1
local ERROR_MESSAGES = {
[NO_CONTRAPTION] = "must be part of a contraption",
[NO_PLAYER] = "require that a player is inside of the current contraption",
[NO_PLAYER_IN_RANGE] = "require that a player in the contraption is within range of the lethal entity"
[NO_PLAYER_IN_RANGE] = "cannot fire without a nearby seated player in the same contraption"
}

local function PlayerContraptionCheck(Entity)
Expand Down Expand Up @@ -155,4 +163,5 @@ hook.Add("ACF_PreFireWeapon", "ACF_CheckPlayerContraptionLethals", function(Ent)
ACF.DisableEntity(Ent, "Player Error", string.format("%s %s.", Ent.PluralName or Ent:GetClass(), ERROR_MESSAGES[ValidPlayerContraptionState]), 5)
return false
end
end)
end)
]]
5 changes: 5 additions & 0 deletions lua/acf/core/classes/ammo_types/registration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ function AmmoTypes.Register(ID, Base)
end

Classes.AddSimpleFunctions(AmmoTypes, Entries)
Classes.AddSboxLimit({
Name = "_acf_ammo",
Amount = 32,
Text = "Maximum amount of ACF ammo crates a player can create."
})
7 changes: 1 addition & 6 deletions lua/acf/core/classes/armor_types/registration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,4 @@ function ArmorTypes.Register(ID, Base)
return Classes.AddObject(ID, Base, Entries)
end

Classes.AddSimpleFunctions(ArmorTypes, Entries)
Classes.AddSboxLimit({
Name = "_acf_armor",
Amount = 50,
Text = "Maximum amount of ACF procedural armor plates a player can create"
})
Classes.AddSimpleFunctions(ArmorTypes, Entries)
14 changes: 6 additions & 8 deletions lua/acf/core/classes/crew_types/registration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ local Classes = ACF.Classes
local CrewTypes = Classes.CrewTypes
local Entries = Classes.GetOrCreateEntries(CrewTypes)

CreateConVar(
"sbox_max_acf_crew",
8,
FCVAR_ARCHIVE + FCVAR_NOTIFY,
"Maximum amount of ACF crew members a player can create."
)

function CrewTypes.Register(ID, Data)
local Simple = Classes.AddSimple(ID, Entries, Data)
if Simple.LimitConVar then Classes.AddSboxLimit(Simple.LimitConVar) end
return Simple
end

Classes.AddSimpleFunctions(CrewTypes, Entries)
Classes.AddSimpleFunctions(CrewTypes, Entries)
Classes.AddSboxLimit({
Name = "_acf_crew",
Amount = 8,
Text = "Maximum amount of ACF crew members a player can create."
})
Loading