Raised This Month: $ Target: $400
 0% 

[ZP] Zombie Class : Invisible Cat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 04-14-2009 , 06:09   Re: [ZP] Zombie Class : Invisible Cat
Reply With Quote #9

Quote:
Originally Posted by arkshine View Post
- You should use set_user_rendering() from fun instead of fakemeta, it will be more efficient.
- You should use FM_CmdStart instead of PlayerPreThink, but is really need just to glow ?
- Like said Nextra, you should move pev_button, but I would reorganize like this to avoid returs :

Code:
#define MOVE_BUTTONS ( IN_ATTACK | IN_ATTACK2 | IN_BACK | IN_FORWARD | IN_RUN | IN_JUMP | IN_MOVELEFT | IN_MOVERIGHT | IN_LEFT | IN_RIGHT )

Code:
    if ( is_user_alive( id ) && zp_get_user_zombie( id ) && zp_get_user_zombie_class(id) == g_cat_class )     {         pev( id, pev_button ) & MOVE_BUTTONS ?                     set_user_rendering(id, kRenderFxNone, 0,0,0,kRenderNormal, 255) :             set_user_rendering(id, kRenderFxGlowShell,0,0,0,kRenderTransAlpha, 45);     }
1. you're right. thanks.
2. i don't understand, sorry.
3. why?
Anggara_nothing is offline
 



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 16:24.


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