Author Topic: Playerobject's size effects its health?  (Read 976 times)

When I first started playing Blockland, I realized that a player, while its size was changed to be huge, by default had more health than a smaller player. This, at the time, made perfect sense to me. Well duh, it's bigger, therefore stronger! However this is becoming confusing to me now that I am a coder and have run into some problems with certain 'monsters' having too much or too little health because of its size. So I ask you, does the size effect the health? And if so, what is the multiplier that effects said health? Thank you for any help in advance.

Size doesn't affect max health but you take less damage. The larger a projectile is also affects the damage it does. Since the projectile damage is scaled linearly (2x scale = 2x damage, no other function) and only affected by the vertical scale (e.g. "1 1 5" does damage equal to "5 5 5") and two players at the same scales take the same number of hits to kill when both large or both small, it probably works that way for recieving damage too. (i.e. scale "2 2 3" would make you take one third damage per hit)
« Last Edit: April 06, 2011, 05:24:11 PM by Space Guy »

Would a 2x player fire a 2x projectile by default?

Size doesn't affect max health but you take less damage. The larger a projectile is also affects the damage it does. Since the projectile damage is scaled linearly (2x scale = 2x damage, no other function) and only affected by the vertical scale (e.g. "1 1 5" does damage equal to "5 5 5") and two players at the same scales take the same number of hits to kill when both large or both small, it probably works that way for recieving damage too. (i.e. scale "2 2 3" would make you take one third damage per hit)

Very helpful, thank you.

Would a 2x player fire a 2x projectile by default?
Depends on the weapon rather than the player type. For instance, the default Gun (and everything else) will fire 2x scale projectiles but most "spread" weapons based off Ephialtes' shotgun script will not.

Depends on the weapon rather than the player type. For instance, the default Gun (and everything else) will fire 2x scale projectiles but most "spread" weapons based off Ephialtes' shotgun script will not.
Interesting.

Thanks

In my RPG, I do like six-million at this point, and it takes three hits to kill a "GoblinKing" which is like size 2 2 2. it also has 45 health. so yeah.


The height of an object determines it's effects on certain things.

For players:
x x 2 scale will
Move 2x faster
Jump 2x higher
Receive half damage
If the weapon uses the parent onfire function, or is properly coded, will fire a 2x scaled projectile.
A player's stepheight (height of which they can walk onto higher objects) does not change, therefore they cannot walk up 2x high bricks.

x x 0.5 scale will
Move 0.5x faster
Jump 0.5x higher
Receive double damage
etc.
Players at any lower scale can still walk onto 1x height bricks.

Projectiles:
x x 2 will
Deal 2x damage, 4x to crouched enemies
Explosion size will be doubled, along with the explosion's damage.

etc.

Not sure how and if vehicles are affected, as I don't like vehicles in Blockland. Player based vehicles (horse, boat) will be affected the same way players are.



As for your RPG, you're doing math with numbers that are too high. Anything over 999999 will cause problems.