Commit Graph

65 Commits

Author SHA1 Message Date
Dan 6877d61267 Radar menu now opens and works properly
Settings configured in the menu also have an effect on the radar's operation, e.g. the antenna sensitivities effect the range.
2019-12-01 16:56:20 +00:00
Dan 5f67fec726 Trying to optimise the trace system a bit by reducing trace tests on already hit vehicles 2019-12-01 00:47:44 +00:00
Dan 3718f697fb Fast vehicles have to be going faster than target vehicles now
I ideally didn't want to do this, to make it more realistic, but the fast box was just being spammed too much.
2019-11-30 23:13:06 +00:00
Dan 0c5bf69be6 Patrol speed change, update debug spheres, fast label changes 2019-11-30 22:56:53 +00:00
Dan 8d9ff824f4 Variable changes, altered size of dynamic spheres, changed xmit toggle behaviour 2019-11-30 21:37:25 +00:00
Dan 88da4310cb Added in debug spheres for active vehicles 2019-11-30 17:13:16 +00:00
Dan cfed828311 Removed old sort mode variable and comment 2019-11-30 15:05:52 +00:00
Dan 36e582e596 Added var for when the menu is active 2019-11-30 15:05:15 +00:00
Dan 205aa6e917 Changed trace start point, added line drawing for debug 2019-11-30 15:03:44 +00:00
Dan 6a9d30f5e3 Power button on UI works, added simulated startup, extra ray trace 2019-11-29 23:12:50 +00:00
Dan 89bf3c08cf Removed old sorting code 2019-11-29 20:56:53 +00:00
Dan e0af20ab40 Removed RemoveDuplicateCapturedVehicles() 2019-11-29 20:45:51 +00:00
Dan cb6eccfa98 Number of rays cached again, added 1 additional trace for same mode 2019-11-29 20:44:04 +00:00
Dan 5bfdbef76a Cleaned up ray thread code a bit, swapped light if for inline if 2019-11-29 19:34:31 +00:00
Dan 55d33a74df Antenna modes now displayed, optimisations 2019-11-29 18:53:07 +00:00
Dan 57732159ce Directional arrows now work 2019-11-29 11:12:41 +00:00
Dan 8f3b07b0a2 Update cl_radar.lua 2019-11-29 09:50:06 +00:00
Dan 962340d4e9 Vehicle data sending optimised and automated 2019-11-29 09:44:25 +00:00
Dan f0c8a4a086 All speed zones displayed, 'HLd' shown when in hold 2019-11-27 21:23:33 +00:00
Dan 7872f6453f JS switch/case, xmit light, speed display setting, reduced player vehicle check rate 2019-11-27 20:41:46 +00:00
Dan f404890e10 Button click events set, antenna mode set working 2019-11-27 11:24:33 +00:00
Dan 9585ce5851 Update cl_radar.lua 2019-11-26 20:25:06 +00:00
Dan 1eef251ce8 Remote const structure, test speed display 2019-11-26 14:56:08 +00:00
Dan 21e9fc9b6b Remote opens on F5, closes on Esc, updated functions and other stuff 2019-11-26 10:56:52 +00:00
Dan 897ced6c2d Vehicle gathering only works if power is on and one of the antennas 2019-11-26 09:56:05 +00:00
Dan 79c82499f2 Testing reduced traces, added fast display toggle 2019-11-25 19:32:40 +00:00
Dan 823124fffa Added direction text to debug ui 2019-11-25 18:22:54 +00:00
Dan 348ee28ab6 Setup operator settings table 2019-11-23 19:01:36 +00:00
Dan af256aedd2 Changed how active vehicles are obtained, removed anything to do with fast limit
Also removed user sorting
2019-11-21 21:42:55 +00:00
Dan c1fa22cb04 Removed ceiling of vehicle sizes 2019-11-21 17:53:07 +00:00
Dan 8266033dcb Added radar power functions 2019-11-21 17:51:56 +00:00
Dan 224b583131 Update cl_radar.lua 2019-11-21 17:47:56 +00:00
Dan 8ff0662aa3 Updated file tagging, moved function 2019-11-18 21:16:21 +00:00
Dan ca8791a039 Removed debug prints from lua file, updated frame.png to look more real and 3d 2019-11-18 12:19:42 +00:00
Dan 06bba92f0e Fixed number position, reduced speed zone border 2019-11-15 21:00:43 +00:00
Dan f274f61b45 Re-added filtering duplicates, now keeps a duplicate if the rayType is different 2019-11-11 18:37:47 +00:00
Dan 883382ce76 Update cl_radar.lua 2019-11-11 18:27:40 +00:00
Dan 5c100f3774 Vehicle data is now split based on antenna mode, optimised some functions 2019-11-11 16:51:01 +00:00
Dan d633b09104 Restructured cl_radar.lua to be more readable 2019-11-11 12:34:28 +00:00
Dan 1f587ca4f3 Update cl_radar.lua 2019-11-11 10:50:06 +00:00
Dan a5a611cda1 Removed beep because it gets annoying 2019-11-11 09:53:29 +00:00
Dan 9dbb5acd93 Added a beep sound when vehicles are caught in the fast box 2019-11-10 21:47:18 +00:00
Dan 2425f2cefa Update cl_radar.lua 2019-11-10 20:30:02 +00:00
Dan 8cdd2d2f40 Added temporary UI 2019-11-10 19:08:09 +00:00
Dan 89c4c53757 Active vehicles caught by the radar can now be obtained! 2019-11-10 18:24:38 +00:00
Dan e4e00557e6 Improved method for getting vehicles for display 2019-11-10 17:28:21 +00:00
Dan 13b013160c Added fastLimit var and setter/getter, removed test code 2019-11-10 16:39:02 +00:00
Dan 1e63bb6794 Now able to get the relevant vehicles for display
Also added debug keybinds to toggle antennas, 'Num 7' and 'Num 8'
2019-11-10 16:28:05 +00:00
Dan e38f9f0123 Added a way for the opp radar mode to work, vehicle data now has the 'rayType' variable 2019-11-10 13:10:23 +00:00
Dan bdf204cdbf Fixed GetFastestFrontAndRear() 2019-11-10 12:22:04 +00:00