How to get 4 damage Sides?
by Jason Newman · in Torque Game Engine · 10/07/2005 (7:41 am) · 1 replies
Hi Everyone,
I'm currently in the process of updating a VERY outdated game(Almost 13 years old now). The company running it is one of the most stubborn ones I've ever seen. They refuse to update it but continue driving the monthly price higher. But one of the main aspects of the game is to have 4 seperate damage areas, each have their own seperate "health". They are of course the 4 directional sides (front, back, left right). I have no accesss to the origional code of the game so I have no ideas on how to go about doing this. I figure the best way is to go about this was to use seperate hitboxs (but make the boxes rather thin to only cover the sides of my model). Seems like it could be complicated and I am definately new to game creation, but I'm a determined programmer.
I also wanted to ask about collision meshes. Do these supply damage information? Or are these only for objects you don't want to be able to pass through other objects? And if these do supply damage, can they be used to determine sides? Please no need to go into too much detail on this, I just am trying to gather ideas together so I can concentrate on learning the best ideas.
Thanks!
-Jason
I'm currently in the process of updating a VERY outdated game(Almost 13 years old now). The company running it is one of the most stubborn ones I've ever seen. They refuse to update it but continue driving the monthly price higher. But one of the main aspects of the game is to have 4 seperate damage areas, each have their own seperate "health". They are of course the 4 directional sides (front, back, left right). I have no accesss to the origional code of the game so I have no ideas on how to go about doing this. I figure the best way is to go about this was to use seperate hitboxs (but make the boxes rather thin to only cover the sides of my model). Seems like it could be complicated and I am definately new to game creation, but I'm a determined programmer.
I also wanted to ask about collision meshes. Do these supply damage information? Or are these only for objects you don't want to be able to pass through other objects? And if these do supply damage, can they be used to determine sides? Please no need to go into too much detail on this, I just am trying to gather ideas together so I can concentrate on learning the best ideas.
Thanks!
-Jason
About the author
Torque Owner Jason Farmer
Is the game being written using Torque, I assume it is...
Are you using the Player model, 'cos as far as I know, it uses a bounding box, I think there's a resource for adding damage areas..
But I'm sure you can work it out from the player class's onCollision event in script.
The collision event gets a collision vector I think.. Not next to the code right now so I can't check.
I'd check that before spending time altering models.