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

Solved Base Builder v6.5 Extra Zombie Classes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
saarthbhosale
Member
Join Date: Feb 2020
Old 04-16-2020 , 04:16   Base Builder v6.5 Extra Zombie Classes
Reply With Quote #1

Hello,

I need zombie class plugin where i can get more than 8 classes..

The classes should be like rejuminator zombie, warewolf zombie, No Headshot zombie, Chainsaw zombie, Bunny Hop Zombie, Classic zombie, Tanker Zombie.. Just like that

Last edited by saarthbhosale; 04-19-2020 at 03:14.
saarthbhosale is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 04-16-2020 , 04:20   Re: Base Builder v6.5 Extra Zombie Classes
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=92407
alferd is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-16-2020 , 08:25   Re: Base Builder v6.5 Extra Zombie Classes
Reply With Quote #3

ZP plugins are compatible with BaseBuilder, right? If so, just search the Zombie Plague section for any extra classes you like.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
saarthbhosale
Member
Join Date: Feb 2020
Old 04-16-2020 , 08:44   Re: Base Builder v6.5 Extra Zombie Classes
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
ZP plugins are compatible with BaseBuilder, right? If so, just search the Zombie Plague section for any extra classes you like.
I am not sure if it is, but i will test and give you a feedback, thanks!
saarthbhosale is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-16-2020 , 13:54   Re: Base Builder v6.5 Extra Zombie Classes
Reply With Quote #5

This is what it says in the plugin's thread:

Quote:
I spent a lot of time trying to make this mod compatible with ZP classes. For the most part, ZP zombie classes will work as long as they are not too complex. If they are complex, or not compatible, you'll have to open their source and edit them to make them work. It's pretty simple to make new classes, look at bb_classes64.sma to see the normal ones and build from there. You can also just make new ones especially for Base Builder (Because ZP classes will need balancing) which is actually what I suggest trying. Good luck, and I hope it is simple enough for your guys to understand. Look at the include files to see a detailed list of natives/forwards and their inputs/outputs.
__________________

Last edited by OciXCrom; 04-16-2020 at 13:54.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-16-2020 , 14:33   Re: Base Builder v6.5 Extra Zombie Classes
Reply With Quote #6

OciXCrom is right, most of ZP classes are compatible with basebuilder but that's only if you want to add zombies with a special ability, if you just want to add (as most of bb servers) normal zombies with just more/less gravity/health/speed, then just edit zombie classes source adding what zombies you want and change the gravity,health,speed only (access too)

also dont forget to register each zombie class you added
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-16-2020 , 20:03   Re: Base Builder v6.5 Extra Zombie Classes
Reply With Quote #7

Quote:
Originally Posted by saarthbhosale View Post
Hello,

I need zombie class plugin where i can get more than 8 classes..

The classes should be like rejuminator zombie, warewolf zombie, No Headshot zombie, Chainsaw zombie, Bunny Hop Zombie, Classic zombie, Tanker Zombie.. Just like that
In This plugin You can get what you want And edit models by your self
Example:

1: new const zclass1_name[] // Name Of Zombie Class
2: new const zclass1_info[] // Tag Of Zombie Class
3: new const zclass1_model[] // Name Of Zombie Class Model File
4: new const zclass1_clawmodel[] // Name Of v_classmodel
5: const zclass1_health // How many health you give for zombies
6: const zclass1_speed //How many Speed you give for zombies
7: const Float:zclass1_gravity // How many high jump you give for zombies
8: const zclass1_adminflags // Admin Flag

PHP Code:
/*================================================================================
    
    -----------------------------------
    -*- Base Builder 6.7 Zombie Classes -*-
    -----------------------------------
    
    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
    
    These Addons Base Builder v6.7 Created by MrAbdoO Enjoy :)
    
    You can edit free 10 Zombie Classes, feel good with these addons :P        
    
================================================================================*/

#include <amxmodx>
#include <basebuilder>
#include <hamsandwich>
#include <fun>
#include <cstrike>

/*================================================================================
 [Plugin Customization]
=================================================================================*/

// Classic Zombie Attributes
new const zclass1_name[] = { "Classic Zombie" }
new const 
zclass1_info[] = { "[FREE]" }
new const 
zclass1_model[] = { "bb_classic_zm" }
new const 
zclass1_clawmodel[] = { "v_bloody" }
const 
zclass1_health 3200
const zclass1_speed 268
const Float:zclass1_gravity 0.8
const zclass1_adminflags ADMIN_ALL

// MaskDoctor Zombie Attributes
new const zclass2_name[] = { "VenomBlue Zombie" }
new const 
zclass2_info[] = { "[FREE]" }
new const 
zclass2_model[] = { "bb_venomblue" }
new const 
zclass2_clawmodel[] = { "v_bloody" }
const 
zclass2_health 3800
const zclass2_speed 260
const Float:zclass2_gravity 0.7
const zclass2_adminflags ADMIN_ALL

// Girl Zombie Attributes
new const zclass3_name[] = { "Girl Zombie" }
new const 
zclass3_info[] = { "[FREE]" }
new const 
zclass3_model[] = { "bb_girl" }
new const 
zclass3_clawmodel[] = { "v_girl" }
const 
zclass3_health 4400
const zclass3_speed 269
const Float:zclass3_gravity 0.6
const zclass3_adminflags ADMIN_ALL

