This commit is contained in:
Jonny_Bro (Nikita) 2024-06-24 19:40:45 +05:00
parent 78f949eb66
commit a1bd7bdf5b
No known key found for this signature in database
GPG key ID: 3F1ECC04147E9BD8
3 changed files with 4 additions and 54 deletions

View file

@ -62,6 +62,7 @@ irm https://beatrun.jonnybro.ru/install | iex
Available in 5 languages now! Available in 5 languages now!
* Build Mode Tweaks.\ * Build Mode Tweaks.\
You can now spawn any prop from Spawn Menu and they will save in your course. 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 get off of ladders - Press CTRL.
* Ability to remove ziplines that created with *Zipline Gun* - Press RMB. * Ability to remove ziplines that created with *Zipline Gun* - Press RMB.
* Arrow that shows the next checkpoint. * Arrow that shows the next checkpoint.

View file

@ -62,6 +62,7 @@ irm https://beatrun.jonnybro.ru/install | iex
На данный момент доступно 5 языков! На данный момент доступно 5 языков!
* Улучшения режима строительства. * Улучшения режима строительства.
Можно заспавнить любой проп из меню спавна и он сохранится в курсе. Можно заспавнить любой проп из меню спавна и он сохранится в курсе.
* Возможность переката после зиплайнов на CTRL 🤯 (спасибо c4nk <3).
* Возможность спрыгивать с лестниц - Нажмите CTRL. * Возможность спрыгивать с лестниц - Нажмите CTRL.
* Возможность удалять зиплайны созданные *Zipline Gun* - Нажмите ПКМ. * Возможность удалять зиплайны созданные *Zipline Gun* - Нажмите ПКМ.
* Стрелка, показывающая местоположение след. контрольной точки. * Стрелка, показывающая местоположение след. контрольной точки.

View file

@ -11,10 +11,6 @@ if CLIENT then
local lframeswepclass = lframeswepclass or "" local lframeswepclass = lframeswepclass or ""
end end
--[[if SERVER then
util.AddNetworkString("Beatrun_ClientFOVChange")
end]]
local PLAYER = {} local PLAYER = {}
PLAYER.DuckSpeed = 0.01 -- How fast to go from not ducking, to ducking PLAYER.DuckSpeed = 0.01 -- How fast to go from not ducking, to ducking
@ -25,9 +21,6 @@ PLAYER.TauntCam = TauntCamera()
PLAYER.WalkSpeed = 200 PLAYER.WalkSpeed = 200
PLAYER.RunSpeed = 400 PLAYER.RunSpeed = 400
--local FOVModifierBlock = false -- trust me this is important -losttrackpad
-- its not important, in-fact -c4nk
function PLAYER:SetupDataTables() function PLAYER:SetupDataTables()
BaseClass.SetupDataTables(self) BaseClass.SetupDataTables(self)
self.Player:NetworkVar("Float", 0, "MEMoveLimit") self.Player:NetworkVar("Float", 0, "MEMoveLimit")
@ -376,28 +369,9 @@ end
function PLAYER:CalcView(view) function PLAYER:CalcView(view)
local mult = (self.Player:InOverdrive() and 1.1) or 1 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 view.fov = fov * mult
--[[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
if self.TauntCam:CalcView(view, self.Player, self.Player:IsPlayingTaunt()) then return true end if self.TauntCam:CalcView(view, self.Player, self.Player:IsPlayingTaunt()) then return true end
end end
@ -564,30 +538,4 @@ hook.Add("PlayerSwitchWeapon", "BeatrunSwitchARC9FOVFix", function(ply)
end) end)
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") player_manager.RegisterClass("player_beatrun", PLAYER, "player_default")