OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: Deathinmyhead on 10 Mar 2005, 07:09:07

Title: Kill the goddamn fog!
Post by: Deathinmyhead on 10 Mar 2005, 07:09:07
One thing I really hate is that when I am flying at above more than a few hundred meters, I cant see the ground. Anything to rectify this would be appreciated.
By the way, WTF is with the "I'm a llama" thing?
Title: Re:Kill the d**n fog!
Post by: Peter_Bullet on 10 Mar 2005, 09:30:29
I don't know about the Ilama but you should be able to eliminate the fog by seting the viewdistance from the video options (visibility). This however requires cpu power...
Title: Re:Kill the d**n fog!
Post by: dmakatra on 10 Mar 2005, 13:57:41
I'm a llama is YaBB SE's default setting for personal titles.

:beat: *Gets Shot* :beat:
Title: Re:Kill the d**n fog!
Post by: US-Marine on 10 Mar 2005, 17:28:25
and a Llama is an animal :D
Title: Re:Kill the d**n fog!
Post by: RujiK on 10 Mar 2005, 18:37:00
0 setfog 0

the first number is the time it takes to set the fog (In seconds) and the second is the level of fog.
Title: Re:Kill the d**n fog!
Post by: Kyle Sarnik on 10 Mar 2005, 20:44:40
Setfog doen't change your view distance, it can only increase the amount of fog within your set view distance. You need  setviewdistance 1500 that should be enough to see the ground from about 500m up, and you have to remember OFP uses a different engine than flight sims, the ground is a hell of a lot more detailed so a limited view distance is necessary to keep your system running fast enough.
Title: Re:Kill the d**n fog!
Post by: Deathinmyhead on 11 Mar 2005, 06:56:02
and a Llama is an animal :D

Well duh!
Title: Re:Kill the d**n fog!
Post by: Deathinmyhead on 11 Mar 2005, 06:58:47
0 setfog 0

the first number is the time it takes to set the fog (In seconds) and the second is the level of fog.

Thats nice.
Now where the hell do I enter the command lines?
Title: Re:Kill the d**n fog!
Post by: Peter_Bullet on 11 Mar 2005, 08:01:08
and a Llama is an animal :D

I must say I'm somewhat disappointed! I was expecting something a lot more insulting ;)

Btw. Is the fog 0 by default?
Title: Re:Kill the d**n fog!
Post by: Kyle Sarnik on 11 Mar 2005, 21:46:51
Thats nice.
Now where the hell do I enter the command lines?

Deathinmyhead, on the forums you are supposed to read all of the replies before posting back. I corrected Rujik right before your spam post about the llama, and since you didn't read my post you will struggle to try and increase your view distance with the setfog command. Just something to keep in mind, read the posts.
Title: Re:Kill the d**n fog!
Post by: Deathinmyhead on 14 Mar 2005, 07:46:02
Kyle:

I did read your reply, but I am still not sure of where to enter the command lines. Are you supposed to enter them into your players "initialisation" field in the mission editor?
Also, that reply to the other comment was meant as a general reply to both comments. I was just still trying to work out what all of the fancy buttons do. I'm still learning!
Title: Re:Kill the d**n fog!
Post by: Deathinmyhead on 14 Mar 2005, 07:52:41
I must say I'm somewhat disappointed! I was expecting something a lot more insulting ;)

Btw. Is the fog 0 by default?

You mean "WTF were you thinking you fat commie bastard!?" or something like that.
Title: Re:Kill the d**n fog!
Post by: Deathinmyhead on 14 Mar 2005, 07:58:13
...I corrected Rujik right before your spam post about the llama, and...

Spam post my big fat hairy yellow ass :booty:! That was just an afterthought I threw in there after glancing at the left hand column.
By the way, please no more posts about the llama thing! I'm getting just a little bit turdified about it!
Title: Re:Kill the d**n fog!
Post by: Planck on 14 Mar 2005, 20:36:57
Ok, there's no need for unnecassarily insulting language.

If you want to increase the viewdistance put:

setViewDistance 1500

in your init field, or, if you prefer, your init.sqs.

The same command Kyle Sarnik suggested many posts before.

And if the topic is solved, don't forget to press the 'solve' button.


Planck
Title: Re:Kill the d**n fog!
Post by: DBR_ONIX on 14 Mar 2005, 20:48:43
Code: [Select]
_unit=_this select 0

#start
newview= getpos _unit select 2 + 300
?(getpos _unit select 2 > 1000 && getpos _unit select 2 <5000):setviewdistance newview
?(getpos _unit select 2 <1000):setviewdistance 1000
~10
goto "start"
called with : [this] exec "scriptname.sqs"

That will set the viewdisance to height+300 what the player is at, only if he's over 1000 metres (or under 5000, the max view distance), if not, it gets set to 1000.
That SHOULD work, the script is untested, but that's the idea.

- Ben
Title: Re:Kill the d**n fog!
Post by: Deathinmyhead on 16 Mar 2005, 08:15:06
Thanks Planck. That stuff worked. At least someone had the sense to explain it properly!