Slowing the player (Movement sway)
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.
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.
Slowing the player (Movement sway)
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?
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?
Re: Slowing the player (Movement sway)
You may find something useful here: [wiki]Weapon_properties[/wiki]
Look for Weapon.BobRangeX, Weapon.BobRangeY, Weapon.BobSpeed and Weapon.BobStyle.
Look for Weapon.BobRangeX, Weapon.BobRangeY, Weapon.BobSpeed and Weapon.BobStyle.
- 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)
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...
Re: Slowing the player (Movement sway)
SetActorVelocity. Set the last argument to true, then you might get what you're looking for.
Re: Slowing the player (Movement sway)
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?
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?
Re: Slowing the player (Movement sway)
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.
Woah, it looks like you can.
Re: Slowing the player (Movement sway)
Can anyone help with this? I need to slow down the player without having the ridiculous bob movements...
Re: Slowing the player (Movement sway)
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.
Re: Slowing the player (Movement sway)
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.
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.
Re: Slowing the player (Movement sway)
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.
Re: Slowing the player (Movement sway)
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...
Re: Slowing the player (Movement sway)
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.
- 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)
Use new 2.7.0's feature - SetCVar function. It can change CVars, so I presume that it can change movebob CVar...
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
Re: Slowing the player (Movement sway)
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.