Jump to content

BadHabitz

Member
  • Content Count

    1066
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

233 Excellent

About BadHabitz

  • Rank
    Master Gunnery Sergeant

Profile Information

  • Gender
    Male
  • Location
    the 480
  • Interests
    Arma 3 configs

Recent Profile Visitors

1950 profile views
  1. Sorry, I was just trying to clarify that I didn't want the box designated for each individual to only be able to be used by that individual. I want anyone to be able to reset the contents of any box. I'll be packing up a pbo with the change and it will get tested tonight. I'll let you know how it works out.
  2. I admit I don't know much about why certain things are in the sqf. That bit of code entered my usage some time in the past and wherever I've used it it seems to work, or at least it doesn't stop anything from working (that I can tell). I do want the addAction to be able to be used by anyone specific to the designated box. It works in SP, MP mode through the editor, but in the MP Dedicated the addAction is on the box but does nothing. So do you think if I get rid of that line it will work? Or is your reply solely focused on asking why I use that line? Thanks for replying, either way.
  3. Greetings esteemed Arma scripters! I humbly come to you with a problem I'm hoping someone can solve. So, I'm working on a mod for my unit to have individual supply boxes for each unit member. The objects are available in the mission editor and are also Zeus placeable. That I've got without problems. The hangup comes in when someone crashes. When they go back to their supply box the things they previously took out are gone, because they crashed. My solution is to add "reset" addAction, which is a sqf to clear the box and then addItemCargoGlobal to refill the box. These boxes are also not local to the mission file, but are created with a pbo in the modpack. To sucessfully code it into the config.cpp I use this code in the box's cfgVehicles class: class EventHandlers: EventHandlers { init = "(_this select 0) addAction [""<t color='#ffffff'>Reset</t>"", ""\Gearboxes\scripts\frostbox.sqf"",[],1,false,true,"""",""_this distance _target < 3""];"; }; In the header of the sqf I use the following (with an example item added): if (! isServer) exitWith {}; _crate = _this select 0; clearItemCargoGlobal _crate; _crate additemcargoglobal ["acc_flashlight_pistol", 1]; All of this works as intended in local and local multiplayer. The config adds the addAction to the box and the script removes all of the items and them reloads the desired items. The issue is the box doesn't clear or reload on a dedicated server. The addAction is present but there is zero effect. The purpose of this project is to use it on a dedicated server, so it's a problem that needs solving. If I change "_this select 0" in "_crate = _this select 0;" to a variable assigned to the box then it works fine. Example "_crate = frostbox;" So I think that's the bit of code I need to change to get this to work without having to assign variables to all of the boxes and to align the sqf's to match. Anyone have an idea?
  4. Someone more knowledgeable might prove me wrong, but I would start with the init.sqf
  5. BadHabitz

    ACE Default Loadout

    If this is what you need you can create a mission template and post the zipped mission folder to Discord, or host it at Google Drive. The user just has to use that template to start the mission-making process and you're good to go.
  6. We've been waiting for five years. You can wait a while longer.
  7. requiredAddons needs the cfgPatches name of any other config that you're inheriting from, not the pbo name (unless they're identical to each other). When done right this will prevent your mod from working if the parent mod is not also working. It might even prevent you from loading the game at all, if I remember correctly. hiddenSelections[] = , you need to find what the hiddenSelections are from the original config. It tells the hiddenSelectionsTextures line what goes where and in what order. What does the config from the Titus have for that? Try to get that working before you move on to get some of your other questions answered.
  8. LHDs don't have catapults. They are helicopter/VTOL ships.
  9. Thanks. This code works for me. if (!local player) exitWith {}; if (backpack player != "") exitWith {hint "Please unequip backpack";}; player addBackpack "B_Parachute"; hint "Parachute equipped";
  10. So, I've got a basic script that I'm adding as an addAction to a box: if (!local player) exitWith {}; player addBackpack "B_Parachute"; hint "Parachute equipped"; What I want to do is add a check that makes sure the backpack slot is empty first, and if not it will give a hint "Please unequip backpack". Also, the locality check on the first line... I know it doesn't hurt anything when I use it, for this and other scripts, but do I need it? Thanks in advance.
  11. BadHabitz

    Arma 3 - Creator DLC Discussion

    I'd like to see new terrains divorced from big content releases. I can't persuade 50 people to spend $20 for content that we won't use 75%+ of. Cold War Europe stuff is not in our wheelhouse, but we're always on the lookout for new terrains. Would be much easier to push people to buy a terrain for $5-$10. GM would be much easier to digest if there was an option to buy the terrain and other content separate from each other. Hopefully this can be done in the future and done retroactively for GM.
  12. BadHabitz

    Arma 3 - Creator DLC Discussion

    No reason to pay for this unless my entire unit does as well, which honestly isn't going to happen. No reason to pay for mods I cant use in my unit's missions. A shame. Even as a purchaser of the Supporter Edition I've spent a ton of money on Arma 3 and it's DLC as gifts to friends and comrades. If this pay model extends to the rest of the future paid mods it's going to be a sad future for what's left of this great community.
  13. Look at the config for the CSAT infantry uniforms. Those have protection in the uniforms and not the vests. You should be able to figure it out from there.
  14. Any idea why I'm getting this floating ceiling light issue on the CUP LHD? Only mods used are CBA and CUP (Weapons, Units, Vehicles). Thanks.
  15. Thanks. This last bit pretty much did the trick. Coupled with configuring my mod for ACE and your advice here I got it to work, so thanks for that. And thanks for the bit of knowledge as well. Semi-related questions, if you have a minute, looking at the community page for CfgPatches it says that CfgVehicle entries go in 'units' and CfgWeapons go in 'weapons', would I also include classes that are scope=0 or scope=1? And I've also seen mods having a line for ammo and magazines in CfgPatches in the past, but that's not in the documentation, so is that just not documented or is it people that didn't know any better? Thanks again.
×