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 / Shooting...

Author
Message
Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 1st Jun 2006 21:51
How do you detect whether a player/enemy has been "shot"?


Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 1st Jun 2006 23:00
Math collision http://developer.thegamecreators.com/?f=t01/3d_tutorial_17

Just google pallmanni and get the history of me!

http://whatishl.ytmnd.com/ so friggin funny!
Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 1st Jun 2006 23:03
That's what I use (the distance formula) but it is not very accurate. Isn't there a better way?


Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
Dark Eternity
20
Years of Service
User Offline
Joined: 10th Jul 2004
Location: Vana Diel
Posted: 1st Jun 2006 23:37
try making "hit boxes" like they do on HL2 because then you could do percentage of damage etc and also this would greatly help due to just using object collision codes

I am DarkEternity (DE for short) OWNER OF ANIRE!!!
We are looking for a coder, modelers etc
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 2nd Jun 2006 23:16
Use Sparky's collision dll. A simple search would've solved this (dont tell me you searched, because I just did one and came up with dozens of posts).

- RUC'

Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 2nd Jun 2006 23:47
Hey Ruc don't tell me what to do, got it.


Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 2nd Jun 2006 23:49
But thanks for the tip.


Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 3rd Jun 2006 02:54
Ill stop telling you what to do when you grow up and stop wasting everyone else's time.

Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 3rd Jun 2006 03:49 Edited at: 3rd Jun 2006 06:46
How am I wasting people's time? I'm not forcing anyone to do anything.


Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 3rd Jun 2006 20:00
Then why didn't you search in the first place?

Renegade Andy
20
Years of Service
User Offline
Joined: 16th Oct 2004
Location: Scotland
Posted: 3rd Jun 2006 21:48
well u idiots like ruccus and zotaster, if you didnt want to reply - then dont EVERYONE knows people dont take well to those comments so just ignore the thread. shsseess

NO KEYBOARD DETECED - PRESS F11 TO CONTINUE - FOOKED BIOS
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 3rd Jun 2006 22:56 Edited at: 3rd Jun 2006 23:03
Quote: "people dont take well to those comments "


Right, let me re-phrase what I said:

Well done Duke Blue Devils! You didn't use the search feature, and we're not going to tell you to so you don't learn from your mistakes!

Sheesh...

RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 3rd Jun 2006 23:16
Lol, it happens every year. Come this time next year they'll see how moronic they're acting and will start saying the same thing to others, its just the cycle of noobism.

Gotta' ask Rich or Lee why that fake forum hasnt been implemented yet, itd be like a secret comedy channel, we just tune in and see their useless babble... all day...

Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 4th Jun 2006 03:50 Edited at: 4th Jun 2006 03:55
Quote: "we just tune in and see their useless babble... all day..."

I hate how Ruccus likes to insult everyone just to make himself feel better. He thinks he's perfect and everyone else is a moron. Well I'm sick of it. I'm smarter than he will ever be and I'm not going to take any more crap from him.


Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 4th Jun 2006 13:53
Quote: "I'm smarter than he will ever be"


Proof being?
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 4th Jun 2006 15:07 Edited at: 4th Jun 2006 15:19
...I am perfect...duh.

The problem is, my fine feathered friend, that you automatically turn all suggestions/comments/crit into flamage. I suggested that you search the forums before asking a question like this because it bumps down more important threads, it gets us fed up for answering the same question over again (you say you didnt make us, but if you didnt expect anyone to answer, like Zoto said, then its pointless in posting in the first place, right?), because - believe it or not - it would acually help you out in getting the answer quicker. I see then, no downside to taking a few minutes to perform a search instead of doing all of the above.

You could've chewed on that suggestion and seen all of the positives that come from it for both the community and yourself, but instead you, like a great deal of the newcommers on these forums (Im sure you'll take that as me being perfect again), lash out because of reasons Im not sure of, it could be embarassment for doing something stupid, maybe you had a piece of hair n your cereal that day, whatever the reason, it only makes you look more moronic by the second (im not calling you a moron, Im just saying it makes you look like one).

In the hopes of not having to make a mod waste his time reading this babble and locking the thread, I apologise for making you feel you had to protect your ego over that usefully placed suggestion I had made, and others had backed up. With that said, I will still continue to reply to your threads informing you of your mistakes until you, like a little brother perhaps, grow up and realize what you're doing wrong.

Lastly, dont make threats, especially ones you cant follow through with. Im fine with you calling me names, talking about my personality, whatever. But do not threaten me. That'll get you a newbie slap/ban around here if the mods catch onto it.

Now then, you've gotten your answer to the problem, Ive apologised, lets just leave it at that.

- RUC'

Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 4th Jun 2006 15:36 Edited at: 4th Jun 2006 15:37
I don't know why you would think so but just to let you know I was never threatening you. I am just sick of your holier-than-thou attitude. I'm sorry for making such a big deal over such a small thing but I guess as you said "there was a piece of hair in my cereal." I also do not like being referred to as a noob because I am not one. I admit I should've searched before posting but everyone makes mistakes. The best you can do is politely inform me of that and move on from there. That all being said, let's start over and just forget about this pointless, immature argument.


Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 4th Jun 2006 16:17 Edited at: 4th Jun 2006 16:19
No offence Ruccus, but:
Quote: "A simple search would've solved this (dont tell me you searched, because I just did one and came up with dozens of posts).

- RUC'
"


I did too. And I have to say, none of them contained decent information about detecting collision. Always problems, and no one replied on them (Or maybe I missed one)

Anyway
1) The most used method, is (while moving your bullet forward) checking for collision with an object using object collision(obj1, obj2) (if obj2 = 0 then this command will return the number of the object collided with obj1. Else, this command will return a 0 or 1 depending on collision or not). Disadvantage is that - if moving your bullets too fast - the bullet might go through the target.

2) Create a very long box and hide it. Position it before the shooter and detect any collision using the command above.

3) If you rather use raycasting, you can try to use static line of sight. This type of collision only works with boxes.
For reference, I believe I coded a sniper laser code in DBC using these commands. Try the search function for "sniper".

4) Like other people said, you can use Sparky's collision DLL. BUT you have to own DBC enhanced version in order to use DLL's

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 4th Jun 2006 20:11
Quote: " I'm smarter than he will ever be "

Then why did he know to use Sparky's and you didn't?

Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 4th Jun 2006 20:20
@Zotoaster
I did know that Sparky's could be used but I wanted some other alternatives.


Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 4th Jun 2006 22:54
Darn, I should have noticed when you said "But thanks for the tip."

Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 5th Jun 2006 00:26 Edited at: 5th Jun 2006 00:28
I wanted to be polite and thank Ruccus for actually trying to help me out. It's a rare occurence you see.

@Sven B
Thanks for your help


Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 5th Jun 2006 03:56 Edited at: 5th Jun 2006 03:56
@Sven: It just depends on what you search, Ive just done another search and checked the threads and have found several useful posts covering using INTERSECT OBJECT (which could then be adapted to Sparky's), collision boxes and stretched out cylinders. Youll get more results if you check the Newcommer's corner and the DBP board (I realize there are a lot of commands in DBP DBC doesnt have, but the methods can still be used in conjuction with Sparky's).

Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 5th Jun 2006 13:31
I agree I should've searched the newcomers too. But believe me, searching in DBP wouldn't have helped. Out of my experience: you can't adapt commands from it because you never really know what it exactly does, until you have used it once.

(Newcomers corner)




It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 5th Jun 2006 14:31 Edited at: 5th Jun 2006 14:32
As far as DBP goes I was talking about the methods people have suggested with using INTERSECT OBJECT, and how you could adapt those to work with Sparkys, because the command set is relatively the same. Ive made a few FPSs, so I know that the only command you'd need that DBP has is INTERSECT OBJECT, which Sparky has taken care of.

Also, if you go to the Newcommer's corner and search INTERSECT you get posts explaining the command and it's uses for collision/bullet detection. if you search "Shoot" you get a large list with a few useful posts conerning using the object collision method, and the tutorial I wrote on creating FPSs that explains the use of INTERSECT OBJECT to achieve getting collision and shooting working.

The list goes on when you search in DBP, you just need the right phrases.

Login to post a reply

Server time is: 2025-05-25 02:04:16
Your offset time is: 2025-05-25 02:04:16