// Tank Zombie Attributes
new const zclass4_name[] = { "Tank Zombie" }
new const 
zclass4_info[] = { "[FREE]" }
new const 
zclass4_model[] = { "bb_tank" }
new const 
zclass4_clawmodel[] = { "v_tank" }
const 
zclass4_health 4800
const zclass4_speed 268
const Float:zclass4_gravity 0.7
const zclass4_adminflags ADMIN_ALL
 
 
// Gunner Zombie Attributes
new const zclass5_name[] = { "\wGunner Zombie" }
new const 
zclass5_info[] = { "[VIP]" }
new const 
zclass5_model[] = { "bb_gunner" }
new const 
zclass5_clawmodel[] = { "v_gunner" }
const 
zclass5_health 5100
const zclass5_speed 294
const Float:zclass5_gravity 0.5
const zclass5_adminflags ADMIN_LEVEL_H  
 
 
// Blader Zombie Attributes
new const zclass6_name[] = { "Blader Zombie" }
new const 
zclass6_info[] = { "[ADMIN]" }
new const 
zclass6_model[] = { "bb_blader" }
new const 
zclass6_clawmodel[] = { "v_blader" }
const 
zclass6_health 5500
const zclass6_speed 296
const Float:zclass6_gravity 0.5
const zclass6_adminflags ADMIN_LEVEL_A 
 
 
// EviL Zombie Attributes
new const zclass7_name[] = { "\wEviL Zombie" }
new const 
zclass7_info[] = { "[SUPERADMIN]" }
new const 
zclass7_model[] = { "bb_evil" }
new const 
zclass7_clawmodel[] = { "v_evil" }
const 
zclass7_health 5900
const zclass7_speed 297
const Float:zclass7_gravity 0.4
const zclass7_adminflags ADMIN_MAP

 
// Green Zombie Attributes
new const zclass8_name[] = { "Green Zombie" }
new const 
zclass8_info[] = { "[HEAD]" }
new const 
zclass8_model[] = { "bb_green" }
new const 
zclass8_clawmodel[] = { "v_green" }
const 
zclass8_health 6100
const zclass8_speed 297
const Float:zclass8_gravity 0.5
const zclass8_adminflags ADMIN_LEVEL_E

 
// Demonic Zombie Attributes
new const zclass9_name[] = { "Demonic Zombie" }
new const 
zclass9_info[] = { "[CO-OWNER]" }
new const 
zclass9_model[] = { "bb_demonic" }
new const 
zclass9_clawmodel[] = { "v_demonic" }
const 
zclass9_health 6600
const zclass9_speed 297
const Float:zclass9_gravity 0.5
const zclass9_adminflags ADMIN_BAN

 
// CrystaLRevenant Zombie Attributes
new const zclass10_name[] = { "CrystaLRevenant Zombie" }
new const 
zclass10_info[] = { "[OWNER]" }
new const 
zclass10_model[] = { "bb_crystal_revenant" }
new const 
zclass10_clawmodel[] = { "v_crystal_revenant" }
const 
zclass10_health 7200
const zclass10_speed 297
const Float:zclass10_gravity 0.4
const zclass10_adminflags ADMIN_CVAR 
 
#define TANK_ARMOR 200

/*============================================================================*/

new g_zclass_tanker

// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
    
register_plugin("Base Builder Zombie Classes""6.7""MrAbdoO")
    
    
// Register all classes
    
bb_register_zombie_class(zclass1_namezclass1_infozclass1_modelzclass1_clawmodelzclass1_healthzclass1_speedzclass1_gravity0.0zclass1_adminflags)
    
bb_register_zombie_class(zclass2_namezclass2_infozclass2_modelzclass2_clawmodelzclass2_healthzclass2_speedzclass2_gravity0.0zclass2_adminflags)
    
bb_register_zombie_class(zclass3_namezclass3_infozclass3_modelzclass3_clawmodelzclass3_healthzclass3_speedzclass3_gravity0.0zclass3_adminflags)
    
g_zclass_tanker bb_register_zombie_class(zclass4_namezclass4_infozclass4_modelzclass4_clawmodelzclass4_healthzclass4_speedzclass4_gravity0.0zclass4_adminflags
    
bb_register_zombie_class(zclass5_namezclass5_infozclass5_modelzclass5_clawmodelzclass5_healthzclass5_speedzclass5_gravity0.0zclass5_adminflags)
    
bb_register_zombie_class(zclass6_namezclass6_infozclass6_modelzclass6_clawmodelzclass6_healthzclass6_speedzclass6_gravity0.0zclass6_adminflags)
    
bb_register_zombie_class(zclass7_namezclass7_infozclass7_modelzclass7_clawmodelzclass7_healthzclass7_speedzclass7_gravity0.0zclass7_adminflags)
    
bb_register_zombie_class(zclass8_namezclass8_infozclass8_modelzclass8_clawmodelzclass8_healthzclass8_speedzclass8_gravity0.0zclass8_adminflags)
    
bb_register_zombie_class(zclass9_namezclass9_infozclass9_modelzclass9_clawmodelzclass9_healthzclass9_speedzclass9_gravity0.0zclass9_adminflags)
    
bb_register_zombie_class(zclass10_namezclass10_infozclass10_modelzclass10_clawmodelzclass10_healthzclass10_speedzclass10_gravity0.0zclass10_adminflags)
}

