AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Zombie Class : Ghost + Noclip (https://forums.alliedmods.net/showthread.php?t=181026)

Xvil 03-24-2012 04:19

[ZP] Zombie Class : Ghost + Noclip
 
1 Attachment(s)
PHP Code:

/*================================================================================
    
    -----------------------------------
    -*- [ZP] Zombie Classes ghost -*-
    -----------------------------------
    
    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
    
    This a Ghost Zombie Classe, He Can penetrate anything
    but one shot Will Be killed. He has bad speed, bad knockback But it's too Strong
    with NoClip.
    
================================================================================*/ 

Help Me to:
+ Add Model
+ Add Claw Model
And Thanks!


Zombie Class info:
Zombie Class Name: Ghost Zombie
Zombie Class Info: Can penetrate anything!
Zombie Class Model: zombie_source
Zombie Class Claw Model: v_knife_zombie.mdl
Zombie Class Health: 10
Zombie Class Speed: 100
Zombie Class knockback: 0.5
+ Noclip


ChangeLog:
PHP Code:

/*
V0.1
[Added] Ghost Zombie Class
V0.2
[Fixed] Give Noclip
[Fixed] Set off When is user humanized, Respawned ...
V0.3
[Changed] Set Ghost Glow (Fun.inc)
[Changed] Ghost Speed To 100
*/ 

Future:
PHP Code:

/*
V0.4
[Added] Emi Sound
*/ 

Note: Don't Click on Get Plugin

jc980 03-24-2012 06:41

Re: [ZP] Zombie Class : Ghost + Noclip
 
Do not upload .amxx file

Xvil 03-24-2012 06:46

Re: [ZP] Zombie Class : Ghost + Noclip
 
Quote:

Originally Posted by jc980 (Post 1674607)
Do not upload .amxx file

ok

H.RED.ZONE 03-24-2012 06:58

Re: [ZP] Zombie Class : Ghost + Noclip
 
When he turns into human he will still have abilities.
Set Death Message.

Xvil 03-24-2012 07:17

Re: [ZP] Zombie Class : Ghost + Noclip
 
Quote:

Originally Posted by H.RED.ZONE (Post 1674615)
When he turns into human he will still have abilities.
Set Death Message.

Updated:
+Fixed Remove Noclip when the round is end or the zombie class is changed or the Player become human

JoKeR LauGh 03-24-2012 07:49

Re: [ZP] Zombie Class : Ghost + Noclip
 
get_user_team is useless .. ZP use it's own natives.
Just check if user is alive.

And I believe this plugin is already created even with button to enable it. And yeah human in your server will regret for playing your server cause this zombie will walk through the wall all the time.
I also suggest you to add damage, cooldown, duration, and also button if you can to improve your plugin.
Anyway, I also suggest you to use the default end round event. More effective.
That's all, Nice work. kBai~

H.RED.ZONE 03-24-2012 07:56

Re: [ZP] Zombie Class : Ghost + Noclip
 
Quote:

Originally Posted by JoKeR LauGh (Post 1674635)
get_user_team is useless .. ZP use it's own natives.
Just check if user is alive.

You mean zp_core_is_zombie (zombie) and !zp_core_is_zombie (human)

Quote:

Originally Posted by JoKeR LauGh (Post 1674635)
And I believe this plugin is already created even with button to enable it.

For zp 5.0 no only extra item by snaker

Quote:

Originally Posted by JoKeR LauGh (Post 1674635)
And yeah human in your server will regret for playing your server cause this zombie will walk through the wall all the time.
I also suggest you to add damage, cooldown, duration, and also button if you can to improve your plugin.

+1

Quote:

Originally Posted by JoKeR LauGh (Post 1674635)
Anyway, I also suggest you to use the default end round event. More effective.
That's all, Nice work. kBai~

+1 Lower cpu you use client_PreThink thats bad when you can use nativs in zp...

JoKeR LauGh 03-24-2012 08:00

Re: [ZP] Zombie Class : Ghost + Noclip
 
Quote:

Originally Posted by H.RED.ZONE (Post 1674639)
You mean zp_core_is_zombie (zombie) and !zp_core_is_zombie (human)

Yea, and I would suggest him to make an array to hold the ability.

Quote:

+1 Lower cpu you use client_PreThink...
He could use FM_CmdStart by fakemeta module.
PreThink will make server lag and high cpu usage because it will think every 0.1 second. That's not a good sign.

To Creator : Please make an array to hold for this ability.

EDIT : Default round event

PHP Code:


new g_max
new g_iHasAbility[33// this is an array

public plugin_init ( )
{
       
register_event "Round_End"2"1=Round_End" )

       
g_max get_maxplayers ( )
}

public 
Round_End ( )
{
       for ( new 
id=1id <= g_maxid++ )
       {
             if ( 
is_user_connected id ) && g_iHasAbility id ] )
             {
                     
g_iHasAbilityid ] = 0;
             }
       }



H.RED.ZONE 03-24-2012 08:18

Re: [ZP] Zombie Class : Ghost + Noclip
 
Yep event is the best to use here.
But why are we talking this would be a killing zombie he can walk throw walls lol bad idea and no knockback... (:

jc980 03-24-2012 10:34

Re: [ZP] Zombie Class : Ghost + Noclip
 
yeah, but it has slow speed so its balanced i think. especially with low health.


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

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