In Radiant, place two script/origin entities with a targetname value of "minimap_corner". These must be at opposite corners of a square which represents the playable area of your map. Keep in mind that the square won't necessarily be aligned to the X and Y axes; it will be aligned to North, which is set by northyaw in your worldspawn.
Radiantの中に、"minimap_corner"のtargetname値で2つのスクリプト/起点エンティティを置いてください。 これらはあなたのマップのプレーすることができるエリアを代表する正方形の逆コーナーにいるに違いありません。 XとY軸に正方形が必ず一列に並べられないであろうということを念頭においてください;それは北部に一列に並べられるでしょう、そしてそれはあなたのworldspawnの中にnorthyawによって設定されます。
Compile and load the map in-game. Spawn in as a player. Set scr_minimap_height to a high value in the console. (For instance, 10000.) This is the height at which you want to take the screenshot from. Higher values will be closer to orthographic (which is good for a satellite image), but could cause z-fighting issues.
コンパイル、そしてマップゲーム内ロードしてください。 中にプレーヤーとしてスポーン。 コンソールの中に高い値にscr_minimap_heightを設定してください。 (実例のため、10000。) あなたがどちらからスクリーンショットをとることを望むかについて、これは高さです。 より高い文字は(衛星画像に良い)orthographicにより近いでしょう、しかしzと争う問題を起こすことができました。
Also, set “exec minimap” in the console to activate a series of dvars that help the process. Your point of view should now be centered around a box around the map.
同じく、コンソールの中に「実行ミニマップ」をプロセスを助けるdvarsのシリーズを作動させるように設定してください。 あなたの視点はマップの周りにボックスの周りに今中央揃えであるべきです。
Take a screenshot. In a graphics application, cut out the boxed area (crop to the area *just* inside the white lines), resize it to 512x512, and save it as compass_map_yourmapname.tga (i.e., compass_map_mp_backlot) in the materials directory. In asset manager, in hud.gdt, make a copy of compass_map_mp_backlot with the same name as the tga you created, and set up the "color map" to reference your tga. Convert the file.
スクリーンショットをとってください。 グラフィックアプリケーションの中に、(*ただ*白いラインの中にそのエリアに切り取ってください)箱に詰められたエリアをやめて、512x512にそれのサイズを変えて、そしてマテリアルディレクトリの中にそれをcompass_map_yourmapname.tga(すなわち、compass_map_mp_backlot)としてセーブしてください。 asset managerの中に、hud.gdtの中に、同一名でcompass_map_mp_backlotのコピーをあなたが作ったtgaとして作って、そして「カラーマップ」の上にレファレンスにあなたのtgaを設定してください。 変換、ファイル。
Add the asset to your map's fast file (.csv) as "material,compass_map_yourmapname" In your map's script file, insert the following line of code:
あなたのマップのスクリプトファイル、挿入物、コードの以下の線、の中に「material,compass_map_yourmapname」としてあなたのマップの高速のファイル(.csv)に資産を加えてください:
maps\mp\_compass::setupMiniMap("compass_map_yourmapname");
The map texture should now be visible and properly aligned in your map.
マップテクスチャは今目に見えるべきです、そしてあなたのマップの中に適切に一列になりました。