Skip to content

Commit

Permalink
rename to fit better the purpose of the mod
Browse files Browse the repository at this point in the history
  • Loading branch information
SvetlozarValchev committed Oct 22, 2023
1 parent 97f1626 commit 2c39547
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ local function handleVehicleData()
)
end

local function dsxAdvancedUpdate(throttle, brake, isABSActive, airSpeedKmh, beamDamage)
local function dsxUpdate(throttle, brake, isABSActive, airSpeedKmh, beamDamage)
state.throttle = throttle
state.brake = brake
state.isABSActive = isABSActive
Expand All @@ -126,5 +126,5 @@ local function dsxAdvancedUpdate(throttle, brake, isABSActive, airSpeedKmh, beam
handleVehicleData()
end

M.dsxAdvancedUpdate = dsxAdvancedUpdate
M.dsxUpdate = dsxUpdate
return M
13 changes: 0 additions & 13 deletions lua/vehicle/extensions/auto/dsxAdvancedHapticVehicleDispatcher.lua

This file was deleted.

64 changes: 0 additions & 64 deletions lua/vehicle/extensions/auto/dsxTriggerEnum.lua

This file was deleted.

13 changes: 13 additions & 0 deletions lua/vehicle/extensions/auto/dsxVehicleDispatcher.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
local M = {}

local function updateGFX(dt)
if not playerInfo.firstPlayerSeated then
return
end

obj:queueGameEngineLua(string.format("extensions.hook('dsxUpdate', %f, %f, %s, %f, %f)", input.state.throttle.val, input.state.brake.val, electrics.values.absActive == 1, electrics.values.airspeed * 3.6, beamstate.damage))
end

M.updateGFX = updateGFX

return M
2 changes: 2 additions & 0 deletions scripts/dsx/modScript.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
load("dsx")
registerCoreModule("dsx")
2 changes: 0 additions & 2 deletions scripts/dsxAdvancedHaptic/modScript.lua

This file was deleted.

0 comments on commit 2c39547

Please sign in to comment.