Page 1 of 1
Force turbo on a server?
Posted: Wed Jan 16, 2013 9:17 am
by Tenchu
A friend and I are trying to host a duel server with turbo 255 forced on it. However I'm unable to find out how to even turn on turbo in the first place let alone force it on a server. Is this even possible with no extra mods/scripts, or do you have to have a custom mod on the server to achieve this?
RE: Force turbo on a server?
Posted: Wed Jan 16, 2013 10:34 am
by one_Two
Maybe setting it as a console command in acs on a wad?
RE: Force turbo on a server?
Posted: Wed Jan 16, 2013 8:43 pm
by Torr Samaho
Ten wrote:
Is this even possible with no extra mods/scripts, or do you have to have a custom mod on the server to achieve this?
I'm not aware of any built-in functionality to toggle this on the server, so likely you'll have to make a mod for this.
RE: Force turbo on a server?
Posted: Wed Jan 16, 2013 11:16 pm
by Tenchu
Torr Samaho wrote:
Ten wrote:
Is this even possible with no extra mods/scripts, or do you have to have a custom mod on the server to achieve this?
I'm not aware of any built-in functionality to toggle this on the server, so likely you'll have to make a mod for this.
That's what I was afraid of. Does anyone know how simple of a process it would be to whip up a simple wad that did this? All it needs to do is force turbo 255 on all players in the server. Unfortunately I never took up modding/coding so I have absolutely no idea how to do it. :[
RE: Force turbo on a server?
Posted: Wed Jan 16, 2013 11:20 pm
by one_Two
Ten wrote:
Torr Samaho wrote:
Ten wrote:
Is this even possible with no extra mods/scripts, or do you have to have a custom mod on the server to achieve this?
I'm not aware of any built-in functionality to toggle this on the server, so likely you'll have to make a mod for this.
That's what I was afraid of. Does anyone know how simple of a process it would be to whip up a simple wad that did this? All it needs to do is force turbo 255 on all players in the server. Unfortunately I never took up modding/coding so I have absolutely no idea how to do it. :[
Maybe it'd be easier to push up the doomplayer speed in decorate, as turbo is an original doom feature I believe. I could make a wad for you tomorow if you haven't sorted it by then.
RE: Force turbo on a server?
Posted: Thu Jan 17, 2013 12:24 am
by Ijon Tichy
Code: Select all
#library "varspeed"
script 652 ENTER
{
int oldspeed, newspeed;
while (1)
{
oldspeed = newspeed;
newspeed = (GetCVar("varspeed_mult") << 16) / 100; // I so wanted to use itof here
if (newspeed == 0) { newspeed = 1.0; }
if (oldspeed != newspeed)
{
SetActorProperty(0, APROP_Speed, newspeed);
}
Delay(1);
}
}
try something like that
varspeed_mult scales exactly the same as turbo does
might need to have that run on respawn too, and possibly add some locking so that multiple instances of the script don't run on one player at the same time
RE: Force turbo on a server?
Posted: Mon Jan 21, 2013 4:47 am
by Tenchu
one_Two wrote:
I could make a wad for you tomorow if you haven't sorted it by then.
I would be much obliged. :3
RE: Force turbo on a server?
Posted: Mon Jan 21, 2013 6:02 am
by Llewellyn
Ten wrote:
one_Two wrote:
I could make a wad for you tomorow if you haven't sorted it by then.
I would be much obliged. :3
I saw this thread and was like "It's been four days and no one has made a wad already? Man people are lazy." So then I was like
*five minutes later* but I'm lazy so I CBA to figure out why CVARS won't save decimals it just saves whole numbers... so yea. So basically, enter a whole number between 1 and... well like a lot. Zero should make no one move and a negative number should... hell I don't even know. Oh yea I forgot the important part, the cvar is "SV_PLAYERSPEED" and you don't have to set it or anything and it will save to your config... if your server isn't hosted on some service I guess. Also the link is on Dropbox so don't expect it to work in 2017.
EDIT: lol doom2.wad with sv_playerspeed 9999
And just for the record IJON no you don't have to worry about players dieing or respawning because the ENTER script only terminates when you spectate or disconnect by default.
RE: Force turbo on a server?
Posted: Mon Jan 21, 2013 6:45 am
by Tenchu
Llewellyn wrote:
Ten wrote:
one_Two wrote:
I could make a wad for you tomorow if you haven't sorted it by then.
I would be much obliged. :3
I saw this thread and was like "It's been four days and no one has made a wad already? Man people are lazy." So then I was like
*five minutes later* but I'm lazy so I CBA to figure out why CVARS won't save decimals it just saves whole numbers... so yea. So basically, enter a whole number between 1 and... well like a lot. Zero should make no one move and a negative number should... hell I don't even know. Oh yea I forgot the important part, the cvar is "SV_PLAYERSPEED" and you don't have to set it or anything and it will save to your config... if your server isn't hosted on some service I guess. Also the link is on Dropbox so don't expect it to work in 2017.
EDIT: lol doom2.wad with sv_playerspeed 9999
And just for the record IJON no you don't have to worry about players dieing or respawning because the ENTER script only terminates when you spectate or disconnect by default.
Thanks! Much appreciated. If you're ever bored one night and fix it so that it supports decimals somehow (because as it is you can really only do on or off, sv_playerspeed 3 or higher is just too fast), please post again and let me know.

RE: Force turbo on a server?
Posted: Mon Jan 21, 2013 7:04 am
by Llewellyn
Ten wrote:
Thanks! Much appreciated. If you're ever bored one night and fix it so that it supports decimals somehow (because as it is you can really only do on or off, sv_playerspeed 3 or higher is just too fast), please post again and let me know.
I don't know why it does what it does but I can certainly make a workaround...
I've updated the dropbox link (didn't change the file name) now all you have to do is pretend it has a decimal place I guess, just do like 100 for 1 and 150 for 1.5, etc.
Bah, still not sure why 1.0 does 65536 and so does 0.9