#if defined TANK_ARMOR
public plugin_init()
{
    
RegisterHam(Ham_Spawn"player""ham_PlayerSpawn_Post"1)
}

public 
ham_PlayerSpawn_Post(id)
{
    if (!
is_user_alive(id))
        return ;
        
    if (
bb_is_user_zombie(id) && bb_get_user_zombie_class(id) == g_zclass_tanker)
    {
        
give_item(id"item_assaultsuit");
        
cs_set_user_armor(idTANK_ARMORCS_ARMOR_VESTHELM);
    }
}
#endif
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/ 

Last edited by Supremache; 04-16-2020 at 20:23.
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-17-2020 , 03:47   Re: Base Builder v6.5 Extra Zombie Classes
Reply With Quote #8

Quote:
Originally Posted by saarthbhosale View Post
Hello,

I need zombie class plugin where i can get more than 8 classes..

The classes should be like rejuminator zombie, warewolf zombie, No Headshot zombie, Chainsaw zombie, Bunny Hop Zombie, Classic zombie, Tanker Zombie.. Just like that
Another BaseBuilder Zombie Classes And I Think this plugin what you need
PHP Code:
/*================================================================================
    
    -----------------------------------
    -*- [BB] Credits Classes -*-
    -----------------------------------
    
    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
    
    These Addons Base Builder v6.7 Created by MrAbdoO Enjoy :)
    
    All classes have been balanced, but feel free to edit them if
    you are not satisfied.
    
================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <basebuilder>
#include <hamsandwich>
#include <fun>
#include <xs>

/*================================================================================
 [Plugin Customization]
=================================================================================*/
// Classic Attributes
new const zclass1_name[] = { "Classic" }
new const 
zclass1_info[] = { "Normal" }
new const 
zclass1_model[] = { "bb_clasic" }
new const 
zclass1_clawmodel[] = { "v_bloodyhands" }
const 
zclass1_health 3000
const zclass1_speed 245
const Float:zclass1_gravity 0.85
const zclass1_admin ADMIN_LEVEL_A
const zclass1_credits 0


// Fast Attributes
new const zclass2_name[] = { "Fast" }
new const 
zclass2_info[] = { "Speed+ HP+" }
new const 
zclass2_model[] = { "bb_fast" }
new const 
zclass2_clawmodel[] = { "v_bloodyhands" }
const 
zclass2_health 3500
const zclass2_speed 300
const Float:zclass2_gravity 0.85
const zclass2_admin ADMIN_LEVEL_A
const zclass2_credits 0

// Tanker Attributes
new const zclass3_name[] = { "Tanker" }
new const 
zclass3_info[] = { "Speed- HP++" }
new const 
zclass3_model[] = { "bb_tanker" }
new const 
zclass3_clawmodel[] = { "v_bloodyhands" }
const 
zclass3_health 4000
const zclass3_speed 300
const Float:zclass3_gravity 0.85
const zclass3_admin ADMIN_LEVEL_A
const zclass3_credits 0


// Chainsaw Attributes
new const zclass4_name[] = { "Chainsaw" }
new const 
zclass4_info[] = { "HP+ DMG+" }
new const 
zclass4_model[] = { "bb_chainsaw" }
new const 
zclass4_clawmodel[] = { "v_bloodyhands" }
const 
zclass4_health 3500
const zclass4_speed 245
const Float:zclass4_gravity 0.85
const zclass4_admin ADMIN_LEVEL_A
const zclass4_credits 0
#define CHAINSAW_DAMAGE 2.0

// Banshee Attributes
new const zclass5_name[] = { "Banshee" }
new const 
zclass5_info[] = { "Semiclip" }
new const 
zclass5_model[] = { "bb_banshee2" }
new const 
zclass5_clawmodel[] = { "v_bloodyhands" }
const 
zclass5_health 2250
const zclass5_speed 260
const Float:zclass5_gravity 0.85
const zclass5_admin ADMIN_LEVEL_A
const zclass5_credits 0
#define BANSHEE_RENDERAMT 150

// Charger Attributes
new const zclass6_name[] = { "Charger" }
new const 
zclass6_info[] = { "HP++ Speed- Charge" }
new const 
zclass6_model[] = { "bb_charger" }
new const 
zclass6_clawmodel[] = { "v_bloodyhands" }
const 
zclass6_health 3500
const zclass6_speed 210
const Float:zclass6_gravity 0.85
const zclass6_admin ADMIN_LEVEL_A
const zclass6_credits 0

// Lycan Attributes
new const zclass7_name[] = { "Werewolf" }
new const 
zclass7_info[] = { "=Balanced=" }
new const 
zclass7_model[] = { "bb_lycan" }
new const 
zclass7_clawmodel[] = { "v_bloodyhands" }
const 
zclass7_health 3000
const zclass7_speed 275
const Float:zclass7_gravity 0.75
const zclass7_admin ADMIN_LEVEL_A
const zclass7_credits 0

// Regenerator Attributes
new const zclass8_name[] = { "Rejuvinator" }
new const 
zclass8_info[] = { "Regeneration" }
new const 
zclass8_model[] = { "bb_headshot" }
new const 
zclass8_clawmodel[] = { "v_bloodyhands" }
const 
zclass8_health 2500
const zclass8_speed 270
const Float:zclass8_gravity 0.80
const zclass8_admin ADMIN_LEVEL_A
const zclass8_credits 0

//Every 2 seconds, regenerates 2.5% max health
#define REGENERATION_DELAY 1.5
#define HEAL_ALGORITHM (get_user_health(id) + (zclass7_health * 0.025))

// Knockback Attributes
new const zclass9_name[] = { "The Smasher" }
new const 
zclass9_info[] = { "Knockback" }
new const 
zclass9_model[] = { "bb_nazi" }
new const 
zclass9_clawmodel[] = { "v_bloodyhands" }
const 
zclass9_health 1500
const zclass9_speed 260
const Float:zclass9_gravity 1.0
const zclass9_admin ADMIN_LEVEL_A
const zclass9_credits 0

/*============================================================================*/

new bool:g_isSolid[33]
new 
bool:g_isSemiClip[33]
new 
g_iPlayers[32], g_iNumg_iPlayer

new g_zclass_saw
new g_zclass_banshee
new g_zclass_charger
new g_zclass_lycan
new g_zclass_regenerator
new g_zclass_knockback

#define SOUND_DELAY 3.0
new Floatg_fSoundDelay[33]

new 
Floatg_fRegenDelay[33]
#define PAINSHOCK 108

#define g_ChainsawRev "basebuilder/zombie/chainsaw_rev2.wav"
#define g_BansheeScream "basebuilder/zombie/banshee_scream3.wav"
#define g_ChargerRoar "basebuilder/zombie/charger_roar2.wav"
#define g_LycanAttack "basebuilder/zombie/wolf_attack1.wav"
#define g_LycanHowl "basebuilder/zombie/wolf_spawn1.wav"

// Zombie Classes MUST be registered on plugin_precache
#define VERSION "7.4"
public plugin_precache()
{
    
register_plugin("BB Crecit Classes"VERSION"Tirant")
    
register_cvar("bb_credit_classes"VERSIONFCVAR_SPONLY|FCVAR_SERVER)
    
set_cvar_string("bb_credit_classes"VERSION)

    
precache_sound(g_ChainsawRev)
    
precache_sound(g_BansheeScream)
    
precache_sound(g_ChargerRoar)
    
precache_sound(g_LycanAttack)
    
precache_sound(g_LycanHowl)
    
    
// Register all classes
    
g_zclass_saw bb_register_zombie_class(zclass1_namezclass1_infozclass1_modelzclass1_clawmodelzclass1_healthzclass1_speedzclass1_gravity0.0zclass1_adminzclass1_credits)
    
g_zclass_saw bb_register_zombie_class(zclass2_namezclass2_infozclass2_modelzclass2_clawmodelzclass2_healthzclass2_speedzclass2_gravity0.0zclass2_adminzclass2_credits)
    
g_zclass_saw bb_register_zombie_class(zclass3_namezclass3_infozclass3_modelzclass3_clawmodelzclass3_healthzclass3_speedzclass3_gravity0.0zclass3_adminzclass3_credits)
    
g_zclass_saw bb_register_zombie_class(zclass4_namezclass4_infozclass4_modelzclass4_clawmodelzclass4_healthzclass4_speedzclass4_gravity0.0zclass4_adminzclass4_credits)
    
g_zclass_banshee bb_register_zombie_class(zclass5_namezclass5_infozclass5_modelzclass5_clawmodelzclass5_healthzclass5_speedzclass5_gravity0.0zclass5_adminzclass5_credits)
    
g_zclass_charger bb_register_zombie_class(zclass6_namezclass6_infozclass6_modelzclass6_clawmodelzclass6_healthzclass6_speedzclass6_gravity0.0zclass6_adminzclass6_credits)
    
g_zclass_lycan bb_register_zombie_class(zclass7_namezclass7_infozclass7_modelzclass7_clawmodelzclass7_healthzclass7_speedzclass7_gravity0.0zclass7_adminzclass7_credits)
    
g_zclass_regenerator bb_register_zombie_class(zclass8_namezclass8_infozclass8_modelzclass8_clawmodelzclass8_healthzclass8_speedzclass8_gravity0.0zclass8_adminzclass8_credits)
    
g_zclass_knockback bb_register_zombie_class(zclass9_namezclass9_infozclass9_modelzclass9_clawmodelzclass9_healthzclass9_speedzclass9_gravity0.0zclass9_adminzclass9_credits)
}

public 
plugin_init()
{
    
RegisterHam(Ham_TakeDamage"player""ham_TakeDamage")
    
RegisterHam(Ham_TakeDamage"player""ham_TakeDamage_Post"1)
    
RegisterHam(Ham_Spawn"player""ham_PlayerSpawn_Post"1)
    
    
register_forward(FM_PlayerPreThink"fw_PlayerPreThink");
    
register_forward(FM_PlayerPostThink"fw_PlayerPostThink");
    
register_forward(FM_AddToFullPack"fw_addToFullPack"1)
    
register_forward(FM_EmitSound"fw_EmitSound")
}

public 
ham_TakeDamage(victiminflictorattackerFloat:damagedamagebits)
{
    if (!
pev_valid(victim) || !is_user_connected(attacker))
        return 
HAM_IGNORED

    
if (zp_get_user_zombie_class(attacker) == g_zclass_saw)
        
damage*=CHAINSAW_DAMAGE

    SetHamParamFloat
(4damage)
    return 
HAM_HANDLED
}

