OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: D_P_ 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
-
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.
-
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
-
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:
-
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.
-
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 (http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=3759404ce8e21d49730b11f10f7d4048;act=ST;f=70;t=57830)) 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
-
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.
-
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.
(http://img529.imageshack.us/img529/8743/mistep8.th.jpg) (http://img529.imageshack.us/my.php?image=mistep8.jpg)
Here is the script...
; 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
-
With your permission Captain, I will eventually upload this to the Ed Depot. Thanks.
-
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.