Game Development Community

sword damage?

by Ace · in Torque Game Engine · 02/27/2002 (10:39 pm) · 9 replies

how would i make the sword do damage when it hits another player (touches a player)?

it works great with a power up and shooting a projectile, but i have no idea how to make it do damage when the sword itself hit another player. any info on this would be great.

thanks

#1
02/28/2002 (5:19 am)
bump-
any ideas wher to be gin?
#2
02/28/2002 (2:07 pm)
make it have a really low range(the length of the sword) so the game thinks its shooting a projectile but it showes you swinging a sword
#3
02/28/2002 (3:38 pm)
gary, use the hitbox tutorial by josh, that will help you
#4
02/28/2002 (3:49 pm)
hey thats a great idea bill :)

ill look into that hit box tut also

thanks
#5
02/28/2002 (6:03 pm)
actually the short projectile is more a hack than an a good idea :\
The hitboxes is the way to go... using hitboxes you can also know which part of the player you hitted... and even cut it off... hitboxes rock :)
#6
02/28/2002 (7:11 pm)
i am haveing trouble with the hit tut,,,i dont understand what wrong with the player.cc ( the tut wasnt very clear for me) is there a chance you can post your player.cc? maybe i can figgure it out

i posted the errors here

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=1663

thanks
#7
02/28/2002 (7:48 pm)
i havent done the hitboxes myself :)
sorry
#8
03/01/2002 (5:08 pm)
Looks like you forgot a closing bracket. :)

I am going to be releasing a MUCH clearer, better coded and commented version of that tut in the next week or so. It will also have support for using hitboxes with projectiles, loading hitboxes directly from the models, and better melee weapon code.

The current tutorial (the one on that page) is no where near as good as this next one will be.

So just wait for a little bit, and you will have a much nicer and more understandable tut. :)
#9
03/01/2002 (6:11 pm)
ok ,,great .,,,i wil will be looking forward to it. i was about to do the hack (as suguested above)

thanks