Realism?
Hey, how would I go about making a realism mod so when if a user is hit in the leg he will start walking slow, or if he gets hit in the arm there is a 25% chance of him dropping the gun he has out?
All i need to know id the function to find where the user has been hit... |
Re: Realism?
Ah No!!! I was working on this and got half-way through, drats!
Maybe we could work together? PM me for help. |
Re: Realism?
Its really easy to make, I could make it in 3 minutes... I just need the function...
|
Re: Realism?
I got realism for:
ArmShot HeadShot LegShot StomachShot RibShot BackShot KnifeHit Grenade FallDamage FeetShot. |
Re: Realism?
Code:
register_forward( FM_TraceLine, "hook_TraceLine")To get the victim, use: new victim = get_tr( TR_pHit ); To get the hitbox, use: new hitplace = get_tr( TR_iHitgroup ); Here is one already made for DoD, but you'll have to code in stamina and proning yourself or skip it for CS. http://www.dodplugins.net/forums/showthread.php?t=544 |
Re: Realism?
1 Attachment(s)
Quote:
pm me if u want to converse about compatibility and stuff, also integrate this: |
Re: Realism?
I'd hook the Damage event and use get_user_attacker.
|
Re: Realism?
|
Re: Realism?
i dont like the bandage part ;/
|
| All times are GMT -4. The time now is 00:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.