DayZ
26 ratings
MiniMap Gps Requirement
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
12.838 KB
12 Nov, 2022 @ 2:55pm
12 Nov, 2022 @ 5:51pm
3 Change Notes ( view )

Subscribe to download
MiniMap Gps Requirement

Description
Main Feature Of The Mod
Its a small mod that makes changes to and requires MiniMap mod or MiniMap Relocated mod, which makes it so that players need a working GPS before they can toggle the minimap on
So they must have a GPS with a battery and it must be turned on, if they turn it off or the battery runs out it disables the minimap

We had this running on our server since 1.19 experimental and iv since seen a few people mention it as a good idea in some discord groups and suggesting it to the owner of minimap mod as a requested feature so i thought as id already made it for the server id put out a public version for everyone to use if they want either untill it gets added to the mod or if it dosnt use it as is.


I have also included some parts i have on my server but i have made it so they can be turned on or off in the config file will automatically generate the first time you start the server after installing the mod which will be located in ServerProfileWilmasWilmas_MiniMapGPS_config.json

! Note ServerProfile could also be SC or Config or whatever you set it up / changed it to !

The Config File
{ "ConfigVersion": "1", "ImportantInformation": "ONLY USE UseDescOverride=1 IF UseCustomDescOverride=0", "ImportantInformation2": "IF UseDescOverride=1 THE END OF THE GPS DESCRIPTION WILL SAY Press M to get onscreen Mini Map.", "UseDescOverride": 1, "ImportantInformation3": "ONLY USE UseCustomDescOverride=1 IF UseDescOverride=0", "UseCustomDescOverride": 0, "ImportantInformation4": "IF UseCustomDescOverride=1 THEN YOU CAN USE CustomDescOverride TO ADD YOUR OWN TEXT AT THE END OF THE GPS DESCRIPTION", "CustomDescOverride": "Put Your Custom Description Text Here." }

There are 3 parts that make changes and the rest is there for information.
UseDescOverride
Enables/Disables "Press M to get onscreen Mini Map." to the end of the vanilla description of the GPS.
UseCustomDescOverride
Enables/Disables the use of a custom description you specify at the end of the description of the GPS.
CustomDescOverride
Is what the above mentioned custom description will say.
  • If you have UseDescOverride set to 1 (true) UseCustomDescOverride must be 0 (False).
  • If you have UseCustomDescOverride set to 1 (true) UseDescOverride must be 0 (False).
  • If you have both UseCustomDescOverride and UseDescOverride set to 0 (False) it will just display the vanilla description.
i have added code so it shouldnt matter if you forget but best to be on the safe side.

Hotkey / Settings Menu
I have also made some changes to the hotkey, for some reason the default \ key never worked for me or my friend and iv seen some other people mention they cant get the minimap to display so i assume its a common issue. So i have made the default hotkey M (this can still be changed in the settings menu) .

Alongside this i have tidied the setting into its own submenu called MiniMap so it is more obvious where it is, i have also changed the hotkey description to work with this mod so it tells players in the menu that they must have a gps for it to work.

The settings text and the "UseDescOverride" description will display in all 13 languages, the "UseCustomDescOverride " will just display in whatever language you write it in.

I had wanted to make it so that the default hotkey could be edited from the config by the server owner but i couldnt seem to make that work, if i do get it working i will update the mod.

Discord link to talk about the mod and report any bugs https://discord.gg/WMUkTsKn5Q

Support Me
This mod is free to use, but if you want to support me you can by donating, click this image below.
[ko-fi.com]
4 Comments
Wilma Fingerdoo  [author] 16 Apr @ 6:30pm 
steams formatting screwed that up but thats the basics of it you need to make a mod to do it
Wilma Fingerdoo  [author] 16 Apr @ 6:29pm 
you would need to make a mod and in the config.cpp change the energy usage to something like this


class CfgVehicles
{
class ItemGPS;
class GPSReceiver: ItemGPS
{
class EnergyManager
{
energyUsagePerSecond = 0.005;
};
};
};
Andrew Applepicker 16 Apr @ 3:42am 
Love this mod - is there any way to decrease battery usage though? It's from full to flat in like 15-20 mins.
Lankynob18 29 May, 2023 @ 3:35pm 
Hi can I get permission to pack this mod into my server please