Welcome, Guest. Please login or register.
Did you miss your activation email?

September 23, 2017, 12:39:42 AM
Show unread posts since last visit.

Home | Help | Search | Login | Register

Pages: [1]
Print
Author Topic: Changing server settings based on incoming map  (Read 609 times)
Ace
Autococker

Posts: 654

« on: June 29, 2017, 12:56:13 PM »

This question is with regards to the sv_airaccelerate cvar. Let's say map1, map2, and map3 use sv_airaccelerate "0", but we want map4 to use sv_airaccelerate "1".

My question is, is there a way to check the incoming map, change the cvar, and proceed to the next map without forcing a server restart?
Logged
mRokita
Autococker

Posts: 594

« Reply #1 on: July 01, 2017, 03:35:59 AM »

It's not possible without editing the game source I think.
But, you can set the next map using the same script that sets airaccelerate.
Logged
Ace
Autococker

Posts: 654

« Reply #2 on: July 01, 2017, 09:58:46 AM »

I do have access to the jump mod's source, ill look into changing it at that level.
Logged
mRokita
Autococker

Posts: 594

« Reply #3 on: July 01, 2017, 10:07:19 AM »

okay, i think that a writing a script using dplib would be an easier (but not 'cleaner') solution though.
Logged
Ace
Autococker

Posts: 654

« Reply #4 on: July 01, 2017, 10:38:06 AM »

I was looking through some of the library, is there a function in particular that I could use to do it? Perhaps just link it with the `next map` thing?
Logged
mRokita
Autococker

Posts: 594

« Reply #5 on: July 01, 2017, 11:00:02 AM »

The library doesn't support the GameEnd event yet, but it will soon (1-2 days). The easiest trick would be to wait for Game end and set the cvar then change the map using sv newmap.
Logged
mRokita
Autococker

Posts: 594

« Reply #6 on: July 03, 2017, 01:53:46 AM »

Tell me what you want the script to do, I can propably write it :-)
Logged
Pages: [1]
Print
Show unread posts since last visit.
Jump to:  


Powered by SMF 1.1.20 | SMF © 2013, Simple Machines