MODSon[line.com] Wiki - Beta 1.0

Call of Duty 4: Minimap

From MODSonline Wiki

Jump to: navigation, search

Steps for producing a minimap:

Contents

[edit] Prepare the map

NOTE: This step is only an easy way to create the screenshot that will be the base to the minimap. Recommended if you have never done it before

  • Create a square brush that will allow you to align the prefabs in the map. It does not matter what texture you will use as it is only used temporarily for guide.

Image:2dsquare.png


Add the minimap_corner prefab in the map, on two of the opposing side of the brush, aligned with it. And delete the temporary brush. (not the minimap_corner).

Image:2dminimap corner.png


This is the view of the minimap_corner prefab in the 3D window.

Image:Prefabs-minimap corner.png


The prefabs minimap_corner is located in following:

./map_source/prefabs/


Note: What is a minimap_corner prefab?

It is a script origine with a targetname minimap_corner already done and ready to use. here are the complete detail of this script origin:

"_color" "0.000000 1.000000 0.250980"
"targetname" "minimap_corner"
"origin" "0.0 0.0 0.0"
"classname" "script_origin"


[edit] Take the screenshot

First you have to compile the map, so you will be able to use the newly implemented prefabs. Then run the map in developper mod (developer and developer_script enabled). Once ingame, type the following command:

\scr_minimap_height 10000


You can adjust the height till you are satisfied. Take the screenshot.

Image:Minimap example.png


[edit] Create the minimap

Edit the screenshot in a image editing software to the following:

  • tga file format (24 bits or 32 bits if it contains alpha channel) or dds file format DXT5
  • size: 512*512 pixels


Load the asset manager and convert the minimap using the following:

name of the asset compass_map_mp_mapname
type of the asset material
materialType 2d
sort default
surfaceType <none>
usage <not in editor>
blendFunc Replace
cullface Back*
polygoneOffset None*
alphaTest Always*
depthTest LessEqual*
depthWrite <auto>*


colorMap path to the mp_mapname.tga no tile nomip bilinear <auto compression>* nopicmip


Custom Radiant Material none


Advanced Options Show Platform... <none>*


[edit] Update the map

  • Update the map_mapname.gsc

Add the following line to the corresponding mp_mapname.gsc file:

maps\mp\_compass::setupMiniMap("compass_map_mp_mapname");




Note: The minimap is in CoD4 what was previously known as the compass in previous CoD games.

Personal tools