Slowing the player (Movement sway)

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
alysiumX
Posts: 201
Joined: Sat Nov 20, 2004 1:13 pm

Slowing the player (Movement sway)

Post by alysiumX »

So I want to slow the player down so I did it though setplayerproperty.

However, the movement sway doesn't change with the speed change this way. Is there any way to slow the player speed down without looking like hes walking with a pogo stick?
User avatar
Enjay
 
 
Posts: 26993
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Slowing the player (Movement sway)

Post by Enjay »

You may find something useful here: [wiki]Weapon_properties[/wiki]

Look for Weapon.BobRangeX, Weapon.BobRangeY, Weapon.BobSpeed and Weapon.BobStyle.
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: Slowing the player (Movement sway)

Post by Ed the Bat »

Sadly, I don't believe the viewbob of the player's camera can be affected, which I would personally like to see as a feature. Unless there's something I'm unaware of...
User avatar
MeatyD
Posts: 61
Joined: Mon Mar 11, 2013 12:01 pm
Location: United States

Re: Slowing the player (Movement sway)

Post by MeatyD »

SetActorVelocity. Set the last argument to true, then you might get what you're looking for.
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Slowing the player (Movement sway)

Post by tashita »

Hi, I still don't get it.
Im using SetActorProperty with A_PROP speed and a slower value than 1, like they say on the wiki. The player is slower, but the bob movement is absolutely ridiculous so the whole thing is useless.

I don't understand how the function that MeatyD suggest works. I don't understand the example.
How would you go about this? Can anyone put a example of a script that makes the player go at half full speed, like what would you get with SetActorProperty(0, APROP_Speed, 0.5); but with the fixed bob camera and weapon sway?
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Slowing the player (Movement sway)

Post by Ichor »

Is there a way to use negative velocities? For instance, if you press the button to go forward, it goes backward instead, or if you press left, it goes right?


Woah, it looks like you can.
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Slowing the player (Movement sway)

Post by tashita »

Can anyone help with this? I need to slow down the player without having the ridiculous bob movements...
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Slowing the player (Movement sway)

Post by tashita »

Is there really no way to get around this? I would like to open a request thread and i want to be sure that this isnt already fixeable.
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: Slowing the player (Movement sway)

Post by Mikk- »

If nobody has come up with a way then I'm sure there isn't any solution to your problems.

If you open a request, bear it in mind that your feature [if added] won't even make it into zandronum for a long, long time.
Olroda
Posts: 46
Joined: Mon Feb 04, 2013 3:33 pm

Re: Slowing the player (Movement sway)

Post by Olroda »

Yes, there is a way handle this issue. You do it by editing your .ini file. Set "movebob" to zero or a very low value. You could also make a .txt file, call it autoexec.cfg, type "movebob=0" (without the "") in it, and place it in your ZDooM/GZDooM folder.
User avatar
Nash
 
 
Posts: 17492
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Slowing the player (Movement sway)

Post by Nash »

If you want to do it right now with Zandronum, I guess you can use ConsoleCommand to alter the movebob CVar. However do note that mods altering user CVars is generally frowned upon... and I do vaguely recall Torr Samaho talking about deprecating ConsoleCommand anyway...
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Slowing the player (Movement sway)

Post by tashita »

I want to make the player go through different speeds on the level, so fixing a cvar value will not work. I want the wad to be playable in online coop so im not sure about altering cvars on the fly.
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Slowing the player (Movement sway)

Post by tashita »

bump
User avatar
Xeotroid
Posts: 446
Joined: Sat Jun 23, 2012 7:44 am
Graphics Processor: nVidia with Vulkan support
Location: Czech Rep.

Re: Slowing the player (Movement sway)

Post by Xeotroid »

Use new 2.7.0's feature - SetCVar function. It can change CVars, so I presume that it can change movebob CVar...
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Re: Slowing the player (Movement sway)

Post by TheDarkArchon »

Xeotroid wrote:Use new 2.7.0's feature - SetCVar function. It can change CVars, so I presume that it can change movebob CVar...

BZZZT!

Sorry, contestant number one, but the SetCVar function can only manipulate Console Variables set up by CVARINFO. See the changelog for ZDoom r4283.
Locked

Return to “Editing (Archive)”