Notification about next map

Discussions about ET modding (sdk code, player/weapon modeling)

Moderators: Forum moderators, developers

K1M1
Posts: 51
Joined: Sun Jul 16, 2006 6:22 am
Contact:

Notification about next map

Post by K1M1 »

I would like to ask, how can i create or if someone would perhaps help me with it, script for next map notification, like for exc. when 2nd round of sw starts, there would be text in chat area, next map is....

...would be much apricieted for ur help, tnx
nedd3h
Posts: 67
Joined: Fri Jan 14, 2005 12:52 am
Location: Australia
Contact:

Post by nedd3h »

no need to mod, just add some say commands in your mapcycle
depending where you want them to spam depends on the command
http://bani.anime.net/etpro/adminguide.html

here's my latest verson of one of my sw cycles as an example

Code: Select all

// nedETPRO SW mapcycle #1
// 15-Oct-06
//

set g_gametype         3
set g_altStopwatchMode 0

set SW01_1 "set g_gametype 3; say ^8Caen 2 ...LOADING...;               map caen2;             set nextmap vstr SW01_2; sets SW_Round 1"
set SW01_2 "map_restart 0;                                                                     set nextmap vstr SW02_1; sets SW_Round 2"
set SW02_1 "set g_gametype 3; say ^8Rommel ...LOADING...;               map rommel_ga;         set nextmap vstr SW02_2; sets SW_Round 1"
set SW02_2 "map_restart 0;                                                                     set nextmap vstr SW03_1; sets SW_Round 2"
set SW03_1 "set g_gametype 3; say ^8Special Delivery 2 ...LOADING...;   map sp_delivery2;      set nextmap vstr SW03_2; sets SW_Round 1"
set SW03_2 "map_restart 0;                                                                     set nextmap vstr SW04_1; sets SW_Round 2"
set SW04_1 "set g_gametype 3; say ^8Ice ...LOADING...;                  map et_ice;            set nextmap vstr SW04_2; sets SW_Round 1"
set SW04_2 "map_restart 0;                                                                     set nextmap vstr SW05_1; sets SW_Round 2"
set SW05_1 "set g_gametype 3; say ^8Warbell ...LOADING...;              map warbell;           set nextmap vstr SW05_2; sets SW_Round 1"
set SW05_2 "map_restart 0;                                                                     set nextmap vstr SW06_1; sets SW_Round 2"
set SW06_1 "set g_gametype 3; say ^8Supply Depot 2 ...LOADING...;       map supply;            set nextmap vstr SW06_2; sets SW_Round 1"
set SW06_2 "map_restart 0;                                                                     set nextmap vstr SW07_1; sets SW_Round 2"
set SW07_1 "set g_gametype 3; say ^8Password 2 ...LOADING...;           map password2;         set nextmap vstr SW07_2; sets SW_Round 1"
set SW07_2 "map_restart 0;                                                                     set nextmap vstr SW08_1; sets SW_Round 2"
set SW08_1 "set g_gametype 3; say ^8ETPro comp Fuel Dump ...LOADING...; map fueldump;          set nextmap vstr SW08_2; sets SW_Round 1"
set SW08_2 "map_restart 0;                                                                     set nextmap vstr SW09_1; sets SW_Round 2"
set SW09_1 "set g_gametype 3; say ^8El Kef (SW) ...LOADING...;          map sw_el_kef;         set nextmap vstr SW09_2; sets SW_Round 1"
set SW09_2 "map_restart 0;                                                                     set nextmap vstr SW10_1; sets SW_Round 2"
set SW10_1 "set g_gametype 3; say ^8TC Base ...LOADING...;              map tc_base;           set nextmap vstr SW10_2; sets SW_Round 1"
set SW10_2 "map_restart 0;                                                                     set nextmap vstr SW11_1; sets SW_Round 2"
set SW11_1 "set g_gametype 3; say ^8Arhabeach TE ...LOADING...;         map arhabeach_te;      set nextmap vstr SW11_2; sets SW_Round 1"
set SW11_2 "map_restart 0;                                                                     set nextmap vstr SW12_1; sets SW_Round 2"
set SW12_1 "set g_gametype 3; say ^8Frostbite ...LOADING...;            map Frostbite;         set nextmap vstr SW12_2; sets SW_Round 1"
set SW12_2 "map_restart 0;                                                                     set nextmap vstr SW13_1; sets SW_Round 2"
set SW13_1 "set g_gametype 3; say ^8CAHA: Tavern ...LOADING...;         map caha_tavern_b2;    set nextmap vstr SW13_2; sets SW_Round 1"
set SW13_2 "map_restart 0;                                                                     set nextmap vstr SW14_1; sets SW_Round 2"
set SW14_1 "set g_gametype 3; say ^8Foo Fighter - ET ...LOADING...;     map et_ufo_final;      set nextmap vstr SW14_2; sets SW_Round 1"
set SW14_2 "map_restart 0;                                                                     set nextmap vstr SW15_1; sets SW_Round 2"
set SW15_1 "set g_gametype 3; say ^8Heart of Gold ...LOADING...;        map HoG_b12;           set nextmap vstr SW15_2; sets SW_Round 1"
set SW15_2 "map_restart 0;                                                                     set nextmap vstr SW16_1; sets SW_Round 2"
set SW16_1 "set g_gametype 3; say ^8SW Fueldump TE ...LOADING...;       map sw_fueldump_b3;    set nextmap vstr SW16_2; sets SW_Round 1"
set SW16_2 "map_restart 0;                                                                     set nextmap vstr SW17_1; sets SW_Round 2"
set SW17_1 "set g_gametype 3; say ^8Secret Weapon ...LOADING...;        map sos_secret_weapon; set nextmap vstr SW17_2; sets SW_Round 1"
set SW17_2 "map_restart 0;                                                                     set nextmap vstr SW18_1; sets SW_Round 2"
set SW18_1 "set g_gametype 3; say ^8Stalingrad ...LOADING...;           map stalingrad;        set nextmap vstr SW18_2; sets SW_Round 1"
set SW18_2 "map_restart 0;                                                                     set nextmap vstr SW19_1; sets SW_Round 2"
set SW19_1 "set g_gametype 3; say ^8SW Goldrush TE ...LOADING...;       map sw_goldrush_te;    set nextmap vstr SW19_2; sets SW_Round 1"
set SW19_2 "map_restart 0;                                                                     set nextmap vstr SW20_1; sets SW_Round 2"
set SW20_1 "set g_gametype 3; say ^8Beer Run ...LOADING...;             map beerrun_b7a;       set nextmap vstr SW20_2; sets SW_Round 1"
set SW20_2 "map_restart 0;                                                                     set nextmap vstr SW21_1; sets SW_Round 2"
set SW21_1 "set g_gametype 3; say ^8Wurzburg Radar ...LOADING...;       map radar;             set nextmap vstr SW21_2; sets SW_Round 1"
set SW21_2 "map_restart 0;                                                                     set nextmap vstr SW22_1; sets SW_Round 2"
set SW22_1 "set g_gametype 3; say ^8Base 12 ...LOADING...;              map base12_b4;         set nextmap vstr SW22_2; sets SW_Round 1"
set SW22_2 "map_restart 0;                                                                     set nextmap vstr SW23_1; sets SW_Round 2"
set SW23_1 "set g_gametype 3; say ^8Adlernest ...LOADING...;            map adlernest;         set nextmap vstr SW23_2; sets SW_Round 1"
set SW23_2 "map_restart 0;                                                                     set nextmap vstr SW24_1; sets SW_Round 2"
set SW24_1 "set g_gametype 3; say ^8Seawall Battery ...LOADING...;      map battery;           set nextmap vstr SW24_2; sets SW_Round 1"
set SW24_2 "map_restart 0;                                                                     set nextmap vstr SW25_1; sets SW_Round 2"
set SW25_1 "set g_gametype 3; say ^8Reactor ...LOADING...;              map reactor_final;     set nextmap vstr SW25_2; sets SW_Round 1"
set SW25_2 "map_restart 0;                                                                     set nextmap vstr SW26_1; sets SW_Round 2"
set SW26_1 "set g_gametype 3; say ^8Braundorf ...LOADING...;            map braundorf_b4;      set nextmap vstr SW26_2; sets SW_Round 1"
set SW26_2 "map_restart 0;                                                                     set nextmap vstr SW27_1; sets SW_Round 2"
set SW27_1 "set g_gametype 3; say ^8ET Beach Invasion ...LOADING...;    map et_beach;          set nextmap vstr SW27_2; sets SW_Round 1"
set SW27_2 "map_restart 0;                                                                     set nextmap vstr SW28_1; sets SW_Round 2"
set SW28_1 "set g_gametype 3; say ^8Crevasse ...LOADING...;             map crevasse_b1;       set nextmap vstr SW28_2; sets SW_Round 1"
set SW28_2 "map_restart 0;                                                                     set nextmap vstr SW29_1; sets SW_Round 2"
set SW29_1 "set g_gametype 3; say ^8El Kef (GA_test5) ...LOADING...;    map ga_test_el_kef;   set nextmap vstr SW29_2; sets SW_Round 1"
set SW29_2 "map_restart 0;                                                                     set nextmap vstr SW01_1; sets SW_Round 2"
vstr SW28_1
User avatar
Father
Posts: 107
Joined: Sat Jul 22, 2006 1:30 pm
Location: Czech Republic
Contact:

