Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Gun kickback or kickup... How?

Author
Message
xxdemzxx
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: CA
Posted: 27th Aug 2005 01:13
Im making a fps, how would I go by making my gun object look as if it was kicking back anmd returning to the orignal position when you shot it?
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 27th Aug 2005 05:08 Edited at: 27th Aug 2005 05:09
I'm also building an FPS and mine is something like this for kickup... (why it works below -- but don't feel that you need to read that)



[school teacher-like droning]
xrotate rotates down which is why to go up 3, you need the wrap value of 360 - yrecoil (it can be a fixed amount, but mine is random)
then add that to the current x angle of an object -- but for a easier game, I'll use the camera instead...
so camera is pointing up 3 (X angle of 357)
yrecoil was 20, over 10 made it 2, so the weapon's pointed up 2 degrees.
would work out as: 357 + 358...
that comes to 715 which isn't allowed, so wrap value just takes 360 away from a number infinitely until it's between 0 and 360 which is valid.
[/droning]

...maybe one day I'll finish a project
NanoBrain
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 28th Aug 2005 10:51
xxdemzxx,

It might be easier to simply animate the reaction of the gun in your modeler. Then, import the animation, and run the specified frames when a bullet is shot.


+NanoBrain+
RegenProZ
19
Years of Service
User Offline
Joined: 20th Aug 2005
Location:
Posted: 28th Aug 2005 14:00
play the next animation frame to do the kickback,

for example, when your moving with the gun, your gun is like moving up and down so if you use the:

play object objectnumber,startframe,endframe

When creating the model, include different frames, so create the kickback, and animate it, so you can use that command to have the kickback.

like this:
When moving frames 1,10 will be used to show the moving up and down of the gun

Kickbacking frames 11,18 will be used to make the gun kickback.

---------
Never You Mind
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 28th Aug 2005 14:12
A far simpler way I never thought of...

but you'll need a 3D editor to create animation frames though...

...maybe one day I'll finish a project
NanoBrain
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 28th Aug 2005 21:51
xxdemzxx,

Blender is a good free modeler, in which lets you create and export animations. However, I have found it to be a bit buggy when models made with it are used in DBC. I am not sure about any other modelers. Anim8or does not export animations, from what I heard.


+NanoBrain+
xxdemzxx
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: CA
Posted: 29th Aug 2005 04:47
What else could be used?
My model is a .3DS
I tried Blender but it did not work.
Could someone else animate it for me its the colt 45 model in the Dark Matter collection .
xxdemzxx
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: CA
Posted: 30th Aug 2005 03:55
Quote: "My model is a .3DS
I tried Blender but it did not work.
Could someone else animate it for me its the colt 45 model in the Dark Matter collection . "


Would anyone mind helping me animate it?

Login to post a reply

Server time is: 2024-09-24 03:27:06
Your offset time is: 2024-09-24 03:27:06