AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Graves (v1.1.1, 2018-12-27) (https://forums.alliedmods.net/showthread.php?t=313063)

Dartz8901 12-26-2018 22:00

[L4D & L4D2] Graves (v1.1.1, 2018-12-27)
 
1 Attachment(s)
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:
https://i.imgur.com/oloWD57.png

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! :wink:

Mi.Cura 12-26-2018 22:24

Re: [L4D & L4D2] Graves (v1.0.0, 2018-12-26)
 
Muito legal, vou testar nos servers aqui do Brasil. Obrigado por compartilhar.
Very, cool.

Qualquer erro reporto aqui , ok

Mi.Cura 12-26-2018 22:43

Re: [L4D & L4D2] Graves (v1.0.0, 2018-12-26)
 
Testei aqui e tudo OK. Funciona perfeitamente.

Plugin incrível, muito útil, muito Original, parabéns. :bacon!::bacon!:

Dartz8901 12-27-2018 00:19

Re: [L4D & L4D2] Graves (v1.0.0, 2018-12-26)
 
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 :)

edwinvega86 12-27-2018 05:59

Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
 
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.

Mi.Cura 12-27-2018 08:13

Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
 
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:02:31: [SM] Blaming: l4d_graves.smx
L 12/27/2018 - 11:02:31: [SM] Call stack trace:
L 12/27/2018 - 11:02:31: [SM] [0] GetClientTeam
L 12/27/2018 - 11:02:31: [SM] [1] Line 159, /home/forums/content/files/2/8/9/8/6/7/172973.attach::Event_PlayerDeath

AK978 12-27-2018 09:12

Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
 
2 Attachment(s)
test fix

Jerry_21 12-27-2018 11:43

Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
 
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.

Mi.Cura 12-27-2018 12:12

Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
 
Quote:

Originally Posted by Jerry_21 (Post 2631300)
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.

Jerry_21 12-27-2018 12:18

Re: [L4D & L4D2] Graves (v1.0.1, 2018-12-27)
 
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.


All times are GMT -4. The time now is 05:18.

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