Home   Help Search Login Register  

Author Topic: how would I create fog on the ground...  (Read 2092 times)

0 Members and 1 Guest are viewing this topic.

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
how would I create fog on the ground...
« on: 22 Apr 2007, 16:39:05 »
Hello again!

I want to add something diffrent to my ctf, and I have no clue where to begin....
Anyone remember the old movie SILVER BULLET? It was base on the book by StephenKing...in the movie they go to hunt the monster and there's very thick fog on the ground, but it only is waist deep. I want to create the same kinda deal....so that while a soldier is prone....he will be obscured....but if he stands up..he is visible from the waist up.

Is this possible or practical? Would it generate excessive lag? Can anyone point me in the right direction? I messed around with the partical tool...but damnit I ended up more confused!

Hope this question makes sense...it's very early here  :D
just setpos & forgetpos!

Offline mcnorth

  • Members
  • *
Re: how would I create fog on the ground...
« Reply #1 on: 22 Apr 2007, 19:19:49 »
What a cool idea! I haven't a clue how it would be done but I'll be sure to watch this thread with hopes of learning.

Offline 456820

  • Contributing Member
  • **
Re: how would I create fog on the ground...
« Reply #2 on: 22 Apr 2007, 19:34:04 »
Yeah its possible. Yes it would cause severe lag (depending on your computer) but the answer to this is the drop command.

http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=1b21ddbd0dcd415f3d106951fba8d576;act=ST;f=70;t=60697;hl=cl;st=0

Play around with that you should be able to get what you want with that.

You wont be able to make it that the player cant be seen if lying down though - by other players he wont be but against AI they will see you as if there is no fog there.

Hope it helps

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: how would I create fog on the ground...
« Reply #3 on: 22 Apr 2007, 19:56:26 »
Quote
I messed around with the partical tool...but damnit I ended up more confused!
thx m8, but as stated above...

Does anyone have some pointers on what would be a good approach to this?

And you don't need to remind me what a buncaFNcheaters the AI are!  :whistle:
just setpos & forgetpos!

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: how would I create fog on the ground...
« Reply #4 on: 24 Apr 2007, 17:46:11 »
I will ponder this...

As for AI and fog. ECP1.085 could simulate smoke nades preventing AI from seeing the player so maybe we will see something similar for arma.
urp!

Offline Captain

  • Members
  • *
Re: how would I create fog on the ground...
« Reply #5 on: 03 Jun 2007, 02:42:41 »
I'm not sure of OFPEC's policy on posting in 'older' threads but I came across this and thought I could make a suggestion. NIM Dynamic Weather (found HERE) contains a mist logic that should create the ground cover mist you're referring to.

From the readme:

3.A) # List of effects
======================

 - Dynamically created clouds
 - Weather changes
 - New Thunder effects
 - New Lightning effects
 - Particle created fog
 - Particle snowing
 - Blizzards
 - Rainbow after raining
 - Forecastable weather
 - Mist on low ground height (near water, below 40m from sea level)
 - Desert storms
 - Desert wind effect

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: how would I create fog on the ground...
« Reply #6 on: 03 Jun 2007, 03:19:12 »
Any good answer to a slightly stale thread is more then welcome Captain! Thanks for your reply.

Edit: I tried it. Good mod. pretty leaves! However, I could not get mist to work, even down at sea level.
« Last Edit: 04 Jun 2007, 03:48:40 by Mr.Peanut »
urp!

Offline Captain

  • Members
  • *
Re: how would I create fog on the ground...
« Reply #7 on: 05 Jun 2007, 02:34:26 »
Hi Mr Peanut, I saw your post on the BI Forums in the NIM thread. I haven't found a fix for their mist logic however I've gone another route and converted BAS' mist script to ArmA and now have something quite acceptable.



Here is the script...

Code: [Select]
; BAS - Mist script - by  TJ march 2003

;execute with name of gamelogic at the centre of area for mist
;[this,.7,500,1] exec "mist.sqs"
;[Object,Delay,Lifetime,Velocity] exec "mist.sqs"


; ? benchmark <3500:exit

;Mist duration time (in seconds)


_object = _this select 0
_delay = _this select 1
_lifeTime = _this select 2
_vel = _this select 3

_lifeTicks = _lifeTime / _delay
_lifeTick = _lifeTicks

#loop
_count =0

#Begin
_dir = random 360
_velx = _vel *sin  _dir
_vely = _vel *cos _dir
#mist
drop ["\ca\data\cl_basic", "", "Billboard", 1, 40, [0,0,-0.5], [_velx,_vely,0], 1, 1.275, 1, 0, [1 + (random 2)], [[0.8,0.8,0.8,0.1]], [0], 0, 0, "", "",_object ]


_count = _count +1
?_count <20:goto "Begin"

~_delay
_lifeTick = _lifeTick - 1
?_lifeTick > 0 : goto "loop"



exit

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: how would I create fog on the ground...
« Reply #8 on: 05 Jun 2007, 03:11:39 »
With your permission Captain, I will eventually upload this to the Ed Depot. Thanks.
urp!

Offline Captain

  • Members
  • *
Re: how would I create fog on the ground...
« Reply #9 on: 05 Jun 2007, 03:51:54 »
Considering I didn't ask BAS if I could post it here, you certainly don't need my permission to host it in the Ed Depot. Just glad to be helpful.