Raised This Month: $32 Target: $400
 8% 

[L4D2] Medic


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Plugin ID:
6424
Plugin Version:
1.9.8
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Each round 1 of the survivors becomes a medic and can treat the rest of the survivors
    Old 02-05-2019 , 20:08   [L4D2] Medic
    Reply With Quote #1

    Description:
    Each round, 1 of the survivors becomes a medic and he gets Magnum. A medic can't take another weapon instead of a Magnum. If a medic fires a Magnum, he creates a zone in which all survivors will receive HP.

    Cvars and Commands:
    hCvarHealCount - The amount of HP a survivor from the area.
    hMaxHealth - The maximum amount of HP that can issue an area
    hIncapHealCount - Number of HP received from the zone for incapacitated survivors.
    hIncapMaxHeal - The maximum amount of HP to incapacitated survivors.

    hDurationRing - Zone life time.
    hRadiusOfRing - The radius of the zone.
    hRangeOfHeal - The radius of the work zone.

    hEnable - Is the plugin enabled? 1 - yes, 0 - no.
    hCvarIsVisible - Will the zone give health to survivors through walls.
    OnlyForAdmin - Only admins have the command !bm? 1 - yes, 0 - no
    hOnlyAdminCanBeMedic - Only admins can be medic? 1 - yes, 0 - no

    !rmedic - If you're a medic, you can give a random survivor a medic.
    !bm - If for some reason there is no medic in the team, then playing for the survivors you can become a medic by prescribing !bm.
    !cm - Allows the administrator to choose a medic even if it is already selected (ADMFLAG_ROOT).
    !choosemedic - Same thing !cm

    Video:
    https://youtu.be/buheS6MZ7Lk

    Changelog:
    Quote:
    1.9.4 - Release
    1.9.5 - Fixed bug with health.
    1.9.6 - Added cvar to enable or disable the plugin.
    1.9.7 - Fixed error.
    1.9.8 - Added cvar "OnlyForAdmin" for command !bm.
       - Added commands for admins to choose the medic(!cm & !choosemedic).
       - Added cvar "OnlyAdminCanBeMedic" which prohibits ordinary players becomes a medic, but if the survivor  team will not have admins, the medic will become a casual player
       - Fixed bug when plugin didn't work.
    Attached Files
    File Type: txt medic.translations.txt (2.8 KB, 535 views)
    File Type: sp Get Plugin or Get Source (Medic.sp - 517 views - 19.9 KB)
    File Type: smx Medic.smx (26.2 KB, 509 views)

    Last edited by BHaType; 09-30-2020 at 02:14. Reason: update
    BHaType is offline
    Send a message via AIM to BHaType
    Newbie_Sexy
    Member
    Join Date: Aug 2016
    Location: Vietnam
    Old 02-06-2019 , 05:08   Re: [L4D2] Medic
    Reply With Quote #2

    Very creative plugin. Thx you
    __________________
    I am a noob so... hope you guys will help me up
    P/s .-. : My English is bad, i am good at Vietnamese
    Newbie_Sexy is offline
    BlackSabbarh
    Senior Member
    Join Date: Sep 2018
    Old 03-11-2019 , 12:09   Re: [L4D2] Medic
    Reply With Quote #3

    I could add a cvars to activate and deactivate. Because I would like to activate it only on some maps.
    BlackSabbarh is offline
    BlackSabbarh
    Senior Member
    Join Date: Sep 2018
    Old 03-17-2019 , 00:37   Re: [L4D2] Medic
    Reply With Quote #4

    thanks excellent work
    BlackSabbarh is offline
    BlackSabbarh
    Senior Member
    Join Date: Sep 2018
    Old 05-01-2019 , 03:42   Re: [L4D2] Medic
    Reply With Quote #5

    log with these reports


    [SM] Exception reported: NULL not allowed
    L 05/01/2019 - 00:414: [SM] Blaming: medic.smx
    L 05/01/2019 - 00:414: [SM] Call stack trace:
    L 05/01/2019 - 00:414: [SM] [0] RemovePlayerItem
    L 05/01/2019 - 00:414: [SM] [1] Line 171, Medic.sp::hMedicChangeTeam
    L 05/01/2019 - 00:58:44: Error log file session closed.
    L 05/01/2019 - 01:01:18: SourceMod error session started
    L 05/01/2019 - 01:01:18: Info (map "c2m3_coaster") (file "errors_20190501.log")
    L 05/01/2019 - 01:01:18: [SM] Exception reported: Entity -1 (-1) is invalid
    L 05/01/2019 - 01:01:18: [SM] Blaming: medic.smx
    L 05/01/2019 - 01:01:18: [SM] Call stack trace:
    L 05/01/2019 - 01:01:18: [SM] [0] GetEntPropString
    L 05/01/2019 - 01:01:18: [SM] [1] Line 750, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\entity.inc::GetEntityClassname
    L 05/01/2019 - 01:01:18: [SM] [2] Line 192, Medic.sp::hMedicChangeTeam
    L 05/01/2019 - 01:160: Error log file session closed.
    BlackSabbarh is offline
    BHaType
    Great Tester of Whatever
    Join Date: Jun 2018
    Old 05-01-2019 , 06:47   Re: [L4D2] Medic
    Reply With Quote #6

    Updated
    BHaType is offline
    Send a message via AIM to BHaType
    hoanganh81097
    Senior Member
    Join Date: Apr 2016
    Old 05-01-2019 , 12:06   Re: [L4D2] Medic
    Reply With Quote #7

    not work, and not error. I typed !bm and it show me print : become medic but i cant use magnum to heal survivor
    hoanganh81097 is offline
    BlackSabbarh
    Senior Member
    Join Date: Sep 2018
    Old 05-01-2019 , 12:59   Re: [L4D2] Medic
    Reply With Quote #8

    I could add an option that only administrators are chosen !Medic, because it happens that random players who enter the server do not use the magnum or cure anyone
    BlackSabbarh is offline
    BlackSabbarh
    Senior Member
    Join Date: Sep 2018
    Old 05-03-2019 , 21:51   Re: [L4D2] Medic
    Reply With Quote #9

    log with these errors


    [1] Line 750, C:\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ include\entity.inc::GetEntityClassname
    [SM] [2] Line 354, Medic.sp::hImpact
    [SM] Exception reported: Entity -1 (-1) is invalid
    [SM] Blaming: medic.smx
    [SM] Call stack trace:
    [SM] [0] GetEntPropString
    [SM] [1] Line 750, C:\Left 4 Dead 2 Dedicated Servir\left4dead2\addons\sourcemod\scripting\ include\entity.inc::GetEntityClassname
    [SM] [2] Line 354, Medic.sp::hImpact
    [SM] Exception reported: Entity -1 (-1) is invalid
    [SM] Blaming: medic.smx
    [SM] Call stack trace:
    BlackSabbarh is offline
    Alexmy
    Senior Member
    Join Date: Oct 2014
    Location: Russian Federation
    Old 05-04-2019 , 04:05   Re: [L4D2] Medic
    Reply With Quote #10

    Quote:
    Originally Posted by BlackSabbarh View Post
    log with these errors


    [1] Line 750, C:\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ include\entity.inc::GetEntityClassname
    [SM] [2] Line 354, Medic.sp::hImpact
    [SM] Exception reported: Entity -1 (-1) is invalid
    [SM] Blaming: medic.smx
    [SM] Call stack trace:
    [SM] [0] GetEntPropString
    [SM] [1] Line 750, C:\Left 4 Dead 2 Dedicated Servir\left4dead2\addons\sourcemod\scripting\ include\entity.inc::GetEntityClassname
    [SM] [2] Line 354, Medic.sp::hImpact
    [SM] Exception reported: Entity -1 (-1) is invalid
    [SM] Blaming: medic.smx
    [SM] Call stack trace:
    Go test.
    P.S. It's funny to write a plugin in two languages.

    Last edited by Alexmy; 05-16-2019 at 04:20.
    Alexmy 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 17:03.


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