Post by Father »

You can use BANNERs too:

For example:

maplist:

battery
goldrush
radar
...
...

in server config:

Code: Select all

b_bannerlocation "0" // 0 - location: player chat area (but i think that central print area is better - 2)
b_banners 1 // change this if you use some other banners
b_bannertime 42000 // duration between banners in seconds
in autoexec_battery.cfg:

Code: Select all

set goldrush1 "set goldrush1 vstr goldrush2" 
set goldrush2 "set b_banner1 Next map is: Gold Rush"
vstr goldrush1 // the second round will be printed banner with next map
in autoexec_goldrush.cfg:

Code: Select all

set radar1 "set radar1 vstr radar2" 
set radar2 "set b_banner1 Next map is: Würtzburg Radars"
vstr radar1 // the second round will be printed banner with next map
...

...
If you don't do it, someone else will.
User avatar
Lagger
Posts: 316
Joined: Mon Sep 29, 2003 8:30 am

Post by Lagger »

Father wrote:in autoexec_battery.cfg:

Code: Select all

set goldrush1 "set goldrush1 vstr goldrush2" 
set goldrush2 "set b_banner1 Next map is: Gold Rush"
vstr goldrush1 // the second round will be printed banner with next map
Why? Doesn't this do exactly the same thing?:

Code: Select all

