Page 1 of 1

View Distance&Weapons

Posted: Wed Sep 08, 2010 10:09 am
by Dark-Devil
Where can i find the View Distance Code?
And can the Fog Distance Colour be Black? Original is Grey.

AND

Can you Explain how to Convert Weapons from Desert Combat to the Original Bf1942?

Re: View Distance&Weapons

Posted: Wed Sep 08, 2010 11:05 am
by Jeronimo
In your map.rfa you should find the file Init.con. The lines you might be interested in are:

Code: Select all

renderer.fogColorVec 0.68/0.62/0.55

Game.setViewDistance 100
renderer.fogstart 0
renderer.fogend 100
fogColorVec is the RGB representation of your fog's color, so any value with equal components will be a grey scale, from black (0/0/0) to white (1/1/1).
The viewDistance and fogstart/fogend are pretty much self-explanatory. Ask if you still need to know more.

The conversion of weapons, however, requires a lot more knowledge about modding. You'll have to copy the object definitions and AI (objects.rfa), meshes (standardmesh.rfa), textures (texture.rfa) and animations (animation.rfa) that belong to the weapon over from DC to BF1942. Then you'll have to setup a kit that has this weapon etc... Way too much to explain in one post. ;)
Try and search the tutorials on this site and also on the backup of the old website (linked in board index). Maybe you'll find something useful in there how to get started with this.

Re: View Distance&Weapons

Posted: Wed Sep 08, 2010 11:40 am
by Dark-Devil
Much appreciated Thanks ;)

Re: View Distance&Weapons

Posted: Wed Sep 08, 2010 11:15 pm
by Dennis|8749236
sometimes u need to edit loddistance to see farther object..

Re: View Distance&Weapons

Posted: Thu Sep 09, 2010 4:39 am
by Swaffy
Jeronimo pretty much explained your whole question. I remember copying the MP5SD's files from Desert Combat and DCF to my mod, and it was the hardest thing I've ever done in my mod. This is because I didn't know much about animations at that time. Once I learned [self-taught] more about weapon animations, it was easy to get working correctly. If you have any issues regarding copying over the weapon over to bf1942, I will gladly help. I went through pain and a lot of curse words [I don't curse normally] trying to figure out all of my weapon animation and texture issues.