View Single Post
Author Message
Timiditas
Senior Member
Join Date: Apr 2009
Old 05-26-2009 , 21:06   Flesh'n'Scream v1.1c
Reply With Quote #1

Description:
Plays scream and blood spurt / flesh hit sounds on player hurt/death
Code:
ConVars:
sm_fleshscream_version - version number
sm_fleshscream_enable - enable/disable plugin
sm_fleshscream_spurt - Chance in percent of a blood spurt sound to play
sm_fleshscream_hit - Chance in percent of a flesh hit sound to play
sm_fleshscream_dead - Chance in percent of a dying player scream sound to play
sm_fleshscream_hurt - Chance in percent of a hit player moan sound to play
sm_fleshscream_volume - Volume of the plugin from 0.0 to 1.0
sm_fleshscream_randompitch - Slight randomization of the pitch of all sounds
***New since 1.0:
sm_fleshscream_announce - Chatmessage to tell new users how to deactivate the sounds for themselves (just like the quakesounds chat announcement) - Default: 1
sm_fleshscream_announce_delay - Time in seconds after client connect when the message is shown in chat. - Default: 40.0

  chatcommand: !fleshscream (see below)

***New since 1.1:
sm_fleshscream_override - prevent players from switching the sounds off (their setting is still saved though)

blood spurt, flesh hit and hit player moan are being played all over the others, so use these sparingly
 
the included dying player sounds are rather loud and long, these shouldn't occur too often. use them as a surprise sound with
a chance of 20% or something like that...
 
Versions:
0.1
* Prototype Release
# Todo:
Hook cvarEnable change and hook/unhook events
Add sound configuration via config file (implements having as much sounds of a type as you wish)
0.2
hooked cvarEnable changed and acting accordingly
bugfix for:
        plugin ignoring the randompitch and volume settings
        sounds being skipped when they should overlap
0.25
        switched from static constant string arrays to adt_arrays
0.5
added soundlist via config file:
addons/sourcemod/configs/fleshscream.cfg
    This file is iterated through. All additional sounds will be used.
    Do NOT put "sound/" in front of the path!
    Sounds are listed on a slot-basis. You can add as much slots as you want.
    Not every slot must contain sounds for all categories.
    Don't change the category names on the left!
1.0
    added possibility for clients to turn this sounds off for themselves
    (taken from quake sounds plugin)
    chatcommand: !fleshscream
    players who have this setting turned ON still hear these players scream

    the announcement is overlooked easily. let your users know via advertisements plugin
    end of test phase
1.1
        added convar "sm_fleshscream_override"
        forces sounds to be played for players that have their fleshscream setting turned off
        added conditional skip of code on plugin disabled (forgot that, in functions player_hurt and player_death)
1.1b
        changed sendsound channel to "SNDCHAN_STATIC" as suggested by TESLA-X4 on alliedmods.net
        added sending the sounds to sourcetv on demand (cvar: sm_fleshscream_recordsounds 1/0)
1.1c
        just a small performance update and possible memleak fix
->Try it out now; Servers with this plugin<-


The sounds are licensed under a Creative Commons Sampling Plus 1.0 License.
Attached Files
File Type: zip fleshnscream_sounds_cfg.zip (86.1 KB, 1382 views)
File Type: sp Get Plugin or Get Source (flesh_n_scream.sp - 2389 views - 17.7 KB)
__________________


Last edited by Timiditas; 11-03-2009 at 18:11. Reason: version update
Timiditas is offline