Animations installer and cleanup

This commit is contained in:
Jonny_Bro (Nikita) 2023-07-28 21:37:45 +05:00
parent 8699efe670
commit 34ec4813a4
18 changed files with 19 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
beatrun/_new/climbanim.mdl Normal file

Binary file not shown.

Binary file not shown.

BIN
beatrun/_new/climbanim.vvd Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
beatrun/_old/climbanim.mdl Normal file

Binary file not shown.

Binary file not shown.

BIN
beatrun/_old/climbanim.vvd Normal file

Binary file not shown.

17
beatrun/anims.py Normal file
View file

@ -0,0 +1,17 @@
import os
import sys
import shutil
files_new = [ file for file in os.listdir("_new") ]
files_old = [ file for file in os.listdir("_old") ]
i = input("Type \"y\" for new animations or \"n\" for old animations to be installed: ")
if i == "y":
for file in files_new:
shutil.copy2(file, "gamemodes/beatrun/content/models")
else:
for file in files_old:
shutil.copy2(file, "gamemodes/beatrun/content/models")
print("i hate python")
sys.exit(0)

View file

@ -245,7 +245,6 @@ function CourseHUD()
text = speed .. " km/h" text = speed .. " km/h"
local w, _ = surface.GetTextSize(text) local w, _ = surface.GetTextSize(text)
w = w or 0 w = w or 0
local r, g, b, a = string.ToColor(GetConVar("Beatrun_HUDTextColor"):GetString()) local r, g, b, a = string.ToColor(GetConVar("Beatrun_HUDTextColor"):GetString())
@ -268,9 +267,8 @@ function CourseHUD()
if timealpha > 0 then if timealpha > 0 then
local w, _ = surface.GetTextSize(timetext) local w, _ = surface.GetTextSize(timetext)
w = w or 0 w = w or 0
timealpha = math.max(0, timealpha - FrameTime() * 250) timealpha = math.max(0, timealpha - FrameTime() * 250)
timecolor.a = math.min(255, timealpha) timecolor.a = math.min(255, timealpha)
@ -366,4 +364,4 @@ net.Receive("BeatrunSpawn", function()
if LocalPlayer().GetInfoNum then if LocalPlayer().GetInfoNum then
StartCourse(spawntime) StartCourse(spawntime)
end end
end) end)