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

Reload Animation Fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 12-28-2011 , 13:54   Re: Reload Animation Fix
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
For example a plugin that would switch a player from Ts to Spectator, your plugin could think he is still alive.


Just saying that
PHP Code:
new g_iAlive;
#define SetPlayerBit(%1,%2)    ( %1 |=  ( 1 << ( %2 & 31 ) ) )
#define ClearPlayerBit(%1,%2)  ( %1 &= ~( 1 << ( %2 & 31 ) ) )
#define CheckPlayerBit(%1,%2)  ( %1 &   ( 1 << ( %2 & 31 ) ) ) 
Would be better like :
PHP Code:
new g_iAlive;
#define MarkPlayerAlive(%0)    ( g_iAlive |=  ( 1 << ( %0 & 31 ) ) )
#define ClearPlayerAlive(%0)  ( g_iAlive &= ~( 1 << ( %0 & 31 ) ) )
#define CheckPlayerAlive(%0)  ( g_iAlive &   ( 1 << ( %0 & 31 ) ) ) 
Yes, but that spectator still would have hp, and could use weapons. I recheck alive/dead on events when person respawns and when person dies.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
 



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 13:22.


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