mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
fix in-game models resetting on death
This commit is contained in:
parent
f8728e92b4
commit
baac067284
@ -57,10 +57,13 @@ function MUTATOR:Mutate(path)
|
||||
|
||||
if self.Owner:IsPlayer() and path:lower() ~= self.Entity:GetModel():lower() then
|
||||
self.Owner:ChatPrint('[PAC3] ERROR: ' .. path .. " is not a valid model on the server.")
|
||||
else
|
||||
self.actual_model = path
|
||||
end
|
||||
else
|
||||
local translated = player_manager.TranslatePlayerModel(path)
|
||||
self.Entity:SetModel(translated)
|
||||
self.actual_model = translated
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user