Jump to content

Blue542

Members
  • Posts

    12
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Blue542 reacted to gaoesa in Silent MOD Help?   
    The admin level structure: http://mygamingtalk....ot#shrubbot.cfg
     
    Adding a map tto the objective cycle.
     
    Objective cycle looks usually something like this:

    set d1 "set g_gametype 2 ; map oasis ; set nextmap vstr d2" set d2 "set g_gametype 2 ; map battery ; set nextmap vstr d3" set d3 "set g_gametype 2 ; map goldrush ; set nextmap vstr d4" set d4 "set g_gametype 2 ; map radar ; set nextmap vstr d5" set d5 "set g_gametype 2 ; map railgun ; set nextmap vstr d6" set d6 "set g_gametype 2 ; map fueldump ; set nextmap vstr d1" vstr d1
     
    To add for example adlernest, add line

    set d7 "set g_gametype 2 ; map adlernest; set nextmap vstr d1"
     
    Also, on the line

    set d6 "set g_gametype 2 ; map fueldump ; set nextmap vstr d1"
    Change it to this

    set d6 "set g_gametype 2 ; map fueldump ; set nextmap vstr d7"
     
    The change is the last vstr d1 to vstr d7. Which means that instead of nextmap being set to the first line, it is set to the value of d7. The d6 and d7 are both custom cvars. vstr is a command that executes the value in the cvar parameter. So, set nextmap, sets the value of the inbuilt nextmap cvar to "vstr d7". "vstr d7" will expand to

    set g_gametype 2 ; map adlernest; set nextmap vstr d1
    which sets the gametype to 2, executes the map command with the map adlernest and finally sets the value of the nextmap to do vstr of the next cvar to be executed after map ends.
     
    The final result would be

    set d1 "set g_gametype 2 ; map oasis ; set nextmap vstr d2" set d2 "set g_gametype 2 ; map battery ; set nextmap vstr d3" set d3 "set g_gametype 2 ; map goldrush ; set nextmap vstr d4" set d4 "set g_gametype 2 ; map radar ; set nextmap vstr d5" set d5 "set g_gametype 2 ; map railgun ; set nextmap vstr d6" set d6 "set g_gametype 2 ; map fueldump ; set nextmap vstr d7" set d7 "set g_gametype 2 ; map adlernest ; set nextmap vstr d1" vstr d1
     
    About not being able to connect, have you tried to ping your server? I suspect you are hosting the server yourself so be sure to check firewalls and all such things as well. One thing that makes me curious is, how can you put the commands in the console if you can't connect to the server. Did you mean the server console?
×
×
  • Create New...