Jump to content

ZZEZ

Member
  • Content Count

    106
  • Joined

  • Last visited

  • Medals

Posts posted by ZZEZ


  1. I figured out most of the stuff.

    Why isn't the air ambiance module working?I changed it to have Russian helicopters flying and nothing - haven't seen any of them.

    cfggroups.hpp - the only thing I changed

    class East
    {
    	name = "$STR_EAST";
    	class ACE_RU
    	{
    		class Air 
    		{
    			class Mi24_PFlight
    			{
    				name = "Mi24_PFlight";
    				faction = "ACE_RU";
    				rarityGroup = 0.3;
    				minAltitude = 60;
    				maxAltitude = 150;
    				class Unit0
    				{
    					side = 1;
    					vehicle = "Mi24_P";
    					rank = "CAPTAIN";
    					position[] = {0,0,0};
    				};
    			};
    			class Mi17_rockets_RUFlight
    			{
    				name = "Mi17_rockets_RUFlight";
    				faction = "ACE_RU";
    				rarityGroup = 0.3;
    				minAltitude = 40;
    				maxAltitude = 100;
    				class Unit0
    				{
    					side = 1;
    					vehicle = "Mi17_rockets_RU";
    					rank = "CAPTAIN";
    					position[] = {0,0,0};
    				};
    			};
    			class ACE_Mi17_RUFlight
    			{
    				name = "ACE_Mi17_RUFlight";
    				faction = "ACE_RU";
    				rarityGroup = 0.3;
    				minAltitude = 40;
    				maxAltitude = 100;
    				class Unit0
    				{
    					side = 1;
    					vehicle = "ACE_Mi17_RU";
    					rank = "CAPTAIN";
    					position[] = {0,0,0};
    				};
    			}
    			class Mi24_VFlight
    			{
    				name = "Mi24_VFlight";
    				faction = "ACE_RU";
    				rarityGroup = 0.3;
    				minAltitude = 60;
    				maxAltitude = 150;
    				class Unit0
    				{
    					side = 1;
    					vehicle = "Mi24_V";
    					rank = "CAPTAIN";
    					position[] = {0,0,0};
    				};
    			};
    		};
    	};
    };
    


  2. I assume you mean RMM_revive? Look in ..\support\modules\modules.hpp and comment out RMM_Revive. If you're making it all ACE you may want to comment out RMM_Tyres and R3F_Logistics as well (although they work happily alongside the ACE logistics stuff). Other than swapping out a few ammo boxes and vehicles for the ACE versions, that's all there is to making MSO fully ACE'd up.

    Many thanks, I'm still learning the framework, would have taken me ages to realize its there.

    I have another question, I want to make a Russian MSO on Takistan[eg 80s Afghanistan]...I can always take the easy way of just renaming the units side in the mission.sqm but that produces a whole lot of problems with the AI, how would I tackle it?what would I need to change?

    Also, does the current version of MSO support Fallujah 1.2, Tropico and Panthera island?what would need to be done for it?

    These questions are coming because I am in the design phase of the mission - no access to my ArmA computer till Sunday.


  3. I'm editing Namman's MRAP config for myself and one thing thats annoying me is that you can drive the MRAP even when its missing both rear wheels at full speed, how do I stop that or at least make it go at extreme crawling speed?

    Another thing, I wanna change the engine sounds to MTVR sound instead of Humvee but I can't find the reference for it in the config?I'm assuming its inheriting the sound data from the Humvee so if I wanna change it where do I insert the values?

    I'm using Laza to edit the config.bin, any help is appreciated


  4. Heres the issue, I have a script running that checks if mortars are destroyed, if they do it deletes them and broadcasts a message, I also have a trigger changing incity variable depending if BLUFOR are inside or not to true/false.

    if(isServer) then
    {
    
    //stage 0, setting server variables
    mortar1var = 1;
    mortar2var = 1;
    mortar3var = 1;
    mortar4var = 1;
    allmortardead = 1;
    
    //stage 1, looping check on mortars to see if they are destroyed and delete wreck
    while {!mortarsalive} do {
    
    	sleep 3;
    
    	if (2 > mortar1var) then
    	{
    		if(!alive mortar1) then
    		{
    			deleteVehicle mortar1;
    			[-1, {hint "Mortar destroyed!";}] call CBA_fnc_globalExecute;
    			mortar1var = 5;
    		};
    	};
    
    	if (2 > mortar2var) then
    	{
    		if(!alive mortar2) then
    		{
    			deleteVehicle mortar2;
    			[-1, {hint "Mortar destroyed!";}] call CBA_fnc_globalExecute;
    			mortar2var = 5;
    		};
    	};
    
    	if (2 > mortar3var) then
    	{
    		if(!alive mortar3) then
    		{
    			deleteVehicle mortar3;
    			[-1, {hint "Mortar destroyed!";}] call CBA_fnc_globalExecute;
    			mortar3var = 5;
    		};
    	};
    
    	if (2 > mortar4var) then
    	{
    		if(!alive mortar4) then
    		{
    			deleteVehicle mortar4;
    			[-1, {hint "Mortar destroyed!";}] call CBA_fnc_globalExecute;
    			mortar4var = 5;
    		};
    	};
    
    	//stage 2, check if all mortars are destroyed, if yes then objective 1 complete and incity check is being run to see if BLUFOR inside city, also stops the mortarchecks
    	if(allmortardead == 1) then
    	{
    		if(!alive mortar1 && !alive mortar2 && !alive mortar3 && !alive mortar4) then
    		{
    			[-1, {mortarsalive = true;"1" objStatus "DONE"; tskobj_1 setTaskState "SUCCEEDED";}] call CBA_fnc_globalExecute;	
    			allmortardead = 2;
    		};
    	};
    };
    
    //stage 3, once there are no BLUFOR inside the city the it will set task 2 to done and end the mission.
    while {mortarsalive} do{
    sleep 5;
    [-1, {hint "mortarsalive line 70";}] call CBA_fnc_globalExecute;
    	if(!incity and mortarsalive) then
    	{
    		[-1, {hint "Mission complete";"2" objStatus "DONE"; tskobj_2 setTaskState "SUCCEEDED"; ForceEnd;}] call CBA_fnc_globalExecute; win = [1] execVM "f\server\f_mpEndBroadcast.sqf";
    	};
    };
    };
    

    The problem is when it gets to stage 3, on LOCAL server it works perfectly fine but on dedicated for some reason its not running the 3rd stage, even that "mortarsalive line 70" hint doesn't work...but on local it does and I am pretty much clueless on how to solve it.

    Init.sqf

    //mortar variables
    mortarsalive = false;
    publicvariable "mortarsalive";
    incity = false;
    publicvariable "incity";
    
    //mortar check script
    if (isServer) then
    {
    [] execVM "mortarcheck.sqf";
    };

    Whelp?

    ---------- Post added at 03:30 PM ---------- Previous post was at 03:10 PM ----------

    Issue solved, I ended up moving whatever was in the init.sqf to the script itself and removing the publicvariables statement, its working now.


  5. you can try my AI shoot flates script, wich worked with UPSMON.

    then AI will shoot flares when enemy is detected, also there is an ambush mode with x amount meters distance before shooting, wich you can use with same distance used in UPSMON.

    Yeah but the issue is - the AI does not detect enemies as long as they are in vehicles[or taking fire from the vehicles]...you can park the Humvee with the lights on directly in-front of them and they won't react they'll just keep on scanning :)


  6. After enough testing I found out whats causing it, its the night time..when I change from night to day suddenly the ambush works - back to night and the AI can't spot you even that your standing infront of them and shooting at them, the date is August 16 at 00:00

    Any ideas how to solve this without giving the AI night vision or changing the date?

    Again - they react and identify infantry correctly but they do not identify vehicles at all unless the vehicle is shooting at them and hitting[shooting near them won't make it detect] at night time - during the day they are fine.


  7. Without ambush would they do anything?

    Without ambush they behave fine as there are shitload of them.

    I double checked..its something specific in the mission because when I load a empty mission on Fallujah and set an ambush/2 it works perfectly fine.

    Sigh...back to figuring out WTF is wrong with my mission.

    I did more testing, the AIs react to infantry but not vehicles - I parked my Humvee right infront of them and they did nothing..once I exited it the "enemy detected" message came up and they started firing on me..any ideas why?the Humvee is not set to captive or anything...its the armored one from ArmA2.

    Humvee named trk4, init

    this addMagazineCargo ["200Rnd_556x45_M249",13];  this addMagazineCargo ["30Rnd_556x45_Stanag",23];  this addMagazineCargo ["SmokeShell",7];  this addMagazineCargo ["SmokeShellBlue",4];veh = [this, 300, 0, 1, FALSE, FALSE] execVM "vehicle.sqf"; this addweaponcargo ["ACE_Stretcher",1];

    the vehicle.sqf is Tophe's simple respawn script, nothing about captive there.

    I even tried with a brand new placed vehicle without any init or name, same issue..AI does not react,

    Ofcourse if its a brand new mission the AIs will react to the vehicle..I'm lost - no idea why its happening :(


  8. They explode when tracked vehicles[i tested M113] hit them, but not when Humvees or soft skin vehicles hit them...I was literally going back and further with the wheel on the mine and it did nothing while the ambushing ais were just looking at me.

    Not sure if its from vanilla, but I play with ACE exclusively.

    I tested ambush2 and the AI do not react to vehicles at all, I think something is broken - I was standing infront of the AIs with my Humvee and they did nothing even that they have 3 RPGs.

    I started running them over one by one and again - they did nothing...they continued laying prone without moving as I was running them over :(


  9. Great! I had a look at it and...I have a few suggestions:

    1)Swap the M249 with scope to iron sight version, I have never seen a scoped FN MAG in the IDF.

    2)Take out the ironsight CTAR, theres always MARS on it.

    3)Give marksman a M4 with ACOG or CTAR with ACOG instead of the M14, its no longer in IDF service.

    4)You should look in to reskinning the M923A2 trucks instead of the MTVR, the IDF still uses those

    The rest of my suggestions are mambojumbo since the appropriate weapon sights/models don't exist..thanks for your work!

    EDIT:

    Hey, I took a closer look at the RH_HK weapons pack and it has all the Tavors variants you might need and it left me wondering why you didn't include the GL and STAR as default? specifically:

    1)standard rifleman, CTAR with MARS: "RH_ctar21m"

    2)grenadier, TAR with MARS: "RH_ctar21mgl"

    3)marksman, STAR with ACOG and bipod: "RH_star21" [irl usage is actually CTAR]


  10. Its puzzling, basically I added ammobox to insurgency.

    It appears whenever players[JIPs] join the ammobox script gets run for all the players..but the ammobox is local so I am confused why its doing that and how do I fix that?

    ammobox1 = "BAF_VehicleBox" createVehicleLocal getpos vehicleServicePoint;
    VSPdir = getDir vehicleServicePoint;
    ammobox1 setPos (vehicleServicePoint modelToWorld [0,-10,0]);
    ObjectHgt = getPosATL ammobox1;
    TerrainCorrection = (ObjectHgt select 2);
    ammobox1 setPos (vehicleServicePoint modelToWorld [0,-7,-TerrainCorrection]);
    ammobox1 setDir (VSPdir - 0);
    ammobox1 lock false;
    ammobox1 setVehicleLock "UNLOCKED";
    ammobox1 setVehicleInit "ammobox1 execVM ""client\FillAmmoBox.sqf""";
    processInitCommands;

    Everyone run that once, but it seems that JIPs causing it to run again for everyone?

    Heres the ammobox script

    //................................
    //	Fill Ammo Box Script by Lzryde (v0.2)
    //................................
    
    // Settings
    _amountWeapon = 1;
    _amountAmmo = 15;
    _amountammoMag = 1;
    _refreshTime = 1200; // refill every 20 minutes
    
    ammobox1 allowDamage false;
    
    // Loop forever
    while {true} do
    {
    
    // Clear box
    clearWeaponCargo _this;
    clearMagazineCargo _this;
    
    // Fill box
    
    //hawkeye's stuff
    _this addWeaponCargo ["ACE_ParachutePack",24];
    _this addWeaponCargo ["ACE_ParachuteRoundPack",6];
    _this addMagazineCargo ["ACE_VS17Panel_M",6];
    _this addMagazineCargo ["ACE_Rope_M_50",6];
    _this addMagazineCargo ["ACE_Rope_M_60",6];
    _this addMagazineCargo ["ACE_Rope_M_90",6];
    _this addMagazineCargo ["ACE_Rope_M_120",6];
    _this addMagazineCargo ["ACE_Rope_M5",6]; // Sling
    
    
    //soflam
                   _this addWeaponCargo ["Laserdesignator", _amountWeapon];
                   _this addMagazineCargo ["Laserbatteries", _amountammoMag];
    //shottys
    	    _this addWeaponCargo ["M1014", _amountWeapon];
                   _this addWeaponCargo ["AA12_PMC", _amountWeapon];
                   _this addWeaponCargo ["Saiga12K", _amountWeapon];
    //M14 godmod
    	    _this addWeaponCargo ["M14_EP1", _amountWeapon];
    	    _this addWeaponCargo ["ACE_M14_ACOG", _amountWeapon];
    //AR15
              _this addWeaponCargo ["M16A2", _amountWeapon];
    	    _this addWeaponCargo ["ACE_m16a2_scope", _amountWeapon];
    	    _this addWeaponCargo ["M16A2GL", _amountWeapon];
                   _this addWeaponCargo ["ACE_m16a2gl_scope", _amountWeapon];
                   _this addWeaponCargo ["ACE_M16A4_Iron", _amountWeapon];
                   _this addWeaponCargo ["ACE_M16A4_CCO_GL", _amountWeapon];
                   _this addWeaponCargo ["ACE_M16A4_ACG_GL_UP", _amountWeapon];
    	    _this addWeaponCargo ["ACE_M4A1_Eotech", _amountWeapon];
    	    _this addWeaponCargo ["ACE_M4A1_GL", _amountWeapon];
    	    _this addWeaponCargo ["ACE_M4A1_ACOG", _amountWeapon];
                   _this addWeaponCargo ["ACE_SOC_M4A1", _amountWeapon];
                   _this addWeaponCargo ["ACE_SOC_M4A1_Aim", _amountWeapon];
                   _this addWeaponCargo ["ACE_SOC_M4A1_Eotech", _amountWeapon];
                   _this addWeaponCargo ["ACE_SOC_M4A1_Eotech_4x", _amountWeapon];
                   _this addWeaponCargo ["ACE_SOC_M4A1_GL", _amountWeapon];
                   _this addWeaponCargo ["ACE_SOC_M4A1_GL_13", _amountWeapon];
                   _this addWeaponCargo ["ACE_SOC_M4A1_GL_AIMPOINT", _amountWeapon];
                   _this addWeaponCargo ["ACE_SOC_M4A1_GL_EOTECH", _amountWeapon];
                   _this addWeaponCargo ["ACE_SOC_M4A1_SHORTDOT", _amountWeapon];
                   _this addWeaponCargo ["M4A3_CCO_EP1", _amountWeapon];
                   _this addWeaponCargo ["M4A3_RCO_GL_EP1", _amountWeapon];
    //HK family
                   _this addWeaponCargo ["ACE_HK416_D14_COMPM3", _amountWeapon];
                   _this addWeaponCargo ["ACE_HK416_D14_COMPM3_M320", _amountWeapon];
                   _this addWeaponCargo ["ACE_HK417_micro", _amountWeapon];
                   _this addWeaponCargo ["ACE_HK417_Eotech_4x", _amountWeapon];
                   _this addWeaponCargo ["ACE_HK417_leupold", _amountWeapon];
                   _this addWeaponCargo ["ACE_HK417_Shortdot", _amountWeapon];
    //SCAR family
              _this addWeaponCargo ["SCAR_L_CQC_EGLM_Holo", _amountWeapon];
                   _this addWeaponCargo ["SCAR_L_STD_EGLM_RCO", _amountWeapon];
    	    _this addWeaponCargo ["SCAR_L_CQC", _amountWeapon];
    	    _this addWeaponCargo ["SCAR_L_CQC_Holo", _amountWeapon];
    	    _this addWeaponCargo ["ACE_SCAR_H_STD_Spect", _amountWeapon];
                   _this addWeaponCargo ["SCAR_H_STD_EGLM_Spect", _amountWeapon];
                   _this addWeaponCargo ["SCAR_H_CQC_CCO", _amountWeapon];
                   _this addWeaponCargo ["SCAR_H_STD_TWS_SD", _amountWeapon];
    //L85 family
                   _this addWeaponCargo ["BAF_L85A2_RIS_ACOG", _amountWeapon];
                   _this addWeaponCargo ["BAF_L85A2_RIS_Holo", _amountWeapon];
                   _this addWeaponCargo ["BAF_L85A2_RIS_SUSAT", _amountWeapon];
                   _this addWeaponCargo ["BAF_L85A2_UGL_ACOG", _amountWeapon];
                   _this addWeaponCargo ["BAF_L85A2_UGL_Holo", _amountWeapon];
                   _this addWeaponCargo ["BAF_L85A2_UGL_SUSAT", _amountWeapon];
    //G36 family
                   _this addWeaponCargo ["G36a", _amountWeapon];
                   _this addWeaponCargo ["G36a_camo", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36A1_AG36A1", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36A1_AG36A1_D", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36A2", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36A2_Bipod", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36A2_Bipod_D", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36A2_D", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36K_EOTech", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36K_EOTech_D", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36K_iron", _amountWeapon];
                   _this addWeaponCargo ["ACE_G36K_iron_D", _amountWeapon];
    //M8 family
                   _this addWeaponCargo ["m8_carbine", _amountWeapon];
                   _this addWeaponCargo ["m8_carbine_pmc", _amountWeapon];
                   _this addWeaponCargo ["m8_carbineGL", _amountWeapon];
                   _this addWeaponCargo ["m8_compact", _amountWeapon];
                   _this addWeaponCargo ["m8_compact_pmc", _amountWeapon];
    //Czech weapons
                   _this addWeaponCargo ["Sa58P_EP1", _amountWeapon];
                   _this addWeaponCargo ["Sa58V_CCO_EP1", _amountWeapon];
                   _this addWeaponCargo ["Sa58V_EP1", _amountWeapon];
                   _this addWeaponCargo ["Sa58V_RCO_EP1", _amountWeapon];
    //G3 family
                   _this addWeaponCargo ["ACE_G3A3_RSAS", _amountWeapon];
                   _this addWeaponCargo ["ACE_G3A3", _amountWeapon];
                   _this addWeaponCargo ["ACE_G3SG1", _amountWeapon]; 
    //MGs
              _this addWeaponCargo ["ACE_M27_IAR", _amountWeapon];
              _this addWeaponCargo ["ACE_M27_IAR_ACOG", _amountWeapon];
              _this addWeaponCargo ["M240", _amountWeapon];
              _this addWeaponCargo ["m240_scoped_EP1", _amountWeapon];
              _this addWeaponCargo ["BAF_L7A2_GPMG", _amountWeapon];
              _this addWeaponCargo ["ACE_BAF_L7A2_GPMG", _amountWeapon];
    	    _this addWeaponCargo ["M249_EP1", _amountWeapon];
              _this addWeaponCargo ["ACE_M249_PIP_ACOG", _amountWeapon];
              _this addWeaponCargo ["M60A4_EP1", _amountWeapon];
              _this addWeaponCargo ["Mk_48_DES_EP1", _amountWeapon];
              _this addWeaponCargo ["ACE_M60", _amountWeapon];
                   _this addWeaponCargo ["PK", _amountWeapon];
                   _this addWeaponCargo ["Pecheneg", _amountWeapon];
    //Snipers and DMRs
                   _this addWeaponCargo ["m8_sharpshooter", _amountWeapon];
                   _this addWeaponCargo ["BAF_L86A2_ACOG", _amountWeapon];
                   _this addWeaponCargo ["ACE_Mk12mod1", _amountWeapon];
    	    _this addWeaponCargo ["DMR", _amountWeapon];
    	    _this addWeaponCargo ["ACE_M110", _amountWeapon];
              _this addWeaponCargo ["M110_NVG_EP1", _amountWeapon];
                   _this addWeaponCargo ["ACE_SVD_Bipod", _amountWeapon];
                   _this addWeaponCargo ["VSS_vintorez", _amountWeapon];               
    //MISC guns
    
                   _this addWeaponCargo ["LeeEnfield", _amountWeapon];
                   _this addWeaponCargo ["ACE_M3A1", _amountWeapon];
                   _this addWeaponCargo ["ACE_oc14", _amountWeapon];
                   _this addWeaponCargo ["ACE_oc14gl", _amountWeapon];
                   _this addWeaponCargo ["ACE_oc14glsp", _amountWeapon];
                   _this addWeaponCargo ["ACE_oc14sp", _amountWeapon];
                   _this addWeaponCargo ["bizon", _amountWeapon];
                   _this addWeaponCargo ["bizon_silenced", _amountWeapon];
                   _this addWeaponCargo ["ACE_SKS", _amountWeapon];
                   _this addWeaponCargo ["ACE_UMP45", _amountWeapon];
    	    _this addWeaponCargo ["Javelin", _amountWeapon];
     	    _this addWeaponCargo ["ACE_M136_CSRS", _amountWeapon];
    	    _this addWeaponCargo ["ACE_M72A2", _amountWeapon];
                   _this addWeaponCargo ["M47Launcher_EP1", _amountWeapon];
              _this addWeaponCargo ["MAAWS", _amountWeapon];
    	    _this addWeaponCargo ["SMAW", _amountWeapon];
                   _this addWeaponCargo ["ACE_RPG7V_PGO7", _amountWeapon];
                   _this addWeaponCargo ["ACE_RPG29", _amountWeapon];
                   _this addWeaponCargo ["ACRE_PRC117F", _amountWeapon];
                   _this addWeaponCargo ["ACE_PRC119", _amountWeapon];
                   _this addWeaponCargo ["ACE_CharliePack", _amountWeapon];
                   _this addWeaponCargo ["ACE_CharliePack_ACU", _amountWeapon];
                   _this addWeaponCargo ["ACE_CharliePack_WMARPAT", _amountWeapon];
                   _this addWeaponCargo ["ACE_CharliePack_ACU_Medic", _amountWeapon];
    //pistols
    		_this addWeaponCargo ["Colt1911", _amountWeapon];
    		_this addWeaponCargo ["M9", _amountWeapon];
    		_this addWeaponCargo ["ACE_P226", _amountWeapon];
    
    
     //MISC amountAmmo       
               _this addMagazineCargo ["ACE_Bandage", _amountAmmo];
               _this addMagazineCargo ["ACE_Morphine", _amountAmmo];
               _this addMagazineCargo ["ACE_Epinephrine", _amountAmmo];
               _this addMagazineCargo ["ACE_Medkit", _amountAmmo];
               _this addWeaponCargo ["acre_prc148", _amountWeapon];
               _this addMagazineCargo ["ACE_Knicklicht_B", _amountAmmo];
               _this addMagazineCargo ["ACE_Knicklicht_G", _amountAmmo];
               _this addMagazineCargo ["ACE_Knicklicht_IR", _amountAmmo];
               _this addMagazineCargo ["ACE_Knicklicht_R", _amountAmmo];
               _this addMagazineCargo ["ACE_Knicklicht_W", _amountAmmo];
               _this addMagazineCargo ["ACE_Knicklicht_Y", _amountAmmo];
    	_this addMagazineCargo ["ACE_1Rnd_HE_M203", _amountAmmo];
    	_this addMagazineCargo ["1Rnd_HE_M203", _amountAmmo];
    	_this addMagazineCargo ["FlareWhite_M203", _amountAmmo];
    	_this addMagazineCargo ["FlareGreen_M203", _amountAmmo];
    	_this addMagazineCargo ["FlareRed_M203", _amountAmmo];
    	_this addMagazineCargo ["FlareYellow_M203", _amountAmmo];
    	_this addMagazineCargo ["ACE_FlareIR_M203", _amountAmmo];
    	_this addMagazineCargo ["ACE_SSWhite_M203", _amountAmmo];
    	_this addMagazineCargo ["ACE_SSYellow_M203", _amountAmmo];
    	_this addMagazineCargo ["ACE_SSGreen_M203", _amountAmmo];
    	_this addMagazineCargo ["ACE_SSRed_M203", _amountAmmo];
    	_this addMagazineCargo ["1Rnd_Smoke_M203", _amountAmmo];
    	_this addMagazineCargo ["1Rnd_SmokeRed_M203", _amountAmmo];
    	_this addMagazineCargo ["1Rnd_SmokeGreen_M203", _amountAmmo];
    	_this addMagazineCargo ["1Rnd_SmokeYellow_M203", _amountAmmo];
               _this addMagazineCargo ["1Rnd_HE_GP25", _amountAmmo];
               _this addMagazineCargo ["1Rnd_SMOKE_GP25", _amountAmmo];
    	_this addMagazineCargo ["HandGrenade_West", _amountAmmo];
    	_this addMagazineCargo ["IR_Strobe_Marker", _amountAmmoMag];
    	_this addMagazineCargo ["IR_Strobe_Target", _amountAmmoMag];
    	_this addMagazineCargo ["ACE_M34", _amountAmmo];
    	_this addMagazineCargo ["ACE_M84", _amountAmmo];
    	_this addMagazineCargo ["Mine", _amountAmmo];
    	_this addMagazineCargo ["PipeBomb", _amountAmmo];
    	_this addMagazineCargo ["SmokeShell", _amountAmmo];
    	_this addMagazineCargo ["SmokeShellBlue", _amountAmmo];
    	_this addMagazineCargo ["SmokeShellGreen", _amountAmmo];
    	_this addMagazineCargo ["SmokeShellOrange", _amountAmmo];
    	_this addMagazineCargo ["SmokeShellPurple", _amountAmmo];
    	_this addMagazineCargo ["SmokeShellRed", _amountAmmo];
    	_this addMagazineCargo ["SmokeShellYellow", _amountAmmo];
    	_this addWeaponCargo ["ACE_GlassesSunglasses", _amountAmmoMag];
    	_this addWeaponCargo ["ACE_GlassesBalaklava", _amountAmmoMag];
    	_this addWeaponCargo ["ACE_GlassesBalaklavaGray", _amountAmmoMag];
    	_this addWeaponCargo ["ACE_GlassesBalaklavaOlive", _amountAmmoMag];
    	_this addWeaponCargo ["Binocular", _amountAmmoMag];
    	_this addWeaponCargo ["ItemCompass", _amountAmmoMag];
    	_this addWeaponCargo ["ACE_DAGR", _amountAmmoMag];
    	_this addWeaponCargo ["ACE_Earplugs", _amountAmmoMag];
    	_this addWeaponCargo ["ItemGPS", _amountAmmoMag];
    	_this addWeaponCargo ["ACE_HuntIR_monitor", _amountAmmoMag];
    	_this addWeaponCargo ["ACE_Kestrel4500", _amountAmmoMag];
    	_this addWeaponCargo ["ItemMap", _amountAmmoMag];
    	_this addWeaponCargo ["NVGoggles", _amountAmmoMag];
    	_this addWeaponCargo ["ItemRadio", _amountAmmoMag];
    	_this addMagazineCargo ["ACE_Rope_M_120", _amountAmmo];
    	_this addWeaponCargo ["ACE_GlassesLHD_glasses", _amountAmmoMag];
    	_this addWeaponCargo ["ACE_SpottingScope", _amountAmmoMag];
    	_this addWeaponCargo ["ACE_Rangefinder_OD", _amountAmmoMag];
    	_this addWeaponCargo ["ItemWatch", _amountAmmoMag];
    
    	//MAGS amountAmmoMag
    _this addMagazineCargo ["ACE_10Rnd_127x99_Raufoss_m107", _amountAmmo];
    _this addMagazineCargo ["ACE_10Rnd_127x99_T_m107", _amountAmmo];
    _this addMagazineCargo ["ACE_100Rnd_556x45_T_M249", _amountAmmo];
    _this addMagazineCargo ["ACE_200Rnd_556x45_T_M249", _amountAmmo];
    _this addMagazineCargo ["ACE_30Rnd_556x45_SB_S_Stanag", _amountAmmo];
    _this addMagazineCargo ["ACE_30Rnd_556x45_SB_Stanag", _amountAmmo];
    _this addMagazineCargo ["ACE_30Rnd_556x45_T_Stanag", _amountAmmo];
    _this addMagazineCargo ["20Rnd_556x45_Stanag", _amountAmmo];
    _this addMagazineCargo ["ACE_5Rnd_127x99_B_TAC50", _amountAmmo];
    _this addMagazineCargo ["ACE_5Rnd_127x99_S_TAC50", _amountAmmo];
    _this addMagazineCargo ["ACE_5Rnd_127x99_T_TAC50", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_S_M110", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_SB_M110", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_T_M110", _amountAmmo];
    _this addMagazineCargo ["ACE_15Rnd_9x19_P226", _amountAmmo];
    _this addMagazineCargo ["15Rnd_9x19_M9", _amountAmmo];
    _this addMagazineCargo ["20Rnd_762x51_DMR", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_B_M14", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_T_DMR", _amountAmmo];
    _this addMagazineCargo ["10x_303", _amountAmmo];
    _this addMagazineCargo ["5rnd_127x99_as50", _amountAmmo];
    _this addMagazineCargo ["10Rnd_127x99_m107", _amountAmmo];
    _this addMagazineCargo ["200Rnd_556x45_L110A1", _amountAmmo];
    _this addMagazineCargo ["5Rnd_86x70_L115A1", _amountAmmo];
    _this addMagazineCargo ["100Rnd_762x54_PK", _amountAmmo];
    _this addMagazineCargo ["10Rnd_762x54_SVD", _amountAmmo];
    _this addMagazineCargo ["8Rnd_9x18_Makarov", _amountAmmo];
    _this addMagazineCargo ["6Rnd_45ACP", _amountAmmo];
    _this addMagazineCargo ["20Rnd_B_765x17_Ball", _amountAmmo];
    _this addMagazineCargo ["30Rnd_9x19_UZI", _amountAmmo];
    _this addMagazineCargo ["PG7V", _amountAmmo];
    _this addMagazineCargo ["PG7VL", _amountAmmo];
    _this addMagazineCargo ["PG7VR", _amountAmmo];
    _this addMagazineCargo ["OG7", _amountAmmo];
    _this addMagazineCargo ["Strela", _amountAmmo];
    _this addMagazineCargo ["20Rnd_762x51_FNFAL", _amountAmmo];
    _this addMagazineCargo ["30Rnd_762x39_AK47", _amountAmmo];
    _this addMagazineCargo ["30Rnd_556x45_Stanag", _amountAmmo];
    _this addMagazineCargo ["5Rnd_762x51_M24", _amountAmmo];
    _this addMagazineCargo ["ACE_5Rnd_762x51_T_M24", _amountAmmo];
    _this addMagazineCargo ["100Rnd_762x51_M240", _amountAmmo];
    _this addMagazineCargo ["100Rnd_556x45_M249", _amountAmmo];
    _this addMagazineCargo ["200Rnd_556x45_M249", _amountAmmo];
    _this addMagazineCargo ["20Rnd_762x51_B_SCAR", _amountAmmo];
    _this addMagazineCargo ["20rnd_762x51_B_SCAR", _amountAmmo];
    _this addMagazineCargo ["8Rnd_B_Beneli_Pellets", _amountAmmo];
    _this addMagazineCargo ["Javelin", _amountAmmo];
    _this addMagazineCargo ["ACE_Javelin_Direct", _amountAmmo];
    _this addMagazineCargo ["Mine", _amountAmmo];
    _this addMagazineCargo ["PipeBomb", _amountAmmo];
    _this addMagazineCargo ["15Rnd_9x19_M9", _amountAmmo];
    _this addMagazineCargo ["7Rnd_45ACP_1911", _amountAmmo];
    _this addMagazineCargo ["17Rnd_9x19_glock17", _amountAmmo];
    _this addMagazineCargo ["ACE_15Rnd_9x19_P226", _amountAmmo];
    _this addMagazineCargo ["HandGrenade_West", _amountAmmo];
    _this addMagazineCargo ["HandGrenade_East", _amountAmmo];
    _this addMagazineCargo ["SmokeShell", _amountAmmo];
    _this addMagazineCargo ["1Rnd_HE_M203", _amountAmmo];
    _this addMagazineCargo ["1Rnd_Smoke_M203", _amountAmmo];
    _this addMagazineCargo ["IR_Strobe_Target", _amountAmmoMag];
    _this addMagazineCargo ["IR_Strobe_Marker", _amountAmmoMag];
    _this addMagazineCargo ["FlareWhite_M203", _amountAmmo];
    _this addMagazineCargo ["FlareYellow_M203", _amountAmmo];
    _this addMagazineCargo ["FlareGreen_M203", _amountAmmo];
    _this addMagazineCargo ["FlareRed_M203", _amountAmmo];
    _this addMagazineCargo ["1Rnd_SmokeRed_M203", _amountAmmo];
    _this addMagazineCargo ["1Rnd_SmokeGreen_M203", _amountAmmo];
    _this addMagazineCargo ["1Rnd_SmokeYellow_M203", _amountAmmo];
    _this addMagazineCargo ["1Rnd_HE_GP25", _amountAmmo];
    _this addMagazineCargo ["FlareWhite_GP25", _amountAmmo];
    _this addMagazineCargo ["FlareGreen_GP25", _amountAmmo];
    _this addMagazineCargo ["FlareRed_GP25", _amountAmmo];
    _this addMagazineCargo ["FlareYellow_GP25", _amountAmmo];
    _this addMagazineCargo ["1Rnd_Smoke_GP25", _amountAmmo];
    _this addMagazineCargo ["1Rnd_SmokeRed_GP25", _amountAmmo];
    _this addMagazineCargo ["1Rnd_SmokeGreen_GP25", _amountAmmo];
    _this addMagazineCargo ["1Rnd_SmokeYellow_GP25", _amountAmmo];
    _this addMagazineCargo ["Laserbatteries", _amountAmmo];
    _this addMagazineCargo ["ACE_Battery_Rangefinder", _amountAmmo];
    _this addMagazineCargo ["ACE_Flashbang", _amountAmmo];
    _this addMagazineCargo ["ACE_SSGreen_M203", _amountAmmo];
    _this addMagazineCargo ["ACE_SSRed_M203", _amountAmmo];
    _this addMagazineCargo ["ACE_SSWhite_M203", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_SB_SCAR", _amountAmmo];
    _this addMagazineCargo ["ACE_SSYellow_M203", _amountAmmo];
    _this addMagazineCargo ["ACE_FlareIR_M203", _amountAmmo];
    _this addMagazineCargo ["ACE_HuntIR_M203", _amountAmmo];
    _this addMagazineCargo ["ACE_1Rnd_HE_M203", _amountAmmo];
    _this addMagazineCargo ["ACE_M34", _amountAmmo];
    _this addMagazineCargo ["BAF_L109A1_HE", _amountAmmo];
    _this addMagazineCargo ["ACE_M84", _amountAmmo];
    _this addMagazineCargo ["ACE_Claymore_M", _amountAmmo];
    _this addMagazineCargo ["ACE_C4_M", _amountAmmo];
    _this addMagazineCargo ["ACE_Rope_M_120", _amountAmmo];
    _this addMagazineCargo ["ACE_MAAWS_HE", _amountAmmo];
    _this addMagazineCargo ["MAAWS_HEAT", _amountAmmo];
    _this addMagazineCargo ["MAAWS_HEDP", _amountAmmo];
    _this addMagazineCargo ["ACE_SMAW_NE", _amountAmmo];
    _this addMagazineCargo ["ACE_25Rnd_1143x23_B_UMP45", _amountAmmo];
    _this addMagazineCargo ["ACE_10Rnd_762x39_B_SKS", _amountAmmo];
    _this addMagazineCargo ["64Rnd_9x19_Bizon", _amountAmmo];
    _this addMagazineCargo ["64Rnd_9x19_SD_Bizon", _amountAmmo];
    _this addMagazineCargo ["ACE_64Rnd_9x19_S_Bizon", _amountAmmo];
    _this addMagazineCargo ["10Rnd_9x39_SP5_VSS", _amountAmmo];
    _this addMagazineCargo ["20Rnd_9x39_SP5_VSS", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_9x39_B_OC14", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_9x39_S_OC14", _amountAmmo];
    _this addMagazineCargo ["ACE_30Rnd_1143x23_B_M3", _amountAmmo];
    _this addMagazineCargo ["20Rnd_B_AA12_74Slug", _amountAmmo];
    _this addMagazineCargo ["20Rnd_B_AA12_HE", _amountAmmo];
    _this addMagazineCargo ["20Rnd_B_AA12_Pellets", _amountAmmo];
    _this addMagazineCargo ["8Rnd_B_Saiga12_74Slug", _amountAmmo];
    _this addMagazineCargo ["8Rnd_B_Saiga12_Pellets", _amountAmmo];
    _this addMagazineCargo ["ACE_8Rnd_12Ga_Buck00_Saiga12", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_T_HK417", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_B_HK417", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_SB_HK417", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_T_G3", _amountAmmo];
    _this addMagazineCargo ["ACE_20Rnd_762x51_B_G3", _amountAmmo];
    _this addMagazineCargo ["1Rnd_SMOKE_GP25", _amountAmmo];
    _this addMagazineCargo ["1Rnd_HE_GP25", _amountAmmo];
    _this addMagazineCargo ["SMAW_HEAA", _amountAmmo];
    _this addMagazineCargo ["ACE_RPG29_TBG29", _amountAmmo];
    _this addMagazineCargo ["ACE_8Rnd_762x25_B_Tokarev", _amountAmmo];
    _this addMagazineCargo ["ACE_RPG29_PG29", _amountAmmo];
    _this addMagazineCargo ["Dragon_EP1", _amountAmmo];
    _this addMagazineCargo ["SMAW_HEDP", _amountAmmo];
    _this addMagazineCargo ["30Rnd_545x39_AK", _amountAmmo];
    _this addMagazineCargo ["75Rnd_545x39_RPK", _amountAmmo];
    _this addMagazineCargo ["30Rnd_556x45_G36", _amountAmmo];
    _this addMagazineCargo ["ACE_30Rnd_762x39_T_SA58", _amountAmmo];
    _this addMagazineCargo ["30Rnd_762x39_SA58", _amountAmmo];
    _this addMagazineCargo ["ACE_SMAW_Spotting", _amountAmmo];
    // Wait the duration of _refreshTime
    sleep _refreshTime;
    };


  11. I'm getting a issue adding extra players on BLUFOR, I added Hitman151 on both the strings and the "" in the variables so they can spawn without errors and such but theres one thing I can't figure out, if Hitman151 takes a vehicle far enough for it to reach the despawn range[eg atv not near other players 100m/base] once Hitman151 exit the vehicle it will despawn and spawn back at the base, I am cracking my head on how to fix it...the player class is already defined, so is the string...any ideas?this does NOT happen to other players that are already there, if I add Hitman151 to a fully functional squad it will still happen to Hitman151.

    Any ideas?

    Whoever is interested, the solution was to add Hitman151 to server/ups.init westplayer strings.(thanks Fireball)

    So if you want to add a new slot you have to do 3 things:

    1)client/variables.sqf

    Add "" per each new player eg:

    playerNames		= ["","","","","","","","","","","","","","","","","","","","","",""]; 

    2)common/define.sqf

    Add the unit's name to the WestPlayerString

    #define westPlayerStrings	["Hitman111","Hitman112","Hitman113","Hitman114","Hitman115","Hitman121","Hitman122","Hitman123","Hitman124","Hitman125","Hitman131","Hitman132","Hitman133","Hitman134","Hitman135","Hitman141","Hitman142","Hitman143","Hitman144","Hitman145","Hitman151","Hitman152"]

    3)server/ai/UPS.init

    Add the unit's name to WestPlayerString[yes again]

    #define westPlayerStrings		["Hitman111","Hitman112","Hitman113","Hitman114","Hitman115","Hitman121","Hitman122","Hitman123","Hitman124","Hitman125","Hitman131","Hitman132","Hitman133","Hitman134","Hitman135","Hitman141","Hitman142","Hitman143","Hitman144","Hitman145","Hitman151","Hitman152"]
    

    And it will work.


  12. I'm getting a issue adding extra players on BLUFOR, I added Hitman151 on both the strings and the "" in the variables so they can spawn without errors and such but theres one thing I can't figure out, if Hitman151 takes a vehicle far enough for it to reach the despawn range[eg atv not near other players 100m/base] once Hitman151 exit the vehicle it will despawn and spawn back at the base, I am cracking my head on how to fix it...the player class is already defined, so is the string...any ideas?this does NOT happen to other players that are already there, if I add Hitman151 to a fully functional squad it will still happen to Hitman151.

    Any ideas?


  13. I need help tweaking the mission, I added a new unit called Hitman151 with Hitman152 both are pilots, I added their string to common/define.sqf and I'm getting some error about zero division.

    Where else do I need to add their string or how the heck do I fix this?the leader has group id set just like the other groups...if I don't add their string to the define then theres no error but AIs wont spawn around them + when they exit the vehicle it will despawn.

    http://img840.imageshack.us/img840/3111/errorfw.png

    #define westPlayerStrings	["Hitman111","Hitman112","Hitman113","Hitman114","Hitman115","Hitman121","Hitman122","Hitman123","Hitman124","Hitman125","Hitman131","Hitman132","Hitman133","Hitman134","Hitman135","Hitman141","Hitman142","Hitman143","Hitman144","Hitman145","Hitman151","Hitman152"]
    
    

×