Commit Graph
157 Commits
Author SHA1 Message Date
Linden 012b68a3be fix(client/zones): remove all zone references
Should resolve #191.
2022-12-30 21:07:32 +11:00
Linden 6a704c40fe refactor(client/zones): re-order zones and call onExit before onEnter
insideZones will be stored as a map rather than an array for simplicity.
Store zones the player is entering and exiting, then sort based on distance;
always triggering onExit for all zones before onEnter.
See #179.
2022-12-24 16:08:21 +11:00
Linden b688b98bba fix(client/raycast): missing table
This was broken with 26538b8
2022-12-20 17:54:59 +11:00
Linden 0ea5725b86 refactor(imports/getCore): add removal notice
Was deprecated ~3 months ago, will be removed in the next large update.
2022-12-20 08:22:14 +11:00
TheFarFantomas cfb3e4c7d9 feat(imports): requestScaleformMovie (#180) 2022-12-20 08:11:18 +11:00
Linden 511241e03c refactor(client/points): ensure coords are a vector 2022-12-20 08:09:35 +11:00
Linden 08a725105b fix(client/zones): disable marker rotation 2022-12-17 06:21:22 +11:00
Linden ccad59fcf6 fix(server/logger): validate response on failed http request
One person is receiving a CURL error rather than a response from
datadog, leading to a nil index.
We'll also use the newly supported "warn" function.
2022-12-15 11:24:08 +11:00
DokaDoka 61a940a188 refactor(client/zones): redo triangle algorithm 2022-12-13 14:29:23 +11:00
Linden 124a5f15ba refactor(imports/callback): response varargs
Trying to have scrt compatible responses gets weird when using
msgpack.
2022-12-13 08:26:43 +11:00
Scully 231d1c3c77 feat: improved RedM support (#162)
* Improvements + remove redm keybind system as it's pointless
2022-11-26 13:05:55 +11:00
Linden ed7c04ac9c refactor(client/raycast): change los flags 2022-11-26 02:02:02 +11:00
Linden f96cb13ff4 refactor(client/addKeybind): save control hash 2022-11-24 17:31:03 +11:00
Linden ba635b91e7 fix(client/addKeybind): get control button when indexing currentKey
Changing the key binding for a command invalidates the previous result from
GetControlInstructionalButton. Use an index metamethod for backwards
compatibility and add the getCurrentKey method.
2022-11-24 17:16:57 +11:00
Linden 00c2086072 refactor(streaming): convert to modules
Import methods rather than call via exports.
2022-11-21 21:39:05 +11:00
Linden d2799075ad fix: types and nil-checks 2022-11-21 21:39:05 +11:00
Linden ce5697f3b2 feat(zones): add basic zone support to the server
Quick and dirty with many features stripped (onEnter/onExit/inside).
2022-11-16 23:07:53 +11:00
Linden 9b7eef2880 fix(client/zones): convert vector4 to vector3
Sometimes people send the incorrect types, and it's apparently on us (???)
to allow them to do the wrong thing and catch their mistakes for them.
2022-11-09 16:04:03 +11:00
Ehbw2 0d2c06e982 fix(logger/loki): Fix error when passing invalid/nil tags (#139) 2022-10-26 02:30:53 +11:00
Linden a2014502d5 refactor(addCommand): send raw input to callback
Resolves #101, just use a pattern or split the string.
2022-10-25 03:09:12 +11:00
Linden 03dcf14f7e fix(callback): multi-return values for callback method
Resolves #136
2022-10-25 03:03:03 +11:00
Linden 541e708970 refactor(addKeybind): move RegisterCommand to top 2022-10-25 02:58:39 +11:00
Linden 2bb0d68415 fix(callback): bad argument to unpack when callback throws error
Throwing an error responds with false rather than a string.
2022-10-19 20:20:38 +11:00
Linden ec18bbf34a fix(locale): setLocale 2022-10-19 04:14:36 +11:00
Linden 671be5e7a2 refactor(locale): simplify
BREAKING CHANGE (kind of)
Remove user-selection for locales. Adds mostly unnecessary complexity,
and most people don't want to bother with it anyway.

Locale is always based on the convar "ox:locale" instead.
2022-10-18 21:17:26 +11:00
Linden 5b2c74afa0 refactor(addKeybind): improve types 2022-10-16 12:49:47 +11:00
Dominic 63b8afa9ed refactor(addKeybind): consistency with defaultKey (#128) 2022-10-16 12:41:49 +11:00
Róbert Nagy a4d553cbb1 fix(logger): Fix bad argument #2 to strsplit (#125)
Only Loki logging was affected. When no tags were given and the source is console the convertDDTagsToKVP break because of the nil value.
2022-10-15 13:04:14 +11:00
Dominic 4f71595122 refactor(keybinds): rename module, tweaks (#127) 2022-10-15 10:08:20 +11:00
Linden 01b4c53a9d fix(keybinds): typo 2022-10-14 11:46:06 +11:00
Linden 7355d9ef25 refactor(keybinds): formatting and tweaks 2022-10-14 11:01:57 +11:00
Dominic de23afa7f8 feat(imports): add keybinds manager (#124) 2022-10-14 10:58:45 +11:00
Linden 2c7e812eaf refactor(logger/server): cleanup
DRY
2022-10-11 00:40:40 +11:00
Idris Dev c35b70f597 feat(logger): support grafana loki (#115) 2022-10-10 18:03:54 +11:00
Linden 79dd3f5934 fix: no-op 2022-10-10 16:56:05 +11:00
Linden 988836dcb7 feat(server/logger): add player data to tags 2022-10-09 01:57:02 +11:00
Linden f5d0deeb21 refactor(server/logger): batch log submissions
Create a temporary table and submit logs in a single batch after 500ms.
Includes some micro-optimisation and a new convar to set logging service.
2022-10-09 00:24:49 +11:00
Linden b05594e77f fix(callback): pack nil values
See #117
2022-10-08 22:20:46 +11:00
Linden 0e9ad23fb3 fix: types 2022-10-02 20:19:35 +11:00
DokaDoka 0014dfbe1f fix(client/zones): expand vectors
for oal enjoyers
2022-09-21 14:45:22 +10:00
Linden 025a8eb168 tweak(client/points): set point.isClosest 2022-09-21 01:51:17 +10:00
DokaDoka ad219b2508 feat(client/zones): debug walls
brings the debug display more in line with the creator
2022-09-20 23:52:56 +10:00
Linden f1671f14bc fix(imports/player): return function 2022-09-18 22:41:25 +10:00
Linden cd8e4bbd4d fix(client/zones): yet another debug fix
Because a zone vanishing upon entry is of no use.
2022-09-17 18:21:38 +10:00
Linden 863ac03ca3 refactor(imports): more type fixes 2022-09-14 16:12:43 +10:00
Linden 032e0e2db1 fix(client/zones): CZone.contains return type 2022-09-14 08:12:12 +10:00
Linden 62d56fa885 refactor(client/zones): add types and change indentation 2022-09-14 08:08:00 +10:00
Linden 9a17b9bac5 perf(client/points): apply optimisations used in zones
"SphereZones" are really just points with some extra overhead, but the module
had some overall improvements to improve performance.
Includes type definitions for sumneko.
2022-09-14 07:45:03 +10:00
Linden 32e2da2d8f refactor(init): type-fixes and minor adjustments 2022-09-14 01:42:14 +10:00
Linden 26538b8148 refactor(imports): assign modules directly to lib namespace
Mostly a change for improved intellisense with sumneko lua.
Includes some type fixes and deprecation notices.
2022-09-14 01:20:50 +10:00