Also apply color to breaking entity. Fixes #6.

master
Icedream 2013-12-21 20:30:48 +01:00
parent 72f305e004
commit 91c4630abc
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ hook.Add("PlayerDeath", "Disguiser.ThirdPersonDeath", function(victim, inflictor
dentity:SetModel(victim:GetModel()) dentity:SetModel(victim:GetModel())
dentity:SetAngles(victim:GetAngles()) dentity:SetAngles(victim:GetAngles())
dentity:SetPos(victim:GetPos()) dentity:SetPos(victim:GetPos())
dentity:SetColor(victim:GetColor())
dentity:SetVelocity(victim:GetVelocity()) dentity:SetVelocity(victim:GetVelocity())
local physics = victim:GetPhysicsObject() local physics = victim:GetPhysicsObject()
dentity:SetBloodColor(BLOOD_COLOR_RED) -- this thing was alive, ya know? :( dentity:SetBloodColor(BLOOD_COLOR_RED) -- this thing was alive, ya know? :(