Raised This Month: $51 Target: $400
 12% 

[REQ][Zombie Class]Zombie Screamer


Post New Thread Reply   
 
Thread Tools Display Modes
Co0k!E$ HaMStE$
BANNED
Join Date: Aug 2009
Location: Cookies Land, Mars
Old 09-14-2009 , 20:41   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #11

did soemone ever finish it?
Co0k!E$ HaMStE$ is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 09-14-2009 , 21:35   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #12

Quote:
Originally Posted by Co0k!E$ HaMStE$ View Post
did soemone ever finish it?
Nope, I sent a PM to Fry! about this. I partially did the plugin and I gave it to him to finish it, and then I deleted the source code (unintentionally).
Actually I don't know where the hell is Fry! and why in SC in his signature has got "Away".
__________________
"There is no knowledge, that is not power"
fezh is offline
GmTx
BANNED
Join Date: May 2009
Location: Mountains [BG/Sofia]
Old 09-15-2009 , 01:11   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #13

Try not tested
PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <fakemeta>
#include <hamsandwich>

#define SCREAM_SOUND    "HERE THE SOUND"    

new zp_cvar_cooldown_scream
new Float:g_lastScream[33]

new const 
zclass_name[] = { "Scream" }
new const 
zclass_info[] = { "SpeeD + Gravity" }
new const 
zclass_model[] = { "model" }
new const 
zclass_clawmodel[] = { "claws" }
const 
zclass_health 1800
const zclass_speed 190
const Float:zclass_gravity 1.0
const Float:zclass_knockback 1.0

// Class IDs
new g_zclass_scream

public plugin_init() 
{
    
register_plugin("[ZP] Clss: Scream""1.0""GmTx")
    
zp_cvar_cooldown_scream register_cvar("zp_scream_cooldown""10")
    
    
RegisterHam(Ham_Spawn"player""fwdPlayerSpawn"1)
    
    
register_forward(FM_PlayerPreThink"fwdPlayerPreThink")
}

public 
plugin_precache()
{
    
precache_sound(SCREAM_SOUND)
    
    
g_zclass_scream zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)    

public 
fwdPlayerSpawn(id)
{
    
g_lastScream[id] = get_gametime()
}

public 
fwdPlayerPreThink(id
{
    new 
button pev(idpev_button)
    if(
button&IN_USE && zp_get_user_zombie_class(id) == g_zclass_scream
    {
        static 
Float:cooldown
        cooldown 
get_pcvar_float(zp_cvar_cooldown_scream)
        
        
client_cmd(0"spk %s"SCREAM_SOUND)
        if (
get_gametime() - g_lastScream[id] < cooldown) {        
            
client_print(idprint_chat"You have to wait %.fsec."get_pcvar_float(zp_cvar_cooldown_scream) - (get_gametime() - g_lastScream[id]))
            return
        }
    }


Last edited by GmTx; 09-15-2009 at 01:22. Reason: Ops miss something
GmTx is offline
Send a message via Skype™ to GmTx
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 09-15-2009 , 03:25   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #14

Well. Gmtx, it is not what i really mean with zombie screamer, but thnx anyways.

Well Fry! posted some things yesterday, I guess he will tell us when this thing will be ready to test.
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 09-15-2009 , 04:20   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #15

Quote:
Originally Posted by GmTx View Post
Try not tested
PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <fakemeta>
#include <hamsandwich>

#define SCREAM_SOUND    "HERE THE SOUND"    

new zp_cvar_cooldown_scream
new Float:g_lastScream[33]

new const 
zclass_name[] = { "Scream" }
new const 
zclass_info[] = { "SpeeD + Gravity" }
new const 
zclass_model[] = { "model" }
new const 
zclass_clawmodel[] = { "claws" }
const 
zclass_health 1800
const zclass_speed 190
const Float:zclass_gravity 1.0
const Float:zclass_knockback 1.0

// Class IDs
new g_zclass_scream

public plugin_init() 
{
    
register_plugin("[ZP] Clss: Scream""1.0""GmTx")
    
zp_cvar_cooldown_scream register_cvar("zp_scream_cooldown""10")
    
    
RegisterHam(Ham_Spawn"player""fwdPlayerSpawn"1)
    
    
register_forward(FM_PlayerPreThink"fwdPlayerPreThink")
}

public 
plugin_precache()
{
    
precache_sound(SCREAM_SOUND)
    
    
g_zclass_scream zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)    

public 
fwdPlayerSpawn(id)
{
    
g_lastScream[id] = get_gametime()
}

public 
fwdPlayerPreThink(id
{
    new 
button pev(idpev_button)
    if(
button&IN_USE && zp_get_user_zombie_class(id) == g_zclass_scream
    {
        static 
Float:cooldown
        cooldown 
get_pcvar_float(zp_cvar_cooldown_scream)
        
        
client_cmd(0"spk %s"SCREAM_SOUND)
        if (
get_gametime() - g_lastScream[id] < cooldown) {        
            
client_print(idprint_chat"You have to wait %.fsec."get_pcvar_float(zp_cvar_cooldown_scream) - (get_gametime() - g_lastScream[id]))
            return
        }
    }




Crashs the server bzw. people cant connect anymore
__________________

sunx is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 09-15-2009 , 07:37   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #16

also try using emit_sound instead of client_cmd(spk)
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Co0k!E$ HaMStE$
BANNED
Join Date: Aug 2009
Location: Cookies Land, Mars
Old 09-15-2009 , 14:47   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #17

k please finish posting it someone so i can add it to my server
Co0k!E$ HaMStE$ is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 09-15-2009 , 15:00   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #18

Please be patient and stop spamming that u want this, let them release this when they are ready.
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 09-15-2009 , 22:32   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #19

I made a mock version of it kinda. I can't release it because it's in my code with all the other zombies, but check it out, its automatic though. 63.215.74.167:27015
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 09-16-2009 , 02:01   Re: [REQ][Zombie Class]Zombie Screamer
Reply With Quote #20

Let me be honest with you tirant, I can see that you like to told us about your plugins or models, I dont really like when you talk about it, because "alright u are good scripter and you have a lot of models that we dont have", thats not the idea of this topic, if you want to share with us something, that would be nice, but if u want people to try ur server and ur stuff, well post your own topic with that things that u want to show.

Maybe it is only me but, I dont like that, because for me it is like: "I got something really nice and new!!!, but sorry I cant share that with you!!!".
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english


Last edited by tempito; 09-16-2009 at 02:03.
tempito 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 07:47.


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