Home   Help Search Login Register  

Author Topic: Snow floats up and around.  (Read 1019 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Snow floats up and around.
« 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"
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Snow floats up and around.
« Reply #1 on: 01 Jan 2006, 00:43:48 »
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

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Snow floats up and around.
« Reply #2 on: 01 Jan 2006, 04:42:15 »
Do what? Which bits are they?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Snow floats up and around.
« Reply #3 on: 07 Jan 2006, 20:49:03 »
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

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Snow floats up and around.
« Reply #4 on: 09 Jan 2006, 20:58:35 »
It's ok, I did it.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."