set goldrush1 "set b_banner1 Next map is: Gold Rush"
vstr goldrush1 // the second round will be printed banner with next map
This might even be enough, if it's not called from somewhere else:

Code: Select all

set b_banner1 "Next map is: Gold Rush"
K1M1
Posts: 51
Joined: Sun Jul 16, 2006 6:22 am
Contact:

Post by K1M1 »

Now im a litlle confused, 1st of all tnx for sucha fast reply, sry was away, but can u help me with my sw config ? what to edit that it will show banner in chat area whats next map after start of each 2nd round, i thought its just same lua script as with enemy hp left...guess i was wrong :blush:

Code: Select all

set d1 "set g_gametype 3 ; map braundorf_b4 ; set nextmap vstr d2 ; sets StopwatchRound 1;"
set d2 "map_restart 0; set nextmap vstr d3 ; sets StopwatchRound 2;"
set d3 "set g_gametype 3 ; map supply ; set nextmap vstr d4 ; sets StopwatchRound 1;"
set d4 "map_restart 0; set nextmap vstr d5 ; sets StopwatchRound 2;"
set d5 "set g_gametype 3 ; map sw_goldrush_te ; set nextmap vstr d6 ; sets StopwatchRound 1;"
set d6 "map_restart 0; set nextmap vstr d7 ; sets StopwatchRound 2;"
set d7 "set g_gametype 3 ; map Frostbite ; set nextmap vstr d8 ; sets StopwatchRound 1;"
set d8 "map_restart 0; set nextmap vstr d9 ; sets StopwatchRound 2;"
set d9 "set g_gametype 3 ; map adlernest ; set nextmap vstr d10 ; sets StopwatchRound 1;"
set d10 "map_restart 0; set nextmap vstr d1 ; sets StopwatchRound 2;"
vstr d1
and yes i use other banners...

