@@ -129,38 +129,27 @@ void CCSDM_Misc::PlayerKilled(CBasePlayer* Victim, CBasePlayer* Killer)
129
129
if (Victim->m_bHeadshotKilled )
130
130
{
131
131
this ->m_Headshots [Killer->entindex ()]++;
132
- }
133
132
134
- if (this ->m_kill_fade ->value > 0 .0f )
135
- {
136
- if (Victim->m_bHeadshotKilled )
133
+ if (this ->m_kill_fade ->value == 2 .0f )
137
134
{
138
- if (this ->m_kill_fade ->value == 2 .0f )
139
- {
140
- gCSDM_Util .ScreenFade (Killer->edict (), BIT (10 ), BIT (10 ), 0x0000 , 0 , 0 , 200 , 75 );
141
- }
135
+ gCSDM_Util .ScreenFade (Killer->edict (), BIT (10 ), BIT (10 ), 0x0000 , 0 , 0 , 200 , 75 );
142
136
}
143
- else
137
+
138
+ if (this ->m_kill_sound ->value == 2 .0f )
144
139
{
145
- gCSDM_Util . ScreenFade (Killer->edict (), BIT ( 10 ), BIT ( 10 ), 0x0000 , 0 , 0 , 200 , 75 );
140
+ g_engfuncs. pfnClientCommand (Killer->edict (), " %s " , " speak \" sound/fvox/blip.wav \"\n " );
146
141
}
147
142
}
148
-
149
- if (this ->m_kill_sound ->value > 0 .0f )
143
+ else
150
144
{
151
- if (!Killer-> IsBot () )
145
+ if (this -> m_kill_fade -> value == 1 . 0f )
152
146
{
153
- if (Victim->m_bHeadshotKilled )
154
- {
155
- if (this ->m_kill_sound ->value == 2 .0f )
156
- {
157
- g_engfuncs.pfnClientCommand (Killer->edict (), " %s" , " speak \" sound/fvox/blip.wav\"\n " );
158
- }
159
- }
160
- else
161
- {
162
- g_engfuncs.pfnClientCommand (Killer->edict (), " %s" , " speak \" sound/fvox/blip.wav\"\n " );
163
- }
147
+ gCSDM_Util .ScreenFade (Killer->edict (), BIT (10 ), BIT (10 ), 0x0000 , 0 , 0 , 200 , 75 );
148
+ }
149
+
150
+ if (this ->m_kill_sound ->value == 1 .0f )
151
+ {
152
+ g_engfuncs.pfnClientCommand (Killer->edict (), " %s" , " speak \" sound/fvox/blip.wav\"\n " );
164
153
}
165
154
}
166
155
@@ -194,7 +183,7 @@ void CCSDM_Misc::PlayerKilled(CBasePlayer* Victim, CBasePlayer* Killer)
194
183
}
195
184
}
196
185
197
- if (this ->m_reload_on_kill ->value || 1 )
186
+ if (this ->m_reload_on_kill ->value > 0 . 0f )
198
187
{
199
188
if (Killer->m_pActiveItem )
200
189
{
@@ -260,32 +249,6 @@ int CCSDM_Misc::AddAccount(CBasePlayer* Player, int Amount)
260
249
return Amount;
261
250
}
262
251
263
- /*
264
- #include <amxmodx>
265
-
266
- #define PLUGIN "Only Your Info on DM"
267
- #define VERSION "0.1"
268
- #define AUTHOR "Dev-cs.ru"
269
-
270
- public plugin_init()
271
- {
272
- register_plugin(PLUGIN, VERSION, AUTHOR)
273
- register_message(get_user_msgid("DeathMsg"), "msg_deathMsg")
274
- }
275
- public msg_deathMsg(msgid, dest, receiver)
276
- {
277
- enum { arg_killer = 1, arg_victim };
278
-
279
- new killer = get_msg_arg_int(arg_killer);
280
- new victim = get_msg_arg_int(arg_victim);
281
-
282
- if (killer == receiver || victim == receiver) {
283
- return PLUGIN_CONTINUE;
284
- }
285
-
286
- return PLUGIN_HANDLED;
287
- }*/
288
-
289
252
bool CCSDM_Misc::SendDeathMessage (CBaseEntity* Killer, CBasePlayer* Victim, CBasePlayer* Assister, entvars_t * pevInflictor, const char * killerWeaponName, int iDeathMessageFlags, int iRarityOfKill)
290
253
{
291
254
if (this ->m_hide_kill_feed )
@@ -401,4 +364,4 @@ bool CCSDM_Misc::TraceLine(const float* start, const float* end, int fNoMonsters
401
364
}
402
365
403
366
return false ;
404
- }
367
+ }
0 commit comments