AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP] Class: Bloodsucker (https://forums.alliedmods.net/showthread.php?t=114488)

4eRT 01-05-2010 06:37

[ZP] Class: Bloodsucker
 
2 Attachment(s)
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

fezh 01-05-2010 08:15

Re: [ZP] Class: Bloodsucker
 
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 :mrgreen:

4eRT 01-05-2010 11:28

Re: [ZP] Class: Bloodsucker
 
Omg omg omg :D
Ok... autobind is default 0.
Thx for your advices. ;)

fezh 01-05-2010 11:46

Re: [ZP] Class: Bloodsucker
 
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 }
:nono:

:arrow:

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     } }

YamiKaitou 01-05-2010 11:49

Re: [ZP] Class: Bloodsucker
 
Quote:

Originally Posted by 4eRT (Post 1043956)
Omg omg omg :D
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

Lure.d 01-05-2010 12:14

Re: [ZP] Class: Bloodsucker
 
yo wont belive this Yami - i found a crab :o

DruGzOG 01-05-2010 22:42

Re: [ZP] Class: Bloodsucker
 
Quote:

Originally Posted by Lure.d (Post 1044005)
yo wont belive this Yami - i found a crab :o

Then you don't understand the concept of Yami's crabs

01101101 01-05-2010 22:46

Re: [ZP] Class: Bloodsucker
 
Quote:

Originally Posted by fezh (Post 1043972)
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.
:arrow:

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 }

lazarev 01-07-2010 14:22

Re: [ZP] Class: Bloodsucker
 
I think "Vampire zombie" will be better... :D

01101101 01-07-2010 14:48

Re: [ZP] Class: Bloodsucker
 
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:gyar::gyar:


All times are GMT -4. The time now is 16:10.

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