Force turbo on a server?

General discussion of the port and Doom-related chat.
Post Reply
Tenchu
Retired Staff / Community Team Member
Posts: 331
Joined: Mon Jun 04, 2012 2:29 am
Location: Nocru illa dan
Clan: Lost Faction
Clan Tag: LF

Force turbo on a server?

#1

Post by Tenchu » Wed Jan 16, 2013 9:17 am

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?

one_Two
Addicted to Zandronum
Posts: 1753
Joined: Thu Jun 07, 2012 4:47 pm

RE: Force turbo on a server?

#2

Post by one_Two » Wed Jan 16, 2013 10:34 am

Maybe setting it as a console command in acs on a wad?

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Force turbo on a server?

#3

Post by Torr Samaho » Wed Jan 16, 2013 8:43 pm

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.

Tenchu
Retired Staff / Community Team Member
Posts: 331
Joined: Mon Jun 04, 2012 2:29 am
Location: Nocru illa dan
Clan: Lost Faction
Clan Tag: LF

RE: Force turbo on a server?

#4

Post by Tenchu » Wed Jan 16, 2013 11:16 pm

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. :[

one_Two
Addicted to Zandronum
Posts: 1753
Joined: Thu Jun 07, 2012 4:47 pm

RE: Force turbo on a server?

#5

Post by one_Two » Wed Jan 16, 2013 11:20 pm

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.

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: Force turbo on a server?

#6

Post by Ijon Tichy » Thu Jan 17, 2013 12:24 am

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
Last edited by Ijon Tichy on Thu Jan 17, 2013 12:26 am, edited 1 time in total.

Tenchu
Retired Staff / Community Team Member
Posts: 331
Joined: Mon Jun 04, 2012 2:29 am
Location: Nocru illa dan
Clan: Lost Faction
Clan Tag: LF

RE: Force turbo on a server?

#7

Post by Tenchu » Mon Jan 21, 2013 4:47 am

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

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Force turbo on a server?

#8

Post by Llewellyn » Mon Jan 21, 2013 6:02 am

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.
Last edited by Llewellyn on Mon Jan 21, 2013 6:07 am, edited 1 time in total.

Tenchu
Retired Staff / Community Team Member
Posts: 331
Joined: Mon Jun 04, 2012 2:29 am
Location: Nocru illa dan
Clan: Lost Faction
Clan Tag: LF

RE: Force turbo on a server?

#9

Post by Tenchu » Mon Jan 21, 2013 6:45 am

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. :biggrin:

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Force turbo on a server?

#10

Post by Llewellyn » Mon Jan 21, 2013 7:04 am

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. :biggrin:
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
Last edited by Llewellyn on Mon Jan 21, 2013 7:08 am, edited 1 time in total.

Post Reply