Raised This Month: $ Target: $400
 0% 

DeathMsg Fix v1.0.3


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 02-14-2007 , 09:38   Re: DeathMsg Fix
Reply With Quote #5

Quote:
Originally Posted by Lord_Destros View Post
Is there any real point to this check?
if(cstrike_running())
Yes of course. This bug occures only under CS. Under HLDM everything is fine.

Quote:
Originally Posted by Lord_Destros View Post
When someone suicides, if they already gain a death whats the point of this?
cs_set_user_deaths(id, cs_get_user_deaths(id) + 1)

Also why do you bother checking when they take damage rather than when they just die.
You still don't understand what this plugin does. It fixes a BUG when a player got critical Damage but DeathMsg were not sent by the server. Normally DeathMsg is called before critical Damage event.

Quote:
Originally Posted by Lord_Destros View Post
Lastly, will this if statement ever return false if someone connects and dies.
if(!(is_user_alive(id) || g_bDeathMsg[id] || g_bCriticalDamage[id]))
It's a result of optimized boolean expression (may be you've heard about boolean algebra) thus it may be hard to understand an expression. By the way, i always test my plugins before posting them here.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 02-14-2007 at 09:42.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
 



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:40.


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