Jump to content
Sign in to follow this  
eggbeast

firing smoke from a mk19 - stuck

Recommended Posts

calling on anyone for help here: puzzle of the day (or is it the year?)

I'm trying to enable smoke rounds to work in the dingo GL and the ka60 GL chopper...

ok here is what i've done:

made a smoke mag for the mk19 in cfgmags

 class 48Rnd_40mm_MK19: VehicleMagazine
{
 displayName = "$STR_DN_MK19";
 ammo = "G_40mm_HE";
 count = 48;
 scope = 2;
 initSpeed = 240;
 maxLeadSpeed = 170;
 nameSound = "grenadelauncher";
};
class EB_48Rnd_40mm_SmokeRed_MK19: 48Rnd_40mm_MK19
{
 displayName = "48Rnd. 40mm Red Smoke";
 ammo = "G_40mm_SmokeRed";
 count = 48;
 scope = 2;
 initSpeed = 240;
 maxLeadSpeed = 170;
 nameSound = "grenadelauncher";
};

patched the mk19 (and GMG and M32_heli and AGS30) in cfgweapons

 class MK19: MGun
{
 magazines[] = {"48Rnd_40mm_MK19","EB_48Rnd_40mm_SmokeRed_MK19","EB_48Rnd_40mm_SmokeGreen_MK19","EB_48Rnd_40mm_FlareGreen_MK19","EB_48Rnd_40mm_FlareWhite_MK19"};
};

and then edited the tripod turret in cfgvehicles

 class MK19_TriPod_US_EP1: MK19_TriPod_base
{
 class Turrets: Turrets
 {
  class MainTurret: MainTurret
  {
   weapons[] = {"MK19"};
   magazines[] = {"48Rnd_40mm_MK19","48Rnd_40mm_MK19","48Rnd_40mm_MK19","48Rnd_40mm_MK19","EB_48Rnd_40mm_SmokeRed_MK19","EB_48Rnd_40mm_SmokeGreen_MK19","EB_48Rnd_40mm_FlareGreen_MK19","EB_48Rnd_40mm_FlareWhite_MK19"};
   class GunFire: WeaponCloudsMGun
   {
    interval = 0.01;
   };
  };
 };
 class Reflectors
 {
  class main_reflector
  {
   color[] = {0.8,0.8,0.9,1};
   ambient[] = {0.1,0.1,0.1,1};
   position = "light";
   direction = "lightEnd";
   hitpoint = "light";
   selection = "light";
   size = 1;
   brightness = 5;
  };
 };
 class assembleInfo
 {
  primary = 0;
  base = "";
  assembleTo = "";
  dissasembleTo[] = {"MK19_TriPod_US_Bag_EP1","Tripod_Bag"};
  displayName = "";
 };
};

don't worry about the added searchlight and flares ammo...

have also done this for the dingo/jackal/BTR90 GMG/AGS17 and the ka60 M32_heli

ok so i go into the mission reload the SMOKE ammo and its all green but won't fire when i press LMB

I've tried each weapon/vehicle with variations of HE ammo and it ALL works but the vehicle mounted M32/ Mk19/ GMG/AGS17 will NOT fire a flare or smokeround

################################

so what is different between these?

the M203 muzzle fires all 3 types of stock grenade:

mags

 class 1Rnd_HE_M203: CA_Magazine
{
 scope = 2;
 type = 16;
 displayName = "$STR_DN_HE_M203";
 picture = "\Ca\weapons\Data\Equip\m_40mmHP_CA.paa";
 ammo = "G_40mm_HE";
 initSpeed = 80;
 count = 1;
 nameSound = "grenadelauncher";
 descriptionShort = "$STR_DSS_1Rnd_HE_M203";
};
class FlareWhite_M203: CA_Magazine
{
 scope = 2;
 type = 16;
 displayName = "$STR_DN_FLAREWHITE_M203";
 picture = "\Ca\weapons\Data\Equip\m_FlareWhite_CA.paa";
 ammo = "F_40mm_White";
 initSpeed = 80;
 count = 1;
 nameSound = "grenadelauncher";
 descriptionShort = "$STR_DSS_1Rnd_FLAREWHITE_M203";
};
class 1Rnd_Smoke_M203: 1Rnd_HE_M203
{
 displayName = "$STR_MN_SMOKE_M203";
 picture = "\Ca\weapons\Data\Equip\m_40mmHP_CA.paa";
 ammo = "G_40mm_Smoke";
 descriptionShort = "$STR_DSS_1Rnd_SMOKE_M203";
};