public 
ham_PlayerSpawn_Post(id)
{
    if (!
is_user_alive(id))
        return ;
        
    if (
bb_is_user_zombie(id) && zp_get_user_zombie_class(id) == g_zclass_banshee)
        
set_user_rendering(idkRenderFxNone000kRenderTransTextureBANSHEE_RENDERAMT)
    else
        
set_user_rendering(idkRenderFxNone000kRenderNormal255)
}

public 
fw_PlayerPreThink(id)
{
    if (!
is_user_alive(id) || !is_user_connected(id))
        return 
FMRES_IGNORED
    
    
if (zp_get_user_zombie_class(id) == g_zclass_regenerator && bb_is_user_zombie(id))
    {
        static 
FloatfGameTime;
        
fGameTime get_gametime();
        if (
g_fRegenDelay[id] < fGameTime)
        {
            
g_fRegenDelay[id] = fGameTime REGENERATION_DELAY;
    
            new 
iHealth floatround(HEAL_ALGORITHM);
            
iHealth clamp(iHealth0zclass7_health);
            
set_user_health(idiHealth);
        }
    }
    
    
get_players(g_iPlayersg_iNum"a")
    
    static 
i
    
for (0g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if (!
g_isSemiClip[g_iPlayer])
            
g_isSolid[g_iPlayer] = true
        
else
            
g_isSolid[g_iPlayer] = false
    
}
    
    if (
g_isSolid[id])
    for (
0g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        
        if (!
g_isSolid[g_iPlayer] || g_iPlayer == id  || !bb_is_user_zombie(id) || zp_get_user_zombie_class(id) != g_zclass_banshee)
            continue
        if (
get_user_team(g_iPlayer) != get_user_team(id))
            continue
            
        
set_pev(g_iPlayerpev_solidSOLID_NOT)
        
g_isSemiClip[g_iPlayer] = true
    
}
        
    return 
FMRES_IGNORED    
}

public 
fw_PlayerPostThink(id)
{
    if (!
is_user_alive(id))
        return 
FMRES_IGNORED
    
    get_players
(g_iPlayersg_iNum"a")
    
    static 
i
    
for (0g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if (
g_isSemiClip[g_iPlayer])
        {
            
set_pev(g_iPlayerpev_solidSOLID_SLIDEBOX)
            
g_isSemiClip[g_iPlayer] = false
        
}
    }
    
    return 
FMRES_IGNORED
}

public 
fw_addToFullPack(eseenthosthostflagsplayerpSet)
{
    if ( !
player )
        return 
FMRES_SUPERCEDE;
        
    if(
player)
    {
        if (!
is_user_alive(host) || !g_isSolid[host])
            return 
FMRES_IGNORED
        
if (get_user_team(ent) != get_user_team(host))
            return 
FMRES_IGNORED
            
        set_es
(esES_SolidSOLID_NOT)
    }
    return 
FMRES_IGNORED
}

public 
fw_EmitSound(id,channel,const sample[],Float:volume,Float:attn,flags,pitch)
{
    if (!
is_user_connected(id) || !bb_is_user_zombie(id) || bb_is_build_phase() || bb_is_prep_phase())
        return 
FMRES_IGNORED;
    
    if ((
g_fSoundDelay[id] + SOUND_DELAY) < get_gametime())
    {
        if (
equal(sample[8], "kni"3))
        {
            if (
equal(sample[14], "sla"3) || equal(sample[14], "hit"3) || equal(sample[14], "sta"3)) // slash
            
{
                if (
zp_get_user_zombie_class(id) == g_zclass_saw)
                {
                    
emit_sound(id,CHAN_ITEM,g_ChainsawRev,volume,attn,flags,pitch)
                    
g_fSoundDelay[id] = get_gametime()
                    return 
FMRES_SUPERCEDE;
                }
                else if (
zp_get_user_zombie_class(id) == g_zclass_banshee)
                {
                    
emit_sound(id,CHAN_ITEM,g_BansheeScream,volume,attn,flags,pitch)
                    
g_fSoundDelay[id] = get_gametime()
                    return 
FMRES_SUPERCEDE;
                }
                else if (
zp_get_user_zombie_class(id) == g_zclass_charger)
                {
                    
emit_sound(id,CHAN_ITEM,g_ChargerRoar,volume,attn,flags,pitch)
                    
g_fSoundDelay[id] = get_gametime()
                    
                    static 
Floatvelocity[3];
                    
velocity_by_aim(id400velocity);
                    
set_pev(idpev_velocityvelocity);
                    
                    return 
FMRES_SUPERCEDE;
                }
                else if (
zp_get_user_zombie_class(id) == g_zclass_lycan)
                {
                    
emit_sound(id,CHAN_ITEM,g_LycanAttack,volume,attn,flags,pitch)
                    
g_fSoundDelay[id] = get_gametime()
                    return 
FMRES_SUPERCEDE;
                }
            }
        }
    }
    
//else
        //g_fSoundDelay[id] = get_gametime()
    
    
return FMRES_IGNORED
}

public 
bb_zombie_class_set(id, class)
{
    if (!
is_user_alive(id))
        return ;
        
    if (class == 
g_zclass_lycan && !bb_is_build_phase())
        
emit_sound(id,CHAN_STATIC,g_LycanHowl,VOL_NORM,ATTN_NORM,0,PITCH_NORM)
        
    return ;
}

