[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: 153
Joined: Thu Jun 28, 2018 9:13 pm
Location: Venezuela

[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
No Gucci, no Prada, no Supreme, but my sadness got an ending, my smile shining like bling-bling, i'm so blessed feeling like a king!

play with my bots or bad stuff will happen to u >:c

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