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

[L4D & L4D2] Graves (v1.1.1, 2018-12-27)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Dartz8901
Junior Member
Join Date: Dec 2018
Location: Brazil
Plugin ID:
6381
Plugin Version:
1.1.1
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    20 
    Plugin Description:
    When a survivor die, on his body appear a grave.
    Old 12-26-2018 , 22:00   [L4D & L4D2] Graves (v1.1.1, 2018-12-27)
    Reply With Quote #1

    Description:

    When a survivor dies, a grave appears near his body, and this grave glows through the objects on the map, allowing a quick location from where the survivor died.

    And when the survivor respawn, the grave associated with him disappears.

    In addition, there are six types of grave that are chosen randomly.

    Maybe can be useful for use with a defibrillator (L4D2), or even for those who use the "Emergency Treatment With First Aid Kit Revive And CPR" (L4D) plugin, for example.

    Screenshots:


    CVARs:

    PHP Code:
    // Enable or disable this plugin.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_graves_enable "1"

    // Turn glow On or Off.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_graves_glow "1"

    // RGB Color - Change the render color of the glow. Values between 0-255. 
    // Note: Only for Left 4 Dead 2.
    // -
    // Default: "255 255 255"
    l4d_graves_glowcolor "255 255 255"

    // Number of points of damage to take before breaking. For Left 4 Dead 2, 0 means don't break.
    // -
    // Default: "1500"
    l4d_graves_health "1500"

    // [L4D & L4D2] Graves version
    // -
    // Default: "1.1.1"
    l4d_graves_version "1.1.1"

    // How long will it take for the grave to spawn.
    // -
    // Default: "5.0"
    // Minimum: "1.000000"
    l4d_graves_delay "5.0"

    // Enables or disables the solidity of the grave.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_graves_not_solid "0" 
    CHANGELOG:

    2018-12-27 (v1.1.1)
    • Added the l4d_graves_delay CVAR that determines how long it will take for the grave to spawn. This delay is necessary to avoid cases, for example, where a Tank has just killed a survivor and the grave appears instantly, and Tank immediately breaks the grave.
    • Added the l4d_graves_not_solid CVAR that allows you to turn grave solidity on or off. The reason is that some players have said that they sometimes get stuck on the grave when it spawns. In such cases, the admin may prefer to disable solidity.
    • Fixed client index issue when calling GetClientTeam function.

    2018-12-27 (v1.0.1)
    • Function RemoveEntity has been replaced by function AcceptEntityInput, passing the "Kill" parameter, so that it work with the online compiler.

    2018-12-26 (v1.0.0)
    • Initial release.

    ############################

    This plugin is also based on the Tuty plugin (CSS Graves), which can be found here:

    https://forums.alliedmods.net/showthread.php?p=867275

    But I rewrote all the code to run on Left 4 Dead 1 & 2.

    This code can be found on my github page here:

    https://github.com/samuelviveiros/l4d_graves

    Do not forget to update the CFG file with the new CVARs.

    For Left 4 Dead, the file is located in left4dead/cfg/sourcemod/l4d_graves.cfg.

    And for Left 4 Dead 2, the file is located in left4dead2/cfg/sourcemod/l4d_graves.cfg.

    Have fun!
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_graves.sp - 2385 views - 10.2 KB)

    Last edited by Dartz8901; 12-27-2018 at 17:40. Reason: Fixing bugs and adding more functionality.
    Dartz8901 is offline
     



    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 20:19.


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