Dan
95d8feb6a6
feat(sync): locked speed overrides recipient's speed data
...
When the driver/passenger locks a speed, the data from the player who locked the speed is gathered and sent to the other player. This way the players will have the same data on both ends.
2021-03-03 11:59:59 +00:00
Dan
eacb42851c
feat: speed lock only works if the player can control the system
2021-03-02 21:01:34 +00:00
Dan
ec42d6860b
feat: basic speed lock sync
2021-03-02 20:44:21 +00:00
Dan
044b5fa412
refactor: remove callback from RADAR:SetAntennaMode()
2021-03-02 19:06:54 +00:00
Dan
0c85eb157f
refactor: remove callback from RADAR:ToggleAntenna
2021-03-02 10:44:01 +00:00
Dan
508f94684e
style: remove trailing spaces
2021-03-02 10:14:21 +00:00
Dan
6cf6761e51
feat: antenna mode sync and control for driver/passenger
2021-02-26 21:43:56 +00:00
Dan
0e46c7b8a1
feat: antenna power sync and control for driver/passenger
2021-02-26 20:50:02 +00:00
Dan
3fd458ac63
feat: power button sync and passenger control
...
The power state is now synced between the driver and passenger. The passenger can also toggle the radar's power if the config line allows for it.
2021-02-26 15:42:17 +00:00
Dan
ff668a92fc
refactor: move player data to own file
2021-02-25 13:04:00 +00:00
Dan
a812f23174
docs: update copyright range
2021-02-24 15:28:56 +00:00
Dan
21fde3468e
fix: power button spam breaking display
2021-02-24 15:16:30 +00:00
Dan
8658de39ad
Added a notification when resetting radar data
2021-01-07 11:06:25 +00:00
Dan
cc89d4c72a
Fixed UI settings not reloading on resource restart
2021-01-07 10:52:30 +00:00
Dan
a166dda1cb
Added config option to only auto lock speeds if it's a player
2021-01-07 10:50:52 +00:00
Dan
12d1a6503b
Passenger control for operator menu
2020-11-29 15:31:01 +00:00
Dan
8ced0c1fd1
Passenger control for antenna toggle
2020-11-29 15:24:45 +00:00
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