AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Flesh'n'Scream v1.1c (https://forums.alliedmods.net/showthread.php?t=93272)

Timiditas 05-26-2009 21:06

Flesh'n'Scream v1.1c
 
2 Attachment(s)
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.

Timiditas 05-28-2009 12:52

Re: Flesh'n'Scream (WIP)
 
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

TESLA-X4 06-02-2009 08:22

Re: Flesh'n'Scream (WIP)
 
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

Timiditas 06-18-2009 17:34

Re: Flesh'n'Scream v1.0
 
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 06-25-2009 09:56

Re: Flesh'n'Scream v1.1
 
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 07-14-2009 18:02

Re: Flesh'n'Scream v1.1
 
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 08-07-2009 03:27

Re: Flesh'n'Scream v1.1b
 
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)

Juan Handsock 10-03-2009 19:23

Re: Flesh'n'Scream v1.1c
 
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.


All times are GMT -4. The time now is 03:05.

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