Catch legs and arms shot
i need a functin that will catch the following
HIT_LEFTLEG HIT_RIGHTLEG HIT_LEFTARM HIT_RIGHTARM PHP Code:
|
Re: Catch legs and arms shot
If this doesn't work, try to post register.
PHP Code:
|
Re: Catch legs and arms shot
say i want HIT_RIGHTARM and HIT_LEFTARM to call this function
and the legs to call anohter how would i do that i dont really understand thiskinda stuff to behonest withyou guys... Just trying to expand on my VR(Virtual Reality) plugin |
Re: Catch legs and arms shot
Quote:
PHP Code:
|
Re: Catch legs and arms shot
Thanks but it gives me these errors
/home/groups/amxmodx/tmp3/phpmySI2v.sma(60 -- 61) : error 029: invalid expression, assumed zero /home/groups/amxmodx/tmp3/phpmySI2v.sma(66 -- 67) : error 029: invalid expression, assumed zero on those 2 case's edit... i lied lol didnt see : |
Re: Catch legs and arms shot
Dunno what you exactly do, but i could be better to only hook TakeDamage POST, then retrieve the actual damage with pev_dmg_take, and hitgroup with offset 75 :
75 - m_LastHitGroup 76 - m_bitsDamageType http://forums.alliedmods.net/showthread.php?t=68113 |
Re: Catch legs and arms shot
Quote:
if shot in arm weapon shake |
Re: Catch legs and arms shot
Code:
|
Re: Catch legs and arms shot
Just checking, are these offsets CS-only or do they work for all mods?
|
Re: Catch legs and arms shot
ok so thanks for telling me how to get if damage was done to legs arms..
i was using the ham take damage to that.. If i want it to check to addin the set task to make them bleed thats what i added below set_task(1.0,"victim_stuff", victim+35435,"",0, "b") PHP Code:
|
| All times are GMT -4. The time now is 01:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.