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

[L4D2] Clear Survivor dead body (v1.1, 2021-03-08)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Plugin ID:
7213
Plugin Version:
1.1
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    [L4D2] Clear Survivor dead body
    Old 07-20-2020 , 14:29   [L4D2] Clear Survivor dead body (v1.1, 2021-03-08)
    Reply With Quote #1

    Description:
    Remove survivor dead body entity in seconds after player dies.


    Reason for creation:
    My server always has more than 20 players,
    (1) player dies and respawns over and over again during the game => create lots of dead bodies.
    (2) a dead player changes team or leaves the game and his bot was kicked => dead body still exists.
    (3) nobody uses defib => dead body behind

    It causes too many dead body model entitiy on the ground.
    The total number of map entities is too large, so write this plugin to reduce the possibility of server crashes.

    -Convar-
    Spoiler


    Changes:
    Code:
    Changes:
    1.1 (2021-3-8)
        - check IsValidEntityIndex in OnEntityCreated and request a frame safely.
    
    1.0 (2020-7-21)
        - Initial release.
    -Github-
    Latest version always here
    Attached Files
    File Type: sp Get Plugin or Get Source (clear_dead_body.sp - 571 views - 2.2 KB)
    __________________

    Last edited by HarryPotter; 03-08-2021 at 05:44.
    HarryPotter is offline
    Alex101192
    Senior Member
    Join Date: Aug 2018
    Old 07-20-2020 , 15:57   Re: [L4D2] Clear Survivor dead body (v1.0, 2020-7-21)
    Reply With Quote #2

    Will this also delete the red aura that comes with the body? When a dead player leaves, the read aura remains, and defibbing it causes an alive survivor to be revived and lose his weapons if there isn't someone dead.
    Alex101192 is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 07-20-2020 , 16:35   Re: [L4D2] Clear Survivor dead body (v1.0, 2020-7-21)
    Reply With Quote #3

    Quote:
    Originally Posted by Alex101192 View Post
    Will this also delete the red aura that comes with the body? When a dead player leaves, the read aura remains, and defibbing it causes an alive survivor to be revived and lose his weapons if there isn't someone dead.
    https://forums.alliedmods.net/showthread.php?p=2647018
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Alex101192
    Senior Member
    Join Date: Aug 2018
    Old 07-21-2020 , 00:11   Re: [L4D2] Clear Survivor dead body (v1.0, 2020-7-21)
    Reply With Quote #4

    Very weird how I never found this plugin after all this time browsing the plugins.
    Alex101192 is offline
    geipoe
    BANNED
    Join Date: Sep 2016
    Location: https://t.me/pump_upp
    Old 07-21-2020 , 14:23   Re: [L4D2] Clear Survivor dead body (v1.0, 2020-7-21)
    Reply With Quote #5

    Is that possible to remove the CI dead body and the SI dead body?
    geipoe is offline
    Send a message via ICQ to geipoe Send a message via AIM to geipoe Send a message via Yahoo to geipoe
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-21-2020 , 18:30   Re: [L4D2] Clear Survivor dead body (v1.0, 2020-7-21)
    Reply With Quote #6

    Quote:
    Originally Posted by geipoe View Post
    Is that possible to remove the CI dead body and the SI dead body?
    To remove all CI dead body: https://forums.alliedmods.net/showpo...6&postcount=63
    __________________
    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 14:44.


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