AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021] (https://forums.alliedmods.net/showthread.php?t=334402)

Silvers 09-21-2021 09:36

[L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]
 
3 Attachment(s)
https://i.imgur.com/bojAFaI.jpg



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.

swiftswing1 09-24-2021 23:36

Re: [L4D2] More Screen Blood When Shooting (1.0) [21-Sep-2021]
 
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

Silvers 09-25-2021 07:13

Re: [L4D2] More Screen Blood When Shooting (1.1) [25-Sep-2021]
 
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.


swiftswing1 09-25-2021 10:04

Re: [L4D2] More Screen Blood When Shooting (1.1) [25-Sep-2021]
 
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.

Silvers 09-26-2021 09:16

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

1.2 (26-Sep-2021)
    - Restricted to weapon and melee damage only. Thanks to "swiftswing1" for reporting.


Dragokas 09-26-2021 11:11

Re: [L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]
 
+1 Many likes! ))))))))))

swiftswing1 09-27-2021 08:16

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

Originally Posted by Silvers (Post 2758915)
Code:

1.2 (26-Sep-2021)
    - Restricted to weapon and melee damage only. Thanks to "swiftswing1" for reporting.


thank you :)

BlackSabbarh 10-08-2021 00:01

Re: [L4D2] More Screen Blood When Shooting (1.2) [26-Sep-2021]
 
support for l4d1?

Silvers 10-08-2021 04:17

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

Originally Posted by BlackSabbarh (Post 2759928)
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.


All times are GMT -4. The time now is 14:56.

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