public 
ham_TakeDamage_Post(victiminflictorattackerFloat:damagebits)
{
    if(
bb_get_user_zombie_class(victim) == g_zclass_knockback && bb_is_user_zombie(victim))
    {
        
set_pdata_float(victimPAINSHOCK1.05)
    }


Last edited by Supremache; 04-17-2020 at 04:05.
Supremache is offline
saarthbhosale
Member
Join Date: Feb 2020
Old 04-17-2020 , 15:38   Re: Base Builder v6.5 Extra Zombie Classes
Reply With Quote #9

Quote:
Originally Posted by Supremache View Post
Another BaseBuilder Zombie Classes And I Think this plugin what you need
PHP Code:
/*================================================================================
    
    -----------------------------------
    -*- [BB] Credits Classes -*-
    -----------------------------------
    
    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
    
    These Addons Base Builder v6.7 Created by MrAbdoO Enjoy :)
    
    All classes have been balanced, but feel free to edit them if
    you are not satisfied.
    
================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <basebuilder>
#include <hamsandwich>
#include <fun>
#include <xs>

/*================================================================================
 [Plugin Customization]
=================================================================================*/
// Classic Attributes
new const zclass1_name[] = { "Classic" }
new const 
zclass1_info[] = { "Normal" }
new const 
zclass1_model[] = { "bb_clasic" }
new const 
zclass1_clawmodel[] = { "v_bloodyhands" }
const 
zclass1_health 3000
const zclass1_speed 245
const Float:zclass1_gravity 0.85
const zclass1_admin ADMIN_LEVEL_A
const zclass1_credits 0


// Fast Attributes
new const zclass2_name[] = { "Fast" }
new const 
zclass2_info[] = { "Speed+ HP+" }
new const 
zclass2_model[] = { "bb_fast" }
new const 
zclass2_clawmodel[] = { "v_bloodyhands" }
const 
zclass2_health 3500
const zclass2_speed 300
const Float:zclass2_gravity 0.85
const zclass2_admin ADMIN_LEVEL_A
const zclass2_credits 0

// Tanker Attributes
new const zclass3_name[] = { "Tanker" }
new const 
zclass3_info[] = { "Speed- HP++" }
new const 
zclass3_model[] = { "bb_tanker" }
new const 
zclass3_clawmodel[] = { "v_bloodyhands" }
const 
zclass3_health 4000
const zclass3_speed 300
const Float:zclass3_gravity 0.85
const zclass3_admin ADMIN_LEVEL_A
const zclass3_credits 0


// Chainsaw Attributes
new const zclass4_name[] = { "Chainsaw" }
new const 
zclass4_info[] = { "HP+ DMG+" }
new const 
zclass4_model[] = { "bb_chainsaw" }
new const 
zclass4_clawmodel[] = { "v_bloodyhands" }
const 
zclass4_health 3500
const zclass4_speed 245
const Float:zclass4_gravity 0.85
const zclass4_admin ADMIN_LEVEL_A
const zclass4_credits 0
#define CHAINSAW_DAMAGE 2.0

// Banshee Attributes
new const zclass5_name[] = { "Banshee" }
new const 
zclass5_info[] = { "Semiclip" }
new const 
zclass5_model[] = { "bb_banshee2" }
new const 
zclass5_clawmodel[] = { "v_bloodyhands" }
const 
zclass5_health 2250
const zclass5_speed 260
const Float:zclass5_gravity 0.85
const zclass5_admin ADMIN_LEVEL_A
const zclass5_credits 0
#define BANSHEE_RENDERAMT 150

// Charger Attributes
new const zclass6_name[] = { "Charger" }
new const 
zclass6_info[] = { "HP++ Speed- Charge" }
new const 
zclass6_model[] = { "bb_charger" }
new const 
zclass6_clawmodel[] = { "v_bloodyhands" }
const 
zclass6_health 3500
const zclass6_speed 210
const Float:zclass6_gravity 0.85
const zclass6_admin ADMIN_LEVEL_A
const zclass6_credits 0

// Lycan Attributes
new const zclass7_name[] = { "Werewolf" }
new const 
zclass7_info[] = { "=Balanced=" }
new const 
zclass7_model[] = { "bb_lycan" }
new const 
zclass7_clawmodel[] = { "v_bloodyhands" }
const 
zclass7_health 3000
const zclass7_speed 275
const Float:zclass7_gravity 0.75
const zclass7_admin ADMIN_LEVEL_A
const zclass7_credits 0

// Regenerator Attributes
new const zclass8_name[] = { "Rejuvinator" }
new const 
zclass8_info[] = { "Regeneration" }
new const 
zclass8_model[] = { "bb_headshot" }
new const 
zclass8_clawmodel[] = { "v_bloodyhands" }
const 
zclass8_health 2500
const zclass8_speed 270
const Float:zclass8_gravity 0.80
const zclass8_admin ADMIN_LEVEL_A
const zclass8_credits 0

//Every 2 seconds, regenerates 2.5% max health
#define REGENERATION_DELAY 1.5
#define HEAL_ALGORITHM (get_user_health(id) + (zclass7_health * 0.025))

// Knockback Attributes
new const zclass9_name[] = { "The Smasher" }
new const 
zclass9_info[] = { "Knockback" }
new const 
zclass9_model[] = { "bb_nazi" }
new const 
zclass9_clawmodel[] = { "v_bloodyhands" }
const 
zclass9_health 1500
const zclass9_speed 260
const Float:zclass9_gravity 1.0
const zclass9_admin ADMIN_LEVEL_A
const zclass9_credits 0

/*============================================================================*/

new bool:g_isSolid[33]
new 
bool:g_isSemiClip[33]
new 
g_iPlayers[32], g_iNumg_iPlayer

new g_zclass_saw
new g_zclass_banshee
new g_zclass_charger
new g_zclass_lycan
new g_zclass_regenerator
new g_zclass_knockback

#define SOUND_DELAY 3.0
new Floatg_fSoundDelay[33]

new 
Floatg_fRegenDelay[33]
#define PAINSHOCK 108

#define g_ChainsawRev "basebuilder/zombie/chainsaw_rev2.wav"
#define g_BansheeScream "basebuilder/zombie/banshee_scream3.wav"
#define g_ChargerRoar "basebuilder/zombie/charger_roar2.wav"
#define g_LycanAttack "basebuilder/zombie/wolf_attack1.wav"
#define g_LycanHowl "basebuilder/zombie/wolf_spawn1.wav"

// Zombie Classes MUST be registered on plugin_precache
#define VERSION "7.4"
public plugin_precache()
{
    
register_plugin("BB Crecit Classes"VERSION"Tirant")
    
register_cvar("bb_credit_classes"VERSIONFCVAR_SPONLY|FCVAR_SERVER)
    
set_cvar_string("bb_credit_classes"VERSION)

    
precache_sound(g_ChainsawRev)
    
precache_sound(g_BansheeScream)
    
precache_sound(g_ChargerRoar)
    
precache_sound(g_LycanAttack)
    
precache_sound(g_LycanHowl)
    
    
// Register all classes
    
g_zclass_saw bb_register_zombie_class(zclass1_namezclass1_infozclass1_modelzclass1_clawmodelzclass1_healthzclass1_speedzclass1_gravity0.0zclass1_adminzclass1_credits)
    
g_zclass_saw bb_register_zombie_class(zclass2_namezclass2_infozclass2_modelzclass2_clawmodelzclass2_healthzclass2_speedzclass2_gravity0.0zclass2_adminzclass2_credits)
    
g_zclass_saw bb_register_zombie_class(zclass3_namezclass3_infozclass3_modelzclass3_clawmodelzclass3_healthzclass3_speedzclass3_gravity0.0zclass3_adminzclass3_credits)
    
g_zclass_saw bb_register_zombie_class(zclass4_namezclass4_infozclass4_modelzclass4_clawmodelzclass4_healthzclass4_speedzclass4_gravity0.0zclass4_adminzclass4_credits)
    
g_zclass_banshee bb_register_zombie_class(zclass5_namezclass5_infozclass5_modelzclass5_clawmodelzclass5_healthzclass5_speedzclass5_gravity0.0zclass5_adminzclass5_credits)
    
g_zclass_charger bb_register_zombie_class(zclass6_namezclass6_infozclass6_modelzclass6_clawmodelzclass6_healthzclass6_speedzclass6_gravity0.0zclass6_adminzclass6_credits)
    
g_zclass_lycan bb_register_zombie_class(zclass7_namezclass7_infozclass7_modelzclass7_clawmodelzclass7_healthzclass7_speedzclass7_gravity0.0zclass7_adminzclass7_credits)
    
g_zclass_regenerator bb_register_zombie_class(zclass8_namezclass8_infozclass8_modelzclass8_clawmodelzclass8_healthzclass8_speedzclass8_gravity0.0zclass8_adminzclass8_credits)
    
g_zclass_knockback bb_register_zombie_class(zclass9_namezclass9_infozclass9_modelzclass9_clawmodelzclass9_healthzclass9_speedzclass9_gravity0.0zclass9_adminzclass9_credits)
}

public 
plugin_init()
{
    
RegisterHam(Ham_TakeDamage"player""ham_TakeDamage")
    
RegisterHam(Ham_TakeDamage"player""ham_TakeDamage_Post"1)
    
RegisterHam(Ham_Spawn"player""ham_PlayerSpawn_Post"1)
    
    
register_forward(FM_PlayerPreThink"fw_PlayerPreThink");
    
register_forward(FM_PlayerPostThink"fw_PlayerPostThink");
    
register_forward(FM_AddToFullPack"fw_addToFullPack"1)
    
register_forward(FM_EmitSound"fw_EmitSound")
}

public 
ham_TakeDamage(victiminflictorattackerFloat:damagedamagebits)
{
    if (!
pev_valid(victim) || !is_user_connected(attacker))
        return 
HAM_IGNORED

    
if (zp_get_user_zombie_class(attacker) == g_zclass_saw)
        
damage*=CHAINSAW_DAMAGE

    SetHamParamFloat
(4damage)
    return 
HAM_HANDLED
}

public 
ham_PlayerSpawn_Post(id)
{
    if (!
is_user_alive(id))
        return ;
        
    if (
bb_is_user_zombie(id) && zp_get_user_zombie_class(id) == g_zclass_banshee)
        
set_user_rendering(idkRenderFxNone000kRenderTransTextureBANSHEE_RENDERAMT)
    else
        
set_user_rendering(idkRenderFxNone000kRenderNormal255)
}

public 
fw_PlayerPreThink(id)
{
    if (!
is_user_alive(id) || !is_user_connected(id))
        return 
FMRES_IGNORED
    
    
if (zp_get_user_zombie_class(id) == g_zclass_regenerator && bb_is_user_zombie(id))
    {
        static 
FloatfGameTime;
        
fGameTime get_gametime();
        if (
g_fRegenDelay[id] < fGameTime)
        {
            
g_fRegenDelay[id] = fGameTime REGENERATION_DELAY;
    
            new 
iHealth floatround(HEAL_ALGORITHM);
            
iHealth clamp(iHealth0zclass7_health);
            
set_user_health(idiHealth);
        }
    }
    
    
get_players(g_iPlayersg_iNum"a")
    
    static 
i
    
for (0g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if (!
g_isSemiClip[g_iPlayer])
            
g_isSolid[g_iPlayer] = true
        
else
            
g_isSolid[g_iPlayer] = false
    
}
    
    if (
g_isSolid[id])
    for (
0g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        
        if (!
g_isSolid[g_iPlayer] || g_iPlayer == id  || !bb_is_user_zombie(id) || zp_get_user_zombie_class(id) != g_zclass_banshee)
            continue
        if (
get_user_team(g_iPlayer) != get_user_team(id))
            continue
            
        
set_pev(g_iPlayerpev_solidSOLID_NOT)
        
g_isSemiClip[g_iPlayer] = true
    
}
        
    return 
FMRES_IGNORED    
}

public 
fw_PlayerPostThink(id)
{
    if (!
is_user_alive(id))
        return 
FMRES_IGNORED
    
    get_players
(g_iPlayersg_iNum"a")
    
    static 
i
    
for (0g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if (
g_isSemiClip[g_iPlayer])
        {
            
set_pev(g_iPlayerpev_solidSOLID_SLIDEBOX)
            
g_isSemiClip[g_iPlayer] = false
        
}
    }
    
    return 
FMRES_IGNORED
}

public 
fw_addToFullPack(eseenthosthostflagsplayerpSet)
{
    if ( !
player )
        return 
FMRES_SUPERCEDE;
        
    if(
player)
    {
        if (!
is_user_alive(host) || !g_isSolid[host])
            return 
FMRES_IGNORED
        
if (get_user_team(ent) != get_user_team(host))
            return 
FMRES_IGNORED
            
        set_es
(esES_SolidSOLID_NOT)
    }
    return 
FMRES_IGNORED
}

public 
fw_EmitSound(id,channel,const sample[],Float:volume,Float:attn,flags,pitch)
{
    if (!
is_user_connected(id) || !bb_is_user_zombie(id) || bb_is_build_phase() || bb_is_prep_phase())
        return 
FMRES_IGNORED;
    
    if ((
g_fSoundDelay[id] + SOUND_DELAY) < get_gametime())
    {
        if (
equal(sample[8], "kni"3))
        {
            if (
equal(sample[14], "sla"3) || equal(sample[14], "hit"3) || equal(sample[14], "sta"3)) // slash
            
{
                if (
zp_get_user_zombie_class(id) == g_zclass_saw)
                {
                    
emit_sound(id,CHAN_ITEM,g_ChainsawRev,volume,attn,flags,pitch)
                    
g_fSoundDelay[id] = get_gametime()
                    return 
FMRES_SUPERCEDE;
                }
                else if (
zp_get_user_zombie_class(id) == g_zclass_banshee)
                {
                    
emit_sound(id,CHAN_ITEM,g_BansheeScream,volume,attn,flags,pitch)
                    
g_fSoundDelay[id] = get_gametime()
                    return 
FMRES_SUPERCEDE;
                }
                else if (
zp_get_user_zombie_class(id) == g_zclass_charger)
                {
                    
emit_sound(id,CHAN_ITEM,g_ChargerRoar,volume,attn,flags,pitch)
                    
g_fSoundDelay[id] = get_gametime()
                    
                    static 
Floatvelocity[3];
                    
velocity_by_aim(id400velocity);
                    
set_pev(idpev_velocityvelocity);
                    
                    return 
FMRES_SUPERCEDE;
                }
                else if (
zp_get_user_zombie_class(id) == g_zclass_lycan)
                {
                    
emit_sound(id,CHAN_ITEM,g_LycanAttack,volume,attn,flags,pitch)
                    
g_fSoundDelay[id] = get_gametime()
                    return 
FMRES_SUPERCEDE;
                }
            }
        }
    }
    
//else
        //g_fSoundDelay[id] = get_gametime()
    
    
return FMRES_IGNORED
}

public 
bb_zombie_class_set(id, class)
{
    if (!
is_user_alive(id))
        return ;
        
    if (class == 
g_zclass_lycan && !bb_is_build_phase())
        
emit_sound(id,CHAN_STATIC,g_LycanHowl,VOL_NORM,ATTN_NORM,0,PITCH_NORM)
        
    return ;
}

public 
ham_TakeDamage_Post(victiminflictorattackerFloat:damagebits)
{
    if(
bb_get_user_zombie_class(victim) == g_zclass_knockback && bb_is_user_zombie(victim))
    {
        
set_pdata_float(victimPAINSHOCK1.05)
    }

Yes!!! That's what i was searching for!!! Thanks alot!!!
saarthbhosale 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 09:00.


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