Author Topic: DoDamageEx() and DoDamageByEx()  (Read 1734 times)

0 Members and 1 Guest are viewing this topic.

Offline JotEmI

  • Soldier
  • **
  • Posts: 188
DoDamageEx() and DoDamageByEx()
« on: April 13, 2013, 04:51:34 am »
Since Falcon added OnPlayerDamageEx() to the ScriptCore (new parameter Weapon: Byte;) I think we should also get DoDamageEx() and DoDamageByEx():

Code: [Select]
procedure DoDamageEx(ID: byte; Damage: integer; Weapon: byte);

Parameter Info:
 ID (Byte): Player ID to do damage to.
 Damage (Integer): Amount of damage to do (4000 to get a definate kill)
 Weapon (Byte): Weapon ID

Description:
 This function will do damage to the specified player with specified weapon


Code: [Select]
procedure DoDamageByEx(ID,Shooter: Byte; Damage: Integer; Weapon: byte);

Parameter Info:
 ID (Byte): Player ID to do damage to.
 Shooter (Byte): Player ID doing damage.
 Damage (Integer): Amount of damage to do (4000 to get a definate kill)
 Weapon (Byte): Weapon ID

Description:
 This function will do damage to the specified player with specified weapon

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: DoDamageEx() and DoDamageByEx()
« Reply #1 on: April 13, 2013, 10:35:48 am »
Consider it impossible currently. I'd have to refactor quite a bit of code to make it work, and i have no time to do this now. For now DoDamage() weapon is more or less random.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.