@@ -100,6 +100,9 @@ switch (true) do {
100
100
};
101
101
if (isNil " _projectile" ) exitWith {};
102
102
103
+
104
+ LOGBULLET;
105
+
103
106
_projectile addEventHandler [" Deleted" , {
104
107
params [" _projectile" ];
105
108
[" :FIRED:" , [
@@ -108,7 +111,6 @@ switch (true) do {
108
111
_pos
109
112
]] call EFUNC(extension, sendData);
110
113
};
111
- // LOGBULLET;
112
114
};
113
115
114
116
@@ -140,7 +142,7 @@ switch (true) do {
140
142
};
141
143
};
142
144
case (_ammoSimType in [" shotGrenade" , " shotIlluminating" , " shotMine" , " shotSmokeX" , " shotCM" ]): {
143
- // LOGGRENADE;
145
+ LOGGRENADE;
144
146
145
147
_projectile setVariable [GVAR(ocapdata), [_projectile , _wepString , _firer , getPosASL _projectile , _markName , _markTextLocal , _ammoSimType ]];
146
148
@@ -163,18 +165,22 @@ switch (true) do {
163
165
case (_ammoSimType isEqualTo " shotSubmunitions" ): {
164
166
165
167
166
- _projectile setVariable [GVAR(data), ([_weapon , _muzzle , _ammo , _magazine , _projectile , _vehicle , _ammoSimType ] call FUNC(getAmmoMarkerData))];
168
+ _projectile setVariable [GVAR(markerData), ([_weapon , _muzzle , _ammo , _magazine , _projectile , _vehicle , _ammoSimType ] call FUNC(getAmmoMarkerData))];
169
+ _projectile setVariable [GVAR(EHData), [_this , _subTypes , _magazine , _wepString , _firer , _firerId , _firerPos , _frame , _ammoSimType , _subTypesAmmoSimType ]];
170
+
167
171
168
172
169
173
_projectile addEventHandler [" SubmunitionCreated" , {
170
174
params [" _projectile" , " _submunitionProjectile" , " _pos" , " _velocity" ];
171
- (_projectile getVariable [GVAR(data), []]) params [" _markTextLocal" , " _markName" , " _markColor" , " _markerType" ];
175
+ (_projectile getVariable [GVAR(markerData), []]) params [" _markTextLocal" , " _markName" , " _markColor" , " _markerType" ];
176
+ (_projectile getVariable [GVAR(EHData), []]) params [" _EHData" , " _subTypes" , " _magazine" , " _wepString" , " _firer" , " _firerId" , " _firerPos" , " _frame" , " _ammoSimType" , " _subTypesAmmoSimType" ];
177
+
172
178
_submunitionProjectile setVariable [QGVAR(firerId), _projectile getVariable [QGVAR(firerId), - 1 ]];
173
179
174
180
private _magIcon = getText (configFile >> " CfgMagazines" >> _magazine >> " picture" );
175
181
176
182
// then get data of submunition to determine how to track it
177
- private _ammoSimType = getText (configFile >> " CfgAmmo" >> (typeOf _projectile ) >> " simulation" );
183
+ private _ammoSimType = getText (configFile >> " CfgAmmo" >> (typeOf _submunitionProjectile ) >> " simulation" );
178
184
179
185
180
186
switch (true ) do {
@@ -197,7 +203,7 @@ switch (true) do {
197
203
198
204
if (GVARMAIN(isDebug)) then {
199
205
// add to clients' map draw array
200
- private _debugArr = [_projectile , _magIcon , format [" %1 %2 - %3" , str side group _firer , name _firer , _markTextLocal ], [side group _firer ] call BIS_fnc_sideColor ];
206
+ private _debugArr = [_submunitionProjectile , _magIcon , format [" %1 %2 - %3" , str side group _firer , name _firer , _markTextLocal ], [side group _firer ] call BIS_fnc_sideColor ];
201
207
[QGVAR(addDebugMagIcon), _debugArr ] call CBA_fnc_globalEvent ;
202
208
};
203
209
};
@@ -209,12 +215,12 @@ switch (true) do {
209
215
210
216
if (GVARMAIN(isDebug)) then {
211
217
// add to map draw array
212
- private _debugArr = [_projectile , _magIcon , format [" %1 %2 - %3" , str side group _firer , name _firer , _markTextLocal ], [side group _firer ] call BIS_fnc_sideColor ];
218
+ private _debugArr = [_submunitionProjectile , _magIcon , format [" %1 %2 - %3" , str side group _firer , name _firer , _markTextLocal ], [side group _firer ] call BIS_fnc_sideColor ];
213
219
[QGVAR(addDebugMagIcon), _debugArr ] call CBA_fnc_globalEvent ;
214
220
};
215
221
};
216
222
default {
217
- OCAPEXTLOG(ARR3(" Invalid ammo sim type, check it" , _projectile , _ammoSimType ))
223
+ OCAPEXTLOG(ARR3(" Invalid ammo sim type, check it" , _submunitionProjectile , _ammoSimType ))
218
224
};
219
225
};
220
226
}];
0 commit comments