Raised This Month: $ Target: $400
 0% 

no head shots on humans


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Austin
Senior Member
Join Date: Oct 2005
Old 01-03-2007 , 04:02   no head shots on humans
Reply With Quote #1

I have a working plugin that disallows all head shots.
I want to modify this now so humans do not die from head shots,
but bots do.

Can someone tell if the following can easily be modified to do this and how I would change it?

Thanks!

void CPlugin::TraceAttack_Handler(const CTakeDamageInfo &inputInfo, const Vector &vecDir, trace_t *ptr) {

if(ptr->hitgroup == HITGROUP_HEAD) RETURN_META(MRES_SUPERCEDE);

RETURN_META(MRES_IGNORED);
}


Edit:
I got it working.
Thanks to anyone who would have responded!

Last edited by Austin; 01-04-2007 at 00:21.
Austin 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 23:34.


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