\r
Table of Contents\r
-----------------\r
-I Map Lists & Scripts\r
+I Map Settings\r
(get your map listed and working)\r
- i. mapinfo\r
- ii. mapname.cfg\r
\r
II Map Image\r
\r
\r
Appendix C - Advanced Darkplaces shaders\r
\r
-========================\r
-=I. Map Lists & Scripts=\r
-========================\r
+=================\r
+=I. Map Settings=\r
+=================\r
\r
-There now is just a single script/cfg file available to you, containing all map\r
-specific settings:\r
+All map specific settings goes in a single file:\r
\r
mapname.mapinfo\r
\r
-The mapinfo is actually required - however, the game is so nice that it\r
-automatically generates a draft of it for you.\r
-\r
-------------------\r
--The mapinfo file-\r
-------------------\r
-\r
-*cue even more scary music*\r
-\r
The mapinfo file is basically what gets your map listed in the menu, and sets\r
up the options needed to change to it. If no mapinfo file exists, the menu\r
will automatically generate a rough draft for you on game startup. It will get\r
_diameter 1966.839355\r
_spawnpoints 5\r
has weapons\r
- cdtrack 5\r
+ cdtrack 5\r
gametype dm // defaults: timelimit=20 pointlimit=30 leadlimit=0\r
gametype dom // defaults: timelimit=20 pointlimit=200 teams=2 leadlimit=0\r
gametype lms // defaults: timelimit=20 lives=9 leadlimit=0\r
- gametype arena // defaults: timelimit=20 pointlimit=10 leadlimit=0\r
\r
As I see, the menu autodetected that my map may be suitable for deathmatch,\r
-domination, last man standing and arena. But I want the map to be played in\r
+domination, last man standing and keepaway. But I want the map to be played in\r
domination, deathmatch, team deathmatch only, and I also want different\r
timelimits/fraglimits, so I will change the "gametype" lines to:\r
\r
\r
Also, note the "has weapons" line. If this line is not there (which happens if\r
the map contains no weapon entities other than the Nex), the map will run in\r
-MinstaGib only and not be shown in the menu normally. So if you look for your\r
+InstaGib only and not be shown in the menu normally. So if you look for your\r
map and don't find it, add "has weapons" to the mapinfo file, and make sure you\r
have weapon entities placed.\r
\r
Domination | gametype dom [timelimit=...] [pointlimit=...] [teams=...] [leadlimit=...] | 2, 3, or 4 teams, only if map has no dom_team ents\r
CTF | gametype ctf [timelimit=...] [caplimit=...] [leadlimit=...] |\r
LMS | gametype lms [timelimit=...] [lives=...] [leadlimit=...] |\r
-Arena | gametype arena [timelimit=...] [pointlinit=...] [leadlimit=...] |\r
Key Hunt | gametype kh [timelimit=...] [pointlimit=...] [teams=...] [leadlimit=...] | 2, 3, or 4 teams\r
Assault | gametype as [timelimit=...] | never uses points\r
Onslaught | gametype ons [timelimit=...] | never uses points\r
\r
To do this, I can add the following lines to my mapinfo file:\r
\r
- settemp_for_type ctf g_balance_laser_primary_force 200\r
- settemp_for_type all g_start_weapon_shotgun 0\r
- settemp_for_type all g_start_weapon_uzi 1\r
+ settemp_for_type ctf g_balance_blaster_primary_force 200\r
+ settemp_for_type all g_balance_shotgun_weaponstart 0\r
+ settemp_for_type all g_balance_machinegun_weaponstart 1\r
settemp_for_type all sv_cullentities_trace 0\r
\r
These "settemp" settings are automatically removed when the map is left and\r