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

[L4D2] Raise incapacitated


Post New Thread Reply   
 
Thread Tools Display Modes
Author
voledar
Junior Member
Join Date: Jan 2024
Location: Russian, Moscow
Plugin ID:
8649
Plugin Version:
1.5
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Raise an incapacitated survivor if they are being beaten
    Old 02-29-2024 , 10:49   [L4D2] Raise incapacitated
    Reply With Quote #1

    Initially, I made this plugin for my server coop, but since I saw that a lot of people needed it, I decided to share it with you.

    Description:

    Have you ever wondered why a bot can raise an incapacitated survivor when he is beaten and his progress is not lost, and here is the player himself, when wants to raise an incapacitated bot/player when he is beaten by the infected, his progress lost. Not fair right?
    This plugin aims to solve this problem. Now, when a player will raise an incapacitated survivor and that incapacitated survivor is beaten by mobs/bosses, the progress of the will not be disrupted.

    How does this plugin work you ask? Very simple. It changes the client flag during raising to a fake flag and changes the value of the sb_all_bot_game cvar 1/0. Cvar is needed so that when the player is alone on the server, the round does not fail. If the cvar value sb_all_bot_game is set in your server.cfg to 1, then the plugin will ignore this cvar and will work as it should.

    Please read carefully:

    In what cases can progress be lost? If the spitter spits under you and you you will raise an incapacitated survivor when he is being beaten by the horde/bosses, then your progress will be lost. Why is this done, you ask? Because the server can crash, this is why I needed to resort to sdkhooks so that the player's flag does not change to a fake flag when the player is standing in acid. Well, in any case, as soon as you move away from the acid and you will raise an incapacitated survivor, even if he is in the acid, your progress will not be disrupted.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_Raise_incapacitated.sp - 76 views - 2.0 KB)

    Last edited by voledar; 02-29-2024 at 11:32.
    voledar is offline
    sonic155
    Senior Member
    Join Date: Mar 2019
    Old 02-29-2024 , 12:54   Re: [L4D2] Raise incapacitated
    Reply With Quote #2

    https://forums.alliedmods.net/showthread.php?p=2669487 this plugin already does this
    sonic155 is offline
    voledar
    Junior Member
    Join Date: Jan 2024
    Location: Russian, Moscow
    Old 02-29-2024 , 13:56   Re: [L4D2] Raise incapacitated
    Reply With Quote #3

    Quote:
    Originally Posted by sonic155 View Post
    Hmm, I didn't know. In any case, his plugin uses gamedata, my version without gamedata.
    voledar is offline
    Reply



    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 11:33.


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