Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by BadHabitz

  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. 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?
  3. 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.
  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. 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.
  10. 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";
  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. I'm trying to make a tripwire mine that has the sound/smoke/noise effect that the LoW training mine has. I've gotten 99% of it to work, but that last thing I need help with. In the mission editor I can see my new explosive, and it's in the explosive category. It also fires properly and has the desired effects. That's the good. What's not working is that I can't defuse the mine. In the arsenal it shows up in magazines and not explosives. I believe these two symptoms are related. If I can just figure out how to get this to show up in the explosives tab of the arsenal I think it will fix my lack of ability to defuse. I'm inheriting from stuff that already works, and I don't think I've changed anything that would cause my problem. So I'm here to see if anyone can find what I've missed. Thanks. class CfgPatches { class BHZ_TrainingTripMine { units[]= {}; weapons[]={}; requiredVersion=1; requiredAddons[]={}; }; }; class CfgAmmo { class APERSTripMine_Wire_Ammo; class BHZ_TrainingTripMine_Ammo: APERSTripMine_Wire_Ammo { _generalMacro = "BHZ_TrainingTripMine_Ammo"; model = "\A3\Weapons_F\explosives\mine_AP_tripwire"; defaultMagazine = "BHZ_TrainingTripMine_Mag"; hit = 1; indirectHit = 0; indirectHitRange = 0; suppressionRadiusHit = 0; mineInconspicuousness = 30; mineCanBeReactivated = 0; mineModelDisabled = "\A3\Weapons_F\explosives\mine_AP_tripwire_d"; minDamageForCamShakeHit = 1.55; explosionEffects = "BHZ_TrainingTripMine_Effect"; effectsSmoke = "SmokeShellOrange"; CraterEffects = "IEDMineSmallLandCrater"; picture = "\A3\Weapons_F\Data\UI\gear_mine_AP_tripwire_CA.paa"; class CamShakeExplode { power = 0; duration = 0.2; frequency = 20; distance = 0; }; class CamShakeHit { power = 0; duration = 0.2; frequency = 20; distance = 1; }; soundTrigger[] = {""}; soundActivation[] = {"A3\Sounds_F_Orange\arsenal\explosives\TrainingMine\TrainingMine_Placement_01",1.9952624,1,20}; soundDeactivation[] = {"A3\Sounds_F_Orange\arsenal\explosives\TrainingMine\TrainingMine_Deactivate_01",1.9952624,1,20}; SoundSetExplosion[] = {"TrainingMine_Exp_SoundSet","TrainingMine_Report_SoundSet"}; }; class BHZ_TrainingTripMine_Ammo_Scripted: APERSTripMine_Wire_Ammo { triggerWhenDestroyed = 1; }; }; class CfgMagazines { class APERSTripMine_Wire_Mag; class BHZ_TrainingTripMine_Mag: APERSTripMine_Wire_Mag { _generalMacro = "BHZ_TrainingTripMine_Mag"; count = 1; scope = 2; mass = 15; ammo = "BHZ_TrainingTripMine_Ammo"; picture = "\A3\Weapons_F\Data\UI\gear_mine_AP_tripwire_CA.paa"; model = "\A3\Weapons_F\explosives\mine_AP_tripwire_i"; displayName = "Training Trip Mine"; }; }; class CfgVehicles { class APERSTripMine; class BHZ_TrainingTripMine: APERSTripMine { _generalMacro = "BHZ_TrainingTripMine"; scope = 2; ammo = "BHZ_TrainingTripMine_Ammo"; displayName = "Training Tripwire Mine"; picture = "\A3\Weapons_F\Data\UI\gear_mine_AP_tripwire_CA.paa"; vehicleClass = "Mines"; editorPreview = "\A3\EditorPreviews_F\Data\CfgVehicles\APERSTripMine.jpg"; }; }; class BHZ_TrainingTripMine_Effect { class LightTTM { intensity = 1; interval = 1; lifeTime = 14; position[] = {-1.65,0.15,0.1}; simulation = "light"; type = "TrainingMine_light"; }; class Smoke { intensity = 0.1; interval = 1; lifeTime = 14; position[] = {-1.65,0.15,0.1}; simulation = "particles"; type = "TrainingMine_smoke"; }; class Sparks { intensity = 1; interval = 1; lifeTime = 14; position[] = {-1.65,0.15,0.1}; simulation = "particles"; type = "TrainingMine_FireSparks"; }; };
  16. 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.
  17. Thanks. I was under the impression that I only needed requiredAddons if I was overwriting pre-existing classes. Since all of my code is inheriting and not overwriting I didn't think I needed it. But looking into it I see it's also for load order, so I can see how that would help. I added "A3_Data_F_Tank_Loadorder", which didn't work. I also added "A3_Weapons_F_Explosives" since it's inheriting from that CfgPatches and I added "A3_Weapons_F" for good measure. Then I tried adding my CfgVehicles entry "BHZ_TrainingTripMine" into units[]={}; When that didn't work I also added the magazine and ammo entry as well. I don't think I needed those, wasn't sure if I should try to put them in weapons or not. Either way I feel like I was just throwing everything at the problem and nothing has worked yet.
  18. Anyone understand the difference if I use widthRailWay=1 or widthRailWay=4 ?
  19. Have you found a config person yet?
  20. Yes, but it would be for every instance of that building on the terrain. You wouldn't be able to change individual buildings without re-engineering the terrain itself. Though, since I've never done that, or made a terrain at all, I'm not sure what replacing building models would do to what the building outline would look like on the map in the map screen or GPS view. My guess is it would still take the shape of the original building.
  21. You could, if the buildings are essentially the same. Create a new config.cpp, create new entries inheriting from the CUP buildings, using the JBAD class names for your new entries. class CfgVehicles { class CUP_BuildingClassNames; class JBAD_BuildingClassName: CUP_BuildingClassNames { }; };
  22. Thanks for the reply. I'm not smart enough to figure out how to do that, so I'm just going to abandon the idea. Thanks though.
  23. Is there a way to play a sound file then players try to broadcast, to let them know the jammer is active? Is there a performance hit related to the size of your jamming area? Would a 2km area be detrimental compared to a 200m area?
  24. BadHabitz

    Retexture open parachute

    Shameless plug for my mod with different colored canopies.
  25. BadHabitz

    Pook BOATS pack

    Looking sweet. PM me if you need any config help.