You need to update your lua/bin!

Update modules and fix Presences
This commit is contained in:
Jonny_Bro (Nikita) 2023-07-21 21:17:26 +05:00
parent b6687c9cd6
commit a1ca7e35b9
5 changed files with 8 additions and 9 deletions

View file

@ -18,6 +18,7 @@ All of the settings below can be changed in the configuration menu
* Toggle between old and new (like in ME) Kick-Glitch - `Beatrun_OldKickGlitch`.
* Change HUD's colors - `Beatrun_HUDTextColor`, `Beatrun_HUDCornerColor`, `Beatrun_HUDFloatingXPColor`.
* Allow players to spawn props without admin rights - `Beatrun_AllowPropSpawn`.
* `Beatrun_DisableGrapple` - Disables grapple ability.
* Discord Rich Presence (extract `lua` folder to `garrysmod`, along side with `addons` folder).
* Small camera punch when diving.
* Ability to remove ziplines that created with *Zipline Gun* - RMB.
@ -27,8 +28,7 @@ All of the settings below can be changed in the configuration menu
- [ ] Gamemodes menu
## Fixes and changes from previous version
* Removed unused anims and merged some together.
* Added a module for Steam Presence.
* `Beatrun_DisableGrapple` - Disables grapple ability.
# All changes and fixes
* Course saving works with compression and without.
@ -45,6 +45,7 @@ All of the settings below can be changed in the configuration menu
* Allowed punching while crouching.
* Grapple fixes. Now it moves with entity it attached to and other players can see it.
* More reliable grappling.
* Merged some anims into 1 file.
# Credits
* modeltexturesbones - Changed anims a bit.

View file

@ -1,4 +1,4 @@
if not system.IsWindows() or not file.Exists("lua/bin/gmcl_gdiscord_*.dll", "GAME") then return end
if file.Find("lua/bin/gmcl_gdiscord_*.dll", "GAME") == nil then return end
require("gdiscord")

View file

@ -1,13 +1,11 @@
if not system.IsWindows() or not file.Exists("lua/bin/gmcl_steamfriends_win64.dll", "GAME") then return end
if file.Find("lua/bin/gmcl_steamfriends_*.dll", "GAME") == nil then return end
local richtext = ""
local nextupdate = 0
local function UpdateRichPresence()
if CurTime() < nextupdate then return end
local rp = steamworks.SetRichPresence
if not rp then return end
local ply = LocalPlayer()
if not ply.GetLevel then return end
@ -26,7 +24,7 @@ local function UpdateRichPresence()
if richtext ~= updatedtext then
richtext = updatedtext
rp("generic", richtext)
steamworks.SetRichPresence("generic", richtext)
print("Updating presence")
end
@ -34,7 +32,7 @@ local function UpdateRichPresence()
end
local function LoadRichPresenceDLL()
require("steamfriends")
require("steamrichpresencer")
end
hook.Add("OnGamemodeLoaded", "LoadDLL", function()