Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Zombie Class: Rage Zombie [v1.5]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 01-02-2011 , 09:02   Re: [ZP] Zombie Class: Rage Zombie [v1.4]
Reply With Quote #1

Quote:
Originally Posted by abdul-rehman View Post
Time for suggestions

1- Code:
public client_putinserver(id) {     g_bConnected[id] = true }

Since you have knowledge in bits you should try to use the following method for all booleans in ur plugin bcoz it will require less memory usage, which means ur plugin will be more effecient
Code:
// Using bits will be far more effecient new g_bitConnectedPlayers // This variable will allow us to use one var only to store all connected player's indexs' #define MarkUserConnected(%0) ( g_bitConnectedPlayers |= ( 1 << ( %0 & 31 ) ) ) #define ClearUserConnected(%0) ( g_bitConnectedPlayers &= ~( 1 << ( %0 & 31 ) ) ) #define IsUserConnected(%0) ( g_bitConnectedPlayers & ( 1 << ( %0 & 31 ) ) ) // Put this in thos forwards public client_connect(id) MarkUserConnected(id) public client_disconnect(id) ClearUserConnected(id) some_function( id ) { // To check if user is connected if ( IsUserConnected(id) ) { // ... } }

2- u should try to use static variables especially in FM_CmdStart

3-
Code:
public fw_PlayerPreThink(id) { &nbsp;&nbsp;&nbsp;&nbsp;if (!g_bAlive[id] || !g_bIsRage[id] || !g_bInRage[id]) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;return FMRES_IGNORED &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;set_user_maxspeed(id, get_pcvar_float(cvar_maxspeed))
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;return FMRES_IGNORED }


It would be better to cache the speed cvar bcoz prethink is called very often
4-
Code:
replace_all(szMsg, 190, "!w", "^0")

I think you should remove this coz u know what it is supposed to do and it is in da wrong place
1. I did have that idea. Kinda messy though hehe.
2. Will update tomorrow. Very late now.
3. I always forgotten that. Darn!
4. Still doesn't get into my brain.
Excalibur.007 is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 01-02-2011 , 14:17   Re: [ZP] Zombie Class: Rage Zombie [v1.4]
Reply With Quote #2

lol so rescripted eh?
nice job
happy new year xD
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 01-02-2011 , 18:33   Re: [ZP] Zombie Class: Rage Zombie [v1.4]
Reply With Quote #3

Haha. Happy new year! And rescripting it, NOW!

Abdul, anyway, I'm confused with "new" and "static" I mean when should we use it?

EDIT: Umm abdul, it doesn't seems to works after the optimization.
-_-" Now it doesn't even print the colour chats. Everything becomes nothing.

EDIT2: LOL. I enabled the wrong plugin. No wonder it didn't work.

Last edited by Excalibur.007; 01-02-2011 at 19:37.
Excalibur.007 is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 01-02-2011 , 08:47   Re: [ZP] Zombie Class: Rage Zombie [v1.4]
Reply With Quote #4

Wow. New zombie class. Nice
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 01-02-2011 , 21:12   Re: [ZP] Zombie Class: Rage Zombie [v1.5]
Reply With Quote #5

Hey, exca. Why don't bind "rage button" to "+drop" and block "can't drop weapon" message.
__________________
albert123 is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 01-02-2011 , 23:07   Re: [ZP] Zombie Class: Rage Zombie [v1.5]
Reply With Quote #6

Quote:
Originally Posted by albert123 View Post
Hey, exca. Why don't bind "rage button" to "+drop" and block "can't drop weapon" message.
why not leave reload button?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 01-02-2011 , 23:21   Re: [ZP] Zombie Class: Rage Zombie [v1.5]
Reply With Quote #7

LoL. Reload button and drop button are good at all.
__________________
albert123 is offline
teobrvt1995
Senior Member
Join Date: Aug 2010
Location: Việt Nam
Old 01-03-2011 , 00:09   Re: [ZP] Zombie Class: Rage Zombie [v1.5]
Reply With Quote #8

It like super zombie. I like it. Thanks man.
teobrvt1995 is offline
Send a message via Yahoo to teobrvt1995
molotovas
Senior Member
Join Date: Jan 2008
Old 01-08-2011 , 12:07   Re: [ZP] Zombie Class: Rage Zombie [v1.5]
Reply With Quote #9

I found a bug, then im selected this zombie, and then i use antidote, human can use rage DD can fix it ?
molotovas is offline
CSO-fag
Senior Member
Join Date: May 2010
Location: Indonesia, South Jakarta
Old 01-12-2011 , 05:46   Re: [ZP] Zombie Class: Rage Zombie [v1.5]
Reply With Quote #10

wtf, why i cant download the .amxx?
__________________
I play: CS 1.6, CSS, HL2, CSO, Seal Online, Ragnarok, and.....

1. [ZP] Zombie Ambience
[IMG]http://img714.**************/img714/9589/12013gd1w.gif[/IMG]
Adding more Link
CSO-fag 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 16:14.


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