Code: Select all

//Banners
set b_banners "3"
set b_bannerlocation "4"
set b_bannertime "20"
set b_banner1 "^0|^cE^7nergie ^cC^7lan^0| ^cW^7@rz^c0^7ne"
set b_banner2 "^0|^cgl ^7& ^chf^0|"
lookin for uper post, but hmmm...

tnx alot
User avatar
Father
Posts: 107
Joined: Sat Jul 22, 2006 1:30 pm
Location: Czech Republic
Contact:

Post by Father »

Lagger wrote: Why? Doesn't this do exactly the same thing?
No, i makes different things..

The firts..

Code: Select all

set goldrush1 "set goldrush1 vstr goldrush2" 
set goldrush2 "set b_banner1 Next map is: Gold Rush"
vstr goldrush1 // the second round will be printed banner with next map
..when the firts round (Stopwatch) is loaded so string of veriable goldrush2 is set to variable goldrush1; when the second round is loaded so b_banner1 value is set to "Next map is: Gold Rush"

The second..

Code: Select all

set goldrush1 "set b_banner1 Next map is: Gold Rush"
vstr goldrush1 // the second round will be printed banner with next map
..when the first round is loaded so b_banner1 value is set to "Next map is: Gold Rush"; when the second round is loaded so b_banner1 value is set to "Next map is: Gold Rush" too
If you don't do it, someone else will.
User avatar
Lagger
Posts: 316
Joined: Mon Sep 29, 2003 8:30 am

Post by Lagger »

Father wrote:

Code: Select all

set goldrush1 "set goldrush1 vstr goldrush2" 
set goldrush2 "set b_banner1 Next map is: Gold Rush"
vstr goldrush1 // the second round will be printed banner with next map
..when the first round (Stopwatch) is loaded so string of variable goldrush2 is set to variable goldrush1; when the second round is loaded so b_banner1 value is set to "Next map is: Gold Rush"
Well, ok then. It doesn't do anything at all. Do you have a 'vstr goldrush1' somewhere else?
User avatar
Father
Posts: 107
Joined: Sat Jul 22, 2006 1:30 pm
Location: Czech Republic
Contact:

Post by Father »

Lagger wrote:
Father wrote:

Code: Select all

set goldrush1 "set goldrush1 vstr goldrush2" 
set goldrush2 "set b_banner1 Next map is: Gold Rush"
vstr goldrush1 // the second round will be printed banner with next map
..when the first round (Stopwatch) is loaded so string of variable goldrush2 is set to variable goldrush1; when the second round is loaded so b_banner1 value is set to "Next map is: Gold Rush"
Well, ok then. It doesn't do anything at all. Do you have a 'vstr goldrush1' somewhere else?
It is no needed to have it somewhere else.. only in autoexec it should be.
If you don't do it, someone else will.
User avatar
Lagger
Posts: 316
Joined: Mon Sep 29, 2003 8:30 am

Post by Lagger »

Father wrote:It is no needed to have it somewhere else.. only in autoexec it should be.
Ok lets try to look at what happens:

Code: Select all

banner value is set when value of goldrush1 is "vstr goldrush2" and line is "vstr goldrush1"

legend: line -> value of goldrush1
1: set goldrush1 "set goldrush1 vstr goldrush2"
2: set goldrush2 "set b_banner1 Next map is: Gold Rush"
3: vstr goldrush1 

first run:

1 -> "set goldrush1 vstr goldrush2"
3 -> "vstr goldrush2"

hokay, now second run:

