I decided to make a variation of the snow script in the Winter Nogojev addon 1.1 and ended up doing something that will freeze ofp after 5 minutes or so. Am I good or am I good ;D
It has nothing to do with lag as I'm just dropping 1 particle at a time, manipulating the interval as below, nothing that hits the eye as a fatal error:
(in editor in a trigger on activation field: [you,12,thislist] exec "snowstorm.sqs"
_obj = _this select 0
_amount = _this select 1
_trlist = _this select 2
? _obj in _trlist : goto "continue"
goto "end"
#continue
_spawnDist = 35
_spawnHeight = 25
_velocity = [0,0,-0.61]
_delay = 1 * 10^-_amount
#Begin
_posDrop = [(getpos _obj select 0)-_spawnDist+(random (_spawnDist*2)), (getpos _obj select 1)-_spawnDist+(random (_spawnDist*2)), (getpos _obj select 2)+_spawnHeight]
_posDrop = [(_posDrop select 0)+((velocity vehicle _obj select 0)*5),(_posDrop select 1)+((velocity vehicle _obj select 1)*5),_posDrop select 2]
drop ["cl_fireD", "", "Billboard", 1, 13, _posDrop, _velocity, 1,0.000001, 0.000, 0.7, [0.06,0.06], [[1,1,1,0], [1,1,1,1], [1,1,1,1], [1,1,1,1]], [0,1,0,1,0,1], 0.2, 1.2, "", "", ""]
~_delay
? _obj in _trlist : goto "begin"
goto "end"
#end
exit
Notice the nice way I get the delay so the user can enter a number from 1-12 for the snow fall amount. the actual number would be with 12 something like 0.0000000000001 ;D
the bug: The game starts to hog an awful amount of memory after 1 time ingame rendering those particles. It can take up to 5 minutes after the game just exits, your hardrive goes crunchcrunchmumble... and if you happen to try previewing again, it's time to hit that reset-button. What can this be all about?!
Here's the mission.sqm and script, put into the usual place and look out for a folder called MIF_snowstorm.intro. I stress that don't go ingame unless you wan't the above to happen. If it does happen on your system. If it doesn't, you've just cost me alotta möney. ;D