Skip to content

Commit

Permalink
Fix bleed out state bug
Browse files Browse the repository at this point in the history
  • Loading branch information
segabl committed Dec 21, 2017
1 parent ddcf440 commit 76281c6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions thirdperson.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ if not ThirdPerson then
UnitBase.pre_destroy(self, unit)
end

-- No contours
self.unit:contour().add = function () end

local look_vec_modified = Vector3()
self.unit:movement().update = function (self, ...)
HuskPlayerMovement.update(self, ...)
Expand Down Expand Up @@ -132,9 +135,6 @@ if not ThirdPerson then
end
end

self.unit:movement().set_need_assistance = function () end
self.unit:movement().set_need_revive = function () end

-- needs work, doesnt get all criminals heads
self.unit:movement().set_head_visibility = function (self, visible)
local char_name = managers.criminals.convert_old_to_new_character_workname(managers.criminals:character_name_by_unit(self._unit))
Expand Down Expand Up @@ -204,8 +204,6 @@ if not ThirdPerson then
self.unit:movement():update_armor()
self.unit:movement():set_head_visibility(not ThirdPerson.settings.immersive_first_person)

self.unit:contour():remove("teammate")

-- Call missed events
local handler = managers.network and managers.network._handlers and managers.network._handlers.unit
if handler then
Expand Down

0 comments on commit 76281c6

Please sign in to comment.