mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43:02 +05:00
cleaning
This commit is contained in:
parent
78f949eb66
commit
a1bd7bdf5b
3 changed files with 4 additions and 54 deletions
|
@ -62,6 +62,7 @@ irm https://beatrun.jonnybro.ru/install | iex
|
|||
Available in 5 languages now!
|
||||
* Build Mode Tweaks.\
|
||||
You can now spawn any prop from Spawn Menu and they will save in your course.
|
||||
* Ability to roll after ziplines with CTRL 🤯 (thanks c4nk <3).
|
||||
* Ability to get off of ladders - Press CTRL.
|
||||
* Ability to remove ziplines that created with *Zipline Gun* - Press RMB.
|
||||
* Arrow that shows the next checkpoint.
|
||||
|
|
|
@ -62,6 +62,7 @@ irm https://beatrun.jonnybro.ru/install | iex
|
|||
На данный момент доступно 5 языков!
|
||||
* Улучшения режима строительства.
|
||||
Можно заспавнить любой проп из меню спавна и он сохранится в курсе.
|
||||
* Возможность переката после зиплайнов на CTRL 🤯 (спасибо c4nk <3).
|
||||
* Возможность спрыгивать с лестниц - Нажмите CTRL.
|
||||
* Возможность удалять зиплайны созданные *Zipline Gun* - Нажмите ПКМ.
|
||||
* Стрелка, показывающая местоположение след. контрольной точки.
|
||||
|
|
|
@ -11,10 +11,6 @@ if CLIENT then
|
|||
local lframeswepclass = lframeswepclass or ""
|
||||
end
|
||||
|
||||
--[[if SERVER then
|
||||
util.AddNetworkString("Beatrun_ClientFOVChange")
|
||||
end]]
|
||||
|
||||
local PLAYER = {}
|
||||
|
||||
PLAYER.DuckSpeed = 0.01 -- How fast to go from not ducking, to ducking
|
||||
|
@ -25,9 +21,6 @@ PLAYER.TauntCam = TauntCamera()
|
|||
PLAYER.WalkSpeed = 200
|
||||
PLAYER.RunSpeed = 400
|
||||
|
||||
--local FOVModifierBlock = false -- trust me this is important -losttrackpad
|
||||
-- its not important, in-fact -c4nk
|
||||
|
||||
function PLAYER:SetupDataTables()
|
||||
BaseClass.SetupDataTables(self)
|
||||
self.Player:NetworkVar("Float", 0, "MEMoveLimit")
|
||||
|
@ -376,28 +369,9 @@ end
|
|||
|
||||
function PLAYER:CalcView(view)
|
||||
local mult = (self.Player:InOverdrive() and 1.1) or 1
|
||||
local fixfovmult = 1
|
||||
local fov = GetConVar("Beatrun_FOV"):GetInt()
|
||||
|
||||
-- this is the code i added as a comment
|
||||
|
||||
--[[local fov = GetConVar("Beatrun_FOV"):GetInt()
|
||||
view.fov = fov * mult * fixfovmult]]
|
||||
|
||||
if CLIENT then
|
||||
local fov = GetConVar("Beatrun_FOV"):GetInt()
|
||||
|
||||
if IsValid(LocalPlayer():GetActiveWeapon()) then
|
||||
if LocalPlayer():GetActiveWeapon().ARC9 then
|
||||
-- the issue was this line that got replaced by this message, you created a problem somehow lol
|
||||
else
|
||||
fixfovmult = 1
|
||||
end
|
||||
|
||||
view.fov = fov * mult * fixfovmult
|
||||
else
|
||||
view.fov = fov * mult
|
||||
end
|
||||
end
|
||||
view.fov = fov * mult
|
||||
|
||||
if self.TauntCam:CalcView(view, self.Player, self.Player:IsPlayingTaunt()) then return true end
|
||||
end
|
||||
|
@ -564,30 +538,4 @@ hook.Add("PlayerSwitchWeapon", "BeatrunSwitchARC9FOVFix", function(ply)
|
|||
end)
|
||||
end)
|
||||
|
||||
-- you created more issues by adding this, so i commented it :P
|
||||
|
||||
--[[cvars.AddChangeCallback("Beatrun_FOV", function(convar, oldval, newval)
|
||||
if CLIENT and game.SinglePlayer() then
|
||||
LocalPlayer():SetFOV(newval)
|
||||
elseif CLIENT then
|
||||
FOVModifierBlock = true
|
||||
|
||||
timer.Simple(0.16, function()
|
||||
FOVModifierBlock = false
|
||||
|
||||
if not FOVModifierBlock then
|
||||
net.Start("Beatrun_ClientFOVChange")
|
||||
net.WriteInt(newval, 16)
|
||||
net.SendToServer()
|
||||
FOVModifierBlock = true
|
||||
end
|
||||
end)
|
||||
end
|
||||
end)
|
||||
if SERVER then
|
||||
net.Receive("Beatrun_ClientFOVChange", function(len, ply)
|
||||
ply:SetFOV(net.ReadInt(16))
|
||||
end)
|
||||
end]]
|
||||
|
||||
player_manager.RegisterClass("player_beatrun", PLAYER, "player_default")
|
||||
|
|
Loading…
Reference in a new issue