Question to the Server-Gods

Started by Aquamarin, November 04, 2008, 12:29:06 PM

Previous topic - Next topic

twl_viper

you can activate it any way you script it - either by completing an abjective, a trigger use, or a trigger all, many ways.

Aquamarin

http://smiliestation.de/smileys/Gemischt/324.gif" alt="" />

   

   Real???

   Ok - if i put a lot of different maps on the server, and say if the allies win load map X, and when the axis win load map Y ( and say this for ALL maps ) - anytime by - maybe - reach a trigger... AND THE SERVER DO THIS REAL??? They load in booth directions some maps?

twl_viper


STORMnl

i think you found youre [purple]GOD[/purple] aqua

   

   and now find a way to place youre MOH back on youre comp.
Dutch Blue Oyster mean machine instructor + The Jack off the dutch platoon - My Drill Instruction http://es.youtube.com/watch?v=25Qhbdijv5Y&feature=related

cubus

hi,

   

   @viper, i try your little test-map, but "unfortunately" it didnt work on my pc, like the way you designed.....

   

   

   bsptransition was allways told to us, when aqua or i ask in various forums... new is the combination with this "g_gametype-thing"......... dont know, what it means....

   

   

   equal...... which team runs in one of this triggers, allways "mohdm1 = southern france" will be loaded.... no mohdm2 or mohdm4 - which are set in mapscript by useing bsptransition

   

   may i do something wrong, which is very easy for me, because i'am not a onlinegamer and dont understand, what a server do.... maybe......... not do!

   

   one question.... when i test, this setting is present on my system:

   

   seta sv_maplist "dm/mohdm1 dm/mohdm2 dm/mohdm3 dm/mohdm4 dm/mohdm5 dm/mohdm6 dm/mohdm7"

   

   i guess, thats standard for moh:aa

   

   may i have to kill this line at first place, somehow? before mapswitch-script will work???

   

   ps: basicly aqua's idea was created for obj-style maps...... so teamwin "....." maybe gives a importent impulse for server???? or to you?

Soldier Of Ra

setcvar "g_gametype" is what mode the game is in. 1 = Free-for-All, 2 = RoundBased, 3 = TeamMatch, 4 = Objective Match

   Maybe you mean "g_extgametype" with
with this "g_gametype-thing"......... dont know, what it means....

   It makes you set the gametype string that will be displayed in the serverlist.

Aquamarin

Ok - one more time...

   

   I put 3 customs on a server.

   a) StLo

   b) Liliput

   c) Bombed Village

   

   We start at Liliput.

   IF the Axis winns - Bombed Village should be loadet.

   IF the Allies winns - StLo should be loadet.

   

   This will work?

   

   One step more:

   

   I put 5 customs on a server.

   

   a) StLo

   b) Liliput

   c) Bombed Village

   d) Carentan

   e) Nosfaratu's Swamp

   

   We start at Bombed Village.

   

   IF the Axis winns - Carentan should be loadet.

   IF the Allies winns - Liliput should be loadet.

   

   At Carentan the Axis winns - Nosfaratu's Swamp should be loadet.

   At Carentan the Allies winns - Bombed Village should be loadet.

   

   Ans so on...

   Every team has his own direction for sucsess.

   

   Till finaly the Axis had reach her objectives on Nosfaratu's Swamp, or the Allies herĀ“s on StLo.

   

   This will work?

   

   Its FULL against any sv_serverlist, and thats a fact. You can jump back in line of the serverlist?

cubus

okay, i know a little about this gamytyp-stuff, but setting to "0" is not clear for me...

   

   here the script from viper:

   

   

   //ViPER{SFX}
   //Elgan{SFX}
   
   main:
   
   // set scoreboard messages
   setcvar "g_obj_alliedtext1" "to switch map"
   setcvar "g_obj_alliedtext2" "Choose"
   setcvar "g_obj_alliedtext3" "St Renan to"
   setcvar "g_obj_axistext1" "Crossroads"
   setcvar "g_obj_axistext2" "Cherbourg to"
   setcvar "g_obj_axistext3" "Destroyed Village"
   
   // call additional stuff for playing this map round based is needed
      if(level.roundbased)
         exec global/roundbased.scr //thread roundbasedthread
   
      level waitTill prespawn
   
      //*** Precache Dm Stuff
      exec global/DMprecache.scr
   
      level.script = maps/dm/mapswitch.scr
      exec global/ambient.scr mohdm1
   
      thread triggerthread1
      thread triggerthread2
   
   end
   
   
   //-----------------------------------------------------------------------------
   
   
   triggerthread1:
   
   $gotocr waittill trigger
   
   setcvar "g_obj_alliedtext1" "You"
   setcvar "g_obj_alliedtext2" "Are on"
   setcvar "g_obj_alliedtext3" "Your way"
   setcvar "g_obj_axistext1" "to"
   setcvar "g_obj_axistext2" "Crossroads"
   setcvar "g_obj_axistext3" " "
   
   iprintlnbold "Going to Crossroads"
   
   wait 1
   
   local.gametype = getcvar "g_gametype"
   setcvar "g_gametype" "0"
   bsptransition dm/mohdm4
   setcvar "g_gametype" local.gametype
   
   end
   
   
   triggerthread2:
   
   $gotodv waittill trigger
   
   iprintlnbold "Going to destroyed Village"
   
   
   setcvar "g_obj_alliedtext1" "You"
   setcvar "g_obj_alliedtext2" "Are on"
   setcvar "g_obj_alliedtext3" "Your way"
   setcvar "g_obj_axistext1" "to"
   setcvar "g_obj_axistext2" "Destroyed Village"
   setcvar "g_obj_axistext3" " "
   
   wait 1
   
   local.gametype = getcvar "g_gametype"
   setcvar "g_gametype" "0"
   bsptransition dm/mohdm2
   setcvar "g_gametype" local.gametype
   
   end
   

   

   may it works only, if two teams on server.....?

