mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 05:13:02 +05:00
something something fixed dunno what
This commit is contained in:
parent
8446ec37b5
commit
35f2f68e29
4 changed files with 13 additions and 4 deletions
|
@ -4,16 +4,19 @@ include("shared.lua")
|
||||||
|
|
||||||
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/cl/*.lua", "GAME", "nameasc")) do
|
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/cl/*.lua", "GAME", "nameasc")) do
|
||||||
print(v)
|
print(v)
|
||||||
|
|
||||||
AddCSLuaFile("cl/" .. v)
|
AddCSLuaFile("cl/" .. v)
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/sh/*.lua", "GAME", "nameasc")) do
|
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/sh/*.lua", "GAME", "nameasc")) do
|
||||||
print(v)
|
print(v)
|
||||||
|
|
||||||
include("sh/" .. v)
|
include("sh/" .. v)
|
||||||
AddCSLuaFile("sh/" .. v)
|
AddCSLuaFile("sh/" .. v)
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/sv/*.lua", "GAME", "nameasc")) do
|
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/sv/*.lua", "GAME", "nameasc")) do
|
||||||
print(v)
|
print(v)
|
||||||
|
|
||||||
include("sv/" .. v)
|
include("sv/" .. v)
|
||||||
end
|
end
|
|
@ -1,23 +1,28 @@
|
||||||
local mousex = 0
|
local mousex = 0
|
||||||
local mousey = 0
|
local mousey = 0
|
||||||
local inf = math.huge
|
local inf = math.huge
|
||||||
|
|
||||||
buildmode_props = {}
|
buildmode_props = {}
|
||||||
|
|
||||||
local propmatsblacklist = {}
|
local propmatsblacklist = {}
|
||||||
local blocksdir = "models/hunter/blocks/"
|
local blocksdir = "models/hunter/blocks/"
|
||||||
local blocksdir_s = blocksdir .. "*.mdl"
|
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())
|
table.insert(buildmode_props, blocksdir .. v:lower())
|
||||||
end
|
end
|
||||||
|
|
||||||
local blocksdir = "models/hunter/triangles/"
|
local blocksdir = "models/hunter/triangles/"
|
||||||
local blocksdir_s = blocksdir .. "*.mdl"
|
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())
|
table.insert(buildmode_props, blocksdir .. v:lower())
|
||||||
end
|
end
|
||||||
|
|
||||||
local blocksdir = "models/props_phx/construct/glass/"
|
local blocksdir = "models/props_phx/construct/glass/"
|
||||||
local blocksdir_s = blocksdir .. "*.mdl"
|
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())
|
local key = table.insert(buildmode_props, blocksdir .. v:lower())
|
||||||
propmatsblacklist[key] = true
|
propmatsblacklist[key] = true
|
||||||
end
|
end
|
|
@ -17,6 +17,7 @@ local function Hardland(jt)
|
||||||
end
|
end
|
||||||
|
|
||||||
DoJumpTurn(jt)
|
DoJumpTurn(jt)
|
||||||
|
|
||||||
BodyAnim:SetSequence("jumpturnflyidle")
|
BodyAnim:SetSequence("jumpturnflyidle")
|
||||||
else
|
else
|
||||||
BodyAnim:SetSequence("jumpcoilend")
|
BodyAnim:SetSequence("jumpcoilend")
|
|
@ -82,7 +82,7 @@ local function Quickturn(ply, mv, cmd)
|
||||||
end
|
end
|
||||||
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
|
if ply:GetWallrun() == 0 and not ply:OnGround() then
|
||||||
local eyedir = cmd:GetViewAngles()
|
local eyedir = cmd:GetViewAngles()
|
||||||
eyedir.x = 0
|
eyedir.x = 0
|
||||||
|
|
Loading…
Reference in a new issue