HP of a game object

For code related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

HP of a game object

Post by aubergine »

Hi,

How is the HP of a game object worked out?

For example, a droid I think the HP is based on it's components (propulsion, body, turrets) with relevant upgrades applied?

And a structure is based on stattype currently, with building material (of not base defence) or wall (if defence) upgrades applied? I'm not sure if things like modules also add to the HP?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
JDW
Regular
Regular
Posts: 1669
Joined: 18 May 2010, 20:44

Re: HP of a game object

Post by JDW »

According to Reg12, it's explained in his comments here http://guide.wz2100.net/formulas
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: HP of a game object

Post by aubergine »

Thanks, however...

unitHP = (bodyHP + bodyHP * propulsion_modifier + weaponHP) * upgrade modifier

Why is upgrade modifier in that equation? I thought kinetic/thermal armour upgrades would increase damage resistance to kinetic/thermal weapons, not affect the unit HP?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: HP of a game object

Post by NoQ »

aubergine wrote:Why is upgrade modifier in that equation? I thought kinetic/thermal armour upgrades would increase damage resistance to kinetic/thermal weapons, not affect the unit HP?
We don't have a specific kinetic armor upgrade. Alloys upgrade increases both HP and kinetic armor.
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: HP of a game object

Post by aubergine »

Ah, I C.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Nexi
New user
Posts: 3
Joined: 02 Jul 2012, 03:18

Re: HP of a game object

Post by Nexi »

Is the HP visible after 'bdy' when using the droidinfo cheat? If so, I'm confused, because I've got a viper wheels machinegun with a 758 body, and I don't see how that occurs from that formula. (Or else, I'm just looking at the wrong bit?)

Anyway, TIA!
Post Reply