Raised This Month: $32 Target: $400
 8% 

Flesh'n'Scream v1.1c


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Timiditas
Senior Member
Join Date: Apr 2009
Plugin ID:
908
Plugin Version:
1.1c
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Plays scream and blood spurt / flesh hit sounds on player hurt/death
    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 - 2385 views - 17.7 KB)
    __________________


    Last edited by Timiditas; 11-03-2009 at 18:11. Reason: version update
    Timiditas is offline
    Timiditas
    Senior Member
    Join Date: Apr 2009
    Old 05-28-2009 , 12:52   Re: Flesh'n'Scream (WIP)
    Reply With Quote #2

    0.2
    hooked cvarEnable changed and acting accordingly
    bugfix for:
    plugin ignoring the randompitch and volume settings
    sounds being skipped when there should play multiple at once

    Plugin updated in the first posting

    ~
    It still seems to skip sounds sometimes, when you shoot teammate bots

    Last edited by Timiditas; 06-25-2009 at 14:11.
    Timiditas is offline
    TESLA-X4
    Senior Member
    Join Date: Dec 2008
    Location: $Recycle.Bin
    Old 06-02-2009 , 08:22   Re: Flesh'n'Scream (WIP)
    Reply With Quote #3

    Use SNDCHAN_STATIC instead of SNDCHAN_AUTO.

    By this I mean changing line 216 from:
    EmitSoundToClient(i, TheSound, client, _, 150, _, fns_volume, PitchR);

    To:
    EmitSoundToClient(i, TheSound, client, SNDCHAN_STATIC, 150, _, fns_volume, PitchR);

    Using this channel (6), multiple sounds can be overlapped.

    Hope this helps
    TESLA-X4 is offline
    Timiditas
    Senior Member
    Join Date: Apr 2009
    Old 06-18-2009 , 17:34   Re: Flesh'n'Scream v1.0
    Reply With Quote #4

    added possibility for clients to turn this sounds off for themselves
    (with quake sounds plugin as reference)
    chatcommand: !fleshscream
    players who have this setting turned ON still hear these players, who have their fleshscream sounds off, scream.
    the announcement is overlooked easily. let your users know via advertisements plugin

    New cvars:
    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
    The new cvars are not automatically added to an existing cfg file.

    chatcommand: !fleshscream
    __________________

    Timiditas is offline
    Timiditas
    Senior Member
    Join Date: Apr 2009
    Old 06-25-2009 , 09:56   Re: Flesh'n'Scream v1.1
    Reply With Quote #5

    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)
    __________________

    Timiditas is offline
    Timiditas
    Senior Member
    Join Date: Apr 2009
    Old 07-14-2009 , 18:02   Re: Flesh'n'Scream v1.1
    Reply With Quote #6

    The sounds I used were from my personal sound archive, and I forgot where many of these came from. So now I replaced the whole soundpackage with stuff from freesound.org.
    The sounds are licensed under a Creative Commons Sampling Plus 1.0 License.
    This is a list of sounds from the site I used:
    Code:
    16806__harri__hhh15.mp3
    16809__harri__hhh6.mp3
    16810_harri_hhh7.mp3
    26720__Leady__running_and_gored_by_dogs.wav
    44261__Erdie__male_fight01.ogg
    44262__Erdie__male_fight02.ogg
    44264__Erdie__male_fight04.ogg
    44267__Erdie__male_fight07.ogg
    44268__Erdie__male_fight08.ogg
    44269__Erdie__male_fight09.ogg
    44428__thecheeseman__hurt1.wav
    44429__thecheeseman__hurt2.wav
    44430__thecheeseman__hurt3.wav
    60701__Vosvoy__screampain_adolescent.wav
    60921_nicStage_rockSplash19.wav
    62024_LukeIRL_Rocks_falling_into_gorge_pool.aiff
    64439__Vosvoy__panic_pain.wav
    64440__Vosvoy__scream.wav
    74472__qubodup__slightscream_source.flac
    9425__thanvannispen__male_scream_Bram_OEAAH.aiff
    9426__thanvannispen__male_scream_Bram_OOH.aiff
    9427__thanvannispen__male_scream_Bram_neeNEE.aiff
    9430__thanvannispen__scream_male_Bram_AAH.aiff
    9431__thanvannispen__scream_male_Bram_AAH_and_OH.aiff
    __________________

    Timiditas is offline
    Timiditas
    Senior Member
    Join Date: Apr 2009
    Old 08-07-2009 , 03:27   Re: Flesh'n'Scream v1.1b
    Reply With Quote #7

    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)
    __________________

    Timiditas is offline
    Juan Handsock
    Member
    Join Date: Apr 2009
    Old 10-03-2009 , 19:23   Re: Flesh'n'Scream v1.1c
    Reply With Quote #8

    Just tried this in l4d using sounds built into l4d and it worked, but it plays when temp health drops, or when survivors get hurt. Is there a way to make it so sounds only play for the attacker? I'm trying to get hitsounds working, and this is the closest I've come.

    Nevermind, after searching for hours, I come across http://forums.alliedmods.net/showthread.php?t=99552
    20 mins after posting this.

    Last edited by Juan Handsock; 10-03-2009 at 20:11.
    Juan Handsock is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:46.


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