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

[L4D2] Survivors Dead Bodies Spasm [v1.0.0 | 27-June-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7703
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Apply a constant shock to the survivors dead bodies
    Old 06-26-2021 , 23:01   [L4D2] Survivors Dead Bodies Spasm [v1.0.0 | 27-June-2021]
    Reply With Quote #1

    L4D2 ONLY

    Description

    This plugin applies a constant shock to survivors dead bodies. (same animation from defibrillator)

    To see what this plugin does, slay some survivor and watch its body.

    Features
    • Allow configuring the repeat interval.
    • Allow configuring the repeat count.

    Cvars

    A configuration file named "l4d2_dead_bodies_spasm.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // How many times should apply a shock to survivors dead bodies.
    // 0 = Unlimited.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    l4d2_dead_bodies_spasm_count "0"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_dead_bodies_spasm_enable "1"

    // How often (in seconds) should apply a shock to the survivors dead bodies.
    // -
    // Default: "1.0"
    // Minimum: "0.100000"
    l4d2_dead_bodies_spasm_interval "1.0" 
    Admin Commands
    • sm_print_cvars_l4d2_dead_bodies_spasm => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • survivor_death_model entity is only available in L4D2.
    • This plugin applies the Shock input to the survivor_death_model entities.
    • You can replicate this by using "ent_fire survivor_death_model Shock" in the console.

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d2_dead_bodies_spasm.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_dead_bodies_spasm.sp - 295 views - 10.6 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:20.
    Marttt is offline
    leonardo martinez
    Member
    Join Date: Jun 2014
    Old 06-26-2021 , 23:12   Re: [L4D2] Survivors Dead Bodies Spasm [v1.0.0 | 27-June-2021]
    Reply With Quote #2

    This works fine and there are no errors

    Last edited by leonardo martinez; 06-26-2021 at 23:16.
    leonardo martinez is offline
    SDArt
    Member
    Join Date: Aug 2019
    Old 10-22-2021 , 09:02   Re: [L4D2] Survivors Dead Bodies Spasm [v1.0.0 | 27-June-2021]
    Reply With Quote #3

    Cool plugin helps on realism modes also works with ragdoll plugins also here is 2 things that can be added/modified if you have the time:

    -Add a variable that disables the electricity particle on dead bodys.
    -Add a heartbeat sound or vocalize a word when they are in constant shock (if possible) with this the finding would be easier.

    Last edited by SDArt; 10-22-2021 at 09:03.
    SDArt is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 10-22-2021 , 11:25   Re: [L4D2] Survivors Dead Bodies Spasm [v1.0.0 | 27-June-2021]
    Reply With Quote #4

    Thanks for the feedback @SDArt.

    The particle thing I think I'm unable to remove cause they are automatically created when I trigger the "Shock" input from deadbodies. Maybe only detouring it would be possible but I have a lack of knowledge to mess with this stuff, maybe Silvers/Psyk0tik could help.

    About the sound thing is a nice idea, I gonna try to add it when I have some free time.
    __________________
    Marttt is offline
    xcd222
    Member
    Join Date: Mar 2022
    Old 09-15-2022 , 00:11   Re: [L4D2] Survivors Dead Bodies Spasm [v1.0.0 | 27-June-2021]
    Reply With Quote #5

    Quote:
    Originally Posted by Marttt View Post
    Thanks for the feedback @SDArt.

    The particle thing I think I'm unable to remove cause they are automatically created when I trigger the "Shock" input from deadbodies. Maybe only detouring it would be possible but I have a lack of knowledge to mess with this stuff, maybe Silvers/Psyk0tik could help.

    About the sound thing is a nice idea, I gonna try to add it when I have some free time.
    About the removing the shock particle, maybe you could check the addon campaign chenchencity. Chenchen the author was able to make a Zoey death model Spasm without any shock particles.
    xcd222 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 16:17.


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