Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WIP - speed radar (realistic)

Featured Replies

  • Popular Post

77acc6b283.jpg
WIP - modeled from the Kustom Signal Eagle II radar system, this is a very popular radar system among law enforcement.

Initially I planned on not releasing this outside of my gaming community; however, I've had a few PM's asking for me to release an updated version of my IV speed radar.


This is more of a simulation than a 'script'. Modes will be represented accurately, and the operation will be as close to real life as possible. I've enhanced the algorithms from my last radar (v2 of the gta:IV radar - which was never released), and they're much much more efficient - you shouldn't notice any performance hit when using this, as some guys in my community using the current radar do. There will be no visual indication on the vehicle if you target them, or lock their speed (just like in real life).

This is nothing like the existing radars which draw a circle in the road and only capture the speed of vehicles who drive through it. This is an example of the capture area:

359d2aeb26.jpg
In reality, the capture area would extend much further from the patrol vehicle (default 100m)

To Do:
-GUI (needs touching up, alignments, etc.)
-Take one more final look at the capture algorithm - its still a bit slow, and there's no harm in taking a few days to go over it again.
-Mode switching
-Fastest mode
-Keys/Settings file

This will be released before December on scripthook v dot net.

 

Matthew Evans (rushlink)

Edited by rushlink

Community director, www.lc-gaming.net

  • Replies 29
  • Views 5.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Yep.   Still working on a few things. Hopefully I can get a full week of testing without any problems this coming week. Very close to having a finished product :)

  • So I guess this is dead, then? Unfortunate. Looked nice.

  • Yes. IRL, you have two 'types' of modes. Moving and stationary, I've simulated these... Moving modes: Front/same direction Front/opposite direction Rear/same direction

It's about time someone finally began work on one of these.  Looks great so far!  One question, when you say mode switching, does that mean we will be able to switch the radar to vehicles coming from behind us as well?

  • Author

 

59 minutes ago, jmanc6 said:

It's about time someone finally began work on one of these.  Looks great so far!  One question, when you say mode switching, does that mean we will be able to switch the radar to vehicles coming from behind us as well?

 

Yes.

IRL, you have two 'types' of modes. Moving and stationary, I've simulated these...

Moving modes:

  1. Front/same direction
  2. Front/opposite direction
  3. Rear/same direction
  4. Rear opposite direction

Stationary modes: (IRL you have to hit a little button, but this will just take care of it automatically... <10mph = stationary)

  1. Front, same and opposite direction
  2. Rear, same and opposite direction

In addition to these modes, there is a 'fastest mode' switch.

  • In normal mode (IRL), the radar works by returning the strongest signal returned to the antenna - this can quite often be the largest vehicle on the roadway, or the closest vehicle. Imagine that it's a video camera - it'll return the vehicle that takes the most screen space... basically... (closer vehicles = more screen area)
  • In fastest mode (IRL), the radar works by returning the fastest signal returned back to the antenna, irregardless of other signals. This allows law enforcement to capture the speed of a motorcycle passing a semi - whereas in normal mode the speed of the semi would be returned.
  • Normal mode in the script will return the closest vehicle - It'll take ages to sort through vehicle sizes in GTA, so that's the most performance friendly, most realistic way to do it.
  • Fastest mode in the script will count each and every vehicle in the capture area until it finds the fastest, and return the speed of that.

Community director, www.lc-gaming.net

52 minutes ago, rushlink said:

 

 

Yes.

IRL, you have two 'types' of modes. Moving and stationary, I've simulated these...

Moving modes:

  1. Front/same direction
  2. Front/opposite direction
  3. Rear/same direction
  4. Rear opposite direction

Stationary modes: (IRL you have to hit a little button, but this will just take care of it automatically... <10mph = stationary)

  1. Front, same and opposite direction
  2. Rear, same and opposite direction

In addition to these modes, there is a 'fastest mode' switch.

  • In normal mode (IRL), the radar works by returning the strongest signal returned to the antenna - this can quite often be the largest vehicle on the roadway, or the closest vehicle. Imagine that it's a video camera - it'll return the vehicle that takes the most screen space... basically... (closer vehicles = more screen area)
  • In fastest mode (IRL), the radar works by returning the fastest signal returned back to the antenna, irregardless of other signals. This allows law enforcement to capture the speed of a motorcycle passing a semi - whereas in normal mode the speed of the semi would be returned.
  • Normal mode in the script will return the closest vehicle - It'll take ages to sort through vehicle sizes in GTA, so that's the most performance friendly, most realistic way to do it.
  • Fastest mode in the script will count each and every vehicle in the capture area until it finds the fastest, and return the speed of that.

I'm loving the realism factor of this great job and good luck!

I have totally been thinking about this same thing but using a skin of a Stalker Unit and function. Very awesome that I stumbled upon this. If you end up doing a Applied Concepts unit and need any pictures, video or sounds or such let me know since I have both a Stalker Dual and DSR unit.

On 03/11/2015, 06:16:30, rushlink said:

This will be released before December on scripthook v dot net.

Why? Scripthook doesn't play very nice with RAGEHook for some people. I, for one, wouldn't be able to use this if you use Scripthook.

Ah'm orderin' you to STAHP!

  • Author
On 11/8/2015, 5:21:20, Pipeline said:

Why? Scripthook doesn't play very nice with RAGEHook for some people. I, for one, wouldn't be able to use this if you use Scripthook.

I don't want to bash on rageHook, as that's not what we're here for - and I don't want to write a review on why not to use ragehook (because we could be here for years)...

