mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33:02 +05:00
Merge branch 'main' of https://github.com/JonnyBro/beatrun into dev
This commit is contained in:
commit
7122778304
10 changed files with 95 additions and 22 deletions
|
@ -20,11 +20,7 @@
|
||||||
> Все модули можно найти **[здесь](https://github.com/JonnyBro/beatrun/tree/main/lua/bin)**.\
|
> Все модули можно найти **[здесь](https://github.com/JonnyBro/beatrun/tree/main/lua/bin)**.\
|
||||||
> Проверьте **[Благодарности](#благодарности)** чтобы найти исходный код модулей.
|
> Проверьте **[Благодарности](#благодарности)** чтобы найти исходный код модулей.
|
||||||
|
|
||||||
## Steam Workshop (ржака)
|
## Автоматическая установка (Рекомендуемое | Windows 10/11)
|
||||||
|
|
||||||
[Подписаться](https://steamcommunity.com/sharedfiles/filedetails/?id=3290421288)
|
|
||||||
|
|
||||||
### Автоматическая установка (Рекомендуемое | Windows 10/11)
|
|
||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
> Windows 7 не поддерживается.\
|
> Windows 7 не поддерживается.\
|
||||||
|
@ -40,7 +36,7 @@ irm https://beatrun.jonnybro.ru/install | iex
|
||||||
|
|
||||||
* Выберите режим `Beatrun` в правом нижнем углу.
|
* Выберите режим `Beatrun` в правом нижнем углу.
|
||||||
|
|
||||||
### Ручная установка
|
## Ручная установка
|
||||||
|
|
||||||
1. **[Скачайте проект](https://github.com/JonnyBro/beatrun/archive/refs/heads/master.zip)**.
|
1. **[Скачайте проект](https://github.com/JonnyBro/beatrun/archive/refs/heads/master.zip)**.
|
||||||
2. **Удалите папку `beatrun` по пути *путь_к_игре/garrysmod/addons* если присутствует.**
|
2. **Удалите папку `beatrun` по пути *путь_к_игре/garrysmod/addons* если присутствует.**
|
||||||
|
|
|
@ -54,7 +54,7 @@ beatrun.coursemenu.trials=Courses - %s
|
||||||
beatrun.coursemenu.buildmode=Toggle Build Mode
|
beatrun.coursemenu.buildmode=Toggle Build Mode
|
||||||
beatrun.coursemenu.freeplay=Return to Freeplay
|
beatrun.coursemenu.freeplay=Return to Freeplay
|
||||||
|
|
||||||
# CoursesDatabase
|
# Courses Database
|
||||||
beatrun.coursesdatabase.cantuploadfreeplay=Can't upload in Freeplay
|
beatrun.coursesdatabase.cantuploadfreeplay=Can't upload in Freeplay
|
||||||
beatrun.coursesdatabase.upload1=You're trying to upload a course with the name %s on map %s.
|
beatrun.coursesdatabase.upload1=You're trying to upload a course with the name %s on map %s.
|
||||||
beatrun.coursesdatabase.upload2=Use Beatrun_Confirm to continue or Beatrun_Cancel to cancel.
|
beatrun.coursesdatabase.upload2=Use Beatrun_Confirm to continue or Beatrun_Cancel to cancel.
|
||||||
|
@ -63,6 +63,7 @@ beatrun.coursesdatabase.update1=You are trying to update a course with this code
|
||||||
# Tools Menu
|
# Tools Menu
|
||||||
beatrun.toolsmenu.client=Client
|
beatrun.toolsmenu.client=Client
|
||||||
beatrun.toolsmenu.server=Server
|
beatrun.toolsmenu.server=Server
|
||||||
|
beatrun.toolsmenu.extra=Extra
|
||||||
|
|
||||||
# Tools Menu Courses Section
|
# Tools Menu Courses Section
|
||||||
beatrun.toolsmenu.courses.name=Courses
|
beatrun.toolsmenu.courses.name=Courses
|
||||||
|
@ -229,6 +230,16 @@ beatrun.toolsmenu.gamemodes.infectiontime=Time in seconds
|
||||||
beatrun.toolsmenu.gamemodes.datatheft=Toggle Data Theft Gamemode
|
beatrun.toolsmenu.gamemodes.datatheft=Toggle Data Theft Gamemode
|
||||||
beatrun.toolsmenu.gamemodes.deathmatch=Toggle Deathmatch Gamemode
|
beatrun.toolsmenu.gamemodes.deathmatch=Toggle Deathmatch Gamemode
|
||||||
|
|
||||||
|
# Tools Menu Extra Section
|
||||||
|
beatrun.toolsmenu.extra.name=Extra
|
||||||
|
beatrun.toolsmenu.extra.desc=Extra settings for speedrunners/sweaty boys
|
||||||
|
|
||||||
|
beatrun.toolsmenu.extra.stats=Extra Stats
|
||||||
|
beatrun.toolsmenu.extra.statsdesc=Shows extra stats besides speedometer to provide more info to help on harder tricks
|
||||||
|
|
||||||
|
beatrun.toolsmenu.extra.speedrunsverif=Speedrun Verification Stats
|
||||||
|
beatrun.toolsmenu.extra.speedrunsverifdesc=Shows info about your current settings (Purist Mode, Purist wallrun and Kick Glitch version)
|
||||||
|
|
||||||
# Checkpoints
|
# Checkpoints
|
||||||
beatrun.checkpoints.countdown1=Ready
|
beatrun.checkpoints.countdown1=Ready
|
||||||
beatrun.checkpoints.countdown2=Set
|
beatrun.checkpoints.countdown2=Set
|
||||||
|
|
|
@ -54,7 +54,7 @@ beatrun.coursemenu.trials=Курсы - %s
|
||||||
beatrun.coursemenu.buildmode=Режим строительства
|
beatrun.coursemenu.buildmode=Режим строительства
|
||||||
beatrun.coursemenu.freeplay=Свободная игра
|
beatrun.coursemenu.freeplay=Свободная игра
|
||||||
|
|
||||||
# CoursesDatabase
|
# Courses Database
|
||||||
beatrun.coursesdatabase.cantuploadfreeplay=Нельзя загружать во время свободной игры
|
beatrun.coursesdatabase.cantuploadfreeplay=Нельзя загружать во время свободной игры
|
||||||
beatrun.coursesdatabase.upload1=Вы пытаетесь загрузить курс с названием %s на карте %s.
|
beatrun.coursesdatabase.upload1=Вы пытаетесь загрузить курс с названием %s на карте %s.
|
||||||
beatrun.coursesdatabase.upload2=Используйте Beatrun_Confirm чтобы продолжить или Beatrun_Cancel чтобы отменить.
|
beatrun.coursesdatabase.upload2=Используйте Beatrun_Confirm чтобы продолжить или Beatrun_Cancel чтобы отменить.
|
||||||
|
@ -63,6 +63,7 @@ beatrun.coursesdatabase.update1=Вы пытаетесь обновить кур
|
||||||
# Tools Menu
|
# Tools Menu
|
||||||
beatrun.toolsmenu.client=Клиент
|
beatrun.toolsmenu.client=Клиент
|
||||||
beatrun.toolsmenu.server=Сервер
|
beatrun.toolsmenu.server=Сервер
|
||||||
|
beatrun.toolsmenu.extra=Дополнительно
|
||||||
|
|
||||||
# Tools Menu Courses Section
|
# Tools Menu Courses Section
|
||||||
beatrun.toolsmenu.courses.name=Курсы
|
beatrun.toolsmenu.courses.name=Курсы
|
||||||
|
@ -226,6 +227,16 @@ beatrun.toolsmenu.gamemodes.infectiontime=Время в секундах
|
||||||
beatrun.toolsmenu.gamemodes.datatheft=Переключить Data Theft
|
beatrun.toolsmenu.gamemodes.datatheft=Переключить Data Theft
|
||||||
beatrun.toolsmenu.gamemodes.deathmatch=Переключить Deathmatch
|
beatrun.toolsmenu.gamemodes.deathmatch=Переключить Deathmatch
|
||||||
|
|
||||||
|
# Tools Menu Extra Section
|
||||||
|
beatrun.toolsmenu.extra.name=Дополнительно
|
||||||
|
beatrun.toolsmenu.extra.desc=Доп. настройки для спидранеров/потеющих ребяток
|
||||||
|
|
||||||
|
beatrun.toolsmenu.extra.stats=Доп. статы
|
||||||
|
beatrun.toolsmenu.extra.statsdesc=Показывает дополнительные статы рядом со спидометром
|
||||||
|
|
||||||
|
beatrun.toolsmenu.extra.speedrunsverif=Статы для верификации спидранов
|
||||||
|
beatrun.toolsmenu.extra.speedrunsverifdesc=Показывает ваши настройки в углу экрана (Purist Mode, Purist wallrun и версия Kick Glitch)
|
||||||
|
|
||||||
# Checkpoints
|
# Checkpoints
|
||||||
beatrun.checkpoints.countdown1=Раз
|
beatrun.checkpoints.countdown1=Раз
|
||||||
beatrun.checkpoints.countdown2=Два
|
beatrun.checkpoints.countdown2=Два
|
||||||
|
|
|
@ -99,6 +99,8 @@ function SWEP:Deploy()
|
||||||
self:SetWasOnGround(false)
|
self:SetWasOnGround(false)
|
||||||
self:SetBlockAnims(false)
|
self:SetBlockAnims(false)
|
||||||
self:SetPunch(1)
|
self:SetPunch(1)
|
||||||
|
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
function SWEP:Initialize()
|
function SWEP:Initialize()
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
if not util.IsBinaryModuleInstalled("gdiscord") then return end
|
if not util.IsBinaryModuleInstalled("gdiscord") then return end
|
||||||
|
|
||||||
require("gdiscord")
|
require("gdiscord")
|
||||||
|
|
||||||
local image = "default"
|
local image = "default"
|
||||||
|
@ -9,7 +8,6 @@ local discord_start = discord_start or -1
|
||||||
|
|
||||||
function DiscordUpdate()
|
function DiscordUpdate()
|
||||||
local ply = LocalPlayer()
|
local ply = LocalPlayer()
|
||||||
|
|
||||||
if not ply.GetLevel then return end
|
if not ply.GetLevel then return end
|
||||||
|
|
||||||
local rpc_data = {}
|
local rpc_data = {}
|
||||||
|
@ -26,7 +24,6 @@ function DiscordUpdate()
|
||||||
rpc_data["state"] = "Local Server"
|
rpc_data["state"] = "Local Server"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
-- rpc_data["state"] = string.Replace(ip, ":27015", "")
|
|
||||||
rpc_data["state"] = "Dedicated Server"
|
rpc_data["state"] = "Dedicated Server"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -41,13 +38,10 @@ function DiscordUpdate()
|
||||||
local level = ply:GetLevel()
|
local level = ply:GetLevel()
|
||||||
local customname = hook.Run("BeatrunHUDCourse")
|
local customname = hook.Run("BeatrunHUDCourse")
|
||||||
local course = customname and customname or Course_Name ~= "" and Course_Name or "Freeplay"
|
local course = customname and customname or Course_Name ~= "" and Course_Name or "Freeplay"
|
||||||
|
|
||||||
rpc_data["details"] = "Level: " .. level .. " | Map: " .. game.GetMap()
|
rpc_data["details"] = "Level: " .. level .. " | Map: " .. game.GetMap()
|
||||||
rpc_data["startTimestamp"] = discord_start
|
rpc_data["startTimestamp"] = discord_start
|
||||||
|
|
||||||
rpc_data["largeImageKey"] = image
|
rpc_data["largeImageKey"] = image
|
||||||
rpc_data["largeImageText"] = course
|
rpc_data["largeImageText"] = course
|
||||||
|
|
||||||
DiscordUpdateRPC(rpc_data)
|
DiscordUpdateRPC(rpc_data)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
local showtotalXP = CreateClientConVar("Beatrun_HUDXP", "1", true, false, language.GetPhrase("beatrun.convars.hudxp"), 0, 1)
|
local show_total_xp = CreateClientConVar("Beatrun_HUDXP", "1", true, false, language.GetPhrase("beatrun.convars.hudxp"), 0, 1)
|
||||||
local sway = CreateClientConVar("Beatrun_HUDSway", "1", true, false, language.GetPhrase("beatrun.convars.hudsway"), 0, 1)
|
local sway = CreateClientConVar("Beatrun_HUDSway", "1", true, false, language.GetPhrase("beatrun.convars.hudsway"), 0, 1)
|
||||||
local dynamic = CreateClientConVar("Beatrun_HUDDynamic", "0", true, false, language.GetPhrase("beatrun.convars.huddynamic"), 0, 1)
|
local dynamic = CreateClientConVar("Beatrun_HUDDynamic", "0", true, false, language.GetPhrase("beatrun.convars.huddynamic"), 0, 1)
|
||||||
local hidden = CreateClientConVar("Beatrun_HUDHidden", "0", true, false, language.GetPhrase("beatrun.convars.hudhidden"), 0, 2)
|
local hidden = CreateClientConVar("Beatrun_HUDHidden", "0", true, false, language.GetPhrase("beatrun.convars.hudhidden"), 0, 2)
|
||||||
|
local verificationstats = CreateClientConVar("Beatrun_HUDVerification", "0", true, false, "", 0, 1)
|
||||||
-- local reticle = CreateClientConVar("Beatrun_HUDReticle", "1", true, false, language.GetPhrase("beatrun.convars.hudreticle"), 0, 1)
|
-- local reticle = CreateClientConVar("Beatrun_HUDReticle", "1", true, false, language.GetPhrase("beatrun.convars.hudreticle"), 0, 1)
|
||||||
|
|
||||||
CreateClientConVar("Beatrun_HUDTextColor", "255 255 255 255", true, true, language.GetPhrase("beatrun.convars.hudtextcolor"))
|
CreateClientConVar("Beatrun_HUDTextColor", "255 255 255 255", true, true, language.GetPhrase("beatrun.convars.hudtextcolor"))
|
||||||
|
@ -175,7 +176,7 @@ local function BeatrunHUD()
|
||||||
-- local lastxp = ply.LastXP or 0
|
-- local lastxp = ply.LastXP or 0
|
||||||
local nicktext = nil
|
local nicktext = nil
|
||||||
|
|
||||||
if showtotalXP:GetBool() then
|
if show_total_xp:GetBool() then
|
||||||
nicktext = ply:Nick() .. " | " .. ply:GetXP() .. "XP"
|
nicktext = ply:Nick() .. " | " .. ply:GetXP() .. "XP"
|
||||||
else
|
else
|
||||||
nicktext = ply:Nick()
|
nicktext = ply:Nick()
|
||||||
|
@ -226,6 +227,18 @@ local function BeatrunHUD()
|
||||||
surface.SetTextPos(scrw * 0.015 + vp.z, scrh * 0.9 + vp.x)
|
surface.SetTextPos(scrw * 0.015 + vp.z, scrh * 0.9 + vp.x)
|
||||||
surface.DrawText(language.GetPhrase("beatrun.hud.lvl"):format(ply:GetLevel()))
|
surface.DrawText(language.GetPhrase("beatrun.hud.lvl"):format(ply:GetLevel()))
|
||||||
|
|
||||||
|
if verificationstats:GetBool() then
|
||||||
|
surface.SetTextPos(scrw * 0.015 + vp.z, scrh * 0.02 + vp.x)
|
||||||
|
surface.DrawText("Purist: ")
|
||||||
|
surface.DrawText(LocalPlayer():GetInfo("Beatrun_PuristMode") == "1" and "true" or "false")
|
||||||
|
surface.SetTextPos(scrw * 0.015 + vp.z, scrh * 0.04 + vp.x)
|
||||||
|
surface.DrawText("Purist Wallrun: ")
|
||||||
|
surface.DrawText(LocalPlayer():GetInfo("Beatrun_PuristWallrun") == "1" and "true" or "false")
|
||||||
|
surface.SetTextPos(scrw * 0.015 + vp.z, scrh * 0.06 + vp.x)
|
||||||
|
surface.DrawText("Kick Glitch: ")
|
||||||
|
surface.DrawText(LocalPlayer():GetInfo("Beatrun_OldKickGlitch") == "1" and "Old" or "New")
|
||||||
|
end
|
||||||
|
|
||||||
if tobool(LocalPlayer():GetInfo("Beatrun_PuristMode")) then
|
if tobool(LocalPlayer():GetInfo("Beatrun_PuristMode")) then
|
||||||
surface.SetDrawColor(230, 230, 230)
|
surface.SetDrawColor(230, 230, 230)
|
||||||
surface.SetMaterial(MELogo)
|
surface.SetMaterial(MELogo)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
if not util.IsBinaryModuleInstalled("steamrichpresencer") then return end
|
if not util.IsBinaryModuleInstalled("steamrichpresencer") then return end
|
||||||
|
|
||||||
require("steamrichpresencer")
|
require("steamrichpresencer")
|
||||||
|
|
||||||
local richtext = ""
|
local richtext = ""
|
||||||
|
@ -7,25 +6,21 @@ local refresh_time = 60
|
||||||
|
|
||||||
local function UpdateRichPresence()
|
local function UpdateRichPresence()
|
||||||
local ply = LocalPlayer()
|
local ply = LocalPlayer()
|
||||||
|
|
||||||
if not ply.GetLevel then return end
|
if not ply.GetLevel then return end
|
||||||
|
|
||||||
local map = game.GetMap()
|
local map = game.GetMap()
|
||||||
local level = ply:GetLevel()
|
local level = ply:GetLevel()
|
||||||
local customname = hook.Run("BeatrunHUDCourse")
|
local customname = hook.Run("BeatrunHUDCourse")
|
||||||
local course = customname and customname or Course_Name ~= "" and Course_Name or "Freeplay"
|
local course = customname and customname or Course_Name ~= "" and Course_Name or "Freeplay"
|
||||||
|
|
||||||
local updatedtext = "Beatrun Lv. " .. level .. " (" .. map .. ") | " .. course
|
local updatedtext = "Beatrun Lv. " .. level .. " (" .. map .. ") | " .. course
|
||||||
|
|
||||||
if richtext ~= updatedtext then
|
if richtext ~= updatedtext then
|
||||||
richtext = updatedtext
|
richtext = updatedtext
|
||||||
|
|
||||||
steamworks.SetRichPresence("generic", richtext)
|
steamworks.SetRichPresence("generic", richtext)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
hook.Add("OnGamemodeLoaded", "LoadDLL", function()
|
hook.Add("OnGamemodeLoaded", "LoadDLL", function()
|
||||||
UpdateRichPresence()
|
UpdateRichPresence()
|
||||||
|
|
||||||
timer.Create("UpdateSteamRichPresence", refresh_time, 0, UpdateRichPresence)
|
timer.Create("UpdateSteamRichPresence", refresh_time, 0, UpdateRichPresence)
|
||||||
end)
|
end)
|
|
@ -7,6 +7,7 @@ end
|
||||||
hook.Add("AddToolMenuCategories", "Beatrun_Category", function()
|
hook.Add("AddToolMenuCategories", "Beatrun_Category", function()
|
||||||
spawnmenu.AddToolCategory("Beatrun", "Client", language.GetPhrase("beatrun.toolsmenu.client"))
|
spawnmenu.AddToolCategory("Beatrun", "Client", language.GetPhrase("beatrun.toolsmenu.client"))
|
||||||
spawnmenu.AddToolCategory("Beatrun", "Server", language.GetPhrase("beatrun.toolsmenu.server"))
|
spawnmenu.AddToolCategory("Beatrun", "Server", language.GetPhrase("beatrun.toolsmenu.server"))
|
||||||
|
spawnmenu.AddToolCategory("Beatrun", "Extra", language.GetPhrase("beatrun.toolsmenu.extra"))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
hook.Add("PopulateToolMenu", "Beatrun_ToolMenu", function()
|
hook.Add("PopulateToolMenu", "Beatrun_ToolMenu", function()
|
||||||
|
@ -435,4 +436,15 @@ hook.Add("PopulateToolMenu", "Beatrun_ToolMenu", function()
|
||||||
experimentals:CheckBox("\"Slippy Wallruns\"", "Beatrun_Experimentals_SlippyWallrun")
|
experimentals:CheckBox("\"Slippy Wallruns\"", "Beatrun_Experimentals_SlippyWallrun")
|
||||||
experimentals:ControlHelp("You randomly drop from wallruns with a different weapon out. Requires Cruelty Parkour to be ON.")
|
experimentals:ControlHelp("You randomly drop from wallruns with a different weapon out. Requires Cruelty Parkour to be ON.")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
spawnmenu.AddToolMenuOption("Beatrun", "Extra", "beatrun_extra", "#beatrun.toolsmenu.extra.name", "", "", function(panel)
|
||||||
|
panel:ClearControls()
|
||||||
|
panel:SetName("#beatrun.toolsmenu.extra.desc")
|
||||||
|
|
||||||
|
panel:CheckBox("#beatrun.toolsmenu.extra.stats", "Beatrun_HUDStats")
|
||||||
|
panel:ControlHelp("#beatrun.toolsmenu.extra.statsdesc")
|
||||||
|
|
||||||
|
panel:CheckBox("#beatrun.toolsmenu.extra.speedrunsverif", "Beatrun_HUDVerification")
|
||||||
|
panel:ControlHelp("#beatrun.toolsmenu.extra.speedrunsverifdesc")
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -19,6 +19,7 @@ local timecolor = color_neutral
|
||||||
|
|
||||||
if CLIENT then
|
if CLIENT then
|
||||||
CreateClientConVar("Beatrun_ShowSpeedometer", 1, true, true, language.GetPhrase("#beatrun.convars.showspeedometer"), 0, 1)
|
CreateClientConVar("Beatrun_ShowSpeedometer", 1, true, true, language.GetPhrase("#beatrun.convars.showspeedometer"), 0, 1)
|
||||||
|
CreateClientConVar("Beatrun_HUDStats", "0", true, false, "", 0, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
if SERVER then
|
if SERVER then
|
||||||
|
@ -264,6 +265,44 @@ function CourseHUD()
|
||||||
surface.SetTextColor(r, g, b, a)
|
surface.SetTextColor(r, g, b, a)
|
||||||
surface.SetTextPos(ScrW() * 0.85 - w * 0.5 + vpx, ScrH() * 0.85 + vpz)
|
surface.SetTextPos(ScrW() * 0.85 - w * 0.5 + vpx, ScrH() * 0.85 + vpz)
|
||||||
surface.DrawText(text)
|
surface.DrawText(text)
|
||||||
|
|
||||||
|
if GetConVar("Beatrun_HUDStats"):GetBool() then
|
||||||
|
local ang1 = ply:GetAimVector()
|
||||||
|
ang1 = math.Round(ang1:Angle()[2] % 90, 0)
|
||||||
|
surface.SetTextPos(ScrW() * 0.85 - w * 0.5 + vpx, ScrH() * 0.88 + vpz)
|
||||||
|
surface.DrawText(ang1)
|
||||||
|
|
||||||
|
surface.SetTextPos(ScrW() * 0.87 - w * 0.5 + vpx, ScrH() * 0.88 + vpz)
|
||||||
|
surface.DrawText("Angle")
|
||||||
|
|
||||||
|
surface.SetTextPos(ScrW() * 0.85 - w * 0.5 + vpx, ScrH() * 0.90 + vpz)
|
||||||
|
surface.DrawText(ply:GetWallrun())
|
||||||
|
surface.SetTextPos(ScrW() * 0.87 - w * 0.5 + vpx, ScrH() * 0.90 + vpz)
|
||||||
|
surface.DrawText("Wall stat")
|
||||||
|
|
||||||
|
if ply:UsingRH() then
|
||||||
|
surface.SetTextPos(ScrW() * 0.85 - w * 0.5 + vpx, ScrH() * 0.92 + vpz)
|
||||||
|
surface.DrawText(tostring(ply:GetActiveWeapon():GetQuakeJumping()))
|
||||||
|
surface.SetTextPos(ScrW() * 0.89 - w * 0.5 + vpx, ScrH() * 0.92 + vpz)
|
||||||
|
surface.DrawText("Quake")
|
||||||
|
end
|
||||||
|
|
||||||
|
surface.SetTextPos(ScrW() * 0.85 - w * 0.5 + vpx, ScrH() * 0.94 + vpz)
|
||||||
|
if (ply:GetWallrunTime() - CurTime()) < 0 then
|
||||||
|
surface.DrawText("0.00")
|
||||||
|
else
|
||||||
|
surface.DrawText(tostring(math.Round(ply:GetWallrunTime() - CurTime(), 2)))
|
||||||
|
end
|
||||||
|
|
||||||
|
surface.SetTextPos(ScrW() * 0.89 - w * 0.5 + vpx, ScrH() * 0.94 + vpz)
|
||||||
|
surface.DrawText("Wallrun Time Remains")
|
||||||
|
|
||||||
|
surface.SetTextPos(ScrW() * 0.85 - w * 0.5 + vpx, ScrH() * 0.96 + vpz)
|
||||||
|
surface.DrawText(tostring(CurTime() < ply:GetWallrunTime()))
|
||||||
|
|
||||||
|
surface.SetTextPos(ScrW() * 0.89 - w * 0.5 + vpx, ScrH() * 0.96 + vpz)
|
||||||
|
surface.DrawText("Wallrunning")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if incourse and pbtimes then
|
if incourse and pbtimes then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
VERSIONGLOBAL = "v1.0.1"
|
VERSIONGLOBAL = "v1.0.4"
|
||||||
|
|
||||||
DeriveGamemode("sandbox")
|
DeriveGamemode("sandbox")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue