AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS/CSGO] Revival 1.1.6 [2022/10/29] (https://forums.alliedmods.net/showthread.php?t=312838)

Grey83 12-17-2018 12:08

[CSS/CSGO] Revival 1.1.6 [2022/10/29]
 
10 Attachment(s)
Name: Revival

Description: Press and hold Shift, E or Ctrl key above death place to respawn player

Installation: Place compiled plugin (sm_revival.smx) into the plugins folder (../addons/sourcemod/plugins/).

Commands: sm_revival - show client's prefrences menu (key for revive, where show additional info and progressbar)

ConVars:
  • sm_revival_version - plugin version
  • sm_revival_enabled - Enable/disable plugin
  • sm_revival_tip - Enable/disable key tip at the beginning of the round
  • sm_revival_msg - Enable/disable chat messages (except tips)
  • sm_revival_key - Key for reviving (0 - 'duck', 1 - 'use', 2 - 'walk', 3 - no key needed)
  • sm_revival_pos - Spawn player at: 0 - position of reviver, 1 - his death position, 2 - team spawn point
  • sm_revival_clean - Remove body x sec after the death (-1 - don't remove)
  • sm_revival_dissolve - Dissolve effect when removing ragdolls: -1 - disable effect, 0 - Energy, 1 - Heavy electrical, 2 - Light electrical, 3 - Core effect
  • sm_revival_teamchange - Can a player be revived after a team change
  • sm_revival_no_end - Can a players be revived after a round end
  • sm_revival_enemy - Can a player revive the enemy (the revived player will change the team)
  • sm_revival_bar - Enable/disable progressbar
  • sm_revival_percent - Enable/disable save the percentage of reviving
  • sm_revival_effect - Enable/disable effect (circles) around to place of death
  • sm_revival_radius - Radius to respawn death player
  • sm_revival_time - The time after the death of the player, during which the revive is possible (0 - down to the end of the round)
  • sm_revival_countdown - Time for respawn in seconds
  • sm_revival_times - How many times can a player revive other players during the round (0 - unlimited)
  • sm_revival_reset - Reset counter of revived (for cvar 'sm_revival_times') at every: 0 - round, 1 - spawn
  • sm_revival_risings - How many times can a player will revived by other players during the round (0 - unlimited)
  • sm_revival_noblock_time - Noblocking time after respawn (set at 0 if you have any noblock plugin)
  • sm_revival_health_cost - Need's health to respawn (if value is less than 0, then this value will be added to the reviver)
  • sm_revival_maxhealth - The maximum amount of health that a reviver can receive for reviving players (0 - disable limit)
  • sm_revival_death - Can a player revive others if he have less HP than needed for reviving
  • sm_revival_health - How many HP will get revived player
  • sm_revival_frag - Give x frags to the player for revived teammate
  • sm_revival_rip - Disallow the revival of the players killed: 1 - in the head, 2 - with a knife, 3 - in the head or with a knife.
  • sm_revival_balance - The difference in the number of live players of the teams, at which player can revive allies (-1 - disable restriction)
  • sm_revival_soundpath - This sound playing after reviving (empty string = disabled)
  • sm_revival_nodmg_time - No damage recive time after respawn (set at 0.0 if you have any spawn protect plugin)
  • sm_revival_crouch - Crouch a revived player for a split second to avoid getting stuck in a space with a low height
  • sm_revival_color_t - T death mark color. Wrong color code = red
    *Set by HEX (RGB or RRGGBB, values 0 - F or 00 - FF, resp., any register).
  • sm_revival_color_ct - CT death mark color. Wrong color code = blue
  • sm_revival_color_any - Any death team mark color (sm_revival_enemy = 1). Wrong color code = green
  • sm_revival_best - Show TOPx revivers at round end (0 - disable)
  • sm_revival_worst - Show AntiTOPx revivers at round end (0 - disable)
  • sm_revival_mark_t - Path to the vmt-file in folder 'materials' for the T mark. Wrong or empty path = default mark.
  • sm_revival_mark_ct - Path to the vmt-file in folder 'materials' for the CT mark. Wrong or empty path = default mark.
  • sm_revival_mark_any - Path to the vmt-file in folder 'materials' for the Any mark. Wrong or empty path = default mark.
  • sm_revival_hud_x - HUD info position X (0.0 - 1.0 left to right or -1 for center)
  • sm_revival_hud_y - HUD info position Y (0.0 - 1.0 top to bottom or -1 for center)
  • sm_revival_hud_color - HUD info color. Set by HEX (RGB or RRGGBB, values 0 - F or 00 - FF, resp.). Wrong color code = green
  • sm_revival_hud_mode - Show additional info in the: 0 - chat only, 1 - HUD, 2 - KeyHint (not for CS:S v34)
  • sm_revival_together - Can more than 1 alive player try to revive a player at the same time (0 - 1 reviver per 1 dead player)
  • sm_revival_feed - Show revives in the killfeed to the: 1 - allies, 2 - enemies, 4 - spectators (all: 1+2+4 = 7).
  • sm_revival_last_man - Disable revives when only one player is alive on one of the teams
  • sm_revival_duel - Disable revives when both teams have one player alive

Natives & forward:
Code:

enum
{
        RI_Revives,        // How many times during this round the player reviveded others
        RI_Revived,        // How many times during this round the player was reviveded by others
        RI_Target,        // Player's current target for revive
        RI_Percents        // Progress in reviving the target
};

/**
 * Getting current player information by selected type
 *
 * @param сlient        Client index
 * @param type                Information type: RI_*
 * @return                Player information by selected type (-1 for wrong type)
 * @error                Invalid client index, client not connected, fake client or invalid information type.
 */
native int Revival_GetPlayerInfo(int сlient, int type);

/**
 * Setting current player values of selected type
 *
 * @param сlient        Client index
 * @param type                Information type: RI_*
 * @param value                Value of choosed type
 * @error                Invalid client index, client not connected, fake client, invalid information type or invalid value.
 */
native void Revival_SetPlayerInfo(int сlient, int type, int value);

/**
 * Called when a client changed status.
 *
 * @param reviver        Reviver index
 * @param target        Revive target index
 * @param frags                The number of frags that the reviver will receive
 * @param diff_hp        The amount by which the health of the reviver will be changed
 * @param health        The amount of health that the revival target will have (always > 0)
 */
forward void Revival_OnPlayerReviving(int reviver, int target, int &frags, int &diff_hp, int &health);

Starting from v1.0.7, the plugin supports text coloring in chat using tags: {DEFAULT}, {TEAM}, {GREEN}, {WHITE}, {RED},
{LIME}, {LIGHTGREEN}, {LIGHTRED}, {GRAY}, {LIGHTOLIVE}, {OLIVE}, {BLUEGREY}, {LIGHTBLUE}, {BLUE}, {PURPLE}, {LIGHTRED2}.
*Only the first 3 tags will be used in CSSv34, the rest will be removed from the text.

Screenshots: 1st (from v1.0.0), 2nd, 3rd, client's prefrences menu

https://github.com/favicon.ico GitHub

aykocity 12-17-2018 21:22

Re: [CSS/CSGO] Revival 1.0.3 [2018/12/17]
 
Thank you @Grey83
cs go work ?

Grey83 12-18-2018 07:07

Re: [CSS/CSGO] Revival 1.0.3 [2018/12/17]
 
aykocity, IDK: i don't have CSGO server for tests.
Should work without significant problems (not sure about progress bar).

arcticx2 12-18-2018 19:00

Re: [CSS/CSGO] Revival 1.0.3 [2018/12/17]
 
Noice ! will test it on csgo & update the results here

*edit : worked on csgo but as you mentioned no progress bar ! + a few errors :

Quote:

L 12/18/2018 - 16:13:06: [SM] Exception reported: Entity 297 (297) is not a CBaseEntity
L 12/18/2018 - 16:13:06: [SM] Blaming: sm_revival 1.0.3.smx
L 12/18/2018 - 16:13:06: [SM] Call stack trace:
L 12/18/2018 - 16:13:06: [SM] [0] AcceptEntityInput
L 12/18/2018 - 16:13:06: [SM] [1] Line 311, F:\steamcmd\l4d2_ds\left4dead2\addons\sourcem od\scripting_1.8.0\! Revival\sm_revival 1.0.3.sp::Timer_RemoveBody
L 12/18/2018 - 16:13:12: [SM] Exception reported: Entity 295 (295) is not a CBaseEntity
L 12/18/2018 - 16:13:12: [SM] Blaming: sm_revival 1.0.3.smx
L 12/18/2018 - 16:13:12: [SM] Call stack trace:
L 12/18/2018 - 16:13:12: [SM] [0] AcceptEntityInput
L 12/18/2018 - 16:13:12: [SM] [1] Line 311, F:\steamcmd\l4d2_ds\left4dead2\addons\sourcem od\scripting_1.8.0\! Revival\sm_revival 1.0.3.sp::Timer_RemoveBody
L 12/18/2018 - 16:13:14: [SM] Exception reported: Entity 295 (295) is not a CBaseEntity
L 12/18/2018 - 16:13:14: [SM] Blaming: sm_revival 1.0.3.smx
L 12/18/2018 - 16:13:14: [SM] Call stack trace:
L 12/18/2018 - 16:13:14: [SM] [0] AcceptEntityInput
L 12/18/2018 - 16:13:14: [SM] [1] Line 311, F:\steamcmd\l4d2_ds\left4dead2\addons\sourcem od\scripting_1.8.0\! Revival\sm_revival 1.0.3.sp::Timer_RemoveBody
i do not have l4d2 :D

Grey83 12-19-2018 07:32

Re: [CSS/CSGO] Revival 1.0.3 [2018/12/17]
 
Quote:

Originally Posted by arcticx2 (Post 2629859)
i do not have l4d2 :D

but I have 8)

Grey83 12-23-2018 07:06

[CSS/CSGO] Revival 1.0.4 [2018/12/23]
 
1 Attachment(s)
Changes:
  • Fixed error "Exception reported: Entity 295 (295) is not a CBaseEntity"
  • Some optimizations

arybagusoctora 12-25-2018 03:06

Re: [CSS/CSGO] Revival 1.0.4 [2018/12/23]
 
Can you make another setting, so player can spawn on last position when they died? need this great plugin for my deathmatch server with random spawn position.

Grey83 12-25-2018 06:18

Re: [CSS/CSGO] Revival 1.0.4 [2018/12/23]
 
arybagusoctora, players are always revives on the spot of their death.
If this is not the case, then some other plugin (deathmatch plugin) moves them after the revival.

arybagusoctora 12-25-2018 07:51

Re: [CSS/CSGO] Revival 1.0.4 [2018/12/23]
 
Quote:

Originally Posted by Grey83 (Post 2630880)
arybagusoctora, players are always revives on the spot of their death.
If this is not the case, then some other plugin (deathmatch plugin) moves them after the revival.

its ok, plugin work as expected. my bad. thanks for your great plugin, i appreciated your hard work!

Grey83 01-05-2019 08:45

Re: [CSS/CSGO] Revival 1.0.5 [2019/01/05]
 
Changes:
  • Now plugin can run at servers with CS:S v34 (without emo-sprite) and can be compiled using SM 1.9*.
  • The plugin no longer turns off when you turn off effects.
  • Other small fixes
*Zip-archive contains 2 versions of this plugin: compiled using SM 1.9 and compiled using SM 1.8

Grey83 05-21-2019 12:24

[CSS/CSGO] Revival 1.0.7 [2019/05/21]
 
Changes in v1.0.7 [2019/05/21]:
Added new convars: sm_revival_tip and sm_revival_death

Added support for coloring text in the chat using tags.
The following tags are supported: {DEFAULT}, {TEAM}, {GREEN}, {WHITE}, {RED},
{LIME}, {LIGHTGREEN}, {LIGHTRED}, {GRAY}, {LIGHTOLIVE}, {OLIVE}, {BLUEGREY}, {LIGHTBLUE}, {BLUE}, {PURPLE}, {LIGHTRED2}

A new message has been added to the translations due to the addition of sm_revival_death convar and the need to warn about the lack of HP for resurrection.
Therefore, along with the plugin, you also need to update the translation files.
Made a small code optimization.

Also, I hope, got rid of spam messages in the chat (not tested yet).

Grey83 05-22-2019 13:54

Re: [CSS/CSGO] Revival 1.0.8 [2019/05/22]
 
Changes in v1.0.8 [2019/05/22]:
Added new convar sm_revival_hs_rip
Changed sm_revival_frag (now You can give more than one frag for reviving)
Fixed errors in the code

Grey83 06-03-2019 10:58

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
Changes in v1.0.9 [2019/06/03]:
Added new convars sm_revival_msg and sm_revival_bar
Fixed spam messages during the revival.

EMINEM_FB 08-04-2019 08:30

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
This is verry good plugin :) I like it :) But can you add some sounds when someone respawning you? Iam not always ready to fight because its everytime supprise when someone respawn me via this plugin :)

edit: but nobody care about my idea :(

Ico 10-15-2019 07:05

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
Hi,
loving this plugin!
is there any way you can give an option to remove the skeleton flags, please!?

Grey83 10-15-2019 11:50

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
Quote:

Originally Posted by Ico (Post 2669790)
option to remove the skeleton flags

Do you want to change death mark icons or just turn off these marks?

Grey83 10-15-2019 11:55

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
Quote:

Originally Posted by EMINEM_FB (Post 2661831)
But can you add some sounds when someone respawning you? Iam not always ready to fight because its everytime supprise when someone respawn me via this plugin :)

But the plugin plays sound at that moment, depending on the value of the ConVar:
Code:

"sm_revival_soundpath", "ui/achievement_earned.wav", "This sound playing after reviving (empty string = disabled)"

Ico 10-16-2019 05:03

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
i would like to be able to turn them off.

Grey83 10-16-2019 10:12

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
1 Attachment(s)
Ico, try use this version (marks is disabled)

Ico 10-16-2019 12:11

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
hmmm, nothing is happening anymore, as if the plugin is not enabled.

Ico 10-19-2019 06:43

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
Hey Grey83, it would be fantastic if you could have another look at the option to remove the marks/flags. we would still love to use your plugin. thx

EMINEM_FB 10-30-2019 05:25

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
If I tapping E on keyboard then player is not respawning but glow is like time bar when player will be respawned.. But if I hold E ten HP bar only glow and player is respawned... Is this bug on video?

