Skip to content

Commit

Permalink
fix the prefix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicSoapyBoi committed Jul 14, 2024
1 parent eaf7fa2 commit f28aaef
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lua/charactertweakdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,30 @@ function CharacterTweakData:_presets(tweak_data, ...)
end

Hooks:PostHook(CharacterTweakData, "init", "eclipse_init", function(self)
self._prefix_data_p1 = {
cop = function ()
return self._unit_prefixes.cop
end,
swat = function ()
return self._unit_prefixes.swat
end,
heavy_swat = function ()
return self._unit_prefixes.heavy_swat
end,
taser = function ()
return self._unit_prefixes.taser
end,
cloaker = function ()
return self._unit_prefixes.cloaker
end,
bulldozer = function ()
return self._unit_prefixes.bulldozer
end,
medic = function ()
return self._unit_prefixes.medic
end
}

-- fix beat cops being stuck on some spawn points in newer heists
self.cop.access = {
"cop",
Expand Down

0 comments on commit f28aaef

Please sign in to comment.