//Make sure Chuck D. Head gets his correct signpost visuals with his follower
addHook("MobjThinker", function(mobj)
	local mo = mobj.target
	local player = mo and mo.valid and mo.player
	local follower = player and player.follower
	if not (player and follower and follower.valid
	and mo.skin == "chuckdhead" and follower.sprite == SPR_HEAD) then return end
	
	local part = mobj.hnext
	local face = part
	while part and part.valid
		if part.state == S_KART_SIGN and part.skin == mo.skin
			face = part
			face.state = S_KART_SIGL
			
			local nextpart = part
			while nextpart and nextpart.valid
				part = nextpart
				nextpart = part.hnext
			end
			nextpart = P_SpawnMobjFromMobj(part, 0,0,0, MT_SIGN_PIECE)
			
			part.hnext = nextpart
			nextpart.target = part
			
			nextpart.state = S_SIGN_ERROR
			nextpart.sprite = SPR_HEAD
			nextpart.frame = ($ &~ FF_FRAMEMASK) | D
			nextpart.color = player.followercolor
			
			nextpart.extravalue1 = face.extravalue1
			nextpart.extravalue2 = face.extravalue2
			
			break
		end
		part = $.hnext
	end
end, MT_SIGN)
