Page 1 of 1

BOBDEFS - for creating weapon bob animations

Posted: Sun Oct 07, 2012 10:09 am
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?

Re: BOBDEFS - for creating weapon bob animations

Posted: Sun Oct 07, 2012 11:05 am
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.

Re: BOBDEFS - for creating weapon bob animations

Posted: Sun Oct 07, 2012 12:51 pm
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.

Re: BOBDEFS - for creating weapon bob animations

Posted: Fri Nov 02, 2012 10:24 am
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?

Re: BOBDEFS - for creating weapon bob animations

Posted: Fri Nov 02, 2012 6:09 pm
by Xaser
This is a separate feature suggestion. It would be better to create a new thread for it.

Re: BOBDEFS - for creating weapon bob animations

Posted: Fri Nov 02, 2012 8:45 pm
by DOOMERO-21
Xaser wrote:This is a separate feature suggestion. It would be better to create a new thread for it.
ok sorry