Coded Map Changes -1 reply

Please wait...

Sato

I just changed my sig 0.0

50 XP

17th December 2008

0 Uploads

389 Posts

0 Threads

#1 8 years ago

Well My CW mod is switching to MP, so my friend had a question;

Ill just post it this way

Spoiler: Show
»]×GC×[«ÂñΧKÿקÇÇ (fireheart12345): Because I mean like »]×GC×[«ÂñΧKÿקÇÇ (fireheart12345): If we could put in the server config »]×GC×[«ÂñΧKÿקÇÇ (fireheart12345): To rotate maps every 450000 or so minutes »]×GC×[«ÂñΧKÿקÇÇ (fireheart12345): Or whatever adds up to two or three days »]×GC×[«ÂñΧKÿקÇÇ (fireheart12345): To the map coru_Attack »]×GC×[«ÂñΧKÿקÇÇ (fireheart12345): Like »]×GC×[«ÂñΧKÿקÇÇ (fireheart12345): Have one coru map »]×GC×[«ÂñΧKÿקÇÇ (fireheart12345): And the one with CIS attack be at like night time

How can that be coded? So that in your server.cfg, you can determin the map rotation and TIME between maps. Like a Coruscant at day between coruscant at night would take 24 hours, but like a Mygeeto at day and a Mygeeto at night takeing only 12w hours?




Raz0r

Worse than most terrible

50 XP

27th September 2006

0 Uploads

6,737 Posts

0 Threads

#2 8 years ago

You could read in a file server-side formatted like so: "mapname" "time-stamp" "mapname" "time-stamp" "mapname" "time-stamp"

Assign that to a new var in the level_locals_t struct, and in G_RunFrame check 'if ( level.maxMapTime < level.time )', then add "nextmap" or whatever to the server command buffer.

Sounds great in theory, but the file IO and whatnot can be tedious. Best learn your way around the SDK first before you go diving in and changing everything =p




Sato

I just changed my sig 0.0

50 XP

17th December 2008

0 Uploads

389 Posts

0 Threads

#3 8 years ago

Heh This wasn't for me, it was for a friend, but ok TY