Raised This Month: $ Target: $400
 0% 

Ham_TakeDamage with FF, Ham_TraceAttack not working correctly


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-17-2014 , 07:08   Re: Ham_TakeDamage with FF, Ham_TraceAttack not working correctly
Reply With Quote #1

Strange. Doesn't TraceAttack do that already?
Code:
void CBasePlayer :: TraceAttack( entvars_t *pevAttacker, float flDamage, Vector vecDir, TraceResult *ptr, int bitsDamageType) {     if ( pev->takedamage )     {         m_LastHitGroup = ptr->iHitgroup;         switch ( ptr->iHitgroup )         {         case HITGROUP_GENERIC:             break;         case HITGROUP_HEAD:             flDamage *= gSkillData.plrHead;             break;         case HITGROUP_CHEST:             flDamage *= gSkillData.plrChest;             break;         case HITGROUP_STOMACH:             flDamage *= gSkillData.plrStomach;             break;         case HITGROUP_LEFTARM:         case HITGROUP_RIGHTARM:             flDamage *= gSkillData.plrArm;             break;         case HITGROUP_LEFTLEG:         case HITGROUP_RIGHTLEG:             flDamage *= gSkillData.plrLeg;             break;         default:             break;         }         SpawnBlood(ptr->vecEndPos, BloodColor(), flDamage);// a little surface blood.         TraceBleed( flDamage, vecDir, ptr, bitsDamageType );         AddMultiDamage( pevAttacker, this, flDamage, bitsDamageType );     } }
Backstabnoob is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode