Raised This Month: $12 Target: $400
 3% 

[L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
7798
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Adds more screen blood when shooting enemies who are nearby.
    Old 09-21-2021 , 09:36   [L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]
    Reply With Quote #1





    About:
    • Displays more blood when shooting Common Infected, Special Infected or Survivors.
    • Option to play a sound when blood is sprayed.
    • Options to set range, how many effects to display at once and who to display to.
    • Source Code shows a TempEnt particle method example. Thanks to Lux for the code.
    • Plugin Conflict: incompatible with Weapon Charms (effects not displayed when a Charm is equipped).



    Related Plugins:


    CVars:

    Saved to l4d2_more_screen_blood.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d2_more_screen_blood_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d2_more_screen_blood_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d2_more_screen_blood_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d2_more_screen_blood_modes_tog "0"

    // How many blood overlays to send at once. The higher the number the more blood shows on the screen at once.
    l4d2_more_screen_blood_multiply "1"

    // How near an enemy is required when shot for blood to spray on the screen.
    l4d2_more_screen_blood_range "100"

    // 0=Off. 1=Play a blood spray sound to everyone nearby.
    l4d2_more_screen_blood_sound "1"

    // Who triggers the blood effect. 1=Common Infected. 2=Survivors. 4=Special Infected. Add numbers together.
    l4d2_more_screen_blood_targets "7"

    // 1=Display effect to person shooting only. 2=Display to everyone nearby.
    l4d2_more_screen_blood_types "2"

    // More Screen Blood When Shooting plugin version
    l4d2_more_screen_blood_version 


    Changes:
    Code:
    1.2 (26-Sep-2021)
        - Restricted to weapon and melee damage only. Thanks to "swiftswing1" for reporting.
    
    1.1 (25-Sep-2021)
        - Removed damage type restrictions. All damage will now cause blood splatter including melee weapons.
        - Restriction code left in and commented out, uncomment and recompile if you want to block melee damage.
        - Thanks to "swiftswing1" for reporting.
    
    1.0 (21-Sep-2021)
        - Initial release.


    Installation:
    • Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_more_screen_blood.sp - 618 views - 18.4 KB)
    __________________

    Last edited by Silvers; 09-26-2021 at 09:15.
    Silvers is offline
    swiftswing1
    Member
    Join Date: Oct 2020
    Old 09-24-2021 , 23:36   Re: [L4D2] More Screen Blood When Shooting (1.0) [21-Sep-2021]
    Reply With Quote #2

    i can only trigger the plugin with smgs and normal pistols. i haven't been able to get it to work with any rifles, shotguns or snipers at all (even though in the picture you're using an m16 o.o). any help? sm10 btw.

    PHP Code:
    // This file was auto-generated by SourceMod (v1.10.0.6502)
    // ConVars for plugin "l4d2_more_screen_blood.smx"


    // 0=Plugin off, 1=Plugin on.
    // -
    // Default: "1"
    l4d2_more_screen_blood_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    // -
    // Default: ""
    l4d2_more_screen_blood_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    // -
    // Default: ""
    l4d2_more_screen_blood_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    // -
    // Default: "0"
    l4d2_more_screen_blood_modes_tog "0"

    // How many blood overlays to send at once. The higher the number the more blood shows on the screen at once.
    // -
    // Default: "1"
    // Minimum: "1.000000"
    // Maximum: "5.000000"
    l4d2_more_screen_blood_multiply "5"

    // How near an enemy is required when shot for blood to spray on the screen.
    // -
    // Default: "100"
    l4d2_more_screen_blood_range "100"

    // 0=Off. 1=Play a blood spray sound to everyone nearby.
    // -
    // Default: "1"
    l4d2_more_screen_blood_sound "1"

    // Who triggers the blood effect. 1=Common Infected. 2=Survivors. 4=Special Infected. Add numbers together.
    // -
    // Default: "7"
    l4d2_more_screen_blood_targets "7"

    // 1=Display effect to person shooting only. 2=Display to everyone nearby.
    // -
    // Default: "2"
    l4d2_more_screen_blood_types "2" 
    Quote:
    [SM] Listing 19 plugins:
    01 "Admin File Reader" (1.10.0.6502) by AlliedModders LLC
    02 "Admin Help" (1.10.0.6502) by AlliedModders LLC
    03 "Admin Menu" (1.10.0.6502) by AlliedModders LLC
    04 "Anti-Flood" (1.10.0.6502) by AlliedModders LLC
    05 "Basic Ban Commands" (1.10.0.6502) by AlliedModders LLC
    06 "Basic Chat" (1.10.0.6502) by AlliedModders LLC
    07 "Basic Comm Control" (1.10.0.6502) by AlliedModders LLC
    08 "Basic Commands" (1.10.0.6502) by AlliedModders LLC
    09 "Basic Info Triggers" (1.10.0.6502) by AlliedModders LLC
    10 "Basic Votes" (1.10.0.6502) by AlliedModders LLC
    11 "Client Preferences" (1.10.0.6502) by AlliedModders LLC
    12 "Fun Commands" (1.10.0.6502) by AlliedModders LLC
    13 "Fun Votes" (1.10.0.6502) by AlliedModders LLC
    14 "[L4D & L4D2] Item Giver" (1.4) by Psyk0tik (Crasher_3637)
    15 "[L4D2] More Screen Blood When Shooting" (1.0) by SilverShot
    16 "[L4D/2] Campaign Manager" (1.0.4) by Bigbuck
    17 "Player Commands" (1.10.0.6502) by AlliedModders LLC
    18 "Reserved Slots" (1.10.0.6502) by AlliedModders LLC
    19 "Sound Commands" (1.10.0.6502) by AlliedModders LLC
    swiftswing1 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-25-2021 , 07:13   Re: [L4D2] More Screen Blood When Shooting (1.1) [25-Sep-2021]
    Reply With Quote #3

    Fixed.

    Code:
    1.1 (25-Sep-2021)
        - Removed damage type restrictions. All damage will now cause blood splatter including melee weapons.
        - Restriction code left in and commented out, uncomment and recompile if you want to block melee damage.
        - Thanks to "swiftswing1" for reporting.
    __________________
    Silvers is offline
    swiftswing1
    Member
    Join Date: Oct 2020
    Old 09-25-2021 , 10:04   Re: [L4D2] More Screen Blood When Shooting (1.1) [25-Sep-2021]
    Reply With Quote #4

    works now. thanks! however,
    Quote:
    - Removed damage type restrictions. All damage will now cause blood splatter including melee weapons.
    All seems to mean literally all damage will trigger blood splatter, including:
    • fall damage
    • molotov burn and pipebomb damage (on survivors),
    • incap health decay and
    • temporary health (every 5hp for some reason).
    not sure if intentional, but i guess some might appreciate it. personally i find it odd/annoying for some of these events to trigger blood splatter + sounds, but that's just me.
    swiftswing1 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-26-2021 , 09:16   Re: [L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]
    Reply With Quote #5

    Code:
    1.2 (26-Sep-2021)
        - Restricted to weapon and melee damage only. Thanks to "swiftswing1" for reporting.
    __________________
    Silvers is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 09-26-2021 , 11:11   Re: [L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]
    Reply With Quote #6

    +1 Many likes! ))))))))))
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    swiftswing1
    Member
    Join Date: Oct 2020
    Old 09-27-2021 , 08:16   Re: [L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]
    Reply With Quote #7

    Quote:
    Originally Posted by Silvers View Post
    Code:
    1.2 (26-Sep-2021)
        - Restricted to weapon and melee damage only. Thanks to "swiftswing1" for reporting.
    thank you
    swiftswing1 is offline
    BlackSabbarh
    Senior Member
    Join Date: Sep 2018
    Old 10-08-2021 , 00:01   Re: [L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]
    Reply With Quote #8

    support for l4d1?
    BlackSabbarh is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-08-2021 , 04:17   Re: [L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]
    Reply With Quote #9

    Quote:
    Originally Posted by BlackSabbarh View Post
    support for l4d1?
    The screen blood is so minimal in L4D1 that even this plugin doesn't help. L4D2 is using the melee slash UserMsg/particles to make it work. If anyone shows me the correct method/particles for L4D1 I can add, but from what I tested it's useless adding.
    __________________
    Silvers is offline
    Reply


    Thread Tools
    Display Modes

    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 15:30.


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