1 -> "set goldrush1 vstr goldrush2"
3 -> "vstr goldrush2"
Try it yourself in a console, it doesn't work.
User avatar
Father
Posts: 107
Joined: Sat Jul 22, 2006 1:30 pm
Location: Czech Republic
Contact:

Post by Father »

Lagger wrote: Try it yourself in a console, it doesn't work.
Ok, ok.. my bad.. :oops: :oops: i thought that autoexec<map>.cfg is executed after loading second round.

This is work (but he wanted do that only in second round :( ):

in autoexec_battery.cfg:

Code: Select all

set b_banner1 "Next map is&#58; Gold Rush"
in autoexec_goldrush.cfg:

Code: Select all

set b_banner1 "Next map is&#58; Würtzburg Radars"
...

...
If you don't do it, someone else will.
K1M1
Posts: 51
Joined: Sun Jul 16, 2006 6:22 am
Contact:

Post by K1M1 »

But then when the 2nd round start of each map, it will be like this ? found this one ICP server...

Image

i really dont know what to add in my campaign lines, how i can put say in and so on, pliz if anyone can write and example from my campaign line...

Code: Select all

set d1 "set g_gametype 3 ; map braundorf_b4 ; set nextmap vstr d2 ; sets StopwatchRound 1;"
set d2 "map_restart 0; set nextmap vstr d3 ; sets StopwatchRound 2;"
set d3 "set g_gametype 3 ; map supply ; set nextmap vstr d4 ; sets StopwatchRound 1;"
set d4 "map_restart 0; set nextmap vstr d5 ; sets StopwatchRound 2;"
set d5 "set g_gametype 3 ; map sw_goldrush_te ; set nextmap vstr d6 ; sets StopwatchRound 1;"
set d6 "map_restart 0; set nextmap vstr d7 ; sets StopwatchRound 2;"
set d7 "set g_gametype 3 ; map Frostbite ; set nextmap vstr d8 ; sets StopwatchRound 1;"
set d8 "map_restart 0; set nextmap vstr d9 ; sets StopwatchRound 2;"
set d9 "set g_gametype 3 ; map adlernest ; set nextmap vstr d10 ; sets StopwatchRound 1;"
set d10 "map_restart 0; set nextmap vstr d1 ; sets StopwatchRound 2;"
vstr d1
where should i add say line now, like for example - d1 "set g_gametype 3 ; map braundorf_b4 ; set nextmap vstr d2 ; sets StopwatchRound 1;"
set d2 "map_restart 0; say nextmap is.... ? ; sets StopwatchRound 2;"

and yes i use other banners...

Code: Select all

//Banners
set b_banners "3"
set b_bannerlocation "4"
set b_bannertime "20"
set b_banner1 "^0|^cE^7nergie ^cC^7lan^0| ^cW^7@rz^c0^7ne"
set b_banner2 "^0|^cgl ^7& ^chf^0|"


--- and what about this banners, then also this banners will show in chat area, i saw same as on this server, also this 2 banners that i have are shows on top of screem, and after start of 2nd round, you see that text in chat area / console : Teams have been shuffled. Next map is Radar. ???

tnx for every post you made, but i really dont know what to do now :blush:


bb
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

u can also use a LUA module
K1M1
Posts: 51
Joined: Sun Jul 16, 2006 6:22 am
Contact:

Post by K1M1 »

Yes thats what i meant probably, allthou im noobish at this stuff, but it will probably be better with lua since i use normal banners also at top area, sorry if my questions was kinda weird and all, but thats what i meant...

to good to be true ;) do you have any example maybe of that lua file, how it should be visible, and what line should i add in my config, would me very much obliged, tnx again for all ur help...

bb
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

lua is completely overkill for this :?
send lawyers, guns and money
User avatar
gotenks
Posts: 3465
Joined: Fri Nov 15, 2002 4:12 pm
Location: out of my mind
Contact:

Post by gotenks »

unless you want to personalize the message ;)
My Website
Image
After a night of binge drinking:
=FF=im2good4u wrote:WTF wanst i on top ?
Post Reply