Jump to content

Armor resource?


Jason Campbell

Recommended Posts

Just because I'm being sort of lazy, I was wondering if there is an Armor resource that anyone knows about. I can't seem to find one but I would have imagined that it would be a common thing. Just apply damage only if the armor is gone.


I'm sure it will be easy but was just wondering if anyone has seen a simple armor resource.


Thanks.

Link to comment
Share on other sites

I just search for armor resource on the main forum page . I remembered some recent interest in the same resource .. I think there may something interesting concerning tanks or the like .


https://forums.torque3d.org/viewtopic.php?f=12&t=1785&hilit=armor+resource

https://forums.torque3d.org/viewtopic.php?f=12&t=1243&p=9754&hilit=armor+resource#p9754

https://forums.torque3d.org/viewtopic.php?f=12&t=740&p=6162&hilit=armor+resource#p6162

Link to comment
Share on other sites

  • 6 months later...

Yes I think I have something like this. The question is more what you want exactly, since what you are describing is more like a shield instead of armor. An armor would only remove a certain amount of damage in a certain location, but a shield will absorb all damage until the shield is gone, then the player is damaged.


I looked through my code and I seem to have locational damage modifiers, which give different damage amounts based on where the player is hit, then I have a shield system, which is probably what you want and I have a damage scale system, which removes a certain amount of damage depending on the damage type (explosion, fire, bullet etc) which would be more like armor system.


Shield system is at line 431 here https://github.com/Duion/Uebergame/blob/master/scripts/server/shapeBase.cs


You can search the rest of my code for keywords "shield" and "damagescale". I don't know if or how it works, since I don't have it in use, it is one of those many unused/unfinished features I have in my code for some reason.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...