diff --git a/beatrun/gamemodes/beatrun/gamemode/cl_init.lua b/beatrun/gamemodes/beatrun/gamemode/cl_init.lua index 5537894..414ebca 100644 --- a/beatrun/gamemodes/beatrun/gamemode/cl_init.lua +++ b/beatrun/gamemodes/beatrun/gamemode/cl_init.lua @@ -1,6 +1,8 @@ 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) include("cl/" .. v) -end \ No newline at end of file +end + + diff --git a/beatrun/gamemodes/beatrun/gamemode/init.lua b/beatrun/gamemodes/beatrun/gamemode/init.lua index ec30d69..6619852 100644 --- a/beatrun/gamemodes/beatrun/gamemode/init.lua +++ b/beatrun/gamemodes/beatrun/gamemode/init.lua @@ -2,16 +2,16 @@ AddCSLuaFile("cl_init.lua") AddCSLuaFile("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) 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) include("sh/" .. v) AddCSLuaFile("sh/" .. v) 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) end \ No newline at end of file diff --git a/beatrun/gamemodes/beatrun/gamemode/shared.lua b/beatrun/gamemodes/beatrun/gamemode/shared.lua index d5e29ef..d773882 100644 --- a/beatrun/gamemodes/beatrun/gamemode/shared.lua +++ b/beatrun/gamemodes/beatrun/gamemode/shared.lua @@ -8,7 +8,7 @@ GM.Email = "datae@dontemailme.com" GM.Website = "www.mirrorsedge.com" 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) include("sh/" .. v) end \ No newline at end of file diff --git a/vmaniprework/lua/autorun/client/cl_vmanip.lua b/vmaniprework/lua/autorun/client/cl_vmanip.lua index d0138cd..7d33f0b 100644 --- a/vmaniprework/lua/autorun/client/cl_vmanip.lua +++ b/vmaniprework/lua/autorun/client/cl_vmanip.lua @@ -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 if ISCALC then return end ISCALC = true - hook.Run("CalcView", ply, pos, ang, fov) + hook.Run("CalcView", ply, origin, angles, fov) ISCALC = false if not VManip:IsActive() or not VManip.Attachment then return end