User panel stuff on forum
  7 posts on 1 page  1
Advanced Configuration
2006-04-25, 18:47
Administrator
2058 posts

Registered:
Jan 2006
This script allows you to have different settings for each map:

// Map Settings v0.9 (Do Not Edit)
alias f_spawn "map_settings"
alias map_settings "if $mapname == dm2 then map_dm2 else map_settings2"
alias map_settings2 "if $mapname == dm3 then map_dm3 else map_settings3"
alias map_settings3 "if $mapname == e1m2 then map_e1m2 else map_settings4"
alias map_settings4 "if $mapname == dm4 then map_dm4 else map_settings5"
alias map_settings5 "if $mapname == dm6 then map_dm6 else map_settings6"
alias map_settings6 "if $mapname == end then map_end else map_settings7"
alias map_settings7 "if $mapname == endif then map_endif else map_settings8"
alias map_settings8 "if $mapname == povdmm4 then map_povdmm4 else map_settings9"
alias map_settings9 "if $mapname == aerowalk then map_aerowalk else map_settings10"
alias map_settings10 "if $mapname == ztndm3 then map_ztndm3"
alias map_dm2 "if $matchtype == duel then map_dm2_1on1 else if $matchtype == 2on2 then map_dm2_2on2 else if $matchtype == 4on4 then map_dm2_4on4 else map_dm2_reg"
alias map_dm3 "if $matchtype == duel then map_dm3_1on1 else if $matchtype == 2on2 then map_dm3_2on2 else if $matchtype == 4on4 then map_dm3_4on4 else map_dm3_reg"
alias map_e1m2 "if $matchtype == duel then map_e1m2_1on1 else if $matchtype == 2on2 then map_e1m2_2on2 else if $matchtype == 4on4 then map_e1m2_4on4 else map_e1m2_reg"
alias map_dm4 "if $matchtype == duel then map_dm4_1on1 else if $matchtype == 2on2 then map_dm4_2on2 else map_dm4_reg"
alias map_dm6 "if $matchtype == duel then map_dm6_1on1 else if $matchtype == 2on2 then map_dm6_2on2 else map_dm6_reg"
alias map_aerowalk "if $matchtype == duel then map_aerowalk_1on1 else if $matchtype == 2on2 then map_aerowalk_2on2 else map_aerowalk_reg"
alias map_ztndm3 "if $matchtype == duel then map_ztndm3_1on1 else if $matchtype == 2on2 then map_ztndm3_2on2 else map_ztndm3_reg"

// DM2 Settings
alias map_dm2_1on1 "r_drawflat 0"
alias map_dm2_2on2 "r_drawflat 0"
alias map_dm2_4on4 "r_drawflat 0"
alias map_dm2_reg "r_drawflat 0"

// DM3 Settings
alias map_dm3_1on1 "r_drawflat 0"
alias map_dm3_2on2 "r_drawflat 0"
alias map_dm3_4on4 "r_drawflat 0"
alias map_dm3_reg "r_drawflat 0"

// E1M2 Settings
alias map_e1m2_1on1 "r_drawflat 0"
alias map_e1m2_2on2 "r_drawflat 0"
alias map_e1m2_4on4 "r_drawflat 0"
alias map_e1m2_reg "r_drawflat 0"

// DM4 Settings
alias map_dm4_1on1 "r_drawflat 0"
alias map_dm4_2on2 "r_drawflat 0"
alias map_dm4_reg "r_drawflat 0"

// DM6 Settings
alias map_dm6_1on1 "r_drawflat 0"
alias map_dm6_2on2 "r_drawflat 0"
alias map_dm6_reg "r_drawflat 0"

// Aerowalk Settings
alias map_aerowalk_1on1 "r_drawflat 0"
alias map_aerowalk_2on2 "r_drawflat 0"
alias map_aerowalk_reg "r_drawflat 0"

// Ztndm3 Settings
alias map_ztndm3_1on1 "r_drawflat 0"
alias map_ztndm3_2on2 "r_drawflat 0"
alias map_ztndm3_reg "r_drawflat 0"

// End/Endif/Povdmm4 Settings
alias map_end "r_drawflat 1;r_fastturb 1;r_wallcolor 255 255 255;r_floorcolor 50 100 150"
alias map_endif "r_drawflat 1;r_fastturb 1;r_wallcolor 255 255 255;r_floorcolor 50 100 150"
alias map_povdmm4 "r_drawflat 1;r_fastturb 1;r_wallcolor 255 255 255;r_floorcolor 50 100 150"
2006-04-26, 10:02
Member
248 posts

Registered:
Jan 2006
when does f_spawn triggers, only first time on the new map or after all respawns (taking in acount that you sometimes die)
2006-04-26, 10:06
Administrator
2058 posts

Registered:
Jan 2006
f_spawn only triggers once per map.

i updated the configuration, and added a version number in case i update it again..

note: settings that require map restarts won't work until you restart the map (reconnect?)
2006-04-27, 12:08
Member
12 posts

Registered:
Feb 2006
Thanks for this Emp
2006-06-07, 22:01
Member
200 posts

Registered:
Apr 2006
Sorry to bring this up but I really wanna know this and I have no way to test this right now.


alias f_spawn "map_$mapname"

Possible?
2006-06-08, 13:24
Member
68 posts

Registered:
May 2006
f_spawn once each map
f_respawn everytime u die

jkn... if map_$mapname is an alias, it works, i tested myself, kinda like this
alias f_spawn "map_$mapname"

alias map_e1m2 "r_drawflat 0;r_wallcolor 255 0 0;echo this is e1m2"
alias map_dm3 "exec teamplay.cfg; gl_turbwater 0.15;echo this is dm3"
2006-06-08, 16:34
Member
200 posts

Registered:
Apr 2006
Nice, so you can throw away all those "map_settings" from empezar's config.

Thx OrGg
  7 posts on 1 page  1