J
JustWats
Guest
- Thread Author
- #1

I shouldn't be able to see scene texts through walls... It would be nice if something like traces were utilized similar to how /MeV or /SV works.
I'm not an insane dev, but I know it's possible. This would be nice because it prevents metagame, and makes it where rebels or cops can draw on a whiteboard or something behind closed doors or in the interrogation room.
YAML:
CanSee = function(self, scene, viewer)
local trace = util.TraceLine{start = scene:Pos(), mask = MASK_SOLID_BRUSHONLY, endpos = viewer:EyePos()}
if !trace.Hit then
if (scene:EyePos():Distance(viewer:EyePos()) <= ix.config.Get("SceneTextRange", XXX)) then
return true
end
end
Last edited: