Well, I had to adjust the scripts slightly, but the effect does look good!
Also, it is not good practice to name a script init.sqs, that name is reserved and called by the game engine at the start of the mission. I named the script waterinit.sqs
Here are the adjusted scripts:
waterinit.sqs
goto "init"
#start
@ getpos _vehicle select 2 < (-0)
_gl = "logic" createVehicle [getpos _vehicle select 0,getpos _vehicle select 1,0]; _gl setpos [getpos _vehicle select 0,getpos _vehicle select 1,0]; _gl setDir (getDir _vehicle)
[_vehicle] exec "slowdown.sqs";
[_gl] exec "waterexp.sqs";
exit
#init
_vehicle = _this select 0
goto "start"
waterexp.sqs
goto "initialise"
#explosion1
_Xrad = 8+random 4
_Yrad = 8+random 4
_Xcos = sin _Cen
_YCos = cos _Cen
drop ["cl_water" , "" , "Billboard" , 1 , 3, [(_Xcos * _Xrad), _posy + (_YCos * _Xrad), -1.0+random 0.5-random 1.5] , [random _Force-random _Force,random _Force-random _Force,random 2-random 2] , 1 , 2.1 , 1.55 , 0.10 , [3.5-random 1.5,15.0-random 4] , [[0.8,0.8,0.9,0.35],[0.8,0.8,0.9,0.55],[0.8,0.8,0.9,0.35],[0.8,0.8,0.9,0]] , [0,1,0] , 2 , 4.3 , "" , "" , _groundZero]
drop ["cl_water" , "" , "Billboard" , 1 , 3, [(_Xcos * _Yrad), _posy + (_YCos * _Yrad), -1.0+random 0.5-random 1.5] , [random _Force-random _Force,random _Force-random _Force,random 2-random 2] , 1 , 2.1 , 1.55 , 0.10 , [3.5-random 1.5,15.0-random 4] , [[0.8,0.8,0.9,0.35],[0.8,0.8,0.9,0.55],[0.8,0.8,0.9,0.35],[0.8,0.8,0.9,0]] , [0,1,0] , 2 , 4.3 , "" , "" , _groundZero]
_Cen = _Cen + 4.8
?(_Cen < 361): goto "explosion1"
#explosion2
_Xrad = 8+random 4
_Yrad = 8+random 4
_Xcos = sin _Cen
_YCos = cos _Cen
drop ["cl_water" , "" , "Billboard" , 1 , 3, [(_Xcos * _Xrad), _posy + (_YCos * _Xrad), -1.0+random 0.5-random 1.5] , [random _Force-random _Force,random _Force-random _Force,random 2-random 2] , 1 , 2.1 , 1.55 , 0.10 , [3.5-random 1.5,15.0-random 4] , [[0.8,0.8,0.9,0.35],[0.8,0.8,0.9,0.55],[0.8,0.8,0.9,0.35],[0.8,0.8,0.9,0]] , [0,1,0] , 2 , 4.3 , "" , "" , _groundZero]
drop ["cl_water" , "" , "Billboard" , 1 , 3, [(_Xcos * _Yrad), _posy + (_YCos * _Yrad), -1.0+random 0.5-random 1.5] , [random _Force-random _Force,random _Force-random _Force,random 2-random 2] , 1 , 2.1 , 1.55 , 0.10 , [3.5-random 1.5,15.0-random 4] , [[0.8,0.8,0.9,0.35],[0.8,0.8,0.9,0.55],[0.8,0.8,0.9,0.35],[0.8,0.8,0.9,0]] , [0,1,0] , 2 , 4.3 , "" , "" , _groundZero]
_Cen = _Cen + 4.8
?(_Cen < 361): goto "explosion2"
#loop
_i = 0
#l1
_vel = [(random 5)-random 5, (random 5)-random 5, 10 + random 10]
_size1 = random _sizeX
_size2 = random _sizeX
_size = [_size1, _size2]
drop [_shape, "", "Billboard", _lifetime, _lifetime, [_x, _y, 0], _vel, 0, 3, 0, 0.1, _size, _color, [0], 0.1, 0.2, "", "", _groundZero]
_vel = [(random 5)-random 5, (random 5)-random 5,random 1]
_size1 = random _sizeX
_size2 = random _sizeX
_size = [_size1, _size2,_size2 * 3]
drop [_shape, "", "Billboard", _lifetime, _lifetime, [_x, _y, 0], _vel, 0, 3, 0, 0.01, _size, _color, [0], 0.1, 0.2, "", "", _groundZero]
_i = _i + 1
?_i < 10: goto "l1"
_j = _j + 1
~0.01
?_j<10: goto "loop"
exit
#initialise
_groundzero = _this select 0
[_vehicle] exec "slowdown.sqs";
_posy = 1
_Cen = 0
_Force = 3
_xc = (GetPos _groundZero Select 0)
_yc = (GetPos _groundZero Select 1)
_repeat = true
_shape = "cl_water"
_j = 0
_x = getpos _groundZero select 0
_y = getpos _groundZero select 1
_color = [[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]]
_lifetime = 5
_sizeX = 15
goto "explosion1"
slowdown.sqs
goto "init"
#slowdown
_vehicle setvelocity [(velocity _vehicle select 0) / _div,(velocity _vehicle select 1) / _div,(velocity _vehicle select 2) / _div]
~_rate
?speed _vehicle <= _goal:goto "exit"
goto "slowdown"
exit
#init
_vehicle = _this select 0
_rate = 0.15
_goal = 1
_div = 1.3
_speed = speed _vehicle
@ (getpos _vehicle select 2 < 3)
goto "slowdown"
Once I got it working the effect was good. Thanks for making it.
-Pilot