All pastes #735275 Raw Edit

Something

public text v1 · immutable
·published 2007-10-13 13:51 UTC
rendered paste body
		if smoke and smoke:IsValid() then
			local COLHP = 2.55*(Entity.Breakable.Cur / Entity.Breakable.Max *100) -- 255 to 0 based on HP
			smoke:Fire("addoutput","startcolor".." "..tostring(COLHP).." "..tostring(COLHP).." "..tostring(COLHP))
			smoke:Fire("addoutput","endcolor".." "..tostring(COLHP).." "..tostring(COLHP).." "..tostring(COLHP))
		end