Game Development Community

Damage System

by Christian Weber · in Technical Issues · 07/11/2002 (8:13 am) · 18 replies

Hi again!

Does anyone know how to make something like in JediKnight 2 (Lightsaber) or the realistic damage zones of SoF 2 (Head, body, aso).

Thx for any help.

Chris.

#1
07/11/2002 (8:28 am)
You might want to check out the melee hitbox tutorial in the resource section.

Lightsaber? The effect could be a beam type thing. Beams and shockwaves weren't working last I knew. Hopefully that will be added soon.

Anyone know the status?
#2
07/11/2002 (8:49 am)
what exactly happened to the beams and shockwaves anyway? Were they removed, or aren't they working?
#3
07/11/2002 (9:02 am)
I think they got messed up when GG needed to remove some stuff that was Tribes2 specific from the engine. There is a thread about it.

www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=2212
#4
07/11/2002 (9:06 am)
A lightsabre would be no different from a sword as far as the engine is concerned. The pretty glowing beam model is eye candy.

So the melee hitbox resource would be exactly what you're looking for.
#5
07/11/2002 (9:17 am)
Thx guys! Finally a community where you get help when you need. Thx so much to all of you!
#6
07/11/2002 (10:27 am)
hey guys, lets say if I wanted to have characters that punched each other, could I use what your talking about? just make the engine think that the characters arm is a sword or something?
#7
07/11/2002 (10:40 am)
Yes, the tutorial uses the "arm" as a weapon for demo purposes.
#8
07/11/2002 (11:11 am)
ok, I sound dumb, but could you tell me where that tutorial is in the resource section? I looked under torque tutorials but didnt find it
#9
07/11/2002 (11:15 am)
Here's the link:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=1663

You can also find it by typing in hitbox in the search box - Resources (top right of screen). Sometimes it can be hard to find specific things.
#10
07/11/2002 (11:38 am)
thanks man...... you've really helped me out :)
#11
07/11/2002 (11:46 am)
no problem.
I probably should have said resource instead of tutorial :)

One thing that might be a little "off" about using the arm as a weapon like in the resource is that just by a player touching the arm it will cause a "hit". You might need to add some sort of function (maybe just in script) to only apply damage during a given animation or something. Just thought I'd mention that.
#12
07/11/2002 (6:38 pm)
I made a new one (updated hitbox tutorial), like I said I would, and I had one kid test it for me. He says it works.

The only thing is that its 60 pages long. :(

And thats without any explanation (of what I am doing in the code, ie, its jsut pure code and where to put it)

So, what do you guys say? Should I take the time and add explanations? SHould I just keep it as one huge code snippet? Or should I break it into individual code snippets (the basic hitbox stuff, melee collision code, projectile code, melee weapon creation/removal/handling, etc)? Or should I do a combination, or something else completely?

You guys tell me, and I will do it. Dont tell me to put in lots of work explaining it if you arent going to bother reading it though. :)
#13
07/11/2002 (7:08 pm)
Wow, I didn't know this even existed.

I'd post what you have, then add comments as you go.

I'd really like to see this in action :)
#14
07/12/2002 (4:50 am)
Josh,
That is awesome!!
I just recently got around to trying out your previous hitbox tutorial and thought it was great (btw - still works in HEAD 7-10-02). I guess a little explanation of what's going on would be nice for most people. I think it's good to learn a little about what your adding to the code. However; I'd be more then happy just trying to make a big code snipet work if that's what you felt like posting :)

60 pages!? wow...drool....

-Sabrecyd

edit: I think I'd keep it all together. People can always just use parts of it if they want, but sense it's all related material I think it might be better to have it together. That's just my opinion of course.
#15
07/12/2002 (6:34 am)
Josh: .... kid? :\
heh, yes it works flawlessly, I could even make a patch file from cvs head so that you wouldnt have to go through all the 60 pages....
#16
07/19/2002 (5:31 am)
Josh, Are you still planning on posting your updated hitbox tutorial? Just wondering what you've decided to do with it.

-Sabrecyd
#17
07/19/2002 (6:34 am)
Yeah, sorry everyone. I had to work ALOT these past few weeks, so I didnt get a chance to post it. I will as soon as I get a chance, sorry for the delay. :/
#18
08/19/2002 (9:13 am)
Josh, do you think you could send me the updated version you have? I don't really care if it's the 60 page "put this here" etc version you mentioned. The only reason I ask is because I want to reimplement my current code changes into the 1.1.2 engine and would rather just add your updated hitbox version instead of the older one, then redo it again later. I know I'm being a pain, but I'd really appreciate it because your new version sounds like it'd be really cool to check out :) Maybe I should ask if it works in the 1.1.2 engine. It probably does, but this could also be a good test if you haven't tried it yet.

Here's my better email address (unlimited size) if you decide to send it.
btn@aprilaire.com

Thanks very much,
-Sabrecyd