And I also tested this revival sound but I dont hear any sounds and I also look if this sound/ui/achievement_earned.wav still exist in csgo and I also tried my custom .mp3 sound (Audio: 128 Kbps; 44*100 Hz; 16 Bit; Stereo; MP3)

Code:

"sm_revival_soundpath", "ui/achievement_earned.wav", "This sound playing after reviving (empty string = disabled)"
Add me here and I can test this plugin on CS:GO https://steamcommunity.com/id/EMINEM111/


gry 05-06-2020 17:14

Re: [CSS/CSGO] Revival 1.0.5 [2019/01/05]
 
Quote:

Originally Posted by Grey83 (Post 2632963)
Changes:
  • Now plugin can run at servers with CS:S v34 (without emo-sprite) and can be compiled using SM 1.9*.
  • The plugin no longer turns off when you turn off effects.
  • Other small fixes
*Zip-archive contains 2 versions of this plugin: compiled using SM 1.9 and compiled using SM 1.8

Hello. Is it possible to add limits for the revives? For example, you can revive your teammates only X times per round (as a setting)

Grey83 05-07-2020 10:02

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
gry, OMG
Quote:

sm_revival_times - How many times can a player revive other players during the round (0 - unlimited)

Voodoobeef 05-09-2020 21:29

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
Hi, I've used this plugin for about a week and noticed that the so called "physical mayham" bug triggers for some reason. ( props bounce around and guns / bodies fall though the ground


