Force turbo on a server?
-
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?
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?
Maybe setting it as a console command in acs on a wad?
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Force turbo on a server?
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.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?
-
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?
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. :[Torr Samaho wrote: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.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?
RE: Force turbo on a server?
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.Ten wrote: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. :[Torr Samaho wrote: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.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?
-
Ijon Tichy
- Frequent Poster Miles card holder
- Posts: 901
- Joined: Mon Jun 04, 2012 5:07 am
RE: Force turbo on a server?
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);
}
}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?
I would be much obliged. :3one_Two wrote: I could make a wad for you tomorow if you haven't sorted it by then.
RE: Force turbo on a server?
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.Ten wrote:I would be much obliged. :3one_Two wrote: I could make a wad for you tomorow if you haven't sorted it by then.
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?
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.Llewellyn wrote: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.Ten wrote:I would be much obliged. :3one_Two wrote: I could make a wad for you tomorow if you haven't sorted it by then.
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?
I don't know why it does what it does but I can certainly make a workaround...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'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.