Commit Graph

226 Commits

Author SHA1 Message Date
Dan
3d9658d2d5 Passenger control for setting antenna mode 2020-11-29 15:21:29 +00:00
Dan
fb13e79e3b Changed PLY:CanRunRadar() to PLY:CanViewRadar() 2020-11-13 19:45:48 +00:00
Dan
964f97835b Can't turn on radar power as the passenger
If CONFIG.allow_passenger_control is set to true, then the passenger can turn on the power.
2020-11-13 19:35:00 +00:00
Dan
d7aadf29dc Added PLY:CanControlRadar() 2020-11-13 19:18:39 +00:00
Dan
93439a7df3 Block key binds from being registered if the resource name is not wk_wars2x 2020-11-13 19:15:04 +00:00
Dan
b687908a91 Added console message for registering key binds 2020-11-12 09:49:56 +00:00
Dan
12c29421cd Another attempted fix for the key binds issue
Key binds now get registered only when the player has spawned in, rather than when the code gets run at the bottom of the file.
2020-11-12 09:34:52 +00:00
Dan
7bbfd8c27a UI settings get loaded when the resource is restarted 2020-11-07 13:12:05 +00:00
Dan
6266bd8ed4 NUI callback response formatting 2020-11-07 12:35:46 +00:00
Dan
a0ef45c60d Remove dynamic resource naming 2020-11-05 11:51:51 +00:00
Dan
f00d747d92 Fixed radar disply not hiding for the passenger 2020-11-05 10:08:04 +00:00
Dan
aef30b5729 Added PLY:CanRunRadar() to override PLY:VehicleStateValid()
The driver and passenger of a vehicle should now be able to run radar independently, this is a very early implementation as there is no syncing between players. If the driver locks a speed, the passenger's radar will be unchanged, and so on.
2020-07-20 09:32:20 +01:00
Dan
daf191d6ea The passenger should now also be able to open the remote 2020-07-19 17:49:31 +01:00
Jamelele
b8b2eecaea Return callbacks with 'ok' instead of an empty object 2020-06-02 14:36:53 +00:00
Jamelele
e0931ed351 Add callbacks to all events to prevent requests from stalling 2020-05-24 15:22:39 +00:00
Dan
9de5694899 Attempted workaround for control issues 2020-04-26 16:20:17 +01:00
Dan
dcc1991490 Fixed the heading check not working near 0deg 2020-03-28 21:48:58 +00:00
Dan
2d9ec9739f Adjusted the display update rate 2020-03-28 21:48:23 +00:00
Dan
bcb772514f Code consistency 2020-03-28 17:52:53 +00:00
Dan
c59417eba7 Removed keyboard set code 2020-03-28 17:52:01 +00:00
BlockBa5her
c51f7de607 remove commented code 2020-03-26 17:56:07 -07:00
BlockBa5her
0aecc6fe33 switch from gta controls to key maps 2020-03-26 17:49:09 -07:00
Dan
8bbad1de5d Fixed a bug that caused boats and aircraft to be detected 2020-03-25 10:34:42 +00:00
Dan
f30115d0ac Fixed a bug that caused the fast speeds to not be accurate 2020-03-14 22:56:41 +00:00
Dan
fa9b5d068c QSV must be closed for the system to register it as watched 2020-03-13 21:13:52 +00:00
Dan
6ff6925630 Added command to "reset" KVPs 2020-03-13 20:57:57 +00:00
Dan
cea0bf9c83 Added first time quick start video with config option 2020-03-13 20:57:31 +00:00
Dan
a1f72e7c91 Fixed operator menu bugging out when the power was reset 2020-03-13 11:31:51 +00:00
Dan
e8b4c53bf0 Fixed keybinds working in pause menu 2020-03-13 11:31:16 +00:00
Dan
a4f38eaa05 Fix spelling 2020-03-12 14:45:57 +00:00
Dan
09147699a3 Operator menu settings now get saved 2020-03-12 14:44:10 +00:00
Dan
265090d5f1 Added networked event to open the remote 2020-03-12 09:53:25 +00:00
Ryan S
b0d0fbe1ea Add heading check
This is typically not something that is in a manual, but rather taught
in the certification class an officer takes to use radar (in the USA).
The further off the road they sit to run radar, or the more of an angle
that sit to traffic, the less accurate the return will be. Instead of
requiring users to know how doppler works, simplify it and just not
return the vehicle.

The original idea stemmed from https://www.quora.com/How-does-police-radar-work-when-officers-are-perpendicular-to-the-road
2020-03-11 23:02:08 -04:00
Dan
f678359fe6 Switched to local saving for UI data 2020-03-11 19:52:05 +00:00
Dan
d6526452bb Key bind set key now falls under the keylock 2020-03-06 10:08:47 +00:00
Dan
1e2578c877 Fix for capitalised resource names 2020-03-05 21:49:30 +00:00
Dan
d491dc50e4 1.0.0!
- Added a server export to toggle plate lock on a client
- Removed old and redundant code
- Added the licence to the top of every file
- Added a small section at the bottom of config.lua to set the default UI element scale, as well as the safezone
- Changed the height of the UI settings box to stop the slider and close button from overlapping
- Added the ability to disable server console messages
- Formatted all code to tab size 4!
2020-03-05 19:40:37 +00:00
Dan
b3e7e87a25 Fixed xmit and mode working when powering up 2020-02-28 22:51:45 +00:00
Dan
e8d6ab1689 Great Scott! 1955! 2020-02-28 22:38:10 +00:00
Dan
27455e51dd Operator menu defaults can now be set in the config 2020-02-27 16:13:16 +00:00
Dan
5580cc8745 Added a second set of binds for small keyboards
Also changed the key lock key to L, as the "switch binds" key is now K
2020-02-25 14:23:31 +00:00
Dan
3f41e5b8f8 Fixed menu button working when the power was off 2020-02-22 12:03:51 +00:00
Dan
a00b5417ef Added new plate hit BOLO sound 2020-02-19 09:34:55 +00:00
Dan
5b8695397b Added in separate option for plate reader audio 2020-02-18 18:06:34 +00:00
Dan
4c96e2dda4 Fixed keyboard only 2020-02-18 17:01:26 +00:00
Dan
fee5a569da Disabled controller, changed default volume 2020-02-18 15:15:29 +00:00
Dan
d6511b8b49 Comments and formatting 2020-02-18 14:04:52 +00:00
Dan
08819340a6 Removed debug mode stuff 2020-01-30 20:13:32 +00:00
Dan
257886fd0c Plate reader locking and BOLO, config change, slight JS cleanup 2020-01-30 14:53:22 +00:00
Dan
bf2230cf23 Plate text colour change and reduced changePlate call 2020-01-28 09:46:16 +00:00