fix weird issue

This commit is contained in:
relaxtakenotes 2023-06-22 02:28:55 +05:00
parent a9e660c4b1
commit b71bf98997
4 changed files with 9 additions and 7 deletions

View file

@ -1,6 +1,8 @@
include("shared.lua") include("shared.lua")
for k, v in ipairs(file.Find("beatrun/gamemode/cl/*.lua", "LUA")) do for k, v in ipairs(file.Find("gamemodes/beatrun/gamemode/cl/*.lua", "GAME")) do
print(v) print(v)
include("cl/" .. v) include("cl/" .. v)
end end

View file

@ -2,16 +2,16 @@ AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua") AddCSLuaFile("shared.lua")
include("shared.lua") include("shared.lua")
for k, v in ipairs(file.Find("beatrun/gamemode/cl/*.lua", "LUA")) do for k, v in ipairs(file.Find("gamemodes/beatrun/gamemode/cl/*.lua", "GAME")) do
AddCSLuaFile("cl/" .. v) AddCSLuaFile("cl/" .. v)
end end
for k, v in ipairs(file.Find("beatrun/gamemode/sh/*.lua", "LUA")) do for k, v in ipairs(file.Find("gamemodes/beatrun/gamemode/sh/*.lua", "GAME")) do
print(v) print(v)
include("sh/" .. v) include("sh/" .. v)
AddCSLuaFile("sh/" .. v) AddCSLuaFile("sh/" .. v)
end end
for k, v in ipairs(file.Find("beatrun/gamemode/sv/*.lua", "LUA")) do for k, v in ipairs(file.Find("gamemodes/beatrun/gamemode/sv/*.lua", "GAME")) do
include("sv/" .. v) include("sv/" .. v)
end end

View file

@ -8,7 +8,7 @@ GM.Email = "datae@dontemailme.com"
GM.Website = "www.mirrorsedge.com" GM.Website = "www.mirrorsedge.com"
include("player_class/player_beatrun.lua") include("player_class/player_beatrun.lua")
for k, v in ipairs(file.Find("beatrun/gamemode/sh/*.lua", "LUA")) do for k, v in ipairs(file.Find("gamemodes/beatrun/gamemode/sh/*.lua", "GAME")) do
AddCSLuaFile("sh/" .. v) AddCSLuaFile("sh/" .. v)
include("sh/" .. v) include("sh/" .. v)
end end

View file

@ -632,7 +632,7 @@ hook.Add("CalcView", "VManip_Cam", function(ply, origin, angles, fov)
-- some important calculations can happen in calcview hooks however, so running them is important -- some important calculations can happen in calcview hooks however, so running them is important
if ISCALC then return end if ISCALC then return end
ISCALC = true ISCALC = true
hook.Run("CalcView", ply, pos, ang, fov) hook.Run("CalcView", ply, origin, angles, fov)
ISCALC = false ISCALC = false
if not VManip:IsActive() or not VManip.Attachment then return end if not VManip:IsActive() or not VManip.Attachment then return end