something something fixed dunno what

This commit is contained in:
Jonny_Bro (Nikita) 2023-09-15 23:20:10 +05:00
parent 8446ec37b5
commit 35f2f68e29
4 changed files with 13 additions and 4 deletions

View file

@ -4,16 +4,19 @@ include("shared.lua")
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/cl/*.lua", "GAME", "nameasc")) do
print(v)
AddCSLuaFile("cl/" .. v)
end
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/sh/*.lua", "GAME", "nameasc")) do
print(v)
include("sh/" .. v)
AddCSLuaFile("sh/" .. v)
end
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/sv/*.lua", "GAME", "nameasc")) do
print(v)
include("sv/" .. v)
end

View file

@ -1,23 +1,28 @@
local mousex = 0
local mousey = 0
local inf = math.huge
buildmode_props = {}
local propmatsblacklist = {}
local blocksdir = "models/hunter/blocks/"
local blocksdir_s = blocksdir .. "*.mdl"
for k, v in ipairs(file.Find(blocksdir_s, "GAME")) do
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
table.insert(buildmode_props, blocksdir .. v:lower())
end
local blocksdir = "models/hunter/triangles/"
local blocksdir_s = blocksdir .. "*.mdl"
for k, v in ipairs(file.Find(blocksdir_s, "GAME")) do
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
table.insert(buildmode_props, blocksdir .. v:lower())
end
local blocksdir = "models/props_phx/construct/glass/"
local blocksdir_s = blocksdir .. "*.mdl"
for k, v in ipairs(file.Find(blocksdir_s, "GAME")) do
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
local key = table.insert(buildmode_props, blocksdir .. v:lower())
propmatsblacklist[key] = true
end

View file

@ -17,6 +17,7 @@ local function Hardland(jt)
end
DoJumpTurn(jt)
BodyAnim:SetSequence("jumpturnflyidle")
else
BodyAnim:SetSequence("jumpcoilend")

View file

@ -82,7 +82,7 @@ local function Quickturn(ply, mv, cmd)
end
end
if not ply:GetQuickturn() and not ply:GetJumpTurn() and not ply:GetCrouchJump() and not ply:GetGrappling() and keypressed and not mv:KeyDown(IN_MOVELEFT) and not mv:KeyDown(IN_MOVERIGHT) and (ply:GetWallrun() > 0 or not ply:OnGround() or ply:GetInfoNum("Beatrun_QuickturnGround", 0) == 1 and not ply:Crouching()) then
if not ply:GetQuickturn() and not ply:GetJumpTurn() and not ply:GetCrouchJump() and not ply:GetGrappling() and not ply:GetSliding() and keypressed and not mv:KeyDown(IN_MOVELEFT) and not mv:KeyDown(IN_MOVERIGHT) and (ply:GetWallrun() > 0 or not ply:OnGround() or ply:GetInfoNum("Beatrun_QuickturnGround", 0) == 1 and not ply:Crouching()) then
if ply:GetWallrun() == 0 and not ply:OnGround() then
local eyedir = cmd:GetViewAngles()
eyedir.x = 0