1. Ragehook is incompatible with fiveM - fiveM technically has the capability to work with ragehook, but ragehook has no plans to make the necessary changes on their part.
2. Ragehook is incompatible with scripthook - again... ScripthookV has the capability to work with ragehook (and in some cases does), but ragehook in the past has simply refused to make the necessary (simple) changes to their code -there was plenty of discussion on this over the summer. I do believe that ragehook is slowly working towards making this happen.
3. Ragehook is poorly implemented - there is no reason for the incompatibilities listed above, a month of work and we could have a decent product, if it were open source there are many people who I know personally that would take a look and more than likely rectify the issues within a few hours.
4. ScripthookV is almost identical to ScripthookIV - you can literally copy and paste code from IV. This made it VERY EASY for IV developers to switch over to V.
5. ScripthookV dot Net and the source for ScripthookV is available if you look hard enough - you know exactly what you are getting into, no virus', etc... you can make changes, fix bugs, etc. 

Other than the major flaws listed above, the main reason that I'm going with ragehook is due to the fact that my community, along with several other RP/Police communities use fiveM.

On 11/8/2015, 1:37:04, mainecrab said:

I have totally been thinking about this same thing but using a skin of a Stalker Unit and function. Very awesome that I stumbled upon this. If you end up doing a Applied Concepts unit and need any pictures, video or sounds or such let me know since I have both a Stalker Dual and DSR unit.

Although I haven't ever used a stalker unit, I do know they work slightly differently. If I remember correctly, you get a readout of four speeds at the same time?
The hardest part is the algorithm for capturing a vehicle/vehicles, as it can be very slow (eg: 60fps, enable radar drop to 3fps)... Adding a new skin, etc. shouldn't be an issue.
 

UPDATE:

Got nearly everything working...

I've re-done the vehicle capture algorithm, but when activated I'm still seeing my FPS drop from 45 to 41, which is unacceptable. And unfortunately, you can't just drop it into another thread :(

I'll get a video up at some point this week!

Community director, www.lc-gaming.net

20 hours ago, rushlink said:

Although I haven't ever used a stalker unit, I do know they work slightly differently. If I remember correctly, you get a readout of four speeds at the same time?
The hardest part is the algorithm for capturing a vehicle/vehicles, as it can be very slow (eg: 60fps, enable radar drop to 3fps)... Adding a new skin, etc. shouldn't be an issue.

It just depends on the model of Stalker Radar. They do have a basic one which just displays target, locked and patrol speeds. However it seems like their newer models will display a target speed and the fastest speed that was recorded, as shown below.

 

stalker_dual_1.jpg

 

Personally I like the MPH Bee III radar unit. Small and effective... maybe i'm a little biased because it's what my department uses, lol.

 

maxresdefault.jpg

 

 

Either way, looks great. Might I suggest some sort of API or something so other developers can create skins for the GUI?

 

 

  • Author
On 11/10/2015, 10:06:15, SgtSpook said:

Either way, looks great. Might I suggest some sort of API or something so other developers can create skins for the GUI?

I'll look into an API. I don't have a huge amount of time to work on scripts/mods, so if it's a lot of work I won't release an API; however, I'm always more than willing to work with people in the modding community if they wish to work on this.

UPDATE:

I have made a huge amount of progress this week - I've rewritten the capture stuff about 20 times by now.  Finally, I have a result that is very efficient and has almost no performance hit. Additionally, its operation is much more realistic - basically it's shooting rays out from the patrol vehicle. Vehicles hiding behind other vehicles will not be returned. I am trying to work on a system where walls, barriers, buildings, etc. will also block the ray from capturing a vehicle, but as it stands right now that isn't done.

An image from testing (no range meter yet, green car is the fastest captured, blue is the strongest signal (usually closest), and pink is captured but ignored because it fits neither of the capture criteria). - also note my FPS is 42, without the radar running I'm right about 43/44fps... sooooo very efficient compared to previous algorithms.

74d84420db.jpg

.To Do:

  • Keys file
  • Range meter
  • See if we can stop the ray on a wall/other object... Problem was, it was stopping on everything - smoke, etc... but if possible, i'll get this done.

Community director, www.lc-gaming.net

Looks nice :thumbsup:

My Latest Files 

          
https://www.lcpdfr.com/files/file/7083-liberty-city-based-on-seattle-10-part-1/   - Seattle Base
         
                           https://www.lcpdfr.com/files/file/6862-lc-based-on-new-oreleans-skin-pack-10-part-1/      - New Oreleans based   

 
Keep you eye  on this thread ;-)

              
 https://www.lcpdfr.com/topic/43278-k-9-police-9-wip-rel-thread/

 

10 hours ago, rushlink said:

Yep.

 

Still working on a few things. Hopefully I can get a full week of testing without any problems this coming week.

Very close to having a finished product :)

Nice, once this comes out patrolling the highways will be much more enjoyable.

Yeah the one you are thinking of in regards to the 5 windows with 4 for targets and one for patrol is the Stalker DSR 2X. I think that one is a little to much for this game and you could use a Stalker DUAL Skin or even the MPH Bee III or any other unit like a Genesis II since all would use the same information you are gathering.

The DUAL or DSR does radar like that Kustom Eagle with Strongest and Fastest target but the DSR works this in same lane and opposite lane mode. Anyways great work and looking forward to trying this next time I get a chance get to play GTA 5. Great job on the Fastest and Strongest targets already you basically have almost of all this worked out and can start getting down to more detail.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.