View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
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 - 644 views - 18.4 KB)
__________________

Last edited by Silvers; 09-26-2021 at 09:15.
Silvers is offline