 |
 |
 |
|
 |
 |
 |
|
 |
 |
Moving a territory on PDA map |
|
|
|
|
06:48:56 1 March 2013 |
|
nashathedog
Senior Resident
 On forum: 01/31/2011
Messages: 8196
|
config\game_maps_single.ltx
global_rect = ??????????????
This next lot of text was info for COP that was given by Smrt I do not know if it stands true to SHOC but it looks like it should so it may help.
I'm gonna try to explain the positioning the way I did it
for the maps that I hand-painted from scratch,
it's definitely not a perfect solution (very trial & error) and there are
certainly more proper ways to do it, but it might help anyway.
First of all some basics conclusions I made:
1. the bound_rect value in level.ltx determines the size of your terrain map,
once you got the values (demo_record or SDK), stick to it.
2. the global_rect value in game_maps_single.ltx determines at what size your
map is displayed, on the global map as well as on the minimap.
3. the first value represents the left border of your map, the third value
represents the right border.
4. the second value represents the upper border of your map, the fourth
value represents the lower border.
for better understanding:
lets say you start with a global_rect of
800.0, 825.0, 1200.0, 1125.0
that means your map has a width of 400 (difference between the 1st&3rd value)
and a height of 300 (difference between the 2nd&4th value)
*note: a map like predbannik would be a square, I increased the 3rd global_rect value
by 100 for this 'tutorial'*
resulting conclusion and the messy trial and error part:
if you just want to move your terrain map on the global map you need to keep the
difference between 1st & 3rd and 2nd & 4th values,
i.e. if you want to move it to the left by 300 your new global_rect would be
500.0, 825.0, 900.0, 1125.0
if your minimap is stretched or squeezed you need to alter the difference
between 1st & 3rd and 2nd & 4th value
Recommendations for this:
- don't adjust width and height at the same time, very confusing^^)
- use steps of no less than 50.0 for rough positioning, you can always fine tune later.
- position your terrain on the global map first, then take care of the squeezing.
- once you found your position on the global map, never change the 1st or 2nd value
(too keep your terrain in position on the global map),
only edit the 3rd & 4th (for stretching/squeezing)
lots of text but hopefully more understandable than the wicked calculations from the russian mod wiki
(my brain melted trying to understand the logic behind that one).
Everything you want to know about Degtarev's zone is in the: COP Survival guide http://cop.zsg.dk/
Moddb page 4 links: http://www.moddb.com/members/davidme
Of all the things I've lost in life... I miss my mind the most
Life isn't about waiting for the storm to pass, it's about learning how to dance in the rain
|
|
1 | All Messages |
|
|
|
» » |
|
All short dates are in Month-Day-Year format. |
 |
|
 |
|
|
|
 |
 |
 |