Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Addon: Death Sprite[v1.4]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-01-2010 , 10:15   Re: [ZP] Addon: Death Sprite[v1.2]
Reply With Quote #1

HY man i read youre plugin and found some effeciency tricks which you can implement
1- I think caching cvars is not a good idea for this one bcoz death event is not called every 0.01 seconds or some thing as low

2- U should use static variables since they are more faster

3- U should cache is_user_connected instead since it is more effecient
Code:
public client_putinserver( id ) g_bIsConnected[ id ] = true
Code:
public client_disconnect( id ) g_bIsConnected[ id ] = false

4- You can simple use this:
Code:
        if(string[0])         {             client_print(victim, print_chat, "%s", string)         }
Instead of an equali since it will be more effecient !
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 11-01-2010 , 11:43   Re: [ZP] Addon: Death Sprite[v1.2]
Reply With Quote #2

screenshots please.
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 12-05-2010 , 14:27   Re: [ZP] Addon: Death Sprite[v1.3]
Reply With Quote #3

the sprite:

and some screens

seems i don't have them anymore
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 12-10-2010 , 10:36   Re: [ZP] Addon: Death Sprite[v1.3]
Reply With Quote #4

oh here they are from thread https://forums.alliedmods.net/showth...t=92011&page=7

__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-11-2011 , 22:17   Re: [ZP] Addon: Death Sprite[v1.3]
Reply With Quote #5

hey can you update this and make it work only for a specified class (human/zombie/nemesis)?
edit: and to scale the sprite up/down. it's huge...
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
almantsas
Member
Join Date: Apr 2009
Old 02-13-2011 , 10:12   Re: [ZP] Addon: Death Sprite[v1.3]
Reply With Quote #6

Quote:
Originally Posted by georgik57 View Post
Can you upload your bazooka skin?
almantsas is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-13-2011 , 14:56   Re: [ZP] Addon: Death Sprite[v1.3]
Reply With Quote #7

Quote:
Originally Posted by almantsas View Post
Can you upload your bazooka skin?
sorry i don't have it anymore
__________________
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 06-13-2011 , 01:59   Re: [ZP] Addon: Death Sprite[v1.4]
Reply With Quote #8

Bump. New update.

Just a mini change of code. Doesn't affect much.

Last edited by Excalibur.007; 06-13-2011 at 02:02.
Excalibur.007 is offline
olari9
Senior Member
Join Date: May 2009
Old 06-29-2011 , 18:49   Re: [ZP] Addon: Death Sprite[v1.4]
Reply With Quote #9

Nice!
__________________

Last edited by olari9; 06-29-2011 at 18:54.
olari9 is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 11-01-2010 , 21:12   Re: [ZP] Addon: Death Sprite[v1.2]
Reply With Quote #10

Quote:
Originally Posted by abdul-rehman View Post
HY man i read youre plugin and found some effeciency tricks which you can implement
1- I think caching cvars is not a good idea for this one bcoz death event is not called every 0.01 seconds or some thing as low

2- U should use static variables since they are more faster

3- U should cache is_user_connected instead since it is more effecient
Code:
public client_putinserver( id ) g_bIsConnected[ id ] = true

Code:
public client_disconnect( id ) g_bIsConnected[ id ] = false


4- You can simple use this:
Code:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;if(string[0]) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;client_print(victim, print_chat, "%s", string) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;}

Instead of an equali since it will be more effecient !
I did thought of using bools for connected. Just afraid of getting index out of bounds or invalid player.

Oh, it's true about death doesn't occurs every time but when player dies. Just trying not to use too many get_pcvar_num when DeathMsg gets called.

Updating now. Thanks

Last edited by Excalibur.007; 11-01-2010 at 21:14.
Excalibur.007 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 15:23.


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