Hellstyrant

EBM Simulation Fix

May 22nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. Change This: ------------->
  2. if (getNumber(configFile >> "CfgVehicles" >> (_data select 1) >> "exileRequiresSimulation") isEqualTo 1) then
  3. {
  4. _constructionObject enableSimulationGlobal true;
  5. _constructionObject call ExileServer_system_simulationMonitor_addVehicle;
  6. }
  7. else
  8. {
  9. _constructionObject enableSimulationGlobal false;
  10. };
  11.  
  12.  
  13. To This: ------------->
  14. if (getNumber(configFile >> "CfgVehicles" >> (_data select 1) >> "exileRequiresSimulation") isEqualTo 1) then
  15. {
  16. _constructionObject enableSimulationGlobal true;
  17. _constructionObject call ExileServer_system_simulationMonitor_addVehicle;
  18. }
  19. else
  20. {
  21. //Here comes the old EBM fix again - Abomination S7G
  22. if (typeOf _constructionObject in [
  23. "Land_City_Gate_F",
  24. "Land_BarGate_F",
  25. "Land_Cargo_Patrol_V2_F",
  26. "Land_Cargo_Tower_V2_F",
  27. "Land_Cargo_House_V2_F",
  28. "Land_GH_Stairs_F",
  29. "Land_Research_house_V1_F",
  30. "Land_Research_HQ_F_Kit",
  31. "Land_Research_HQ_F",
  32. "Land_LampStreet_F",
  33. "Land_LampAirport_F",
  34. "Land_LampHalogen_F",
  35. "Land_PortableLight_single_F",
  36. "Land_PortableLight_double_F",
  37. "Land_i_Garage_V2_F",
  38. "Land_Stone_Gate_F",
  39. "Land_Dome_Big_F",
  40. "Land_i_House_Big_01_V2_F"]) then
  41. {
  42. _constructionObject enableSimulationGlobal true;
  43. _constructionObject call ExileServer_system_simulationMonitor_addVehicle;
  44. }
  45. else
  46. {
  47. _constructionObject enableSimulationGlobal false;
  48. };
  49. // End old fix
  50. };
Add Comment
Please, Sign In to add comment