View Distance&Weapons

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Dark-Devil
Posts: 8
Joined: Wed Sep 08, 2010 12:03 am
Location: In my Room.

View Distance&Weapons

Post 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?
Jeronimo
Posts: 196
Joined: Sun Dec 27, 2009 8:55 pm
Location: Germany
Contact:

Re: View Distance&Weapons

Post 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.
Image
User avatar
Dark-Devil
Posts: 8
Joined: Wed Sep 08, 2010 12:03 am
Location: In my Room.

Re: View Distance&Weapons

Post by Dark-Devil »

Much appreciated Thanks ;)
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Re: View Distance&Weapons

Post by Dennis|8749236 »

sometimes u need to edit loddistance to see farther object..
What is the meaning of Life?? (Don't think about it!)
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: View Distance&Weapons

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply