Game Development Community

Hitting with weapons possible?

by Ben · in Game Design and Creative Issues · 04/10/2005 (11:55 am) · 6 replies

Im macking a game and i was wondering if its possiblle to hit with weapons

#1
04/10/2005 (1:44 pm)
Are you and George "Creator" just making silly posts or something?
#2
04/11/2005 (7:29 am)
No i want to know if its possible(should i have asked in a different forum?)
#3
04/11/2005 (7:34 am)
@Ben: It's just that anything is possible, and this question specifically has been discussed dozens of times. There is even a resource dedicated to doing exactly what you want.

It pays well to spend time searching the forums and the resources, even with the sometimes "unusual" search keywords that may be needed to find what you are looking for. Posts like yours tend to be ignored--not because people are rude, but simply because the answer has already been provided, and the question implies that you haven't looked.

I'm not trying to be rude myself here, just explaining why you got the response you did.
#4
04/11/2005 (7:37 am)
Yes it's possible, anything is possible, the only thing you really need to be asking is HOW to accomplish this.

The current server side melee tutorial looks for bounding box collisions between you and your target, and if there is a collision it applies damage to the target.

The easier and IMHO better way would be to do a LOS and distance check between you and your target and if you are close enough and the target is in your LOS then apply the damage.

I have a whole series of tutorials pending on this type of thing that I've submitted over a week ago, and still hasn't been approved yet once it is I'll link it here.

As to your second question, yes this would have been WAY more appropriate for a different forum.
#5
04/11/2005 (1:48 pm)
Sorry, and thanks.
#6
04/12/2005 (6:18 pm)
Man maybe you should just submit them to the forums :-p lol