Author Topic: OnPlayerDamage result  (Read 1191 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
OnPlayerDamage result
« on: April 24, 2007, 05:10:04 pm »
Quote
Damage * Hitbox modifier * Bullet speed / 150,000 * 100
is the formula for taking damage according to http://wiki.soldat.nl/Health (the %, so take out the /150,000 and *100 for amount of dmg)

would it probably appear on a 'default pascal script' like... (im assuming it would look like this)
Quote
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer) : integer
begin
  result := Damage
end;

would it be possible to change it to
Quote
function OnPlayerDamage(Victim,Shooter: Byte;Damage,HitboxModifier,BulletSpeed: Integer) : integer
begin
  result := Damage * Hitbox modifier * Bullet speed
end;
within the next version or future? this way we can modify the amount of damage received?
« Last Edit: April 24, 2007, 05:22:55 pm by DorkeyDear »

Offline chrisgbk

  • Moderator
  • Veteran
  • *****
  • Posts: 1739
Re: OnPlayerDamage result
« Reply #1 on: April 25, 2007, 02:07:43 am »
Well, first off that article is incorrect, and I have modified it to reflect official information. As for the other part of your question, you'll have to wait for EnEsCe to answer.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: OnPlayerDamage result
« Reply #2 on: April 25, 2007, 05:39:08 am »
thankyou

Quote
For realistic mode 100 percent health is defined by 65 units.
So would max health be still 200 units or 133% of 65 (about 87 units)? I would assume it would be still 200 units; you could do more than tripleing a person's full health :P

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: OnPlayerDamage result
« Reply #3 on: April 25, 2007, 05:42:51 am »
this way we can modify the amount of damage received?

you can modify it the way it is now aswell :-/
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: OnPlayerDamage result
« Reply #4 on: April 25, 2007, 02:46:51 pm »
this way we can modify the amount of damage received?

you can modify it the way it is now aswell :-/
yes but you can't get the bullet speed :/
nor the Hitbox modifier

like if u wanted bullet speed to not effect how much damage the bullet does, then u can modify it to that way :)


another request for OnPlayerDamage... ability to see what weapon you've been hurt by