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 / Shooting from an object

Author
Message
bogobogo
18
Years of Service
User Offline
Joined: 5th Jan 2006
Location:
Posted: 17th Oct 2007 20:33
Hi All,

How to make an object shoot from a predefined area ( a gun or a turret )

thanks
Insert Name Here
17
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 17th Oct 2007 22:26
Before you get any flames:
Click here.

the rabi

pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 18th Oct 2007 02:16
You explain it in detail.
You may use a picture.
You may use a program.
wickedly kick it
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: Fort-worth Texas
Posted: 18th Oct 2007 04:23
Please explain yourself more, from what i hear it can be...
how do i make the player shoot from turrets
or
how do i shoot a gun with a gun object

either way you probably need to look into rays (sparkys or newtons dlls) or just use limbs

Eevil Weevil
17
Years of Service
User Offline
Joined: 1st Aug 2007
Location: Wherever you are, I wil follow
Posted: 26th Oct 2007 15:27
Intersection math could be helpful.
If You've got DBPro.
And here is a reeeally long piece of code which can process a billion trillion bullet calculations a [b]millisecond[/i]. Here it is:


Your signature has been erased by a forum hacke - I mean, a mod

calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 26th Oct 2007 20:52
@ eevil weevil, please close your bold tag with a /b operator.

Infact, I'm going to do it for you:

[/b]

And that code doesn't work on my computer.

Your signature has been erased by a hyper-intelligent pan-dimensional being (a mod)
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 30th Oct 2007 03:07
Did for me - I'll take two sugars please

BogoBogo - As for the shooting - considering you figured out how to either MOVE a bullet or "Raycast" a "laser" kinda thing-a-ma-bob to do the job - Getting the bullet to come out of a certain hole/barrel/ etc - I made a thing that is just a 3d "Plus Sign" - looks more like a toy "Jack" from the kids game jacks - (rubber ball and little metal things that kill if you step on them)

I made a little system where I can show/hide it ... and when I do - I can also move it to the CENTER coordinates of each model I have loaded. Also - it displays the coords of the model, and how much I've moved it (via keypad) since I put it there.

In short - for my tank - I make the "toy jack" appear at the tank's coords. Remember how I said it displays the COORDS and How far I moved it on each x,y,z? that is important. Because I move the "toy" to where the gun is and I record "How much I moved it" in each direction. This way to fire - I position the bullet at the same position as the model - no matter where it is, then I move it up - left and turn it etc - as much as I did the toy using the numbers I got while doing this measuring work - and my bullets come out of the barrel no matter how the model is postioned.

Keep at it - you'll figure it out one way or another! Don't give up.

Login to post a reply

Server time is: 2024-11-25 12:33:04
Your offset time is: 2024-11-25 12:33:04