Author Topic: War3_DeadDamage Weapon String is not passed further TakeDamage  (Read 1310 times)

nvn

  • Full Member
  • ***
  • Posts: 141
    • View Profile
War3_DeadDamage Weapon String is not passed further TakeDamage
« on: December 14, 2011, 02:13:33 PM »
Since 610 svn revision "SDKHook'S TakeDamage instead of W3S point_hurt entity" weapon string from War3_DealDamage is not passed.
Check like 560 from Engine_DamageSystem for better understanding:
http://ownageclan.com/websvn/diff.php?repname=war3source&path=%2FWar3Source_Engine_DamageSystem.sp&rev=610&peg=610
1.2.3.5


Ownz

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2437
  • chmod -R 777 *
    • View Profile
    • OwnageClan
Re: War3_DeadDamage Weapon String is not passed further TakeDamage
« Reply #1 on: December 14, 2011, 02:17:01 PM »
uggh
native SDKHooks_TakeDamage(entity, inflictor, attacker, Float:damage, damageType=DMG_GENERIC, weapon=-1, const Float:damageForce[3]=NULL_VECTOR, const Float:damagePosition[3]=NULL_VECTOR);
 doesnt take a weapon string, only weapon id

discuss this with Revan

Revan

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: War3_DeadDamage Weapon String is not passed further TakeDamage
« Reply #2 on: December 16, 2011, 01:20:38 AM »
we could revert back to the old one or I try some hooking stuff to change the weapon name.. but best should be reverting
#war3source on gamesurge

Ownz

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2437
  • chmod -R 777 *
    • View Profile
    • OwnageClan
Re: War3_DeadDamage Weapon String is not passed further TakeDamage
« Reply #3 on: December 16, 2011, 01:21:48 AM »
sdkhooks should change to take a custom weapon string, but im probably beating a dead horse by requesting that.