NoGoArea4Police 1.1
557
38
557
38
With this mod player can define an police-free area.
Simply press F6, type in name, then begin marking points(requires at least 4 points) with F7.
This will create a polygon.
With polygon-point intersection-algorithm( https://stackoverflow.com/a/2922778/7839113)
the script tests whether player is in this specific area.
If true, wanted level will disappear immadiatly.
Perfect to "unlock" restricted areas !
If someone is suspicous or curious about the code, simply use a decompiler to see what happens!
Requirements:
-latest ScriptHookVDotNet (ScriptHookVDotNet2.dll)
-latest ScriptHookV
-at least .NET Framework 4.5.2
Keys:
- F6 : Begin marking points to define polygon
- F7: Add points( at least 4)( saves to gta5 root folder)
- F8: Define circles by radius( saving not supported yet)
- F9 - De -and activate the mod
Changelog:
- Bug fixes
- Toggle-Option
- New save-folder
- now able to define circles
- loads polygon file properly.
Next update_ :
- Blimp for polygons!
Algorithm can be found here: https://pastebin.com/6aWqcNZK
Simply press F6, type in name, then begin marking points(requires at least 4 points) with F7.
This will create a polygon.
With polygon-point intersection-algorithm( https://stackoverflow.com/a/2922778/7839113)
the script tests whether player is in this specific area.
If true, wanted level will disappear immadiatly.
Perfect to "unlock" restricted areas !
If someone is suspicous or curious about the code, simply use a decompiler to see what happens!
Requirements:
-latest ScriptHookVDotNet (ScriptHookVDotNet2.dll)
-latest ScriptHookV
-at least .NET Framework 4.5.2
Keys:
- F6 : Begin marking points to define polygon
- F7: Add points( at least 4)( saves to gta5 root folder)
- F8: Define circles by radius( saving not supported yet)
- F9 - De -and activate the mod
Changelog:
- Bug fixes
- Toggle-Option
- New save-folder
- now able to define circles
- loads polygon file properly.
Next update_ :
- Blimp for polygons!
Algorithm can be found here: https://pastebin.com/6aWqcNZK
First Uploaded: Domingo 1 de Outubro de 2017
Last Updated: Venres 6 de Outubro de 2017
Last Downloaded: Mércores 4 de Decembro de 2024
35 Comments
With this mod player can define an police-free area.
Simply press F6, type in name, then begin marking points(requires at least 4 points) with F7.
This will create a polygon.
With polygon-point intersection-algorithm( https://stackoverflow.com/a/2922778/7839113)
the script tests whether player is in this specific area.
If true, wanted level will disappear immadiatly.
Perfect to "unlock" restricted areas !
If someone is suspicous or curious about the code, simply use a decompiler to see what happens!
Requirements:
-latest ScriptHookVDotNet (ScriptHookVDotNet2.dll)
-latest ScriptHookV
-at least .NET Framework 4.5.2
Keys:
- F6 : Begin marking points to define polygon
- F7: Add points( at least 4)( saves to gta5 root folder)
- F8: Define circles by radius( saving not supported yet)
- F9 - De -and activate the mod
Changelog:
- Bug fixes
- Toggle-Option
- New save-folder
- now able to define circles
- loads polygon file properly.
Next update_ :
- Blimp for polygons!
Algorithm can be found here: https://pastebin.com/6aWqcNZK
Simply press F6, type in name, then begin marking points(requires at least 4 points) with F7.
This will create a polygon.
With polygon-point intersection-algorithm( https://stackoverflow.com/a/2922778/7839113)
the script tests whether player is in this specific area.
If true, wanted level will disappear immadiatly.
Perfect to "unlock" restricted areas !
If someone is suspicous or curious about the code, simply use a decompiler to see what happens!
Requirements:
-latest ScriptHookVDotNet (ScriptHookVDotNet2.dll)
-latest ScriptHookV
-at least .NET Framework 4.5.2
Keys:
- F6 : Begin marking points to define polygon
- F7: Add points( at least 4)( saves to gta5 root folder)
- F8: Define circles by radius( saving not supported yet)
- F9 - De -and activate the mod
Changelog:
- Bug fixes
- Toggle-Option
- New save-folder
- now able to define circles
- loads polygon file properly.
Next update_ :
- Blimp for polygons!
Algorithm can be found here: https://pastebin.com/6aWqcNZK
First Uploaded: Domingo 1 de Outubro de 2017
Last Updated: Venres 6 de Outubro de 2017
Last Downloaded: Mércores 4 de Decembro de 2024
@defiant What do you mean?
^^+
@Kryo4lex Done ( = _
@GTAPlayerN this reminds me of the cooldown zones in nfs most wanted...it was more or LESS a joke that didnt go over so well...carry on
@GTAPlayerN Is it possible to make the nogo zone visible on minimap?
@odpal8 It is possible for circle-no go zones( just a blip).
It would be also possible for polygon-no go zones.
But I assume that GTA5 does not provide polygonal blips.
(Probably I could _ "approximate" polygons with a bunch of blips hmm)
@defiant Ahh, okay ^^+ haha
@GTAPlayerN I meant something like this https://imgur.com/a/AlELq
@odpal8 Can you tell me how or with which mod you have achieved this?
@GTAPlayerN Not a mod mate ;-) just my creativity how I picture it in my mind. if it's not possible, no worries. Even a white outline around the area would be cool. I mean, it would be great to see on map that you entered the nogo zone
@odpal8 Good news : I have_ written a flood fill algorithm which is pretty fast: Result:
https://ibb.co/eE3PRG
Now instead of using rectangles in GTA5 it will use blimps_... let's see_
@odpal8 _Worked__!!
See:
https://ibb.co/gkqomG
https://ibb.co/h0Sq0b
@GTAPlayerN Cool beans! I mean bravo!
@odpal8 But another problem results by implementing it like this: GTA 5 is buggy with many blimps... nonsens. It does not lag or something but the world flackers while driving , the lights are buggy et cetera haha _
@GTAPlayerN Did you try the simple outline then? Is it doable? Too many blips also make other important blips disappear on map. I forgot about that.
@odpal8 The problem is that scripthookvdotnet and possibly gta5 does not provide many options to draw to minimap as far as I know.
The only way to illustrate is using blips.
An outline would be nice, but this is also only possible by using blips.
That would be just a ray with point (0,0) and t = radius ..Same problem here: After "freeing" exempli gratia the airfield the game would be very buggy.
Someone has to develop a "hack" which allows drawing on minimap.
_
@GTAPlayerN No problem, I will have to remember the areas then.
@odpal8 ( =
This is perfect
@WOLFstudio1 Thanks ( = _
Mod is dope, and basically lets you turn parts of the map into gang hideout survival missions.