AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP50] Zombie class: Headless Zombie (https://forums.alliedmods.net/showthread.php?t=225123)

Catastrophe 09-01-2013 05:17

[ZP50] Zombie class: Headless Zombie
 
1 Attachment(s)
[ZP50] Zombie class: Headless Zombie

Description:-
This zombie class gets no headshots, headshots for this zombie will not be hit that means that they will be treated like Leg-shots dealing minor damage and not displaying the head shot blood splash...

This class i simple yet perfect, it was made for newbies on the server since the new players just go take 5 headshots and die.... so i made this :P, have fun.

Credits:-

Me:- 100% idea + 100% code

To Do: -

Nothing, i dont plan any updates.

Bugs : -

None. Report if u find any.

Authors Note:-

Dont PM me for anything related to this topic, post it here.........
Hope u all like it :)

I'm posting this here because ppl no longer read the Sub plugin submission section :P

Cvars:-

No Cvars

Change log:-

v1.0 :
Initial Release

NOTE: I'm not making a zp43 version of this.... u want it u convert it.

Servers using this class : 91.204.209.149:27075

wicho 09-01-2013 05:31

Re: [ZP50] Zombie class: Headless Zombie
 
Simple but useful thx for share..

MeRCeNaRyZm 09-01-2013 09:01

Re: [ZP50] Zombie class: Headless Zombie
 
for zp 4.3 ??

Cigojlo 09-03-2013 15:13

Re: [ZP50] Zombie class: Headless Zombie
 
nice bro and nice ide get head =set_tr2(traceresult, TR_iHitgroup, LEFTLEG)

wicho 09-07-2014 17:11

Re: [ZP50] Zombie class: Headless Zombie
 
Show the error...

smoka 09-07-2014 17:50

Re: [ZP50] Zombie class: Headless Zombie
 
2 Attachment(s)
about the erorr i suppouse its this one
find-> line
set_tr2(traceresult, TR_iHitgroup, LEFTLEG)
change it to HIT_LEFTLEG
Converted for 4.3 not tested but should work

wicho 09-07-2014 18:51

Re: [ZP50] Zombie class: Headless Zombie
 
PHP Code:

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cs_ham_bots_api>
#include <zp50_class_zombie>
#include <zp50_core>

new const zombieclass1_name[] = "Headless Zombie"
new const zombieclass1_info[] = "No Head shots !"
new const zombieclass1_models[][] = { "zombie_source" }
new const 
zombieclass1_clawmodels[][] = { "models/zombie_plague/v_knife_zombie.mdl" }
const 
zombieclass1_health 1800
const Float:zombieclass1_speed 1.00
const Float:zombieclass1_gravity 0.9
const Float:zombieclass1_knockback 1.0


new g_ZombieClassID

public plugin_init()
{
       
register_plugin("[ZP] Class: Headless Zombie""1.0""Catastrophe")
      
       
RegisterHam(Ham_TraceAttack"player""fw_traceattack")
       
RegisterHamBots(Ham_TraceAttack"fw_traceattack")
}

public 
plugin_precache()
{
    
    
    new 
index
    
    g_ZombieClassID 
zp_class_zombie_register(zombieclass1_namezombieclass1_infozombieclass1_healthzombieclass1_speedzombieclass1_gravity)
    
zp_class_zombie_register_kb(g_ZombieClassIDzombieclass1_knockback)
    for (
index 0index sizeof zombieclass1_modelsindex++)
        
zp_class_zombie_register_model(g_ZombieClassIDzombieclass1_models[index])
    for (
index 0index sizeof zombieclass1_clawmodelsindex++)
        
zp_class_zombie_register_claw(g_ZombieClassIDzombieclass1_clawmodels[index]) 
        
}

public 
fw_traceattack(victimattackerFloat:damagedirection[3], traceresultdmgbits)
{
        if(!
is_user_alive(victim) || zp_class_zombie_get_current(victim) != g_ZombieClassID)
        return

    if(
get_tr2(traceresultTR_iHitgroupHIT_HEAD))
    {
        
set_tr2(traceresultTR_iHitgroupHIT_LEFTLEG)
    }




All times are GMT -4. The time now is 14:43.

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