AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [INS] Enemy down! (https://forums.alliedmods.net/showthread.php?t=91486)

bolinux 05-01-2009 18:46

[INS] Enemy down!
 
1 Attachment(s)
A tiny plugin for Insurgency which adds a death scream to the victim.

This is only tested with Insurgency but it should work with any mod, please tell me if it works well with other mods also.

Cvars

ins_enemydown "1" // 1/0 = Plugin on/off
ins_enemydown_sound "player/pain/minorpain7.wav" // default sound can be replaced with any sound.

If you adding a custom sound, you need to upload it to eg. sound/death/mysound.mp3 and add the cvar ins_enemydown_sound "death/mysound.mp3" in cfg/sourcemod/sourcemod.cfg.


Installation

Download ins_enemydown.smx and upload to the addons/sourcemod/plugins/ folder, restart the server cause the sound file needs to be precached.

Thanks to

Tsunami @ #hlxce

Changelog

- 1.0 - Created plugin

SAMURAI16 05-16-2009 01:55

Re: [INS] Enemy down!
 
there is no point in using switch condition in your plugin. just use if(GetConVarInt(cvarMode))


All times are GMT -4. The time now is 21:45.

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