BOBDEFS - for creating weapon bob animations

Moderator: GZDoom Developers

Post Reply
User avatar
Ænima
Posts: 216
Joined: Thu Jul 08, 2010 10:39 pm

BOBDEFS - for creating weapon bob animations

Post by Ænima »

Let's assume that the standard Doom weapon bob animation works by changing the Ready state's sprite offsets according to a parabolic equation that was hard-coded by Id software.

Something like
y = x^2
(whereas the units are Doom pixels)

Now imagine being able to change that with the addition of a specialized lump, BOBDEFS.

Code: Select all

name= "Doom" // the base
equation= y = x^2
xspeed= 1.0 // scalar of original Doom value
xoffset= 0.0
delay= 0 // makes the weapon sprite "stay behind" when the player looks around

name= "Quake"
equation= x = 0
xspeed= 1.0
xoffset= 0.0
delay= 0

name= "Doom3"
equation= y = 0
xspeed= 2.0
xoffset= 0.0
delay= 2

name= "Lacrosse Stick"
equation= y = x^2
xspeed= 2.5
xoffset= -16
delay= 0
Developers: Would this be difficult?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: BOBDEFS - for creating weapon bob animations

Post by Xaser »

Already in, pretty much. You don't specify a custom equation, but there are several 'styles' to change from and the limits & speed are variable. Bit more info is on the Weapon page on the wiki.
User avatar
Ænima
Posts: 216
Joined: Thu Jul 08, 2010 10:39 pm

Re: BOBDEFS - for creating weapon bob animations

Post by Ænima »

FFFFFFF. How did I miss that! Ah well. That's cool, then. Guess I'll just wait for that to get backported to Zandronum!

Thanks.
User avatar
DOOMERO-21
Posts: 1423
Joined: Wed Jan 02, 2008 10:02 pm
Location: Chile

Re: BOBDEFS - for creating weapon bob animations

Post by DOOMERO-21 »

i have a question, my plans for a mod is when the weapon is bobing, the first person view cannot do the same, the only way for the camera of the fps cannot move is when you use set movebob 0, but the weapon bob is afected too, my idea is separate this and only the weapon can use bob, but not the camera, is possible?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: BOBDEFS - for creating weapon bob animations

Post by Xaser »

This is a separate feature suggestion. It would be better to create a new thread for it.
User avatar
DOOMERO-21
Posts: 1423
Joined: Wed Jan 02, 2008 10:02 pm
Location: Chile

Re: BOBDEFS - for creating weapon bob animations

Post by DOOMERO-21 »

Xaser wrote:This is a separate feature suggestion. It would be better to create a new thread for it.
ok sorry
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”