Skip to content

Commit

Permalink
Fix a few broken things
Browse files Browse the repository at this point in the history
- Fixed some broken KEShove tests
- Fixed fuel tank material not showing up the first time you view it in the menu
- Probably fixed #392
  • Loading branch information
thecraftianman committed Mar 13, 2024
1 parent 15007b6 commit 2a69dd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lua/entities/acf_engine/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ local TickInterval = engine.TickInterval
local function GetPitchVolume(Engine)
local RPM = Engine.FlyRPM
local Pitch = Clamp(20 + (RPM * Engine.SoundPitch) * 0.02, 1, 255)
local Throttle = Engine.RevLimited and 0 or Engine.Throttle
-- Rev limiter code disabled because it has issues with the volume delta time, but it's still here if we need it
local Throttle = --[[Engine.RevLimited and 0 or]] Engine.Throttle
local Volume = 0.25 + (0.1 + 0.9 * ((RPM / Engine.LimitRPM) ^ 1.5)) * Throttle * 0.666

return Pitch, Volume * Engine.SoundVolume
Expand Down
3 changes: 2 additions & 1 deletion lua/tests/acf/damage/damage_sv/acf_keshove.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ return {
GetPhysicsObject = function()
return {
IsValid = function() return true end,
ApplyForceOffset = State.applyForceStub
ApplyForceOffset = State.applyForceStub,
GetMass = function() return 1 end,
}
end,
GetChildren = function() return {} end,
Expand Down
2 changes: 1 addition & 1 deletion lua/vgui/acf_panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ function PANEL:AddModelPreview(Model, Rotate)
if not Center then
if ModelData.IsOnStandby(Path) then
ModelData.QueueRefresh(Path, self, function()
self:UpdateModel(Path)
self:UpdateModel(Path, Material)
end)
end

Expand Down

0 comments on commit 2a69dd8

Please sign in to comment.