Raised This Month: $51 Target: $400
 12% 

[L4D2] Fake Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 06-04-2010 , 02:39   [L4D2] Fake Damage
Reply With Quote #1

Is there anyway to make someone think they are taking damage while not actually hurting them?

Im using a point_hurt to deal increasing damage over time (eg: .25 dmg every .5 second), however if the damage is < 1 (or even 0), it still does 1 damage.

So if possible, I want to make the player think they are taking damage even though it hasn't reached 1 point yet. otherwise, they have no knowledge that they are being hurt until the damage kicks in (eg: 2 seconds later).
dirka_dirka is offline
savagekid
Senior Member
Join Date: Apr 2009
Location: Canada
Old 06-04-2010 , 06:55   Re: [L4D2] Fake Damage
Reply With Quote #2

You can always add 1 HP, then take it away (Don't do it the other way around because you might kill a player with 1 HP).
__________________

Use Coupon Code "GLOBAL50" To Get 50% Off Every Month.
savagekid is offline
Send a message via MSN to savagekid
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 06-04-2010 , 13:03   Re: [L4D2] Fake Damage
Reply With Quote #3

i was hoping to avoid something like that because giving health at certain times is rather noticible (eg: when the color changes).

but that is where i was heading when i made this post. right now im just spamming the player with chat messages, but thats rather uneventful.
dirka_dirka is offline
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 06-04-2010 , 14:21   Re: [L4D2] Fake Damage
Reply With Quote #4

well this is odd:
PHP Code:
new damage RoundToZero(g_fClientLastDamage[target]);
if (
damage 1) {
// give the player a health point before taking it away.
    
new health GetEntProp(targetProp_Data"m_iHealth");
    
SetEntProp(targetProp_Data"m_iHealth", (health 1));

and the player still takes 1 point of damage.. set it to health +2 and he doesn't.
dirka_dirka 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 07:48.


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