sdkhooks: assign velocities in CTakeDamageInfo(Hack) (#1322)

* Attempt to correct SDKHooks_TakeDamage

* Define function on both csgo and non-csgo

* Remove unneeded macros

* Fix velocity copy on CTakeDamageInfoHack init
This commit is contained in:
PerfectLaugh 2020-08-07 11:46:01 +08:00 committed by GitHub
parent 6f21138489
commit 031f80f6e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,8 @@ CTakeDamageInfoHack::CTakeDamageInfoHack( CBaseEntity *pInflictor, CBaseEntity *
m_bitsDamageType = bitsDamageType; m_bitsDamageType = bitsDamageType;
m_flMaxDamage = flDamage; m_flMaxDamage = flDamage;
m_vecDamageForce = vec3_origin; m_vecDamageForce = vecDamageForce;
m_vecDamagePosition = vec3_origin; m_vecDamagePosition = vecDamagePosition;
m_vecReportedPosition = vec3_origin; m_vecReportedPosition = vec3_origin;
m_iAmmoType = -1; m_iAmmoType = -1;