Jump to content

(Solved) Where's the code responsible for tinting things the player hovers over?


Recommended Posts

I really want to remove it or lower the effect if possible it really drives my OCD completely insane for as long as I've played DST...

If don't know what I'm talking about is this (the one on the right's being hovered over and appears tinted whiter/brighter)

1270714683_helpplease.jpeg.e322f908f7441ed95b7ccfc5e678b67f.jpeg

I looked very hard in a lot of lua files and I can't find it after hours :(

Edited by . . .
Link to comment
Share on other sites

14 hours ago, . . . said:

I really want to remove it or lower the effect if possible it really drives my OCD completely insane for as long as I've played DST...

1270714683_helpplease.jpeg.e322f908f7441ed95b7ccfc5e678b67f.jpeg

It's controlled by the 'highlight' component that's added in the 'playercontroller' component, and removed by itself.

The highlight sets the AnimState:SetHighlightColour function to the appropriate values.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Thanks a lot!

I finally managed to change it so less of effect now, wouldn't have been able to find it without you lol

 

Spoiler

AddComponentPostInit("playercontroller", function(self)
	local _OnUpdate = self.OnUpdate
	self.OnUpdate = function(self, dt, ...)
		if _OnUpdate then _OnUpdate(self, dt, ...) end
		if self.highlight_guy ~= nil and self.highlight_guy:IsValid() and self.highlight_guy.components.highlight ~= nil then
			if not self.highlight_guy:HasTag("burnt") then
				self.highlight_guy.components.highlight:Highlight(.1, .1, .1)
			end
		end
	end
end)

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...