Repository navigation
v3.0.0 - #6
Merged
Merged
v3.0.0#6
Conversation
This aims to provide more granular control over how and when weapon switching is updated, specifically for addons that manipulate player inventory
to show the number of hidden categories
Add SetPhysVelocity
Alias for Debug.SimpleVector
Allows for callback and persistence while listed under alyxlib
Player event now includes which hand equipped. The event is delayed to let the weapon entity move into the hand.
Functions for testing and drawing OBB and AABB intersections
Allows the inputs to update whenever the hand changes
debug_menu_width pairs with debug_menu_height for full customization. Menu is now updating when convars are changed (except offsets).
Stops warning appearing when variable is initialized as nil
Moving towards making the debug menu a self contained feature, decoupled from AlyxLib. This also brings a cheats menu.
Game clamps or fails above certain lengths (404 and 462). Will need to implement queued SendToConsole.
Added links to the new docs site and installer app. Updated Quick Setup guide for the new app-based workflow. Migrated project previews to local /assets folder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AlyxLib Changelog - v3.0.0
📦 Download Installer - New installer app for easy installation and updates (initial release - may contain bugs)
📚 Documentation - Full API reference (initial release - may contain errors)
You may need to update your code if you use these features:
Class System (
class.lua)_prefix instead of__self.__myUnsavedVarself._myUnsavedVar__is now reserved for meta-members onlyDebug Menu (
debug/debug_menu.lua)nilalyxlib_prefix from debug menu convarsalyxlib_debug_menu_showdebug_menu_showtitleproperty - make sure to update your cycle itemsString Extensions (
extensions/string.lua)string.trimleft→string.sliceleft(behavior unchanged)string.trimright→string.sliceright(behavior unchanged)string.trimleft,string.trimright,string.trimnow behave like traditional trim functionsInput System (
controls/input.lua)INPUT_CALLBACKtoInputGenericCallbackInputPressCallbackandInputReleaseCallback✨ NEW FEATURES & CHANGES
Class System
BindClass(): Binds a class to an already spawned entity persistentlyResumeThink()now checks if Think function exists before callingself:Save()is called with nameStorage System
nilallows you to essentially delete the saved valueInput System
kindandhandcallback parameters forInput:ListenToAnalog()handandkindparametersInput:ListenToAnalog()now properly handles hand kind andInputHandBothInput:StopListening(id)now properly stops listenersPlayer Data Management
player.data- More control over internal player datalocal data = require("alyxlib.player.data")Player Events
weapon_switchevent enhanced:Player Movement
GetPlayerMoveType()/SetPlayerMoveType()- Access player move type without player entity existingEasyConvars
EasyConvars:Exists()- Check if convar existsEasyConvars:AddPostInitializer()- Per-addon post initializersEasyConvars:SetPostInitializer()(now callsAddPostInitializer)Debug Menu Configuration
debug.debug_menu_cfg)Debug Menu Enhancements
debug_menu_floatingconvar makes menu float in world instead of attaching to handdebug_menu_width/debug_menu_heightdebug_menu_lockconvar prevents accidental draggingdebug_menu_extrasconvar enables extras tab by defaultdebug_menu_cheatsconvar enables cheats tab by defaultDebugMenu:SetItemVisibilityCondition()to show/hide items conditionallyr_cubemap_debug_colors)Precaching
GlobalPrecacheFlush()- Precache at runtime globallyPanorama
Math Utilities
math.obb)math.trunc()now handles negative numbers correctlyEntity Extensions
CBaseEntity:SetAbsVelocity()- Set absolute velocitySetPhysVelocity()- Convenience wrapper for aboveCBaseEntity:TrackProperty()now returns think name for stopping withCBaseEntity:SetContextThink()Global Functions
IsAddonEnabled(workshopID)- Check if workshop addon is enabledRandomChance(value1, value2, percentage)- Returns one of two values based on percentageTableFindKey(tbl, predicate)- Find table key matching predicateifrequire()not always returning module resultCommon Debugging
ent_print_children- Console command prints entity's childrenhlvr_give_grabbity_gloves- Console command gives player grabbity glovesprint_ent_by_index- Console command prints entity by indexRegisterAlyxLibEasyConvar()- Registers AlyxLib EasyConvars with callbacks and persistenceDebug Utilities
Debug.TableStr()- String representation of tablesDebug.SimpleVector()now accepts QAngles and tablesvecstr- Global alias forDebug.SimpleVectorentfind- Global alias forDebug.FindEntityByPatternentspawn()- Quick entity spawning for prototypingVR Debug
noclip_vr_enabledhidden convar moved out ofdebug/vr.luafor universal accessNoVR Mode
alyxlib_start_print_novr_button_pressesandalyxlib_stop_print_novr_button_pressesGENERAL