Counter-Strike 1.6 Icon CS1.6 Script

[AMXX] Deathtype Effects

Yo, buddy. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Rj. points.
  • Post: Give Rj. your thoughts on this Script.
  • Vote: Help Rj. win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Stop Lurking!

Join GameBanana

Already a Bananite? Login

152 lines | 4 kb | Raw Code
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#include <amxmodx>

#define PLUGIN "Deathtype Effects"
#define VERSION "1.0"
#define AUTHOR "anakin_cstrike"

#define TEMP_MSG        16
#define TEMP_MSG2       1936

new toggle_plugin,toggle_hs,toggle_kn,toggle_he,g_Smoke,g_Lightning,g_Explode;
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR);
        register_event("DeathMsg","hook_death","a");
        toggle_plugin = register_cvar("death_effects","1");
        toggle_hs = register_cvar("hs_effect","1");
        toggle_kn = register_cvar("kn_effect","1");
        toggle_he = register_cvar("he_effect","1");
}
public plugin_precache()
{
        precache_sound("ambience/thunder_clap.wav");
        precache_sound("weapons/headshot2.wav");
        precache_sound("weapons/explode3.wav");
        g_Smoke = precache_model("sprites/steam1.spr");
        g_Lightning = precache_model("sprites/lgtning.spr");
        g_Explode = precache_model("sprites/white.spr");
        return PLUGIN_CONTINUE
}
public hook_death()
{
        if(get_pcvar_num(toggle_plugin) != 1) return PLUGIN_CONTINUE;
        if(!read_data(1)) return PLUGIN_CONTINUE;
        new wpn[3],vOrigin[3],coord[3];
        new victim = read_data(2);
        new hs = read_data(3);
        read_data(4,wpn,2);
        get_user_origin(victim,vOrigin);
        vOrigin[2] -= 26
        coord[0] = vOrigin[0] + 150;
        coord[1] = vOrigin[1] + 150;
        coord[2] = vOrigin[2] + 800;
       
        if(hs && wpn[0] != 'k' && wpn[1] != 'r' && get_pcvar_num(toggle_hs) == 1)
        {
                create_explode(vOrigin);
                emit_sound(victim,CHAN_ITEM, "weapons/explode3.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
        }
        if(wpn[0] == 'k' && !hs && get_pcvar_num(toggle_kn) == 1)
        {
                create_thunder(coord,vOrigin);
                emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
        }
        if(wpn[1] == 'r' && !hs && get_pcvar_num(toggle_he) == 1)
        {
                create_blood(vOrigin);
                emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
        }
        return PLUGIN_CONTINUE;
}

create_explode(vec1[3])
{
        message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec1);
        write_byte(TE_BEAMCYLINDER);
        write_coord(vec1[0]);
        write_coord(vec1[1]);
        write_coord(vec1[2] + TEMP_MSG);
        write_coord(vec1[0]);
        write_coord(vec1[1]);
        write_coord(vec1[2] + TEMP_MSG2);
        write_short(g_Explode);
        write_byte(0);
        write_byte(0);
        write_byte(2);
        write_byte(16);
        write_byte(0);
        write_byte(188);
        write_byte(220);
        write_byte(255);
        write_byte(255);
        write_byte(0);
        message_end();

        message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
        write_byte(TE_EXPLOSION2);
        write_coord(vec1[0]);
        write_coord(vec1[1]);
        write_coord(vec1[2]);
        write_byte(185);
        write_byte(10);
        message_end();
       
        message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec1);
        write_byte(TE_SMOKE);
        write_coord(vec1[0]);
        write_coord(vec1[1]);
        write_coord(vec1[2]);
        write_short(g_Smoke);
        write_byte(2);  
        write_byte(10);  
        message_end();
}
create_thunder(vec1[3],vec2[3])
{
        message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
        write_byte(0);
        write_coord(vec1[0]);
        write_coord(vec1[1]);
        write_coord(vec1[2]);
        write_coord(vec2[0]);
        write_coord(vec2[1]);
        write_coord(vec2[2]);
        write_short(g_Lightning);
        write_byte(1);
        write_byte(5);
        write_byte(2);
        write_byte(20);
        write_byte(30);
        write_byte(200);
        write_byte(200);
        write_byte(200);
        write_byte(200);
        write_byte(200);
        message_end();

        message_begin( MSG_PVS, SVC_TEMPENTITY,vec2);
        write_byte(TE_SPARKS);
        write_coord(vec2[0]);
        write_coord(vec2[1]);
        write_coord(vec2[2]);
        message_end();
       
        message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec2);
        write_byte(TE_SMOKE);
        write_coord(vec2[0]);
        write_coord(vec2[1]);
        write_coord(vec2[2]);
        write_short(g_Smoke);
        write_byte(10);  
        write_byte(10)  
        message_end();
}
create_blood(vec1[3])
{
        message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
        write_byte(TE_LAVASPLASH);
        write_coord(vec1[0]);
        write_coord(vec1[1]);
        write_coord(vec1[2]);
        message_end();
}
Description: Effects for: headshot,knife and grenade kill. They're applied to victim.
  • headshot - explosion
  • knife - thunder
  • grenade - blood
There is a sound for every effect. (no download needed)

Credits: d3n14

Cvars: 
hs_effect 1/0 - enable/disable headshot effect (default 1)
kn_effect 1/0 - enable/disable knife effect (default 1)
he_effect 1/0 - enable/disable hegrenade effect (default 1)

Comments

  • Rj. avatar
    Rj. Dreamin'
    Member Joined 9 months ago
    34 medals 4 legendary 8 rare
    • Submitted 15 Tools Medal icon
    • Submitted 50 Gamefiles Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • Thanked 500 submitters Medal icon
    • 2nd Place - Game Poetry Contest Medal icon
    • Submitted 5 Tools Medal icon
    Report post
    28 days ago:
    Posted by Cd5ssmffan

    This is the best thing that has ever happened to me
    Win? Consider ratings for this submission.
    (❍ᴥ❍ʋ)
  • Cd5ssmffan avatar
    Cd5ssmffan Offline
    Member Joined 2 years ago
    807 points Ranked 5416th
    Report post
    29 days ago:
    This is the best thing that has ever happened to me

    10/10

    • Thanks x 1
    • High five x 1
    • Cheers x 1
    • Correct x 1
    www.cd5ssmffan.net

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Original Authors
anakin_cstrike
AMXX Script/Codes

Submitter

Rj. avatar
Rj. Dreamin'
Member Joined 9 months ago
34 medals 4 legendary 8 rare
  • Submitted 15 Tools Medal icon
  • Submitted 50 Gamefiles Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
  • Thanked 500 submitters Medal icon
  • 2nd Place - Game Poetry Contest Medal icon
  • Submitted 5 Tools Medal icon

Rj.
Redistributor
Request Ownership
Send a Private Message to the submitter

Category

Attributes

Language
Pawn (AMXMODX)

Stats

Posts
2
Views
329
Date Added
29 days ago
Feb 26 2017 @ 6:20am UTC
Date Updated
29 days ago
Feb 26 2017 @ 6:20am UTC