Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Community Reputation

159 Excellent

About hoverguy

  • Rank
    Staff Sergeant

Profile Information

  • Gender
  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello @Recaldy 1) I don't get any stutters, I can't reproduce the issue using the mission that I provide without anything added but enemies with: [this] call HG_fnc_aiUnitSetup; In their respective init boxes. 2) You have to find a way to add the above function to the dynamically spawned units, maybe you can... or you can't depending on the modularity of those scripts... check out if they provide any form of documentation somewhere. 3) Same as above 4) Just added it GitHub Push Also added a XP penalty when killed, configurable in HG_Config.h as usual, check out the GitHub
  2. Hi there @DarkSnake, The only available function is -> HG_fnc_moneyItem It creates a GroundWeaponHolder loaded with bank notes that you can loot.
  3. Hi @Jerris There's actually no way to easily control what's displayed on the HUD except for the XP and kills count, to make them not appear you have to disable them completely (enableXP & enableKillCount in HG_Config.h). To display your bank account balance you'd have to modify the HUD dialog file along with the function that controls it. Also, I recommend using the alternative HUD that looks best. (hudType set to 1 in HG_Config.h). What player are you talking about, the one provided with the mission is Blufor, please be more precise in your request. Thanks for using it!
  4. @ZappsZ conditionToAccess = "playerSide in [west,civilian,resistance]"; whitelistSides[] = {"west","civilian","resistance"};
  5. Hi @ZappsZ Just put it right under class RscTitles { Don't forget to add #include "HG\UI\HG_DialogsMaster.h" Somewhere before RscTitles class. Check this out -> https://github.com/Ppgtjmad/SimpleShops/wiki/Implementation
  6. Hi @VitalyTurboVaz 1) There's one step that you're missing, when making more garage classes you have to modify the addAction call (https://github.com/Ppgtjmad/SimpleShops/wiki/Usage#virtual-garage) this addAction["<img image='HG\UI\Icons\garage.paa' size='1.5'/><t color='#FF0000'>"+(localize "STR_HG_GARAGE")+"</t>",{_this call HG_fnc_dialogOnLoadGarage},"HG_DefaultGarage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3']; this addAction["<img image='HG\UI\Icons\garage.paa' size='1.5'/><t color='#FF0000'>"+(localize "STR_HG_GARAGE_PARK")+"</t>",{_this call HG_fnc_storeVehicleClient},"HG_DefaultGarage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3']; Notice the "HG_DefaultGarage" passed as a parameter to the function. Let's use your new class -> HG_BLUFOR_Garage this addAction["<img image='HG\UI\Icons\garage.paa' size='1.5'/><t color='#FF0000'>"+(localize "STR_HG_GARAGE")+"</t>",{_this call HG_fnc_dialogOnLoadGarage},"HG_BLUFOR_Garage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3']; this addAction["<img image='HG\UI\Icons\garage.paa' size='1.5'/><t color='#FF0000'>"+(localize "STR_HG_GARAGE_PARK")+"</t>",{_this call HG_fnc_storeVehicleClient},"HG_BLUFOR_Garage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3']; 2) A crate is spawned at your feet when you open the gear shop dialog. Whenever you buy something, let's say a uniform, and you already have a uniform equipped, your old one will be stored into the crate (along with its content). Note that only you can see the box, it's local. The main purpose is if that if you buy a uniform that's of less capacity than you previous one that was full then you have a way to get your stuff back. 3) I can't reproduce this issue, do you have a screenshot or even better a video?
  7. @LSValmont I came up with this for now, check it out -> https://github.com/Ppgtjmad/SimpleShops/commit/8313ff8c425d99ae19fef13913753fb678255177
  8. @bong oh Hi, try this -> https://github.com/Ppgtjmad/SimpleShops/commit/e3dd1219ef8bd249e6895aeface30cc3515e343e and let me know if it worked. @LSValmont No, thank you for using it. I'll have a look into this OLD MAN stuff tomorrow afternoon.
  9. Hi everyone, I released an update that includes a units shop. https://github.com/Ppgtjmad/SimpleShops/commit/1af64c6870a4e555d9a1bb1071edcdf4c629bed7 I'll work on a "garage system" to store/retrieve units as well for persistency (database saving only). Also spawning a thread that monitors the state of a vehicle and updates the database accordingly.
  10. Hi @LSValmont Could you share a link to this?
  11. Hi @Kelsey Allen I added support for weapons in uniforms/vests/backpacks. Note that attached accessories and magazines won't show up in the list. I pushed the update on github, here is the modified file https://github.com/Ppgtjmad/SimpleShops/blob/master/HG/Functions/Client/Trader/fn_refreshTrader.sqf copy/paste it. Thanks for using SimpleShops!
  12. Hi @basba66 Yes it will, note that if you were using profile saving before switching to extDB3 all you vehicles will be "lost" (not really lost, still saved in profile just not in database). Hi @VitalyTurboVaz 1. That's actually a good idea, adding it to my todo list. 2. Could you be more specific?
  13. The answer is yes as long as the same profile is used by the server
  14. Hello @NikoWZRD The progress is saved in server's profile (if savingMethod is set to "Profile" in HG_Config.h), the only way to reset it is to either use that code above or delete the <name>.vars.Arma3Profile file To avoid the hassle you could just setup a database, this way you can reset everything in one go... or nil out variables on server start like so (only works with "Profile" as savingMethod): if(!isNil {parsingNamespace getVariable "HG_Profile"}) then { private["_vars","_strs","_str"]; _vars = parsingNamespace getVariable "HG_Profile"; _strs = ["hg_cash","hg_bank","hg_xp","hg_kills","hg_gear","hg_garage"]; { _str = _x; { if([_str,_x,false] call BIS_fnc_inString) then { profileNamespace setVariable [_x,nil]; saveProfileNamespace; }; } forEach _vars; } forEach _strs; }; Put that code at the end of HG\Setup\fn_serverInitialization.sqf On large scale missions I recommend using a database though...
  15. Hi @Robert Tyburne A little bit of explanation: Player buys a vehicle - Vehicle is spawned - A variable is set on that vehicle and is then broadcasted, that variable contains the owner steam64 ID and a random number that serves as a "plate" number (unique identification) - Vehicle is inserted into database or saved in server's profile and active variable is set to 1 Player opens garage - Server searches for vehicles owned by that player (in profile or in db according to savingMethod), finds them and returns those with active var = 0 - Dialog displays available vehicles Player stores a vehicle - Vehicle is deleted from world - The active variable is set to 0 (in profile or in db) Player disconnects (only works if storeVehiclesOnDisconnect is set to true in HG_Config.h) - Server scans all vehicles and filter out those that belong to the player (with the help of the variable set on it) - Destroyed vehicles are removed from the result - Vehicles are deleted - The active variable is set to 0 (in profile or in db) for every vehicle There is also this parameter resetGaragesOnServerStart that - When set to false, will switch the active status on vehicles to 0, meaning that they're available in the garage again - When set to true, will DELETE every vehicles (from profile or from db), meaning that garage will be empty for everyone So to answer your concern, storeVehiclesOnDisconnect is set to true by default meaning that you don't have to worry about vehicles not being saved because they're removed from the world as explained above. If you set both storeVehiclesOnDisconnect and resetGaragesOnServerStart to false, all the vehicles will stay available in the world when the owner disconnects and available in your garage once server restarts. The downside with the second method is: Let's say you disconnect, one of your vehicle is destroyed by another player, that vehicle will be available again when server restarts... simply because there is no thread that monitors what happens to the vehicle when you're not in game. Thanks for using SimpleShops!