mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
fix weird issue
This commit is contained in:
parent
a9e660c4b1
commit
b71bf98997
4 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue