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.

DarkBASIC Discussion / 3D characters holding weapons

Author
Message
KNau
22
Years of Service
User Offline
Joined: 25th Nov 2002
Location: Canada
Posted: 23rd Oct 2003 09:39
Hi. I'm working on a 3rd person shooter that would involve the primary character carrying and using different weapons and I'm trying to think of a fast, simple way to implement this.

It wouldn't make sense to create and animate a dozen different walk cycles for each possible weapon the player could be carrying. At the same time it is much too convoluted a process to develop a limb system where the character's hands snap into place depending on what weapon is carried. I need a simple but elegant middle ground solution.

Any ideas? I'm using old fashioned DB Classic with no .dll access. Thanks!

http://www.canceriannewmedia.com
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Oct 2003 13:19
Use glue object to limb (I think that's it) and then have some code like this to make him hold it right:-
(gun# would be set to 1,2,3... depending on what gun they have)

if gun#=1

offset limb 1,10,1,3
rotate limb 2,0,30,0
rotate limb 1,10,0,0

endif

I just made up those values but with some tinkering you should be ablew to get it right.

...and like that; he's gone...

Login to post a reply

Server time is: 2025-05-21 10:07:17
Your offset time is: 2025-05-21 10:07:17