All you scripters out there

Locked
Denz
Posts: 2587
Joined: Thu Aug 17, 2000 7:00 am

All you scripters out there

Post by Denz »

Here is the current maproatation script that is on the server.

Code: Select all

namespace mapcycle {
void cycle() {
string si_map = sys.getcvar("si_map");
float replay_count = sys.getPersistantFloat("replay_count");
if (replay_count <= 0) {
replay_count = 1;
}
replay_count--;
if ( replay_count <= 0 ) {
if ( si_map == "mp/q4dm8") {
            sys.setcvar( "si_gameType", "DM" );
            sys.setcvar( "si_map", "mp/q4dm8");
        }
}
sys.setPersistantArg( "replay_count", replay_count );
}
}
Fix it so the maps rotate, as it is right now it stays on the same map forever.

Thanks
User avatar
DooMer
Posts: 3068
Joined: Thu Dec 23, 1999 8:00 am

Post by DooMer »

just let people vote the maps they want.
Denz
Posts: 2587
Joined: Thu Aug 17, 2000 7:00 am

Post by Denz »

DooMer wrote:just let people vote the maps they want.
okies, nevermind then. Off to figure out how to make the server allow downloads.
PieceMaker
Posts: 899
Joined: Tue Jan 25, 2005 4:43 pm

Post by PieceMaker »

I see seta net_clientDownload "1" //pk4 download policy 0=none 1=ask 2=always
in riddla's little Dedicated Server Config + Website Server Query

Is that set to 2 in the cfg?

I've been looking for some commands and such. :D
Oeloe
Posts: 1529
Joined: Fri Mar 19, 2004 8:00 am

Post by Oeloe »

PieceMaker wrote:I see seta net_clientDownload "1" //pk4 download policy 0=none 1=ask 2=always
in riddla's little Dedicated Server Config + Website Server Query

Is that set to 2 in the cfg?

I've been looking for some commands and such. :D
Ah, nice. So you get a dialog now when you set it to 1. But is this a server command or a client command? (You had sv_allowdownload and cl_allowdownload in Q3.)
Denz
Posts: 2587
Joined: Thu Aug 17, 2000 7:00 am

Post by Denz »

It's set to one in the config, but it don't work and I don't know why.
Still working on it though. :)
PieceMaker
Posts: 899
Joined: Tue Jan 25, 2005 4:43 pm

Post by PieceMaker »

I pretty much figured it was something like that. Grrrr. Q3 alowdownload fun yet again me thinks. Hehehe.

*crap* I have to get back to work. LoL!
Denz
Posts: 2587
Joined: Thu Aug 17, 2000 7:00 am

Post by Denz »

uh oh, don't get in trouble dude.
Locked