Raised This Month: $ Target: $400
 0% 

Stopping TFC damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NomadCF
Member
Join Date: Oct 2006
Old 11-06-2006 , 22:33   Stopping TFC damage
Reply With Quote #1

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.
NomadCF is offline
Send a message via AIM to NomadCF
The Specialist
BANNED
Join Date: Nov 2006
Old 11-06-2006 , 22:38   Re: Stopping TFC damage
Reply With Quote #2

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
The Specialist is offline
Send a message via AIM to The Specialist
NomadCF
Member
Join Date: Oct 2006
Old 11-06-2006 , 22:53   Re: Stopping TFC damage
Reply With Quote #3

Quote:
Originally Posted by The Specialist View Post
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
nope, but you still can die and even more even things that don't kill you your player reacts to. Makes sounds like being shot etc.

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.
NomadCF is offline
Send a message via AIM to NomadCF
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 11-06-2006 , 23:36   Re: Stopping TFC damage
Reply With Quote #4

Quote:
Originally Posted by The Specialist View Post
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
Damage Event is just a message event. You can't use register_message to block the damage that already dealt. This only block the message itself only. Damage is already dealt by the time you get this message.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
The Specialist
BANNED
Join Date: Nov 2006
Old 11-06-2006 , 23:50   Re: Stopping TFC damage
Reply With Quote #5

OOHHh ok. like i said it was only a "theory" lol. just a suggestion.
The Specialist is offline
Send a message via AIM to The Specialist
NomadCF
Member
Join Date: Oct 2006
Old 11-07-2006 , 00:41   Re: Stopping TFC damage
Reply With Quote #6

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.
NomadCF is offline
Send a message via AIM to NomadCF
VEN
Veteran Member
Join Date: Jan 2005
Old 11-07-2006 , 05:09   Re: Stopping TFC damage
Reply With Quote #7

Would godmode be fine?
VEN is offline
NomadCF
Member
Join Date: Oct 2006
Old 11-07-2006 , 09:51   Re: Stopping TFC damage
Reply With Quote #8

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
NomadCF is offline
Send a message via AIM to NomadCF
VEN
Veteran Member
Join Date: Jan 2005
Old 11-07-2006 , 11:30   Re: Stopping TFC damage
Reply With Quote #9

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.
VEN is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 11-07-2006 , 17:24   Re: Stopping TFC damage
Reply With Quote #10

Is the damage event called if the client has godmode enabled?
stupok is offline
Reply


Thread Tools
Display Modes

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 06:54.


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