Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
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:
    14 
    Plugin Description:
    When a survivor die, on his body appear a grave.
    Old 12-26-2018 , 23: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 - 2610 views - 10.2 KB)

    Last edited by Dartz8901; 12-27-2018 at 18:40. Reason: Fixing bugs and adding more functionality.
    Dartz8901 is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 12-26-2018 , 23:24   Re: [L4D & L4D2] Graves (v1.0.0, 2018-12-26)
    Reply With Quote #2

    Muito legal, vou testar nos servers aqui do Brasil. Obrigado por compartilhar.
    Very, cool.

    Qualquer erro reporto aqui , ok
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie

    Last edited by Mi.Cura; 12-26-2018 at 23:36.
    Mi.Cura is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 12-26-2018 , 23:43   Re: [L4D & L4D2] Graves (v1.0.0, 2018-12-26)
    Reply With Quote #3

    Testei aqui e tudo OK. Funciona perfeitamente.

    Plugin incrível, muito útil, muito Original, parabéns.
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie

    Last edited by Mi.Cura; 12-27-2018 at 00:42.
    Mi.Cura is offline
    Dartz8901
    Junior Member
    Join Date: Dec 2018
    Location: Brazil
    Old 12-27-2018 , 01:19   Re: [L4D & L4D2] Graves (v1.0.0, 2018-12-26)
    Reply With Quote #4

    Valeu man

    Se achar qualquer bug ou tiver sugestões me avisa.

    É bom ver que os brs também estão por aqui, marcando presença
    Dartz8901 is offline
    edwinvega86
    Senior Member
    Join Date: Feb 2016
    Old 12-27-2018 , 06:59   Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
    Reply With Quote #5

    very nice but could fix this?
    Quote:
    L 12/27/2018 - 05:50:12: [SM] Exception reported: Client index 0 is invalid
    L 12/27/2018 - 05:50:12: [SM] Blaming: l4d_graves.smx
    L 12/27/2018 - 05:50:12: [SM] Call stack trace:
    L 12/27/2018 - 05:50:12: [SM] [0] GetClientTeam
    L 12/27/2018 - 05:50:12: [SM] [1] Line 163, /home/forums/content/files/2/8/9/8/6/7/172974.attach::Event_PlayerDeath
    L 12/27/2018 - 05:50:19: Error log file session closed.
    edwinvega86 is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 12-27-2018 , 09:13   Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
    Reply With Quote #6

    For me it is also showing errors now, but the plugin works fine, if possible correct would be great.

    pt/br - Para mim também esta mostrando erros agora, mas o plugin funciona bem, se possível corrigir seria ótimo


    Exception reported: Client index 0 is invalid
    L 12/27/2018 - 11:021: [SM] Blaming: l4d_graves.smx
    L 12/27/2018 - 11:021: [SM] Call stack trace:
    L 12/27/2018 - 11:021: [SM] [0] GetClientTeam
    L 12/27/2018 - 11:021: [SM] [1] Line 159, /home/forums/content/files/2/8/9/8/6/7/172973.attach::Event_PlayerDeath
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 12-27-2018 , 10:12   Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
    Reply With Quote #7

    test fix
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_graves.sp - 1074 views - 8.8 KB)
    File Type: smx l4d_graves.smx (7.8 KB, 392 views)
    AK978 is offline
    Jerry_21
    Member
    Join Date: Jun 2017
    Old 12-27-2018 , 12:43   Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
    Reply With Quote #8

    Just an idea, I am very noob even to modify a complement as I want. Putting some more difficulty would be good for the grave to appear after dying a second time and can not revive that person with defibrillator if it was used once or with a cvars to select how many defribilaciones appear the grave and can no longer be used. Sorry for my english.

    Last edited by Jerry_21; 12-27-2018 at 12:50.
    Jerry_21 is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 12-27-2018 , 13:12   Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
    Reply With Quote #9

    Quote:
    Originally Posted by Jerry_21 View Post
    Just an idea, I am very noob even to modify a complement as I want. Putting some more difficulty would be good for the grave to appear after dying a second time and can not revive that person with defibrillator if it was used once or with a cvars to select how many defribilaciones appear the grave and can no longer be used. Sorry for my english.

    For me, it's perfect as it is. No need to change anything.
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    Jerry_21
    Member
    Join Date: Jun 2017
    Old 12-27-2018 , 13:18   Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
    Reply With Quote #10

    I'm also using it, just yesterday morning I was thinking about this plugin to get it because I had seen it on a server and I liked it but I could not find it anywhere and in the afternoon I see that XD had already been released. It seems that the author read my mind: p. I'm using it too but it's just an idea. The Plugin is very good and nice like that.
    Jerry_21 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 05:24.


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