the cfgammo entries are as follows

smoke rounds

 class Grenade: Default
{
 model = "\ca\Weapons\granat";
 hit = 20;
 indirectHit = 18;
 indirectHitRange = 7;
 typicalspeed = 60;
 cost = 40;
 simulation = "shotShell";
 simulationStep = 0.05;
 soundHit[] = {"Ca\sounds\Weapons\explosions\grenade_new1",15.8489,1,1000};
 soundFly[] = {"Ca\sounds\Weapons\explosions\noise",0.0001,1,20};
 soundEngine[] = {"",0.0001,4};
 CraterEffects = "GrenadeCrater";
 explosionEffects = "GrenadeExplosion";
 visibleFire = 2;
 audibleFire = 0.25;
 visibleFireTime = 0;
 class HitEffects{};
 whistleDist = 7;
};
class GrenadeHand: Grenade
{
 typicalspeed = 20;
 model = "\ca\Weapons\frag_rgd5";
 visibleFire = 0.5;
 audibleFire = 0.05;
 visibleFireTime = 1;
 fuseDistance = 5;
};
class GrenadeHandTimedWest: GrenadeHand
{
 model = "\ca\Weapons\M67";
 deflecting = 90;
 explosionTime = 4;
};
class GrenadeHandTimedEast: GrenadeHandTimedWest
{
 model = "\ca\Weapons\frag_rgd5";
};
class GrenadeHand_stone: GrenadeHand
{
 hit = 0.5;
 indirectHit = 0.2;
 indirectHitRange = 1;
 model = "\ca\Weapons\sutr_grenade";
 CraterEffects = "NoCrater";
 explosionEffects = "NoExplosion";
 explosive = 0;
 soundHit[] = {"",15.8489,1};
 cost = 1;
 whistleDist = 0;
};
class SmokeShell: GrenadeHand
{
 model = "\ca\Weapons\anm8_white";
 hit = 5;
 indirectHit = 2;
 indirectHitRange = 0.2;
 cost = 100;
 simulation = "shotSmoke";
 explosive = 0;
 deflecting = 60;
 explosionTime = 2;
 timeToLive = 60;
 fuseDistance = 0;
 soundHit[] = {"",0,1};
 smokeColor[] = {1,1,1,1};
 effectsSmoke = "SmokeShellWhite";
 whistleDist = 0;
};
class G_40mm_Smoke: SmokeShell
{
 model = "\ca\Weapons\granat";
};

flare rounds

 class FlareCore;
class FlareBase: FlareCore
{
 muzzleEffect = "BIS_Effects_Rifle";
};
class F_40mm_White: FlareBase
{
 model = "\ca\Weapons\granat";
 lightColor[] = {0.5,0.5,0.5,0};
 deflecting = 30;
};

HE nade round

class GrenadeCore;
class GrenadeBase: GrenadeCore
{
 soundHit[] = {"Ca\sounds\Weapons\explosions\grenade_new1",3.16228,1,600};
 supersonicCrackNear[] = {"Ca\sounds\Weapons\explosions\supersonic_crack_close",1,1,100};
 supersonicCrackFar[] = {"Ca\sounds\Weapons\explosions\supersonic_crack_50meters",1,1,150};
 CraterEffects = "GrenadeCrater";
 explosionEffects = "GrenadeExplosion";
 muzzleEffect = "BIS_Effects_Rifle";
};
class G_40mm_HE: GrenadeBase
{
 soundHit[] = {"Ca\sounds\Weapons\explosions\GP25_explosion",3.16228,1,1300};
 simulation = "shotShell";
 model = "\ca\Weapons\granat";
 hit = 12;
 indirectHit = 10;
 indirectHitRange = 5;
 visibleFire = 16;
 audibleFire = 18;
 visibleFireTime = 3;
 explosive = 1;
 cost = 10;
 deflecting = 5;
 airFriction = -0.001064;
 fuseDistance = 15;
 whistleDist = 5;
};

weapons M32_EP1 (handheld) and M32_EP1_heli (mounted on the ka60) compare as follows:

M32_EP1

