Raised This Month: $ Target: $400
 0% 

client_damage help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pRED*
Join Date: Dec 2006
Old 01-30-2007 , 20:15   client_damage help
Reply With Quote #1

Hey

Is there any way to use client_damage or similar to stop the damage from actually occurring to the player.

I want to firstly compare the id's of the attacker and victim (easy) and then possibly stop the damage from happening if the id's are what the script was looking for.

Eg. Gives you god mode but only from specific people.

-e- I tried using set_user_health to add the damaged health back onto the player but obviously this acts too late to prevent death from headshots..

Thanks

Last edited by pRED*; 01-30-2007 at 20:17.
pRED* is offline
lunarwolfx
Member
Join Date: Feb 2005
Old 01-30-2007 , 23:56   Re: client_damage help
Reply With Quote #2

The last time I checked, you can't actually block damage, but I think one of avalanches plugins diverts an attack, thus damage isn't done to a certain player.

You can also set the players hp to something really high like 355, and add health back when damage occurs like you said earlier, and then after all calculations are done, and the hp is less than 255, you can kill the player.

If you're going to go with the health method though, I would choose a higher number for hp because it's possible that you can fall off something really high and it would do more than 355 damage. Thus, the fall would kill you, and then after calculation is done, you get killed again while you're dead, which would cause two death messages.
lunarwolfx is offline
pRED*
Join Date: Dec 2006
Old 01-31-2007 , 01:34   Re: client_damage help
Reply With Quote #3

yea im working on using a bonus 512 hp (so it still shows 100hp in the hud, and prevents you from taking awp to the head and dieing) and then killing the player if need be.

Just seems to be a clumsy work around, ill look in avalanches plugin.
pRED* is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-31-2007 , 01:36   Re: client_damage help
Reply With Quote #4

Best thing I could think of is:

prethink->player in viewcone->set attackers bullets to blanks
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
pRED*
Join Date: Dec 2006
Old 01-31-2007 , 02:48   Re: client_damage help
Reply With Quote #5

I like, I like..

Figured out trace lines etc from looking through a couple of avalanches plug ins.

So I can do the first two steps easy. Now onto blanks..

-e- Yay for avalanche again. Found a post of his explaining how to edit TR_flFraction to stop bullets from connecting

Last edited by pRED*; 01-31-2007 at 03:17.
pRED* 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 00:36.


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