Jump to content
Sign in to follow this  
ringoray

Fire bug script by Dwarden.

Recommended Posts

Can anyone tell me why this init.sqf does not work in regards to the fire bug script by Dwarden. The script does not take away the fire bug for JIP players who see a huge fire if a vehicle is crashed/destroyed on the Insurgency map. Thanks.

if !isDedicated then { startLoadingScreen ["Loading...","RscLoadScreenCustom"]; }; 
enableSaving [false, false];  
waitUntil { isServer || !isNull player };  
waitUntil { !isNil "BIS_MPF_InitDone" };  
waitUntil { BIS_MPF_InitDone }; 

// Global Variable Init 
curTime                = time;    //mission start time 
serverLoadHint      = false;   //server load hint message 

/// place player UIDs here to enable extra toys for specific players. Toys are Apache, UH1Y, MH60M, and MV22 
/// updated June 6, 2013.  
masterUIDArray = [ 
"xxxxxxxxxxxxxxxxx", 
"xxxxxxxxxxxxxxxxx", 
"xxxxxxxxxxxxxxxxx", 
"xxxxxxxxxxxxxxxxx", 
"xxxxxxxxxxxxxxxxx", 
"xxxxxxxxxxxxxxxxx" 
]; 
masterClassArray = ["AH64D_EP1","UH60M_MEV_EP1"]; 


if (local player) then { call compile preprocessFileLineNumbers "initclient.sqf"; };  
if (isServer) then { call compile preprocessFileLineNumbers "initserver.sqf"; };  

/////////////////Dwarden fixing fire in the sky bug 

BIS_Effects_EH_Killed=compile preprocessFileLineNumbers "new_effects\killed.sqf"; 
BIS_Effects_AirDestruction=compile preprocessFileLineNumbers "new_effects\AirDestruction.sqf"; 
BIS_Effects_AirDestructionStage2=compile preprocessFileLineNumbers "new_effects\AirDestructionStage2.sqf"; 

BIS_Effects_globalEvent =  
{ 
   BIS_effects_gepv = _this; 
   publicVariable "BIS_effects_gepv"; 
    _this call BIS_Effects_startEvent; 
}; 

BIS_Effects_startEvent =  
{ 
   switch (_this select 0) do  
   { 
            case "AirDestruction":  
       { 
              [_this select 1] spawn BIS_Effects_AirDestruction; 
       }; 
          case "AirDestructionStage2":  
       { 
              [_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2; 
       }; 
          case "Burn":  
       { 
              [_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn; 
       }; 
   }; 
}; 
"BIS_effects_gepv" addPublicVariableEventHandler {(_this select 1) call BIS_Effects_startEvent;};  

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  

×