Raised This Month: $ Target: $400
 0% 

[ZP] Class: Bloodsucker


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
4eRT
Senior Member
Join Date: Jan 2009
Location: Russia, Saint-Petersburg
Old 01-05-2010 , 06:37   [ZP] Class: Bloodsucker
Reply With Quote #1

Hi all. I'm be back )
Current version: 1.2
* ----------------------------------------
* ---[ZP] Zombie Class: Bloodsucker----
* ----------------------------------------
* ---------Author: 4eRT (aka pff)--------
* ----------------------------------------
* About:
* I think ghost zombie, speed boost and invisibility are such cheater things that i made this plugin ;)
* Bloodsucker abilities are copied from STALKER.
* -----------------------------------
* Discription:
* Bloodsucker can be invisible for x seconds and its speed increase to x u/s , step sounds stop.
* After Bloodsucker infects smb it recieves 100 HP. Bloodsucker can use ability every 30 seconds.
* -----------------------------------
* Credits:
* Fry! - greate thx for your done speed boost and invisible plugin ^_^
* fezh - for helping with code
* hoboman313/Zenix - for status icon tutorial (weapon_icons plugin).
* -----------------------------------
* Cvars:
* zp_bloodsucker_ability_long 10 // how long Bloodsucker can have his ability. def=10sec
* zp_bloodsucker_increase_speed 300 // increased speed. def=300
* zp_bloodsucker_gravity 800 // increased gravity. def=800 (no increase)
* zp_bloodsucker_visible_amount 0 // amount of visibility (0-full invisible, 255-full visible) def=0
* zp_bloodsucker_infect_hp 100 // additional hp after Bloodsucker infect smb(like leach zombie). def=100
* zp_bloodsucker_cooldown 30 // time in sec after Bloodsucker can use its ability again.
* -----------------------------------
* Modules:
* fakemeta
* fun
* -----------------------------------
* History:
* 0.1b (05.01.10)
* First release.
* 0.2b (06.01.10)
* Fakemeta stocks are rewritten to fun module functions.
* 1.0 (08.01.10)
* Added autobind menu. Added gravity cvar.
* 1.1 (08.01.10)
* Fixed some mistakes. Added hudmessages.
* 1.2 (17.01.10)
* Fixed some bugs. Added hud icon.
* -----------------------------------

How about model? Is this correct? oO
Attached Files
File Type: sma Get Plugin or Get Source (zp_zclass_bloodsucker.sma - 2823 views - 8.6 KB)
File Type: zip bloodsucker_invisible.zip (23.7 KB, 2075 views)
__________________
Not interested in CStrike modding anymore, but waht a HELL ?!
I am still 61% addicted to Counterstrike! What about you?

Last edited by 4eRT; 01-17-2010 at 13:12. Reason: update 1.2
4eRT is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 01-05-2010 , 08:15   Re: [ZP] Class: Bloodsucker
Reply With Quote #2

I'd rather use set_user_rendering( ) and get/set_user_maxspeed( ) from Fun module instead of using FakeMeta for that. And about ResetHUD, if you are trying to hook the spawn you should use HamSandwich instead.
Also you shouldn't bind the key to the players ( slowhacking stuff is not allowed here ), let them bind the key they want, but add a print to tell that.
Finally, you should attach the plugin here instead of linking it.

And I think that's all from me
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 01-05-2010 at 08:19.
fezh is offline
4eRT
Senior Member
Join Date: Jan 2009
Location: Russia, Saint-Petersburg
Old 01-05-2010 , 11:28   Re: [ZP] Class: Bloodsucker
Reply With Quote #3

Omg omg omg
Ok... autobind is default 0.
Thx for your advices. ;)
__________________
Not interested in CStrike modding anymore, but waht a HELL ?!
I am still 61% addicted to Counterstrike! What about you?
4eRT is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 01-05-2010 , 11:46   Re: [ZP] Class: Bloodsucker
Reply With Quote #4

Code:
register_event("HLTV", "newround", "a", "1=0", "2=0") public newround(id) {     g_last[id] = get_gametime()     set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)     g_i = 0 }




Code:
#include <hamsandwich> RegisterHam( Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1 ); public fw_PlayerSpawn_Post( id ) {     if ( is_user_alive( id ) )     {         g_last[id] = get_gametime()         set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)         g_i = 0     } }
Or just ( only if you still want using HLTV event ):
Code:
new g_iMaxPlayers; register_event("HLTV", "newround", "a", "1=0", "2=0") g_iMaxPlayers = get_maxplayers( ); public newround() {     for ( new id = 1; id <= g_iMaxPlayers; id++ )     {         g_last[id] = get_gametime()         set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)         g_i = 0     } }
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 01-05-2010 at 11:49.
fezh is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-05-2010 , 22:46   Re: [ZP] Class: Bloodsucker
Reply With Quote #5

Quote:
Originally Posted by fezh View Post
Code:
new g_iMaxPlayers; register_event("HLTV", "newround", "a", "1=0", "2=0") g_iMaxPlayers = get_maxplayers( ); public newround() {     for ( new id = 1; id <= g_iMaxPlayers; id++ )     {         g_last[id] = get_gametime()         set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)         g_i = 0     } }
Fail.


Code:
new g_iMaxPlayers; register_event("HLTV", "newround", "a", "1=0", "2=0") g_iMaxPlayers = get_maxplayers( ); public newround() {     for ( new id = 1; id <= g_iMaxPlayers; id++ )     {         g_last[id] = get_gametime()         set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)     }     g_i = 0 }
01101101 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-05-2010 , 11:49   Re: [ZP] Class: Bloodsucker
Reply With Quote #6

Quote:
Originally Posted by 4eRT View Post
Omg omg omg
Ok... autobind is default 0.
Thx for your advices. ;)
Autobind must be removed unless you get the client's permission before changing the binds. Failure to do this will result in both threads being trashed for slowhacking
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 01-05-2010 , 12:14   Re: [ZP] Class: Bloodsucker
Reply With Quote #7

yo wont belive this Yami - i found a crab
Lure.d is offline
Send a message via Skype™ to Lure.d
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 01-05-2010 , 22:42   Re: [ZP] Class: Bloodsucker
Reply With Quote #8

Quote:
Originally Posted by Lure.d View Post
yo wont belive this Yami - i found a crab
Then you don't understand the concept of Yami's crabs
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
lazarev
Veteran Member
Join Date: Sep 2008
Old 01-07-2010 , 14:22   Re: [ZP] Class: Bloodsucker
Reply With Quote #9

I think "Vampire zombie" will be better...
lazarev is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-07-2010 , 14:48   Re: [ZP] Class: Bloodsucker
Reply With Quote #10

Oh, and about ResetHUD.

Try this
bind "l" "record a; wait; wait; wait; wait; stop"

Plugin thinks you have respawned instead. I always use that in servers with mostly old plugins with this error, like lasermines and I get as many as I want
01101101 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:10.


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