private ["_awt","_awtI","_ar","_ammo","_i","_co","_u","_ac","_weap","_last","_cfg","_c","_tr","_do"]; // Get Settings Arrays _weap=_this select 1;_ammo=_this select 4; _awt=format["%1_%2",_weap,_ammo]; _awtI=SIX_TRACER_AR_AT_IDX find _awt; if(_awtI==-1)then{_ar=[_weap,_ammo,_awt] call (SIX_TRACER_F getVariable "fWeap");}else{_ar=SIX_TRACER_AR_AT select _awtI;}; if((_ar select 0)==0)exitwith{}; _u=_this select 0;_ac=_u ammo (_this select 2);_last=_ar select 6; // AmmoCount displays number without the current bullet substracted from it // fix for commander turrets etc :S if(_ac==0)then{_ac=_u getVariable "SIX_tracer_c";_ac=_ac+1;_u setVariable ["SIX_tracer_c", _ac];}; // Run Tracer Check and exit when exit-conditions are met _do=true;if(_last>0)then{if(_ac>_last)then{_do=false;};}else{_c=_ar select 3;if(_c!=1)then{if((_ac mod _c)!=0)then{_do=false;};};}; if(!_do)exitwith{}; // Create tracer _tr=(format["ace_tracer_%1_%2",_ar select 1,_ar select 2]) camCreate [0,0,50]; // Enable Halo at nighttime if(SIX_NIGHT)then{_tr setObjectTexture [0, _ar select 4];}else{_tr setObjectTexture [0, ""];}; // Put the tracer everytime at same velocity as projectile, delete tracer after projectile is gone [_this select 5,_tr,_ar select 5] spawn (SIX_TRACER_F getVariable "fLife");