Jump to content

quickdagger

Member
  • Content Count

    221
  • Joined

  • Last visited

  • Medals

Community Reputation

170 Excellent

About quickdagger

  • Rank
    Staff Sergeant

Profile Information

  • Gender
    Male
  • Location
    Germany

Recent Profile Visitors

2460 profile views
  1. Very nice reading, thank you for the directions. So, if this unit is spawned automatically by a KP Liberation server for example, what should be the issue? Because I have tested it in the editor, in multiplayer, on my local machine and it is working. Please correct me if I am wrong but I believe that, as the soldier spawns, it will create a local variable in whatever machine the server is, and this local variable will be deleted after call because it is local. Then, every player will see the created object soldier and he will be wearing a random loadout. If the variable was created public, not deleted because it is global, then, wouldn't it nullify the random effect?
  2. Hi @War-1st, Sorry for my late reply, would you mind please redirect the conversation to the mod's Steam page? https://steamcommunity.com/sharedfiles/filedetails/?id=1105446708 Answering your question, you can use and disable this feature. Just go to addon options and search for advanced ballistics and scopes.
  3. Well, I don't know what a local/global variable is and, what "pass a variable" is either. Nevertheless, it looks like I have found the solution 🙂 The reason I want to do it in the configs is that, every time one of my units is added to a mission, by the editor, Zeus or dynamically spawned by the mission generator, it will bring the full package. It will always have random gear no matter what. Here is the code in case you are curious: class dgr_arulco_Soldier1 : dgr_soldier_rambo { scope = 2; displayName = "Arulco Police Officer"; _generalMacro = "dgr_arulco_Soldier1"; side = 0; faction = "dgr_arulco"; author = "Dagger"; disabled = 0; vehicleClass = "Men"; role = "Rifleman"; nameSound = "veh_infantry_s"; cost = 100000; threat[] = {1,1,1}; canHideBodies = 1; canDeactivateMines = 0; attendant = 0; engineer = 0; canUseScanners = 0; nightVision = 0; uavHacker = 1; woman = 0; uniformClass = "dgr_uniform_police"; hiddenSelectionsTextures[] = {"\a3_dgr_equipment\data\dgr_uniform_police_co.paa"}; headgearList[] = { "dgr_beret2", "dgr_beret2", //"dgr_ech28", "lxWS_H_PASGT_goggles_white_F", "" }; identityTypes[] = {"LanguageFRE_F","Head_Tanoan"}; genericNames = "TanoanMen"; backpack = "dgr_holster"; Items[] = {"ACE_personalAidKit","ACE_tourniquet","ACE_tourniquet","ACE_morphine","ACE_morphine","ACE_epinephrine","ACE_CableTie","ACE_Banana","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage"}; RespawnItems[] = {"ACE_personalAidKit","ACE_tourniquet","ACE_tourniquet","ACE_morphine","ACE_morphine","ACE_epinephrine","ACE_CableTie","ACE_Banana","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage"}; linkedItems[] = {"ItemMap","ItemCompass","ItemRadio","dgr_vest_light_police5"}; respawnLinkedItems[] = {"ItemMap","ItemCompass","ItemRadio","dgr_vest_light_police5"}; weapons[] = {"Throw","Put","dgr_45"}; respawnWeapons[] = {"Throw","Put","dgr_45"}; magazines[] = {"DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","ACE_CTS9"}; respawnMagazines[] = {"DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","ACE_CTS9"}; //https://forums.bohemia.net/forums/topic/229336-copying-vest-content-to-another-vest/?_fromLogin=1#replyForm class EventHandlers: EventHandlers { //Headgear class Dgr_Headgear { init = "if (local (_this select 0)) then {[(_this select 0), [], []] call BIS_fnc_unitHeadgear;}"; }; //Switchable unit class Dgr_SwitchableUnit { init = "if (local (_this select 0)) then {addSwitchableUnit (_this select 0)};"; }; //Private class Dgr_PrivateItems { init = "(_this select 0) == _x;"; }; //Copy loadout class Dgr_CopyItems { init = "_DgrCopyItems = items (_this select 0);"; }; class Dgr_CopyAssignedItems { init = "_DgrCopyAssignedItems = assignedItems (_this select 0);"; }; class Dgr_CopyMagazines { init = "_DgrCopyMagazines = itemsWithMagazines (_this select 0);"; }; class Dgr_CopyUniformItems { init = "_DgrCopyUniformItems = uniformItems (_this select 0);"; }; class Dgr_CopyVestItems { init = "_DgrCopyVestItems = vestItems (_this select 0);"; }; class Dgr_CopyBackpackItems { init = "_DgrCopyBackpackItems = backpackItems (_this select 0);"; }; //Delete old gear class Dgr_RemoveUniform { init = "removeUniform (_this select 0);"; }; class Dgr_RemoveVest { init = "removeVest (_this select 0);"; }; class Dgr_RemoveBackpack { init = "removeBackpack (_this select 0);"; }; class Dgr_RemoveWeapon { init = "removeAllWeapons (_this select 0);"; }; //Spawn new gear class Dgr_SpawnUniform { init = "_DgrSpawnUniform = selectRandom [""dgr_uniform_police"",""dgr_rambo_police"",""dgr_uniform_mix_police""];"; }; class Dgr_SpawnVest { init = "_DgrSpawnVest = selectRandom [""dgr_vest_light_police5""];"; }; class Dgr_SpawnBackpack { init = "_DgrSpawnBackpack = selectRandom [""dgr_vest_belt"", ""dgr_holster""];"; }; class Dgr_SpawnWeapon { init = "_DgrSpawnWeapon = selectRandom [""dgr_45"", ""dgr_45_S2"", ""dgr_uzi_pdw""];"; }; //Add gear class Dgr_AddUniform { init = "(_this select 0) addUniform _DgrSpawnUniform;"; }; class Dgr_AddVest { init = "(_this select 0) addVest _DgrSpawnVest;"; }; class Dgr_AddBackpack { init = "(_this select 0) addBackpack _DgrSpawnBackpack;"; }; //Paste items back /* class Dgr_PasteItemsToUniform { init = "{(_this select 0) addItemToUniform _x} forEach _DgrCopyUniformItems;"; }; class Dgr_PasteItemsToVest { init = "{(_this select 0) addItemToVest _x} forEach _DgrCopyVestItems;"; }; class Dgr_PasteItemsToBackpack { init = "{(_this select 0) addItemToBackpack _x} forEach _DgrCopyBackpackItems;"; }; class Dgr_PasteItems { init = "{(_this select 0) addItem _x} forEach _DgrCopyItems;"; }; class Dgr_PasteAssignedItems { init = "{(_this select 0) addItem _x} forEach _DgrCopyAssignedItems;"; }; */ class Dgr_PasteMagazines { init = "{(_this select 0) addItem _x} forEach _DgrCopyMagazines;"; }; class Dgr_AddWeapon { init = "(_this select 0) addWeapon _DgrSpawnWeapon;"; }; //Insignia class Dgr_Insignia { init = "if (local (_this select 0)) then {[(_this select 0), ""dgr_logo_arulco""] call BIS_fnc_setUnitInsignia;}"; }; }; }; It still comes with one less magazine, probably because it goes away when the event handler deletes the weapon, which contained it. In this case would you know how to fix it? Best!
  4. Hi all, This discussion is really very interesting. I am trying to do the same but, adding random vests, uniforms and weapons. So far this part works but the containers are empty, the items don't add back to the inventory. @pierremgi, I wonder if you could could give a hand here. I am trying to do the same but, in the configs, with event handlers. It is not working and I can't figure out why. Here is the config if you want to know: class dgr_arulco_Soldier1 : dgr_soldier_rambo { scope = 2; displayName = "Arulco Police Officer"; _generalMacro = "dgr_arulco_Soldier1"; side = 0; faction = "dgr_arulco"; author = "Dagger"; disabled = 0; vehicleClass = "Men"; role = "Rifleman"; nameSound = "veh_infantry_s"; cost = 100000; threat[] = {1,1,1}; canHideBodies = 1; canDeactivateMines = 0; attendant = 0; engineer = 0; canUseScanners = 0; nightVision = 0; uavHacker = 1; woman = 0; uniformClass = "dgr_uniform_police"; hiddenSelectionsTextures[] = {"\a3_dgr_equipment\data\dgr_uniform_police_co.paa"}; headgearList[] = { "dgr_beret2", "dgr_beret2", "dgr_ech28", "" }; identityTypes[] = {"LanguageFRE_F","Head_Tanoan"}; class EventHandlers: EventHandlers { //Headgear class Dgr_Headgear { init = "if (local (_this select 0)) then {[(_this select 0), [], []] call BIS_fnc_unitHeadgear;}"; }; //Switchable unit class Dgr_SwitchableUnit { init = "if (local (_this select 0)) then {addSwitchableUnit (_this select 0)};"; }; //Copy loadout class Dgr_CopyItems { init = "_DgrCopyItems[] = items (_this select 0);"; }; class Dgr_CopyAssignedItems { init = "_DgrCopyAssignedItems[] = assignedItems (_this select 0);"; }; class Dgr_CopyMagazines { init = "_DgrCopyMagazines[] = itemsWithMagazines (_this select 0);"; }; class Dgr_CopyUniformItems { init = "_DgrCopyUniformItems[] = uniformItems (_this select 0);"; }; class Dgr_CopyVestItems { init = "_DgrCopyVestItems[] = vestItems (_this select 0);"; }; class Dgr_CopyBackpackItems { init = "_DgrCopyBackpackItems[] = backpackItems (_this select 0);"; }; //Delete old gear class Dgr_RemoveUniform { init = "removeUniform (_this select 0);"; }; class Dgr_RemoveVest { init = "removeVest (_this select 0);"; }; class Dgr_RemoveBackpack { init = "removeBackpack (_this select 0);"; }; class Dgr_RemoveWeapon { init = "removeAllWeapons (_this select 0);"; }; //Spawn new gear class Dgr_SpawnUniform { init = "_DgrSpawnUniform = selectRandom [""dgr_uniform_police"",""dgr_rambo_police"",""dgr_uniform_mix_police""];"; }; class Dgr_SpawnVest { init = "_DgrSpawnVest = selectRandom [""dgr_vest_light_police5""];"; }; class Dgr_SpawnBackpack { init = "_DgrSpawnBackpack = selectRandom [""dgr_vest_belt"", ""dgr_holster""];"; }; class Dgr_SpawnWeapon { init = "_DgrSpawnWeapon = selectRandom [""dgr_45"", ""dgr_45_S2"", ""dgr_uzi_pdw""];"; }; //Add gear class Dgr_AddUniform { init = "(_this select 0) addUniform _DgrSpawnUniform;"; }; class Dgr_AddVest { init = "(_this select 0) addVest _DgrSpawnVest;"; }; class Dgr_AddBackpack { init = "(_this select 0) addBackpack _DgrSpawnBackpack;"; }; //Paste items back class Dgr_PasteItemsToUniform { init = "(_this select 0) addItemToUniform _DgrCopyUniformItems[];"; }; class Dgr_PasteItemsToVest { init = "(_this select 0) addItemToVest _DgrCopyVestItems[];"; }; class Dgr_PasteItemsToBackpack { init = "(_this select 0) addItemToBackpack _DgrCopyBackpackItems[];"; }; class Dgr_PasteItems { init = "(_this select 0) addItem _DgrCopyItems[];"; }; class Dgr_PasteAssignedItems { init = "(_this select 0) addItem _DgrCopyAssignedItems[];"; }; class Dgr_PasteMagazines { init = "(_this select 0) addItem _DgrCopyMagazines[];"; }; class Dgr_AddWeapon { init = "(_this select 0) addWeapon _DgrSpawnWeapon;"; }; //Insignia class Dgr_Insignia { init = "if (local (_this select 0)) then {[(_this select 0), ""dgr_logo_arulco""] call BIS_fnc_setUnitInsignia;}"; }; }; genericNames = "TanoanMen"; backpack = "dgr_holster"; Items[] = {"ACE_personalAidKit","ACE_tourniquet","ACE_tourniquet","ACE_morphine","ACE_morphine","ACE_epinephrine","ACE_CableTie","ACE_Banana","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage"}; RespawnItems[] = {"ACE_personalAidKit","ACE_tourniquet","ACE_tourniquet","ACE_morphine","ACE_morphine","ACE_epinephrine","ACE_CableTie","ACE_Banana","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_elasticBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage","ACE_packingBandage"}; linkedItems[] = {"dgr_vest_light_police5"}; respawnLinkedItems[] = {"dgr_vest_light_police5"}; weapons[] = {"Throw","Put","dgr_45"}; respawnWeapons[] = {"Throw","Put","dgr_45"}; magazines[] = {"DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","ACE_CTS9"}; respawnMagazines[] = {"DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","DGR_45_FMJ_25Rnd","ACE_CTS9"}; }; Thank you in advance!
  5. Hi Gromskar, Mil and MRAD are the same thing. Do you mean MOA instead? Al my scopes are in Mils, as well as my reticles. Good luck.
  6. quickdagger

    Arma 3 Units - Feedback thread

    Would it be possible to filter units by the mods they are using? There is a particular mod that I want to use and I want to join a unit using that mod. It is very stressful when you join the unit, play with that mod then it is removed. Thank you.
  7. quickdagger

    A3 Color Converter

    Falae Casperento, Is it possible to do the other way around? Like pick a color in game and then tell what HEX it is?
  8. Nah, the init field on COS it is not working... And, I am not using COS anymore, EOS spawning civilians is better for what I am trying to do... @wogz187, I don't know how to use an event handler, pls where do I paste that piece of code?
  9. If you kill too much, bomb too much, etc, then you will have a hard time with enemies growing in Geometric Progression.
  10. Hi all, This time I would like to know what should be your codes for spawning an enemy group when the player kills a civilian. Interpret that as the civilian's family and friends coming to take revenge. I am using Bangabob's COS - Civilian Occupation System, I am not placing civilian units on the map, in the editor, so, I presume I can't edit their init field. I am also using Bangabob's EOS - Enemy Occupation system. Both EOS and COS require that you place triggers on the map, which will serve as their spawn points. Somehow they recognize house interiors so, units respawn inside house if you config to do so. Really amazing. I am also using CBA and ACE. There could be a delay between killing the civilian and the spawn of the enemy group. The spawn point should be the nearest village/base but not the current village/base. Or the nearest trigger on the mao, which I use as the spawn points to EOS or COS ? EOS @Leopard20 @opusfmspol @stburr91 @froggyluv @Play3r @vilas Since you have provided great help the other day, I would like to invite you to this discussion but, pls feel free to move on with this idea or not if you will.
  11. Thank you for answering @damsous but I am not a scripts person. Actually I have no idea about how to do that. Would you mind, please, sharing the exact code I should add and where?
  12. Hi all, We have a new release. Check Steam and Armaholic!
  13. Thank you guys! That's a nice refinement. So, now we have: Init: doStop this; this disableAI "move"; this setUnitPos "UP"; this setBehaviour "COMBAT"; this addEventHandler ["handleDamage", {h1 setCaptive false}]; And this is working fine for the configuration of mods listed above 🙂
×