Guest User

Untitled

a guest
Apr 18th, 2013
134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //////////////////////////////////////////////////////////////////
  2. // Function file for Armed Assault
  3. // Created by: TODO: Author Name
  4. //////////////////////////////////////////////////////////////////
  5.  
  6. //--- Wind & Dust
  7. [] spawn {
  8.        
  9.         setwind [0.201112,0.204166,true];
  10.         while {true} do {
  11.                _ran = ceil random 5;
  12.                // playsound format ["wind_%1",_ran];
  13.                _obj = vehicle player;
  14.                _pos = position _obj;
  15.  
  16.                //--- Dust
  17.                        setwind [0.201112*2,0.204166*2,false];
  18.                _velocity = [random 10,random 10,-1];
  19.                _color = [1.0, 0.9, 0.8];
  20.                _alpha = 0.02 + random 0.02;
  21.                _ps = "#particlesource" createVehicleLocal _pos;  
  22.                _ps setParticleParams [["\a3\Data_f\ParticleEffects\Universal\Universal.p3d", 16, 12, 8], "", "Billboard", 1, 3, [0, 0, -6], _velocity, 1, 1.275, 1, 0, [9], [_color + [0], _color + [_alpha], _color + [0]], [1000], 1, 0, "", "", _obj];
  23.                _ps setParticleRandom [3, [30, 30, 0], [0, 0, 0], 1, 0, [0, 0, 0, 0.01], 0, 0];
  24.                _ps setParticleCircle [0.1, [0, 0, 0]];
  25.                _ps setDropInterval 0.01;
  26.  
  27.                sleep (random 1);
  28.                deletevehicle _ps;
  29.                _delay = 10 + random 20;
  30.                sleep _delay;
  31.  
  32.         };
  33. };
  34.  
  35. //--- Ash
  36. [] spawn {
  37.        
  38.         _pos = position player;
  39.         _parray = [
  40.         /* 00 */               ["\a3\Data_f\ParticleEffects\Universal\Universal", 16, 12, 8, 1],//"\Ca\Data\cl_water",
  41.         /* 01 */               "",
  42.         /* 02 */               "Billboard",
  43.         /* 03 */               1,
  44.         /* 04 */               4,
  45.         /* 05 */               [0,0,0],
  46.         /* 06 */               [0,0,0],
  47.         /* 07 */               1,
  48.         /* 08 */               0.000001,
  49.         /* 09 */               0,
  50.         /* 10 */               1.4,
  51.         /* 11 */               [0.05,0.05],
  52.         /* 12 */               [[0.1,0.1,0.1,1]],
  53.         /* 13 */               [0,1],
  54.         /* 14 */               0.2,
  55.         /* 15 */               1.2,
  56.         /* 16 */               "",
  57.         /* 17 */               "",
  58.         /* 18 */               vehicle player
  59.         ];
  60.         _snow = "#particlesource" createVehicleLocal _pos;  
  61.         _snow setParticleParams _parray;
  62.         _snow setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0];
  63.         _snow setParticleCircle [0.0, [0, 0, 0]];
  64.         _snow setDropInterval 0.01;
  65.  
  66.         _oldPlayer = vehicle player;
  67.         while {true} do {
  68.                waituntil {vehicle player != _oldPlayer};
  69.                _parray set [18,vehicle player];
  70.                _snow setParticleParams _parray;
  71.                _oldPlayer = vehicle player;
  72.         };
  73. };
  74.  
  75. // _hndl = ppEffectCreate ["colorCorrections", 1501];
  76. // _hndl ppEffectEnable true;
  77. // _hndl ppEffectAdjust [1, 0.818182, 0.00001,[0.393939, 0.108225, 0.1, 0.030303],[1, 0.386579, 0.1, 0.597403],[1, 0.688311, 1, 1]];
  78. // _hndl ppEffectCommit 0;
  79.  
  80. _pos = getposATL player;
  81. _ps = "#particlesource" createVehicleLocal _pos;  
  82. _ps setParticleParams [["\a3\Data_f\ParticleEffects\Universal\Universal.p3d", 16, 12, 13, 0], "", "Billboard", 1, 10, [0, 0, -6], [0, 0, 0], 1, 1.275, 1, 0, [4], [[1, 1, 1, 0], [1, 1, 1, 0.04], [1, 1, 1, 0]], [1000], 1, 0, "", "", player];
  83. _ps setParticleRandom [3, [40, 40, 0], [0, 0, 0], 2, 0.5, [0, 0, 0, 0.1], 0, 0];
  84. _ps setParticleCircle [0.1, [0, 0, 0]];
  85. _ps setDropInterval 0.004;
  86.  
  87. while {true} do {
  88.     waituntil {vehicle player == player};
  89.     _ps setposATL getposATL player;
  90.     sleep 1;
  91. };
RAW Paste Data