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.

Code Snippets / an easy, simple bullet engine. use for machine guns or whatever. adaptable.

Author
Message
Laak
18
Years of Service
User Offline
Joined: 26th Mar 2006
Location:
Posted: 16th Apr 2006 14:47
arrowkeys.
click to fire.
just a simple bullet engine for everyone to use. its really easy to implement and allows for easy management of hundreds of machine_gun bullets.
i made it a while ago so this is a less cleaned up version.
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 16th Apr 2006 21:10
hi

That is a lot of code for a shooting code. The intersect object comand is much better to use for a machine gun.

For what your code is it is pretty good though.

BM

Our aim is to keep the loo's clean, your aim can help.
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 17th Apr 2006 01:51
I havent tried the code out as of yet and ues BigMan's right Intersect Object is a simpler/faster/more accurate command to use, but I did a quick scan over your code and noticed;

SHELL(T).X_ANGLE = OBJECT ANGLE X(101)
SHELL(T).Y_ANGLE = OBJECT ANGLE X(101)
SHELL(T).Z_ANGLE = OBJECT ANGLE X(101)

You might have meant it to be this way, Im not sure as like I said I havent checked out how the code works yet but you might have meant to write

SHELL(T).X_ANGLE = OBJECT ANGLE X(101)
SHELL(T).Y_ANGLE = OBJECT ANGLE Y(101)
SHELL(T).Z_ANGLE = OBJECT ANGLE Z(101)

I might check the code out later tonight but yeah Intersect Object is the tried and true method of use for fast machine-gun-like collisions.

Login to post a reply

Server time is: 2024-11-23 07:38:30
Your offset time is: 2024-11-23 07:38:30