putting 'nextmap' to g_motd

9 replies [Last post]
^t
smasherchif's picture
Offline
Joined: Oct 2009
Posts:

hi, guys!
Is there any way to automatically put next map's name to g_motd cvar so we would get an actual next map shown at any connect and mapchange and we wouldn't have to write such things (and also would easier change rotation order, for example):

[code:1]
q3dm6 {g_motd: "^7Next map in rotation: ^2cpm9"}
cpm9 {g_motd: "^7Next map in rotation: ^2poq3dm5"}
etc
[/code:1]
(taken from Piranha's rotation file. Btw, hi, Piranha +)))

I tried using [code:1]g_motd "... next map: vstr nextmap"[/code:1], but that didn't work.


.aNk/xXxp4l/:bR.Shady'XYN! wrote:
Fuck! I just thought of the most awesome pun about the BC vs Smurfs final game and the flames that followed :
"In Soviet Moldavia, Pole rages YOU"
like 2 months after Call me

3M'darkangel wrote:
// 09:30:49 27.06.2010, UNKNOWN LOCATION,
Name { "Biotoxin" }
IP { "localhost" }

SHUDDER wrote:
People are training hard to hide their autoshoot so well while gain enough skills to win (or at least compete on similar level) without them. This is getting insane or provoked. I feel like I would cut myself with Ockham's Razor if I claim a cheat there.

outofhere!
hook's picture
Offline
Joined: Mar 2008
Posts:
putting 'nextmap' to g_motd

YO HERE WE GO:::PUT THAT IN YOUR ROTATION:TXT

EXAMBLE

// Place Maps Here

q3dm6{ g_motd: "^7Next map in Rotation: ^2cpm9" }
cpm9{ g_motd: "^7Next map in Rotation: ^2poq3dm5" }
poq3dm5{ g_motd: "^7Next map in Rotation: ^2overkill" }
overkill{ g_motd: "^7Next map in Rotation: ^2q3dm11" }
q3dm11{ g_motd: "^7Next map in Rotation: ^2q3dm7" }
q3dm7{ g_motd: "^7Next map in Rotation: ^26++" }
6++{ g_motd: "^7Next map in Rotation: ^2cpm14" }
cpm14{ g_motd: "^7Next map in Rotation: ^27++" }
7++{ g_motd: "^7Next map in Rotation: ^2cpm21" }
cpm21{ g_motd: "^7Next map in Rotation: ^2ospra3map1" }
ospra3map1{ g_motd: "^7Next map in Rotation: ^2cpm27" }
cpm27{ g_motd: "^7Next map in Rotation: ^2q3dm8" }
q3dm8{ g_motd: "^7Next map in Rotation: ^2q3dm7" }
q3dm7{ g_motd: "^7Next map in Rotation: ^2q3dm6" }

Fragmovies and more Arrow Click ME!

AsphyxEvents Website Arrow Click ME!

^t
smasherchif's picture
Offline
Joined: Oct 2009
Posts:
Re: putting 'nextmap' to g_motd

Thanx, Asphyx, but:

^t wrote:

Is there any way to automatically put next map's name to g_motd cvar so we would get an actual next map shown at any connect and mapchange and we wouldn't have to write such things

Is this the only way?


.aNk/xXxp4l/:bR.Shady'XYN! wrote:
Fuck! I just thought of the most awesome pun about the BC vs Smurfs final game and the flames that followed :
"In Soviet Moldavia, Pole rages YOU"
like 2 months after Call me

3M'darkangel wrote:
// 09:30:49 27.06.2010, UNKNOWN LOCATION,
Name { "Biotoxin" }
IP { "localhost" }

SHUDDER wrote:
People are training hard to hide their autoshoot so well while gain enough skills to win (or at least compete on similar level) without them. This is getting insane or provoked. I feel like I would cut myself with Ockham's Razor if I claim a cheat there.

epsiplayer
THE ONE AND ONLY
intact-epsilon's picture
Offline
Joined: Dec 2006
Posts:
Re: putting 'nextmap' to g_motd
^t wrote:

Thanx, Asphyx, but:

^t wrote:

Is there any way to automatically put next map's name to g_motd cvar so we would get an actual next map shown at any connect and mapchange and we wouldn't have to write such things

Is this the only way?

Hm but even if it was automatically, wouldn't you still needed to edit the rotation file in order to add the new map(Drunk ? So i say if you are already editing the same file why not adding yourself the g_motd ? lazy ? Tongue

_________
epsislow


^t
smasherchif's picture
Offline
Joined: Oct 2009
Posts:
Re: putting 'nextmap' to g_motd
epsiplayer wrote:

lazy ? Tongue

Oh, it's a shame, but YES, I'm lazy Big grin
I want just add/delete/replace some maps, but don't want to edit references Happy

Anyway, thanx Happy


.aNk/xXxp4l/:bR.Shady'XYN! wrote:
Fuck! I just thought of the most awesome pun about the BC vs Smurfs final game and the flames that followed :
"In Soviet Moldavia, Pole rages YOU"
like 2 months after Call me

3M'darkangel wrote:
// 09:30:49 27.06.2010, UNKNOWN LOCATION,
Name { "Biotoxin" }
IP { "localhost" }

SHUDDER wrote:
People are training hard to hide their autoshoot so well while gain enough skills to win (or at least compete on similar level) without them. This is getting insane or provoked. I feel like I would cut myself with Ockham's Razor if I claim a cheat there.

outofhere!
hook's picture
Offline
Joined: Mar 2008
Posts:
putting 'nextmap' to g_motd

sry that is lazy but the only way to have a good g_motd and one time finished automatic rotation file.... Big grin

Fragmovies and more Arrow Click ME!

AsphyxEvents Website Arrow Click ME!

^t
smasherchif's picture
Offline
Joined: Oct 2009
Posts:
putting 'nextmap' to g_motd

well, we could set it this way (in server's config):
[code:1]// blah-blah-blah

$g_motd = "MOTD itself; next map:" . $nextmap;

Misc
{
// blah-blah-blah
}

// blah-blah-blah
[/code:1]

i guess it might work, but i can't use that anyway because i can't use rotation.txt (the reason is here)


.aNk/xXxp4l/:bR.Shady'XYN! wrote:
Fuck! I just thought of the most awesome pun about the BC vs Smurfs final game and the flames that followed :
"In Soviet Moldavia, Pole rages YOU"
like 2 months after Call me

3M'darkangel wrote:
// 09:30:49 27.06.2010, UNKNOWN LOCATION,
Name { "Biotoxin" }
IP { "localhost" }

SHUDDER wrote:
People are training hard to hide their autoshoot so well while gain enough skills to win (or at least compete on similar level) without them. This is getting insane or provoked. I feel like I would cut myself with Ockham's Razor if I claim a cheat there.

lagstard
Developer (retired)
rabusmar's picture
Offline
Joined: Jan 2008
Posts:
putting 'nextmap' to g_motd
^t wrote:

That wouldnt work either because with the file rotation system the nextmap name is not kept in any cvar.

Había una vez un barco chiquito...

^t
smasherchif's picture
Offline
Joined: Oct 2009
Posts:
putting 'nextmap' to g_motd

awww

thanx Happy


.aNk/xXxp4l/:bR.Shady'XYN! wrote:
Fuck! I just thought of the most awesome pun about the BC vs Smurfs final game and the flames that followed :
"In Soviet Moldavia, Pole rages YOU"
like 2 months after Call me

3M'darkangel wrote:
// 09:30:49 27.06.2010, UNKNOWN LOCATION,
Name { "Biotoxin" }
IP { "localhost" }

SHUDDER wrote:
People are training hard to hide their autoshoot so well while gain enough skills to win (or at least compete on similar level) without them. This is getting insane or provoked. I feel like I would cut myself with Ockham's Razor if I claim a cheat there.

kgdhost
Offline
Joined: Jul 2011
Posts:
Re: putting 'nextmap' to g_motd

Hi all. Can you please tell how to write a g_motd in rotation.txt in version 2.2b. The examples here do not work in version 2.2b. Thanks in advance.