I've had this bug before when i had the noblock plugin and i know that any plugin that changes collisions in any kind of way can cause the mayham bug.

So i found a cvar in the revival plugin that has a noblock feature and my guess is that maybe that cvar is the cause of this mayham bug. ( sm_revival_noblock_time )

I have it set to "0" for disabled but it still causes the bug to happen.

Is there a way to fix this issue or maybe disable this cvar: sm_revival_noblock_time

My server is running on Linux and on the latest version of metamod and sourcemod.

Grey83 05-10-2020 00:47

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
Voodoobeef, if sm_revival_noblock_time = 0 then collision of players will not changes.
PHP Code:

stock Action InitRespawn(int clientint targetint hp)
{
    ...
    if(
iNoBlockTime && iOffsetGroup != -1)
    {
        
SetEntData(clientiOffsetGroup174true);
        
CreateTimer(iNoBlockTime+0.0Timer_EnableCollisionGetClientUserId(target), TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
    }
    ...
}
...
public 
Action Timer_EnableCollision(Handle timerany client)
{
    if((
client GetClientOfUserId(client))) SetEntData(clientiOffsetGroup54true);


If you have a "physical mayham" bug, then the server needs to be rebooted.

3Dyy 06-06-2020 19:09

Re: [CSS/CSGO] Revival 1.0.9 [2019/06/03]
 
Hey man, can you make this plugin on flags? For example for vip ? or custom 1?

Grey83 06-11-2020 01:53

Re: [CSS/CSGO] Revival 1.0.11 [2020/06/11]
 
Changes in v1.0.11 [2019/06/10]:
Now you can set the color of the labels and effects (the color is common for both the label and the effect) by cvar.
* Separate cvars for marks of terrorists, specialists and a regime where everyone can revive everyone.
You can set the cvar where to revive the player (at the place of death or at the position of the resurrecting, with stuck so far nothing has been decided)

A cvar has been added to protect the resurrected player from taking damage.
* When protect is turned on, the player’s model becomes translucent green, and from a large distance - generally invisible.
Fixed spam when it is not possible to resurrect a player.

Grey83 06-15-2020 10:43

Re: [CSS/CSGO] Revival 1.1.0 [2020/06/13]
 
1 Attachment(s)
Changes in v1.1.0 [2019/06/13]:
Added at the end of the round information about the players who resurrected the most players, and about those who least tried to do this.
Attachment 182042
Added cvars for path to the custom marks.
Now an invulnerable player (if sm_revival_nodmg_time > 0) can't shoot and revive other players.
Now a reviverer can spend his health on revive, and replenish it for revive.

Sandervraun 06-17-2020 15:56

Re: [CSS/CSGO] Revival 1.1.0 [2020/06/13]
 
Is it possible to make this work for certain flags?

Grey83 06-17-2020 16:05

Re: [CSS/CSGO] Revival 1.1.0 [2020/06/13]
 
Sandervraun, what do you mean?

Grey83 07-19-2020 13:04

Re: [CSS/CSGO] Revival 1.1.1 [2020/07/19]
 
Changes in v1.1.1 [2020/07/19]:
Fixed work of convars sm_revival_mark_*
Now in CSGO a revived player also can't throw grenades by RMB while damage protection time
Added convar limitation on the number of allies who can be revived (depending on the number of living opponents)
* so that there is no imbalance, and more than once it happens that the big crowd kills a couple of people and still revives their allies at this time
Added reset mode convar for the counter of the remaining revives (for convar sm_revival_times)
* similar to the previous point
Added convar for the limit on the received health from the revival of other players
* it was possible to get large HP values ​​in previous builds

Do not forget to update the translation files on the server: a new phrase has been added.

Grey83 09-20-2020 08:27

Re: [CSS/CSGO] Revival 1.1.2 [2020/09/15]
 
Changes in v1.1.2 [2020/09/15]:

Fixed
:
* Warnings when plugin compiled with SM1.10+
* Name in a chat messages when You was revived
* Now works seamlessly with the Auto Swap Team plugin

Changed:
* Added new value for cvar sm_revival_key: 3 - autorevive without keys
* Cvar sm_revival_hs_rip renamed to sm_revival_rip and added new values: 1 - disables the revival of those killed in the head, 2 - with a knife, 3 - killed in the head or with a knife

Added:
* Information panel (with translation support) in the HUD or KeyHint.
New cvars sm_revival_hud_update, sm_revival_hud_color, sm_revival_hud_x and sm_revival_hud_y.
Alive players can see: available revives (if enabled limit by cvar sm_revival_times), notification about turned off revives for current team by enabled balance (if enabled by cvar sm_revival_balance), name of the reviving target and progress.
* Spectators can see in this panel name of the observed player and his current information.
* New cvar sm_revival_hud_mode: 0 - shows additional info in the chat only, 1 - in the HUD, 2 - in the KeyHint (in the CSGO this panel shows like Hint).
* Added client prefrences for additional info (chat, HUD or KeyHint) and keys (Ctrl, E, Shift or no keys)
* Added native Revival_GetPlayerInfo() (it is possible to get information about choosed player for current round, how many times someone has revived, how many times has been revived, the index of the current target, the current progress of the revival).
* Added native Revival_OnPlayerRevived() (notifies about the revive that took place with indexes of reviver, revived and how many frags were received for this).

Do not forget to update the translation files on the server: a new phrase has been added.

Grey83 09-26-2020 16:02

Re: [CSS/CSGO] Revival 1.1.3 [2020/09/26]
 
1 Attachment(s)
Changes in v1.1.3 [2020/09/26]:

Fixed:
* Error "Exception reported: Client index # is invalid".
* Cvar sm_revival_percent (in v1.1.2 it was inverted).
* HUD panel work.

Changed:
* Cvar sm_revival_worst now can have more values (like cvar sm_revival_best)

Added:
* New client prefrence "Progressbar" (now player can turn off or on progressbar).
* Now progressbar works in CS:GO too.

Removed:
* Cvar sm_revival_hud_update (bkz it now not needded for plugin)

Do not forget to update the translation files on the server: a new phrase has been added.

Attachment 183843

Grey83 09-30-2020 09:45

Re: [CSS/CSGO] Revival 1.1.3 [2020/09/26]
 
1 Attachment(s)
A small fix of user settings: the progress bar for all new players will be set as it is set in the server settings (now everyone is disabled by default)

Trice 02-01-2021 16:32

Re: [CSS/CSGO] Revival 1.1.3 [2020/09/26]
 
Quote:

Originally Posted by Grey83 (Post 2719674)
A small fix of user settings: the progress bar for all new players will be set as it is set in the server settings (now everyone is disabled by default)

Hello, great Plugin, what must i set, to everyone the progressbar is ON at first connect or at everytime?


Greetz

Grey83 02-02-2021 10:01

Re: [CSS/CSGO] Revival 1.1.3 [2020/09/26]
 
Trice,
Quote:

sm_revival_bar - Enable/disable progressbar
1 for enable on default

NOTORIOUS7302 02-02-2021 11:48

Re: [CSS/CSGO] Revival 1.1.3 [2020/09/26]
 
Imagine making one having to pay money to revive another user...

Ark_Procession 04-15-2021 00:15

Re: [CSS/CSGO] Revival 1.1.3 [2020/09/26]
 
Hi, in Source i cannot see the revive bar, cvar is set sm_revival_bar 1. any ideas?

Grey83 04-15-2021 14:04

Re: [CSS/CSGO] Revival 1.1.3 [2020/09/26]
 
Ark_Procession, what version of the plugin and settings in the menu that is called by the command !revival (a screenshot of the menu is welcome).


All times are GMT -4. The time now is 09:04.

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