Page 1 of 1

random elimination/deathmatch

PostPosted: Fri Nov 14, 2008 9:12 am
by gasbob
Hello,

It's possible to change the addons at a map change ? :

first map = addon elimination
second map = addon deathmatch
third map = addon elimination...

BR

Re: random elimination/deathmatch

PostPosted: Fri Nov 14, 2008 9:49 am
by XE_ManUp
gasbob wrote:Hello,

It's possible to change the addons at a map change ? :

first map = addon elimination
second map = addon deathmatch
third map = addon elimination...

BR

This would be a good example for where a custom addon would be handy. It is certainly possible. All that would have to be done is have a script toggle a variable between 1/0 or True/False and issue the server commands:

gg_deathmatch 0
gg_elimination 1


and...

gg_deathmatch 1
gg_elimination 0

Re: random elimination/deathmatch

PostPosted: Fri Nov 14, 2008 5:40 pm
by RideGuy
An alternative...

Set both elimination 1 and deathmatch 0 in your gg_default_addons.cfg. Add the following line in your server.cfg:
if (server_var(gg_deathmatch) equalto 0) then gg_deathmatch 1; else gg_deathmatch 0

This will toggle deathmatch on/off every map change. When ever deathmatch is turned off, elimination will be turned back on automatically.


RideGuy

Re: random elimination/deathmatch

PostPosted: Fri Nov 14, 2008 10:54 pm
by gasbob
thanks it's works fine ;)

PostPosted: Fri Nov 14, 2008 11:35 pm
by Predator
You can run ES if statements in a config file? :o

~Edd

PostPosted: Sat Nov 15, 2008 12:01 am
by HitThePipe
You didn't know that Edd? :shock:

-Hit

PostPosted: Sat Nov 15, 2008 2:02 am
by Don
Pretty much anything you can do at the console you can also do in a cfg file. That's what ES started out as.

Re:

PostPosted: Mon Nov 17, 2008 3:49 pm
by Saul
Don wrote:Pretty much anything you can do at the console you can also do in a cfg file. That's what ES started out as.


/me has flashbacks of script packs...

PostPosted: Mon Nov 17, 2008 5:34 pm
by Predator
I never thought if you can do it in a config it can be done in console :P

PostPosted: Mon Nov 17, 2008 5:47 pm
by Don
Script packs were the second iteration of ES. Before that you used only the cfg files in 1 folder(I believe). When I started using ES the script packs were the way to go.