[DECORATE] Player movement bob, and other

Discuss all aspects related to modding Zandronum here.
Post Reply
ZoD
New User
Posts: 7
Joined: Mon Jun 15, 2015 7:16 pm
Location: Yakutia
Contact:

[DECORATE] Player movement bob, and other

#1

Post by ZoD » Mon Jun 08, 2020 6:35 am

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.

User avatar
TDRR
Forum Regular
Posts: 218
Joined: Thu Jun 28, 2018 9:13 pm
Location: Venezuela
Contact:

[DECORATE] Re: Player movement bob, and other

#2

Post by TDRR » Wed Jun 10, 2020 9:22 pm

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
One thing I have asked from the Lord, that I shall seek: That I may dwell in the house of the Lord all the days of my life, to behold the beauty of the Lord and to meditate in His temple. (Psalm 27:4, NASB)
My Discord tag is @tdrr, and it's my preferred contact method. I also check PMs here from time to time.

ZoD
New User
Posts: 7
Joined: Mon Jun 15, 2015 7:16 pm
Location: Yakutia
Contact:

[DECORATE] Re: Player movement bob, and other

#3

Post by ZoD » Thu Jun 11, 2020 11:22 am

Thank you very much

Post Reply