Stopping TFC damage
I was wondering if some one could be with trying to figure out how to stop differnt kinds of damage from happing.
After using the search, I've learned how to stop bullets.. but not any other kind of damage. I've looked at the gernade multipliers but they hook damage event. Which when your trying to stop damage really doesn't work if the damge dealt to you is more then your life total. |
Re: Stopping TFC damage
if you can hook a damage event , you can stop the damage . hook the event properly then just put a return PLUGIN_HANDLED in and it SHOULD stop the event. SHOULD:up:
|
Re: Stopping TFC damage
Quote:
I again I'm trying to learn now to prevent damage from the start. Aka like it never hit you... But I do that you for the insight, And I did try it again after reading your post. |
Re: Stopping TFC damage
Quote:
|
Re: Stopping TFC damage
OOHHh ok. like i said it was only a "theory" lol. just a suggestion. :up:
|
Re: Stopping TFC damage
I should have also noted that (if possible) I would like from the attackers side to keep everything the same. Aka the only thing I want to change is that the victim is never dealt the damge, but everything else about the attack would be fine.
Example #1: If a gernade when off, I'd still like the player to be thrown like normal. |
Re: Stopping TFC damage
Would godmode be fine?
|
Re: Stopping TFC damage
I hoping to avoid doing it that way so that I might have the option to allow some kind of damage though.. like a crowbar attack
|
Re: Stopping TFC damage
I just tryed to set pev's, client data's and entity state's Health value to positive one every FM_PlayerPreThink/FM_PlayerPostThink, FM_UpdateClientData and FM_AddToFullPack call just to see if it could block the death caused by damage (in CS), but no luck.
|
Re: Stopping TFC damage
Is the damage event called if the client has godmode enabled?
|
| All times are GMT -4. The time now is 06:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.