OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: The-Architect on 01 Jan 2006, 00:38:24
-
Could someone edit the following snow script to make particles float up and around like a breeze is blowing the snowflakes around?
Here's the script.
;
; Snowing script v1.0 by Kegetys <Kegetys@raketti.net>
; http://www.ofp.kege.cjb.net
;
; For Winter Nogojev
;
;
; Usage:
; [density] exec "\KEGnoecain_snow\script\snow.sqs"
;
; where density is the density of the snowing. If density is not specified a default of 5 is used.
; Note that the maximum working density is relative to the FPS.
;
_velocity = [0,0,-0.61]
_density = 5
? count _this > 0 : _density = _this select 0
#Begin
~0.001
_spawnDist = 35
_spawnHeight = 15
_foo = 0
#luup
_posDrop = [(getpos player select 0)-_spawnDist+(random (_spawnDist*2)), (getpos player select 1)-_spawnDist+(random (_spawnDist*2)), (getpos player select 2)+_spawnHeight]
_posDrop = [(_posDrop select 0)+((velocity vehicle player select 0)*5),(_posDrop select 1)+((velocity vehicle player select 1)*5),_posDrop select 2]
drop ["cl_water", "", "Billboard", 1, 7, _posDrop, _velocity, 1, 0.000001, 0.000, 1.4, [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, "", "", ""]
_foo = _foo + 1
? _foo < _density : goto "luup"
goto "Begin"
-
i think you just need to change the _velocity variable. give the x and y a value so it has direction and make the z a small positive number, like .3 or .4
-
Do what? Which bits are they?
-
sorry, went on vaction.
i tried doing what i said but it didn't work right. there's a lot more to be done than that (changing mass/volume,start height) so far i haven't gotten it to work
-
It's ok, I did it.