//original addon by luigi budd
rawset(_G, "PizzaTowerAfterImages", function(p, me, color)
//	local ghost = P_SpawnGhostMobj(me)
//	ghost.frame = TR_TRANS80
//	ghost.destscale = $*99
	if p.ptaiframewait
		return
	end
	local chasecam = CV_FindVar("chasecam")
	local afteri = P_SpawnGhostMobj(me)
	if p.ptaistyle == 1 or p.ptaistyle == nil
		if color == 1
			afteri.color = SKINCOLOR_AIREALLYRED
		elseif color == 2
			afteri.color = SKINCOLOR_AIREALLYGREEN
		end
	else
		if color == 1
			afteri.color = SKINCOLOR_AIREALLYBLUE
		elseif color == 2
			afteri.color = SKINCOLOR_AIREALLYPINK
		end
	end
	afteri.colorized = true
	afteri.frame = FF_FULLBRIGHT|me.frame|TR_TRANS10
	afteri.fuse = 14
	
	//should you be out of my face?
	if chasecam.value
		afteri.flags2 = $ & ~MF2_DONTDRAW
	else
		afteri.flags2 = $ | MF2_DONTDRAW
	end

end)
