act.doer should be passed to drawimageoverride instead of act.target, since rabbit's function is meant to measure sanity of the player, not of the sign:
function DrawingTool:GetImageToDraw(target) local ent = FindEntityToDraw(target, self.inst) if ent == nil then return end local atlas, bgimage, bgatlas local image = FunctionOrValue(ent.drawimageoverride, ent, target)
local function drawimageoverride(inst, viewer) return IsCrazyGuy(viewer) and "beard_monster" end
Steps to Reproduce
Draw a Rabbit while insane
-
2
There are no comments to display.
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 accountSign in
Already have an account? Sign in here.
Sign In Now