twl_viper

hmmmm..... I use a vstr - maybe it is that. I will look at it tommorow. It can be made to work with a maplist too I am sure.

twl_viper

Try this for maplist

   

   to restore sv_maplist do this at the begining of the next map

   

   

   local.temp_maplist = getcvar "temp_maplist"
   setcvar sv_maplist local.temp_maplist
   

   

   

   

   //ViPER{SFX}
   //Elgan{SFX}
   
   main:
   
   // set scoreboard messages
   setcvar "g_obj_alliedtext1" "to switch map"
   setcvar "g_obj_alliedtext2" "Choose"
   setcvar "g_obj_alliedtext3" "St Renan to"
   setcvar "g_obj_axistext1" "Crossroads"
   setcvar "g_obj_axistext2" "Cherbourg to"
   setcvar "g_obj_axistext3" "Destroyed Village"
   
   // call additional stuff for playing this map round based is needed
   if(level.roundbased)
   exec global/roundbased.scr //thread roundbasedthread
   
   level waitTill prespawn
   
   //*** Precache Dm Stuff
   exec global/DMprecache.scr
   
   level.script = maps/dm/mapswitch.scr
   exec global/ambient.scr mohdm1
   
   thread triggerthread1
   thread triggerthread2
   
   end
   
   
   //-----------------------------------------------------------------------------
   
   triggerthread1:
   
   $gotocr waittill trigger
   local.temp_maplist = getcvar "sv_maplist"
   setcvar temp_maplist local.temp_maplist
   
   setcvar sv_maplist "dm/mohdm4"
   
   setcvar "g_obj_alliedtext1" "You"
   setcvar "g_obj_alliedtext2" "Are on"
   setcvar "g_obj_alliedtext3" "Your way"
   setcvar "g_obj_axistext1" "to"
   setcvar "g_obj_axistext2" "Crossroads"
   setcvar "g_obj_axistext3" " "
   
   iprintlnbold "Going to Crossroads"
   
   wait 1
   
   local.gametype = getcvar "g_gametype"
   setcvar "g_gametype" "0"
   bsptransition nextmap
   setcvar "g_gametype" local.gametype
   end
   
   
   triggerthread2:
   
   $gotodv waittill trigger
   local.temp_maplist = getcvar "sv_maplist"
   setcvar temp_maplist local.temp_maplist
   
   setcvar sv_maplist "dm/mohdm2"
   
   setcvar "g_obj_alliedtext1" "You"
   setcvar "g_obj_alliedtext2" "Are on"
   setcvar "g_obj_alliedtext3" "Your way"
   setcvar "g_obj_axistext1" "to"
   setcvar "g_obj_axistext2" "Destroyed Village"
   setcvar "g_obj_axistext3" " "
   
   iprintlnbold "Going to destroyed Village"
   
   wait 1
   
   local.gametype = getcvar "g_gametype"
   setcvar "g_gametype" "0"
   bsptransition next
   setcvar "g_gametype" local.gametype
   end
   

   

   

   And you could combine the two methods (maplist, vstr) by checking nextmap. Something like -

   

   

   local.check = getcvar "nextmap"
   
   if(local.check == NIL || local.check == 0)
    {
    do maplist_stuff
    }
    else
    {
    do vstr_stuff
    }
   
   

Aquamarin

Hello again ( after a while.. )!

   

   It looks good, but i think that will work only on the compi, but not on the server...

   Do you test it on a server?

   The point i dont understand is, how communicate the script with the server? The server read all thinks ( mapscripts ) only one time ( by boothing ), but after any map is a new situation...

   

   Regards ( and i wish all a happy new year )

   

   Aqua

twl_viper

If you try it - it will work - if you don't - it will not.

Aquamarin

Ok - i will try it!

   

   Q: local.temp_maplist = getcvar "temp_maplist" --> temp maplist - where did i find that/build that? On the server.cfg?

   

   Thx for your gratfull help, Viper!

twl_viper

It fills it in the script from your maplist

   

   
local.temp_maplist = getcvar "sv_maplist"

Aquamarin

I will test is this days with Cubus.

   Yesterday we become a server from Beatz for our work ( BIG THX TO HIM ).

   Tell you then more about the script! :)