class Rifle: RifleCore
{
 autoFire = 1;
 reloadAction = "ManActReloadMagazine";
 soundContinuous = 0;
 optics = 0;
 scope = 1;
 cursor = "RifleCursor";
 cursoraim = "Foresight";
 cursorSize = 1;
 value = 4;
 displayName = "$STR_DN_RIFLE";
 nameSound = "rifle";
 reloadTime = 0.15;
 modelOptics = "-";
 sound[] = {""};
 drySound[] = {"\ca\Weapons\Data\Sound\M16_cock_v1",0.000316228,1,10};
 reloadSound[] = {"",1,1};
 reloadMagazineSound[] = {"ca\sounds\weapons\rifles\reload-m16-3",0.0562341,1,10};
 bullet1[] = {"ca\sounds\weapons\shells\small_shell_metal_04",0.177828,1,15};
 bullet2[] = {"ca\sounds\weapons\shells\small_shell_metal_03",0.177828,1,15};
 bullet3[] = {"ca\sounds\weapons\shells\small_shell_metal_02",0.177828,1,15};
 bullet4[] = {"ca\sounds\weapons\shells\small_shell_metal_01",0.177828,1,15};
 bullet5[] = {"ca\sounds\weapons\shells\small_shell_dirt_07",0.316228,1,15};
 bullet6[] = {"ca\sounds\weapons\shells\small_shell_dirt_09",0.316228,1,15};
 bullet7[] = {"ca\sounds\weapons\shells\small_shell_dirt_10",0.316228,1,15};
 bullet8[] = {"ca\sounds\weapons\shells\small_shell_dirt_12",0.316228,1,15};
 bullet9[] = {"ca\sounds\weapons\shells\small_shell_soft_05",0.177828,1,15};
 bullet10[] = {"ca\sounds\weapons\shells\small_shell_soft_09",0.177828,1,15};
 bullet11[] = {"ca\sounds\weapons\shells\small_shell_soft_10",0.177828,1,15};
 bullet12[] = {"ca\sounds\weapons\shells\small_shell_soft_13",0.177828,1,15};
 soundBullet[] = {"bullet1",0.083,"bullet2",0.083,"bullet3",0.083,"bullet4",0.083,"bullet5",0.083,"bullet6",0.083,"bullet7",0.083,"bullet8",0.083,"bullet9",0.083,"bullet10",0.083,"bullet11",0.083,"bullet12",0.083};
 opticsFlare = 0;
 autoReload = 0;
 aiDispersionCoefX = 6;
 aiDispersionCoefY = 6;
 opticsZoomMin = 0.25;
 opticsZoomMax = 1.1;
 opticsZoomInit = 0.5;
 distanceZoomMin = 300;
 distanceZoomMax = 300;
 maxLeadSpeed = 23;
 canLock = 0;
 flash = "gunfire";
 flashSize = 0.5;
 dispersion = 0.0001;
 recoil = "assaultRifleBase";
 recoilProne = "assaultRifleBase";
 ffMagnitude = 0.5;
 ffFrequency = 11;
 ffCount = 3;
 class M203Muzzle: GrenadeLauncher
 {
  displayName = "$STR_DN_M203";
  magazines[] = {"1Rnd_HE_M203","FlareWhite_M203","FlareGreen_M203","FlareRed_M203","FlareYellow_M203","1Rnd_Smoke_M203","1Rnd_SmokeRed_M203","1Rnd_SmokeGreen_M203","1Rnd_SmokeYellow_M203"};
  sound[] = {"\Ca\sounds\Weapons\cannon\grenadelauncher_1",0.1,1,400};
  reloadMagazineSound[] = {"\ca\Weapons\Data\Sound\flare_reload",0.000316228,1,20};
  magazineReloadTime = 0;
  reloadTime = 0.1;
  optics = 1;
  modelOptics = "-";
  cameraDir = "GL look";
  memoryPointCamera = "GL eye";
  opticsZoomMin = 0.25;
  opticsZoomMax = 1.1;
  opticsZoomInit = 0.5;
 };
};
class GrenadeLauncher_EP1: Rifle
{
 magazines[] = {"1Rnd_HE_M203","FlareWhite_M203","FlareGreen_M203","FlareRed_M203","FlareYellow_M203","1Rnd_Smoke_M203","1Rnd_SmokeRed_M203","1Rnd_SmokeGreen_M203","1Rnd_SmokeYellow_M203"};
 begin1[] = {"ca\sounds_e\weapons_e\grenade_launcher\gr_launcher_1",1,1,200};
 soundBegin[] = {"begin1",1};
 reloadMagazineSound[] = {"ca\sounds_e\weapons_e\grenade_launcher\gr_launcher_reload",1,1,30};
 drySound[] = {"ca\sounds_e\weapons_e\grenade_launcher\gr_launcher_dry",1.12202,1,40};
 magazineReloadTime = 3;
 reloadTime = 1;
 optics = 1;
 modelOptics = "-";
 cameraDir = "GL look";
 memoryPointCamera = "GL eye";
 opticsZoomMin = 0.3;
 opticsZoomMax = 1;
 opticsZoomInit = 0.5;
 cursor = "GLCursor";
 cursorAim = "\ca\Weapons\Data\clear_empty";
 cursorSize = 4;
 value = 3;
 reloadAction = "ManActReloadMagazine";
 initSpeed = 75;
 canLock = 0;
 autoReload = 0;
 autoAimEnabled = 0;
 ffMagnitude = 0.1;
 ffFrequency = 1;
 ffCount = 1;
 recoil = "M240Recoil";
 dispersion = 0.007;
 aiDispersionCoefY = 6;
 maxLeadSpeed = 15;
 muzzlePos = "usti granatometu";
 muzzleEnd = "konec granatometu";
 cartridgePos = "";
 cartridgeVel = "";
 minRange = 30;
 minRangeProbab = 0.1;
 midRange = 200;
 midRangeProbab = 0.7;
 maxRange = 400;
 maxRangeProbab = 0.05;
 UiPicture = "\CA\weapons\data\Ico\i_regular_CA.paa";
};
class M32_EP1: GrenadeLauncher_EP1
{
 htMin = 1;
 htMax = 600;
 afMax = 0;
 mfMax = 0;
 mFact = 1;
 tBody = 100;
 scope = 2;
 model = "\ca\weapons_E\GrenadeLauncher\M32";
 handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons_E\Data\Anim\M32.rtm"};
 picture = "\ca\weapons_E\Data\icons\m32_CA.paa";
 displayName = "$STR_EP1_DN_M32_EP1";
 class Library
 {
  libTextDesc = "$STR_EP1_LIB_M32_EP1";
 };
 descriptionShort = "$STR_EP1_DSS_M32_EP1";
 magazines[] = {"6Rnd_HE_M203","6Rnd_FlareWhite_M203","6Rnd_FlareGreen_M203","6Rnd_FlareRed_M203","6Rnd_FlareYellow_M203","6Rnd_Smoke_M203","6Rnd_SmokeRed_M203","6Rnd_SmokeGreen_M203","6Rnd_SmokeYellow_M203","1Rnd_HE_M203","FlareWhite_M203","FlareGreen_M203","FlareRed_M203","FlareYellow_M203","1Rnd_Smoke_M203","1Rnd_SmokeRed_M203","1Rnd_SmokeGreen_M203","1Rnd_SmokeYellow_M203"};
 reloadTime = 0.5;
};

