Kullanıcı Tag Listesi

6 sonuçtan 1 ile 6 arası

Threaded View

  1. #3
    JDM
    JDM çevrimdışı
    teğmen mod JDM - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    Feb 2013
    Yer
    İstanbul/Bahçelievler
    Mesajlar
    841
    Bahsedildi
    5 Mesaj
    Etiketlenmiş
    9 Konu
    Tecrübe Puanı
    13

    Standart Cevap: [Basebuilder] Drop Weapon Zombie

    Bunu deneyin;

    PHP- Kodu:
    /* ====================================================
    Name: Deimos Zombie
    Type: Zombie Class
    Desc: Press +Attack2 to Drop Human Weapon
    Edit: Dias Leon
    This zombie class made by Petr & 5c0r.
    ==================================================== */
    #include <amxmodx>
    #include <engine>
    #include <fakemeta>
    #include <basebuilder>
    #include <fun>
    #include <hamsandwich>
    #include <fakemeta_util>


    #define PLUGIN "[Basebuilder] ZClass: Deimos Zombie"
    #define VERSION "1.1"
    #define AUTHOR "Petr+5cor"


    new const zclass_name[] = { "Deimos Zombie" }
    new const 
    zclass_info[] = { "Press +Attack2 to Drop Human Weapon" }
    new const 
    zclass_model[] = { "csplague_zm" }
    new const 
    zclass_clawmodel[] = { "v_knife_deimos1.mdl" }
    const 
    zclass_health 3000
    const zclass_speed 240
    const Float:zclass_gravity 1.0
    const Float:zclass_knockback 0.25


    new beamSprdeimos_spr
    new const deimos_sound[] = "zombie_plague/deimos_skill_hit.wav"


    //Cvars
    new pcvar_distance
    new cvar_cooldown // Cooldown when dropped the weapon of human


    new g_deimos


    new g_maxplayers
    new is_cooldown[33] = 0
    new bool:g_cd[33]
    new 
    cvar_nemesis


    #define PRIMARY_WEAPONS_BIT_SUM ((1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|(1<<CSW_GALIL)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_MP5NAVY)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_G3SG1)|(1<<CSW_SG552)|(1<<CSW_AK47)|(1<<CSW_P90)) // You can allways add more 


    public plugin_precache()
    {
        
    g_deimos zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)
        
    beamSpr precache_model("sprites/lgtning.spr")
        
    deimos_spr precache_model("sprites/deimosexp.spr")
        
    precache_sound(deimos_sound)
    }


    public 
    plugin_init() 
    {
        
    register_plugin(PLUGINVERSIONAUTHOR)
        
    pcvar_distance register_cvar "bb_deimos_distance""1000" )
        
    cvar_cooldown register_cvar("bb_deimos_shot_cooldown","45")
        
    cvar_nemesis register_cvar("bb_deimos_nemesis""1")
        
    g_maxplayers get_maxplayers()
        
    register_logevent("roundStart"2"1=Round_Start")
        
    register_forward(FM_CmdStart"fwd_cmd_start")
        
    RegisterHam(Ham_Spawn,"player","fw_PlayerSpawn_Post",1)
    }
    public 
    fw_PlayerSpawn_Post(id)
    {
        
    // Not alive...
        
    if(!is_user_alive(id))
            return 
    HAM_IGNORED
        
    if(cvar_nemesis == 1)
        {
            if(
    zp_get_user_zombie_class(id) == g_deimos && bb_is_user_zombie(id))
            {
                
    g_cd[id] = true
            
    }
            } else {
            if(
    zp_get_user_zombie_class(id) == g_deimos && bb_is_user_zombie(id))
            {
                
    g_cd[id] = true
            
    }    
        }
        
        return 
    HAM_IGNORED
    }  


    public 
    fwd_cmd_start(iduc_handleseed
    {
        if(
    cvar_nemesis == 1)
        {
            if (!
    is_user_alive(id) || !bb_is_user_zombie(id) || g_cd[id] )
                return 
    FMRES_IGNORED
            
    } else {
            if (!
    is_user_alive(id) || !bb_is_user_zombie(id) || g_cd[id] )
                return 
    FMRES_IGNORED
        
    }
        
        if (
    zp_get_user_zombie_class(id) != g_deimos)
            return 
    FMRES_IGNORED
        
        
    static buttons
        buttons 
    get_uc(uc_handleUC_Buttons)
        
        if(
    buttons IN_ATTACK2) {
            
    drop_weapon(id)
            
    g_cd[id] = true
        
    }
        
        
    buttons &= ~IN_ATTACK2
        set_uc
    (uc_handleUC_Buttonsbuttons)
        
        return 
    FMRES_HANDLED
    }


    drop_weapon(id)
    {
        new 
    targetbody
        
    static Float:start[3]
        static 
    Float:aim[3]
        
        
    pev(idpev_originstart)
        
    fm_get_aim_origin(idaim)
        
        
    start[2] += 16.0// raise
        
    aim[2] += 16.0// raise
        
    get_user_aiming idtargetbodypcvar_distance )
        
        if( 
    is_user_alivetarget ) && !bb_is_user_zombietarget ) )
        {    
            
    message_begin(MSG_BROADCAST ,SVC_TEMPENTITY)
            
    write_byte(TE_EXPLOSION)
            
    engfunc(EngFunc_WriteCoordaim[0])
            
    engfunc(EngFunc_WriteCoordaim[1])
            
    engfunc(EngFunc_WriteCoordaim[2])
            
    write_short(deimos_spr)
            
    write_byte(10)
            
    write_byte(30)
            
    write_byte(4)
            
    message_end()
            
            
    emit_sound(idCHAN_WEAPONdeimos_soundVOL_NORMATTN_NORM0PITCH_NORM)
            
            
    drop(target)
        }    
        
        
    message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
        
    write_byte(0)
        
    engfunc(EngFunc_WriteCoord,start[0]);
        
    engfunc(EngFunc_WriteCoord,start[1]);
        
    engfunc(EngFunc_WriteCoord,start[2]);
        
    engfunc(EngFunc_WriteCoord,aim[0]);
        
    engfunc(EngFunc_WriteCoord,aim[1]);
        
    engfunc(EngFunc_WriteCoord,aim[2]);
        
    write_short(beamSpr); // sprite index
        
    write_byte(0); // start frame
        
    write_byte(30); // frame rate in 0.1's
        
    write_byte(10); // life in 0.1's
        
    write_byte(100); // line width in 0.1's
        
    write_byte(10); // noise amplititude in 0.01's
        
    write_byte(200); // red
        
    write_byte(200); // green
        
    write_byte(0); // blue
        
    write_byte(100); // brightness
        
    write_byte(50); // scroll speed in 0.1's
        
    message_end();
        
    set_taskget_pcvar_float(cvar_cooldown), "reset_cooldown2"id );
    }

    public 
    reset_cooldown2(id)
    {
        
    g_cd[id] = false
        client_print
    idprint_chat"[Deimos Zombie] Now. You can use your Ability. Press +Attack2" )
    }

    public 
    roundStart()
    {
        for (new 
    1<= g_maxplayersi++)
        {
            
    is_cooldown[i] = 0
            remove_task
    (i)
        }
    }
    stock drop(id
    {
        new 
    weapons[32], num
        get_user_weapons
    (idweaponsnum)
        for (new 
    0numi++) {
            if (
    PRIMARY_WEAPONS_BIT_SUM & (1<<weapons[i])) 
            {
                static 
    wname[32]
                
    get_weaponname(weapons[i], wnamesizeof wname 1)
                
    engclient_cmd(id"drop"wname)
            }
        }
    }
    /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
    *{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
    */ 
    Konu JDM tarafından (23-02-14 Saat 20:10 ) değiştirilmiştir.
    Steam ID: STEAM_1:0:70428872
    Steam Name: Seps!s
    Skype: jdm.csplague

    Takdir ediliyorsan değil, Taklit ediliyorsan başarmışsın demektir.
    Albert Einstein

Kullanıcıların arama motorlarındaki kullandığı taglar:

Counter Strike 1.6 Cfg, plugin, eklenti, sxe, config, skin, setup
Counter Strike

Bu Konudaki Etiketler

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Cevap Yazma Yetkiniz Yok
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajınızı Değiştirme Yetkiniz Yok
  •  

SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121