map scale [message #312501] |
Sun, 20 January 2008 08:52 |
|
renalpha
Messages: 1000 Registered: January 2007 Location: Holland - Zuid-Holland - ...
Karma: 0
|
General (1 Star) |
|
|
how can i define the mapscale of fanmaps,
for example i want a map card for my hud from the map islands,
now how can i know what its scale is?
i want to do this for the fanmaps.
Aircraftkiller wrote on Fri, 18 February 2011 23:50 | I figured some people will still go LOLOLOL STARVING CATS LOOOOLZ UR A FAG or some dumb shit like that. Thanks for not disappointing!
|
|
|
|
|
Re: map scale [message #312682 is a reply to message #312501] |
Mon, 21 January 2008 09:40 |
DL60
Messages: 283 Registered: May 2006
Karma: 0
|
Recruit |
|
|
Take a look @ bhs.txt. There is part which describes the creation of c&c_map.ini's (e.g. C&C_Islands.ini) for scaling/aligning the map-overviews for every map.
|
|
|
Re: map scale [message #312697 is a reply to message #312501] |
Mon, 21 January 2008 11:29 |
|
renalpha
Messages: 1000 Registered: January 2007 Location: Holland - Zuid-Holland - ...
Karma: 0
|
General (1 Star) |
|
|
i dont get it.
How the scrolling map feature works:
If you turn it on with ScrollingRadarMap=true, you then need to set the settings for each map with something like JFW_Change_Radar_Map.
Basicly, it draws the radar background the same as the normal radar code with the exception of the texture coordinates for the background texture.
By default, the center of the map texture is assumed to match with 0,0 in the game world. Use the offsetx and offsety values to specify where on the texture (relative to the center) 0,0 in the game world is.
The scale field codes for how many pixels on the texture 1 unit in the game world is equal to. Just play around with the offset and scale asnd see what looks right for your map.
As of 3.0, you can create an ini file called mapname.ini (e.g. C&C_Islands.ini) which contains the following tags in the [General] section
ScrollingMapTexture
ScrollingMapOffsetX
ScrollingMapOffsetY
ScrollingMapScale
These correspond to the parameters that get passed to Change_Radar_Map
This ini file goes on the client. If the map/server makes a call to Change_Radar_Map, it will override anything set by the ini file.
Aircraftkiller wrote on Fri, 18 February 2011 23:50 | I figured some people will still go LOLOLOL STARVING CATS LOOOOLZ UR A FAG or some dumb shit like that. Thanks for not disappointing!
|
|
|
|