M32_heli

 class MGun;
class M32_heli: MGun
{
 scope = 1;
 displayName = "$STR_EP1_DN_M32_EP1";
 magazines[] = {"6Rnd_HE_M203_heli"};
 reloadTime = 0.5;
 magazineReloadTime = 3;
 cursor = "Vehicle_Grenade_E";
 cursorSize = 4;
 sound[] = {"\Ca\sounds\Weapons\cannon\AGS30_shot1_a",3.16228,1,1200};
 dispersion = 0.007;
 minRange = 8;
 minRangeProbab = 0.6;
 midRange = 450;
 midRangeProbab = 0.7;
 maxRange = 1500;
 maxRangeProbab = 0.1;
 aiRateOfFire = 2;
 aiRateOfFireDistance = 500;
 canLock = 0;
};

now if i edit this to take the 48 round HE mags and the STOCK 6 round smoke mags

class MGun: MGunCore
{
 type = 65536;
 cursor = "MGCursor";
 cursoraim = "\ca\Weapons\Data\clear_empty";
 cursorSize = 1;
 displayName = "$STR_DN_MGUN";
 nameSound = "mgun";
 reloadTime = 0.25;
 autoFire = 1;
 reloadAction = "ManActReloadMagazine";
 sound[] = {"\ca\Weapons\Data\Sound\M60_SS",1,1,1400};
 soundContinuous = 0;
 reloadSound[] = {"",1,1};
 initSpeed = 900;
 flash = "gunfire";
 flashSize = 0.5;
 optics = 0;
};

class M32_heli: MGun
{
 magazines[] = {"6Rnd_HE_M203","6Rnd_FlareWhite_M203","6Rnd_FlareGreen_M203","6Rnd_FlareRed_M203","6Rnd_FlareYellow_M203","6Rnd_Smoke_M203","6Rnd_SmokeRed_M203","6Rnd_SmokeGreen_M203","6Rnd_SmokeYellow_M203","EB_48Rnd_40mm_MK19_heli","EB_48Rnd_40mm_SmokeRed_MK19_heli","EB_48Rnd_40mm_SmokeGreen_MK19_heli","EB_48Rnd_40mm_FlareGreen_MK19_heli","EB_48Rnd_40mm_FlareWhite_MK19_heli","6Rnd_HE_M203_heli"};
};

and add them to the ka60 (rather than patching the chopper i used this in init line

	class Item46
	{
		position[]={3613.2358,6.2217202,2152.1208};
		azimut=5;
		id=51;
		side="EMPTY";
		vehicle="Ka60_GL_PMC";
		skill=0.60000002;
		init="this addMagazineTurret [""EB_48Rnd_40mm_MK19_heli"",[0]];this addMagazineTurret [""EB_48Rnd_40mm_SmokeRed_MK19_heli"",[0]];this addMagazineTurret [""6Rnd_SmokeRed_M203"",[0]];";
	};

it loads and fires the modded 48 round HE nades but NOT the stock 6 round or modded 48 round smoke. it loads it but will not fire it.

so what is it in the weapon/ammo or mags that enables the M32_EP1 to fire smoke but prevents this working in the turrets?

it is the same for the mk19, GMG, AGS30, vehicle variants etc versus the Mk13, M79, M203 etc

I can fire all types of ammo from a grenadelauncher based weapon but not an MGun based weapon.

Share this post


Link to post
Share on other sites

quick update with RPT

so i go into mission get into ka60 and attempt to load the magazine "6Rnd_SmokeRed_M203" which is in the chopper by init command (see below)

		class Item46
	{
		position[]={3613.2358,6.2217202,2152.1208};
		azimut=5;
		id=51;
		side="EMPTY";
		vehicle="Ka60_GL_PMC";
		skill=0.60000002;
		init="this addMagazineTurret [""EB_48Rnd_40mm_MK19_heli"",[0]];this addMagazineTurret [""EB_48Rnd_40mm_SmokeRed_MK19_heli"",[0]];this addMagazineTurret [""6Rnd_SmokeRed_M203"",[0]];";
	};

the gun is set up to load this stock mag

 class M32_heli: MGun
{
 magazines[] = {"6Rnd_SmokeRed_M203","1Rnd_Smoke_M203","5Rnd_SmokeRed_M203","EB_48Rnd_40mm_MK19_heli","EB_48Rnd_40mm_SmokeRed_MK19_heli","EB_48Rnd_40mm_SmokeGreen_MK19_heli","EB_48Rnd_40mm_FlareGreen_MK19_heli","EB_48Rnd_40mm_FlareWhite_MK19_heli","6Rnd_HE_M203_heli"};
};

seems this is the error

"Unknown ammo used."

the ammo in the mag is stock ammo "G_40mm_SmokeRed"

mags

class 1Rnd_HE_M203: CA_Magazine
{
 displayNameShort = "$STR_EP1_SN_HE";
};
class 1Rnd_SmokeRed_M203: 1Rnd_Smoke_M203 //amalgamated list from weapons and weapons_e
{
 ammo = "G_40mm_SmokeRed";
 displayName = "$STR_DN_1Rnd_SmokeRed_M203";
 descriptionShort = "$STR_DSS_1Rnd_SMOKERED_M203";
 displayNameShort = "$STR_EP1_SN_WHITE";
 picture = "\Ca\weapons_E\Data\icons\m_40mmSmoke_CA.paa";
};
class 1Rnd_SmokeRed_M203: 1Rnd_Smoke_M203
{
 picture = "\Ca\weapons_E\Data\icons\m_40mmSmokeRed_CA.paa";
 displayNameShort = "$STR_EP1_SN_RED";
};
class 6Rnd_SmokeRed_M203: 1Rnd_SmokeRed_M203
{
 count = 6;
 displayName = "$STR_EP1_DN_6Rnd_SmokeRed_M203";
 descriptionShort = "$STR_EP1_DSS_6Rnd_SmokeRed_M203";
 type = "2*		256";
 picture = "\CA\weapons_E\Data\icons\m_6x40mmSmoke_CA.paa";
};

RPT - cleaned out and just from this one run in on the mission to load the ammo and try to fire it


=====================================================================
== C:\Program Files\Bohemia Interactive\ArmA 2\arma2oa.exe
== "C:\Program Files\Bohemia Interactive\ArmA 2\arma2oa.exe" -nosplash -window -noPause -ShowScriptErrors -cpucount=4 "-mod=C:\Program Files\Bohemia Interactive\ArmA 2\@EB_pack;C:\Program Files\Bohemia Interactive\ArmA 2\@CBA_OA;C:\Program Files\Bohemia Interactive\ArmA 2\@CBA_A2;C:\Program Files\Bohemia Interactive\ArmA 2\@CBA;C:\Program Files\Bohemia Interactive\ArmA 2\ACR;C:\Program Files\Bohemia Interactive\ArmA 2\PMC;C:\Program Files\Bohemia Interactive\ArmA 2\BAF" 
=====================================================================
Exe timestamp: 2012/10/06 08:18:07
Current time:  2012/12/13 09:18:02

Version 1.62.95248
Updating base class RscIGUIListBox->RscListBox, by x\cba\addons\ui_helper\config.bin/RscDisplayMultiplayer/Controls/CA_ValueSessions/
Cannot update non class from class eb_weapons\config.bin/cfgWeapons/m8_SAW/Scope/
Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl
Addon eb_thermal (entry NVGoggles) not found in the list of active addons.
[1396,22.475,0,"XEH: PreInit Started. v1.0.0.187. MISSINIT: missionName=intro, worldName=Bootcamp_ACR, isMultiplayer=false, isServer=true, isDedicated=false"]
[1396,23.321,0,"XEH: PreInit Finished. CACHE DISABLED? (Disable caching with cba_disable_cache.pbo): SLX_XEH_RECOMPILE=false, CBA_COMPILE_RECOMPILE=false, CBA_FUNC_RECOMPILE=false"]
[1876,32.749,0.051,"XEH: PostInit Started"]
[1876,32.863,0.051,"CBA_VERSIONING: cba=1.0.0.187, cba_a2=1.0.0.8, cba_oa=1.0.0.6, "]
[1876,32.873,0.051,"XEH: PostInit Finished. State: _isClient=true, _isJip=false, _isDedClient=false, _isServer=true, _isDedServer=false, _playerCheckDone=true, _sp=true, _startInitDone=true, _postInitDone=true, _mpRespawn=false, _machineType=1, _sessionId=1, _level=0, _timeOut=false, _game=1, BIS_functions=L 1-1-A:1, group=L 1-1-A, player=<NULL-object>, _playerType="", _playerGroup=<NULL-group>"]
[6510,62.937,0,"XEH: PreInit Started. v1.0.0.187. MISSINIT: missionName=EB_pack_gas_testmission, worldName=Chernarus, isMultiplayer=false, isServer=true, isDedicated=false"]
[6510,63.032,0,"XEH: PreInit Finished. CACHE DISABLED? (Disable caching with cba_disable_cache.pbo): SLX_XEH_RECOMPILE=false, CBA_COMPILE_RECOMPILE=false, CBA_FUNC_RECOMPILE=false"]
[7013,74.029,0,"XEH: PostInit Started"]
[7013,74.036,0,"CBA_VERSIONING: cba=1.0.0.187, cba_a2=1.0.0.8, cba_oa=1.0.0.6, "]
[7013,74.092,0,"XEH: PostInit Finished. State: _isClient=true, _isJip=false, _isDedClient=false, _isServer=true, _isDedServer=false, _playerCheckDone=true, _sp=true, _startInitDone=true, _postInitDone=true, _mpRespawn=false, _machineType=1, _sessionId=2, _level=0, _timeOut=false, _game=1, BIS_functions=L 1-1-A:1, group=L 1-1-A, player=B 1-1-A:1 (Eggbeast), _playerType="BAF_Soldier_EN_W", _playerGroup=B 1-1-A"]
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
[7693,121.024,0,"XEH: PreInit Started. v1.0.0.187. MISSINIT: missionName=intro, worldName=Chernarus, isMultiplayer=false, isServer=true, isDedicated=false"]
[7693,121.121,0,"XEH: PreInit Finished. CACHE DISABLED? (Disable caching with cba_disable_cache.pbo): SLX_XEH_RECOMPILE=false, CBA_COMPILE_RECOMPILE=false, CBA_FUNC_RECOMPILE=false"]
[7855,123.029,0,"XEH: PostInit Started"]
[7855,123.058,0,"CBA_VERSIONING: cba=1.0.0.187, cba_a2=1.0.0.8, cba_oa=1.0.0.6, "]
[7855,123.076,0,"XEH: PostInit Finished. State: _isClient=true, _isJip=false, _isDedClient=false, _isServer=true, _isDedServer=false, _playerCheckDone=true, _sp=true, _startInitDone=true, _postInitDone=true, _mpRespawn=false, _machineType=1, _sessionId=3, _level=0, _timeOut=false, _game=1, BIS_functions=L 1-1-A:1, group=L 1-1-A, player=<NULL-object>, _playerType="", _playerGroup=<NULL-group>"]

---------- Post added at 09:54 AM ---------- Previous post was at 09:34 AM ----------

just to totally eliminate the other ammo i just tried it with

class Item46

{

position[]={3613.2358,6.2217202,2152.1208};

azimut=5;

id=51;

side="EMPTY";

vehicle="Ka60_GL_PMC";

skill=0.60000002;

init="this addMagazineTurret [""6Rnd_SmokeRed_M203"",[0]];";

};

then reloaded the ammo in the m32_heli


=====================================================================
== C:\Program Files\Bohemia Interactive\ArmA 2\arma2oa.exe
== "C:\Program Files\Bohemia Interactive\ArmA 2\arma2oa.exe" -nosplash -window -noPause -ShowScriptErrors -cpucount=4 "-mod=C:\Program Files\Bohemia Interactive\ArmA 2\@EB_pack;C:\Program Files\Bohemia Interactive\ArmA 2\@CBA_OA;C:\Program Files\Bohemia Interactive\ArmA 2\@CBA_A2;C:\Program Files\Bohemia Interactive\ArmA 2\@CBA;C:\Program Files\Bohemia Interactive\ArmA 2\ACR;C:\Program Files\Bohemia Interactive\ArmA 2\PMC;C:\Program Files\Bohemia Interactive\ArmA 2\BAF" 
=====================================================================
Exe timestamp: 2012/10/06 08:18:07
Current time:  2012/12/13 09:45:43

Version 1.62.95248
Updating base class RscIGUIListBox->RscListBox, by x\cba\addons\ui_helper\config.bin/RscDisplayMultiplayer/Controls/CA_ValueSessions/
Cannot update non class from class eb_weapons\config.bin/cfgWeapons/m8_SAW/Scope/
Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon
Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl
Addon eb_thermal (entry NVGoggles) not found in the list of active addons.
[1482,23.491,0,"XEH: PreInit Started. v1.0.0.187. MISSINIT: missionName=intro, worldName=Bootcamp_ACR, isMultiplayer=false, isServer=true, isDedicated=false"]
[1482,24.356,0,"XEH: PreInit Finished. CACHE DISABLED? (Disable caching with cba_disable_cache.pbo): SLX_XEH_RECOMPILE=false, CBA_COMPILE_RECOMPILE=false, CBA_FUNC_RECOMPILE=false"]
[1943,33.705,0.05,"XEH: PostInit Started"]
[1943,33.851,0.05,"CBA_VERSIONING: cba=1.0.0.187, cba_a2=1.0.0.8, cba_oa=1.0.0.6, "]
[1943,33.861,0.05,"XEH: PostInit Finished. State: _isClient=true, _isJip=false, _isDedClient=false, _isServer=true, _isDedServer=false, _playerCheckDone=true, _sp=true, _startInitDone=true, _postInitDone=true, _mpRespawn=false, _machineType=1, _sessionId=1, _level=0, _timeOut=false, _game=1, BIS_functions=L 1-1-A:1, group=L 1-1-A, player=<NULL-object>, _playerType="", _playerGroup=<NULL-group>"]
[6558,63.929,0,"XEH: PreInit Started. v1.0.0.187. MISSINIT: missionName=EB_pack_gas_testmission, worldName=Chernarus, isMultiplayer=false, isServer=true, isDedicated=false"]
[6558,64.029,0,"XEH: PreInit Finished. CACHE DISABLED? (Disable caching with cba_disable_cache.pbo): SLX_XEH_RECOMPILE=false, CBA_COMPILE_RECOMPILE=false, CBA_FUNC_RECOMPILE=false"]
[7028,75.015,0,"XEH: PostInit Started"]
[7028,75.023,0,"CBA_VERSIONING: cba=1.0.0.187, cba_a2=1.0.0.8, cba_oa=1.0.0.6, "]
[7028,75.078,0,"XEH: PostInit Finished. State: _isClient=true, _isJip=false, _isDedClient=false, _isServer=true, _isDedServer=false, _playerCheckDone=true, _sp=true, _startInitDone=true, _postInitDone=true, _mpRespawn=false, _machineType=1, _sessionId=2, _level=0, _timeOut=false, _game=1, BIS_functions=L 1-1-A:1, group=L 1-1-A, player=B 1-1-A:1 (Eggbeast), _playerType="BAF_Soldier_EN_W", _playerGroup=B 1-1-A"]
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
Unknown ammo used.
[7351,99.402,0,"XEH: PreInit Started. v1.0.0.187. MISSINIT: missionName=intro, worldName=Chernarus, isMultiplayer=false, isServer=true, isDedicated=false"]
[7351,99.499,0,"XEH: PreInit Finished. CACHE DISABLED? (Disable caching with cba_disable_cache.pbo): SLX_XEH_RECOMPILE=false, CBA_COMPILE_RECOMPILE=false, CBA_FUNC_RECOMPILE=false"]
[7502,101.389,0,"XEH: PostInit Started"]
[7502,101.421,0,"CBA_VERSIONING: cba=1.0.0.187, cba_a2=1.0.0.8, cba_oa=1.0.0.6, "]
[7502,101.438,0,"XEH: PostInit Finished. State: _isClient=true, _isJip=false, _isDedClient=false, _isServer=true, _isDedServer=false, _playerCheckDone=true, _sp=true, _startInitDone=true, _postInitDone=true, _mpRespawn=false, _machineType=1, _sessionId=3, _level=0, _timeOut=false, _game=1, BIS_functions=L 1-1-A:1, group=L 1-1-A, player=<NULL-object>, _playerType="", _playerGroup=<NULL-group>"]

Edited by eggbeast

Share this post


Link to post
Share on other sites

from hcpookie by PM

OK, I think I know what your issue is. I'm at work so I can't pop this open to verify, but here's the deal... The smoke grenades are their own special hard-coded thing in the game. Used to be they called a script, but that now seems to be hard-coded into the engine. Regardless, you can't actually make "smoke" grenades for anything other than the in-game smoke weapons. SO.... if you look at my CAS smoke markers or at my GL smoke you'll see that I used the script available via CfgCloudlets to make it work. The "trick" to get this working is kind of convoluted but it does work for me. I documented this here:

http://forums.bistudio.com/showthread.php?140954-Determine-Crater-Impact-position

At its heart, this solution will "getPos" the projectile's impact location and spawn a smoke shell script. This is the same trick I used to spawn underwater grenades in my Water addons.

I'd be glad to add your additional items to the GL addon... anything for MP play!

/////////////////////////////

Start: cfgAmmo for the new ammo type must include a new explosionEffects setting:

explosioneffects = "pook_gl_Effects_SmokeShell_med_blue";

///////////////

The new effect is defined in the config. Thus:

class pook_gl_Effects_SmokeShell_med_blue {

class pook_gl_Effects_SmokeShell_med_blue {

simulation = "particles";

type = "pook_gl_Effects_SmokeShell_med_blue"; // THIS is the reference to the cfgCloudlets entry!

position[] = {0, 0, 0};

intensity = 1;

interval = 1;

lifeTime = 1;

};

//////////////////

cfgCloudlets:

use the script functions to call the smoke spawn script - it simply spawns a smoke round at the location of the projectile:

onTimerScript = "\pook_gl\data\scripts\smokeshell_small.sqf";

beforeDestroyScript = "\ca\data\ParticleEffects\scripts\WPTrail.sqf" ;

//////////////////////

The rest you should know... add the new ammo to a new magazine, add the mag to the weapon definition, etc.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×