Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: c0ldfyr3
Forum: Coding MM:S Plugins & SM Extensions 09-14-2009, 11:21
Replies: 24
Views: 11,738
Posted By c0ldfyr3
Re: Hooking OnTakeDamage

Not if you extend the functions...
Forum: Coding MM:S Plugins & SM Extensions 09-14-2009, 07:27
Replies: 24
Views: 11,738
Posted By c0ldfyr3
Re: Hooking OnTakeDamage

Haha I've already done that, there's a fine example of it in DukeHacks I believe :)
Forum: Coding MM:S Plugins & SM Extensions 09-13-2009, 13:04
Replies: 24
Views: 11,738
Posted By c0ldfyr3
Re: Hooking OnTakeDamage

Crimson, I'm guessing that's the knife damage extension ;) ? I incorporate it into ZM for the guy! That napalm extension screws with IPlayerInfo::GetWeaponName so I had to write a work around.
...
Forum: Coding MM:S Plugins & SM Extensions 09-10-2009, 10:19
Replies: 24
Views: 11,738
Posted By c0ldfyr3
Re: Hooking OnTakeDamage

Fredd, I'm wondering is GetAttacker() still working for you in CSS? I ask because I can't use it without crashes but I notice some of the hacks plugins using SetDamage etc without problem. Did they...
Forum: Coding MM:S Plugins & SM Extensions 04-15-2008, 20:21
Replies: 24
Views: 11,738
Posted By c0ldfyr3
Re: Hooking OnTakeDamage

This works for CS:S.

int ZombiePlugin::OnTakeDamage( const CTakeDamageInfo &info )
{
CBasePlayer *pVictim = META_IFACEPTR( CBasePlayer );
edict_t *pEdict = m_GameEnts->BaseEntityToEdict(...
Forum: Coding MM:S Plugins & SM Extensions 04-05-2008, 08:37
Replies: 24
Views: 11,738
Posted By c0ldfyr3
Re: Hooking OnTakeDamage

Hey,

Sorry to bump an old thread but I hook this without problems, I also get the Attacker from the type passed in, if you want an example I can go dig one out :)
Showing results 1 to 6 of 6

 
Forum Jump

All times are GMT -4. The time now is 21:28.


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