Page 1 of 1

[DECORATE] Player movement bob, and other

Posted: Mon Jun 08, 2020 6:35 am
by ZoD
Hi. I need help with DECORATE!
1. How do i change bob value in zandronum while it's possible on gzdoom by "Player.ViewBob <float>" in player properties? (I Tried to change value by console which worked, but it's not an option!)
2. How do i make weapon to keep bobbing when firing, reloading, holding fire button, etc.? (It's possible on GZDoom i saw it on Guncaster mod)
3. Can i run another State upon State? For example, Fire + Flash, but i want something like this: Fire + State1 + State2 (with loop) + State3, these states runs right after "Fire" state. (I think it's possible in GZDoom like the akimbo guns in some mods, but idk about zandronum..)
Thanks.

[DECORATE] Re: Player movement bob, and other

Posted: Wed Jun 10, 2020 9:22 pm
by TDRR
ZoD wrote:
Mon Jun 08, 2020 6:35 am
2. How do i make weapon to keep bobbing when firing, reloading, holding fire button, etc.? (It's possible on GZDoom i saw it on Guncaster mod)
By making all states you want to keep bobbing like this:

Code: Select all

XXXX X 1 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
XXXX X 0 A_FireBullets //this is an example, you don't need firebullets, but every thing that's not A_WeaponReady needs to be 0-tic.
XXXX X 1 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
//etc, etc.
ZoD wrote:
Mon Jun 08, 2020 6:35 am
3. Can i run another State upon State? For example, Fire + Flash, but i want something like this: Fire + State1 + State2 (with loop) + State3, these states runs right after "Fire" state. (I think it's possible in GZDoom like the akimbo guns in some mods, but idk about zandronum..)
You can only run two states at a time on weapons (and one for any other type of actor) in Zandronum. This is done by using A_GunFlash("statename").
ZoD wrote:
Mon Jun 08, 2020 6:35 am
1. How do i change bob value in zandronum while it's possible on gzdoom by "Player.ViewBob <float>" in player properties? (I Tried to change value by console which worked, but it's not an option!)
You can't. You can, however, change it per-weapon. The properties can be seen here: https://zdoom.org/wiki/Classes:Weapon

[DECORATE] Re: Player movement bob, and other

Posted: Thu Jun 11, 2020 11:22 am
by ZoD
Thank you very much