random elimination/deathmatch

Ask questions and share info about GunGame 5

random elimination/deathmatch

Postby gasbob » Fri Nov 14, 2008 9:12 am

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
gasbob

Private
Private
User avatar
 
Posts: 10
Joined: Fri Nov 14, 2008 9:00 am

Re: random elimination/deathmatch

Postby XE_ManUp » Fri Nov 14, 2008 9:49 am

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
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Re: random elimination/deathmatch

Postby RideGuy » Fri Nov 14, 2008 5:40 pm

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
RideGuy

Site Admin
Site Admin
User avatar
 
Posts: 201
Joined: Sat Sep 06, 2008 11:30 am

Re: random elimination/deathmatch

Postby gasbob » Fri Nov 14, 2008 10:54 pm

thanks it's works fine ;)
gasbob

Private
Private
User avatar
 
Posts: 10
Joined: Fri Nov 14, 2008 9:00 am

Postby Predator » Fri Nov 14, 2008 11:35 pm

You can run ES if statements in a config file? :o

~Edd
Predator

Beta Tester
Beta Tester
 
Posts: 59
Joined: Sun Sep 07, 2008 11:13 am
Location: My Computer
Steam Friends Name: predator_teddybear
Xfire Name: gppredator

Postby HitThePipe » Sat Nov 15, 2008 12:01 am

You didn't know that Edd? :shock:

-Hit
HitThePipe

GunGame5 Developer
GunGame5 Developer
 
Posts: 6
Joined: Sun Sep 07, 2008 11:42 pm
Xfire Name: hitthepipe

Postby Don » Sat Nov 15, 2008 2:02 am

Pretty much anything you can do at the console you can also do in a cfg file. That's what ES started out as.
Don

Site Admin
Site Admin
User avatar
 
Posts: 529
Joined: Fri Sep 05, 2008 3:05 am
Location: The Valley
Steam Friends Name: Don
Xfire Name: donlafferty

Re:

Postby Saul » Mon Nov 17, 2008 3:49 pm

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...
Saul

GunGame5 Developer
GunGame5 Developer
 
Posts: 147
Joined: Sun Sep 07, 2008 3:29 pm
Xfire Name: saul0

Postby Predator » Mon Nov 17, 2008 5:34 pm

I never thought if you can do it in a config it can be done in console :P
Predator

Beta Tester
Beta Tester
 
Posts: 59
Joined: Sun Sep 07, 2008 11:13 am
Location: My Computer
Steam Friends Name: predator_teddybear
Xfire Name: gppredator

Postby Don » Mon Nov 17, 2008 5:47 pm

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.
Don

Site Admin
Site Admin
User avatar
 
Posts: 529
Joined: Fri Sep 05, 2008 3:05 am
Location: The Valley
Steam Friends Name: Don
Xfire Name: donlafferty



Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron