Code:
-- Add fog
if not self.Fog then
self.Fog = true -- only run once
for player = Activity.PLAYER_1, Activity.MAXPLAYERCOUNT - 1 do
if self:PlayerActive(player) and self:PlayerHuman(player) then
SceneMan:MakeAllUnseen(Vector(25, 25), self:GetTeamOfPlayer(player))
end
end
for Act in MovableMan.AddedActors do
for ang = 0, math.pi*2, 0.15 do
SceneMan:CastSeeRay(Act.Team, Act.EyePos, Vector(30+FrameMan.PlayerScreenWidth*0.5, 0):RadRotate(ang), Vector(), 1, 5)
end
end
for Act in MovableMan.Actors do
for ang = 0, math.pi*2, 0.15 do
SceneMan:CastSeeRay(Act.Team, Act.EyePos, Vector(30+FrameMan.PlayerScreenWidth*0.5, 0):RadRotate(ang), Vector(), 1, 5)
end
end
end
--
--add scan
for x = 0, SceneMan.SceneWidth, 25 do
for team = 0, 4 do
SceneMan:CastSeeRay(team, Vector(x, 0), Vector(0, SceneMan.SceneHeight), Vector(), 1, 5)
end
end
--