Commit graph

4 commits

Author SHA1 Message Date
6a6db8fa01
LLB Baseball: Support new AirShake parameter in util.ScreenShake
(cherry picked from commit 7ebd38618b2116a98291037137d73d962cb75e3b)
2023-09-18 20:38:04 -07:00
fa60e3be1c
LLB Baseball: Code organization & improvements
- Split entity code Lua files by realm (server, client, shared)
- Use $pp_colour_inv for color inversion
- Remove pp/texturize/invert.png as we now use $pp_colour_inv in its place
- Fixed an issue where hitting the ball perpendicular to an axis it's locked to would massively slow the ball down
- Fixed a bug where ball damage events may have accidentally been applied twice
- Use util.AddNetworkString in entity Lua file initialization instead of every time an instance of the entity is initialized
- Use better hook initialization and removal (ent identifier which uses IsValid check)
- Color invert now only applies to players within the entity's PVS instead of all players on the server
- Added some additional IsValid checks to prevent errors
- Add small screen shake effect whenever the ball collides with a wall
- Hitting the ball now 'locks' the player (freezes them & gives them temporary godmode) until the ball is unfrozen
2023-07-16 21:07:08 -07:00
Chev
d7af6df94d Add addon.json to every addon 2021-01-03 16:21:23 -08:00
Chev
c25dfbeb4c Initialize addons 2021-01-03 16:02:16 -08:00