Catalog News Guides Community For contributors
Everything for CS 1.6 / CSS / CS:GO servers - Plugins | Builds | Models | Maps » Counter-Strike » Plugins » Universal plugins » “Kill Effects” plugin for CS 1.6

“Kill Effects” plugin for CS 1.6

31.05.2019, 17:07SokratViews: 3 394Comments: 5
“Kill Effects” plugin for CS 1.6

About this content

Плагин «Эффекты при убийстве» для CS 1.6

Want some variety on your server? These kill effects will help you.
There are only 3 kill effects.



The plugin works with any mod; there are 3 effects in total:

  • Blood cloud
  • Lightning  
  • Explosion

All effects are assigned to different flags.
That is, when a player is killed by a player with a flag, the kill will happen with a specific effect.


Since there have been many complaints about the plugin, the new version has been slightly optimized. Give it a try.

#include <amxmodx>


new const VERSION[] = "1.0";


// Set the numeric values of the flags
new const FLAG_LIGHTNING = ADMIN_BAN;  // Flag "b"
new const FLAG_EXPLOSION = ADMIN_IMMUNITY;  // Flag "a"
new const FLAG_BLOOD = ADMIN_LEVEL_A;  // Flag "p"


new i_sExplosion, i_sLgtning;


public plugin_precache() {
    i_sExplosion = precache_model("sprites/dexplo.spr");
    i_sLgtning = precache_model("sprites/lgtning.spr");
    
    precache_sound("ambience/thunder_clap.wav");
}


public plugin_init() {
    register_plugin("[AMXX] Death Effects", VERSION, "OverGame");
    
    register_event("DeathMsg", "EventDeathMessage", "a");
}


public EventDeathMessage() {
    new i_Attacker = read_data(1);
    new i_Victim = read_data(2);
    
    new iFlagsAttacker = get_user_flags(i_Attacker);
    
    if(iFlagsAttacker & FLAG_EXPLOSION) {
        new _:fOrigin[3];
        get_user_origin(i_Victim, fOrigin);
        
        message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
        write_byte(TE_EXPLOSION);
        write_coord(fOrigin[0]);
        write_coord(fOrigin[1]);
        write_coord(fOrigin[2]);
        write_short(i_sExplosion);
        write_byte(10);
        write_byte(15);
        write_byte(0);
        message_end();
    } else if(iFlagsAttacker & FLAG_LIGHTNING) {
        new fEnd[3], fStart[3];
        get_user_origin(i_Victim, fEnd);
        
        fEnd[2] -= 26;
        fStart[0] = fEnd[0] + 150;
        fStart[1] = fEnd[1] + 150;
        fStart[2] = fEnd[2] + 800;
        
        create_thunder(fStart, fEnd);
    } else if(iFlagsAttacker & FLAG_BLOOD) {
        new _:fOrigin[3];
        get_user_origin(i_Victim, fOrigin);
        
        message_begin(MSG_BROADCAST, SVC_TEMPENTITY, _, i_Victim);
        write_byte(TE_LAVASPLASH);
        write_coord(fOrigin[0] + 5);
        write_coord(fOrigin[1] + 5);
        write_coord(fOrigin[2]);
        message_end();
    }
}


stock create_thunder(fStart[3], fEnd[3]) {
    message_begin(MSG_BROADCAST, SVC_TEMPENTITY); 
    write_byte(TE_BEAMPOINTS); 
    write_coord(fStart[0]); 
    write_coord(fStart[1]); 
    write_coord(fStart[2]); 
    write_coord(fEnd[0]); 
    write_coord(fEnd[1]); 
    write_coord(fEnd[2]); 
    write_short(i_sLgtning); 
    write_byte(1);
    write_byte(5);
    write_byte(7);
    write_byte(20);
    write_byte(30);
    write_byte(0);  //r
    write_byte(0);  //g
    write_byte(255);  //b
    write_byte(200);
    write_byte(200);
    message_end();
    
    message_begin(MSG_PVS, SVC_TEMPENTITY, fEnd);
    write_byte(TE_SPARKS);
    write_coord(fEnd[0]);
    write_coord(fEnd[1]);
    write_coord(fEnd[2]);
    message_end();
    
    emit_sound(0, CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
}







effkill.zip4.43 Kb · Downloads: 354

Similar content

Comments (5)

Add comment

Leave a comment

  1. ghost
    ghost
    9 March 2024 10:33

    кривоватый 

    1. admin
      admin
      9 March 2024 16:50

      в каком плане кривоватый ?  описали бы, что не так 

  2. Гость максим
    Гость максим
    17 June 2024 20:48

    выдается всем задаю флаги он их дефолтно выставляет


    1. admin
      admin
      12 September 2024 20:07

      Внимательно читайте новость, в описании написан новый код 

      1. m2mix
        m2mix
        12 September 2024 20:12

        ты что это же нада компилировать, а как компилировать если не знают что это вообще

New content by email

Subscription with email confirmation. No more than one email per day. Unsubscribe via the link in any email.

Join the community

Register · Reset password