Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Announce Health / Defib Info v1.2.1 [4-June-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
7972
Plugin Version:
1.2.1
Plugin Category:
Statistical
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Info Announce to healer & defiber & reviver & AIMer
    Old 02-20-2022 , 15:47   [L4D & L4D2] Announce Health / Defib Info v1.2.1 [4-June-2023]
    Reply With Quote #1

    about
    • announce health info for who needed medicine or healer both
    • sometime server has too many people you cant see player health or HUD cant display and this appear
    • just print messages you want and format and translation and message position support
    • can specify which event you want announce
    • can specify which ready or reject sound want to play
    • announce can has cooldown when you want see less time
    • can specify which medicine pickup/switch/be given to announce
    • reference some code from Left 4 Dhooks Direct


    ConVar

    PHP Code:
    // Enabled 'Announce Health for Healer'
    announce_healer_enabled "1"

    // which event about medicines wanna anounce 1=pickup medicines 2=transfer
    // 4=healing 8=defib 16=revive 32=used pill 64=use adrenaline 128=switch to medicines 255=all. add together you want
    announce_healer_events "254"

    // which event also announce to be-heal player 2=transfer 4=healing 8=defib 16=revive. 28=all listed. add together you want
    announce_healer_also "24"

    // cooldown time for announce player info 0:disable
    announce_healer_cooldown "1.5"

    // which medicine be switched/received/pickup you want to announce 1=pill 2=adrenaline 4=defib 8=first aid 15=all
    announce_healer_medicines "11"

    // which sound wanna play 1=allowed 2=reject 3=all
    announce_healer_sounds "3"

    // announce positions 1=center 2=chat 4=hint 7=all. add together you want
    announce_healer_types "2"

    // when aim to survivor then show the message to AIMer, 30=detect frames, 0=disabled
    announce_healer_aim "30"

    // 1=special infected can received health message 2=can got SI health message 3=both
    announce_healer_si "3" 

    Related Plugin

    changelog
    • v1.0 just releases; 21-2-22
    • v1.0.1 remove unused code, fix isDying not works; 22-2-22
    • v1.0.2
      fix issue 'wrong to use GameTime cause cooldown not work on next round'
      use OnClientPutInServer to solve client bind multiple listener; 23-2-22
    • v1.1 add feature: announce adrenaline duration; 28-2-22;
    • v1.1.1 fix some format error cause multiple announce; 28-2-22
    • v1.1.2 make announce delay show compatible for thirdparty plugin health changes; 25-April-22
    • v1.1.3 fix wrong adrenaline duration, thanks to Silvers; 17-October-2022
    • v1.1.4 add support for Late Load, add support for plugin '[L4D & L4D2] Heartbeat'; 14-November-2022
    • v1.2 (8-February-2023)
      - add support for L4D1
      - change dying text to actually third striked
      - add ConVar *_aim to control show message when aim to survivor
      - allow show survivor health for special infected when aim
      - allow special infected health when aim
    • v1.2.1 (4-June-2023)
      - fix andrenaline feature not working by previous change


    Installation
    • put l4d_announce_healer.smx on /plugins/
    • put l4d_announce_healer.phrases.txt on /translations/
    Attached Images
    File Type: jpg try defib alive.jpg (62.7 KB, 898 views)
    File Type: jpg when revived.jpg (71.8 KB, 1055 views)
    File Type: jpg after revived switch to pills.jpg (69.0 KB, 893 views)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_announce_healer.sp - 442 views - 18.4 KB)
    File Type: txt l4d_announce_healer.phrases.txt (934 Bytes, 647 views)
    __________________

    Last edited by NoroHime; 06-03-2023 at 18:18.
    NoroHime is offline
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 02-22-2022 , 06:45   Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.0 [2-21-22]
    Reply With Quote #2

    Code:
    //SourceMod Batch Compiler
    // by the SourceMod Dev Team
    
    
    //// l4d_announce_healer.sp
    //
    // D:\GAMES\SERVER\L4D2 #TEST\left4dead2\addons\sourcemod\scripting\l4d_announce_healer.sp(320) : warning 204: symbol is assigned a value that is never used: "isDying"
    // Code size:         14276 bytes
    // Data size:         5424 bytes
    // Stack/heap size:      16640 bytes
    // Total requirements:   36340 bytes
    //
    // 1 Warning.
    //
    // Compilation Time: 0.16 sec
    // ----------------------------------------
    
    Press enter to exit ...
    __________________

    Looking for some fun!
    thewintersoldier97 is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-22-2022 , 06:51   Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.0 [2-21-22]
    Reply With Quote #3

    Quote:
    Originally Posted by thewintersoldier97 View Post
    Code:
    //SourceMod Batch Compiler
    // by the SourceMod Dev Team
    
    
    //// l4d_announce_healer.sp
    //
    // D:\GAMES\SERVER\L4D2 #TEST\left4dead2\addons\sourcemod\scripting\l4d_announce_healer.sp(320) : warning 204: symbol is assigned a value that is never used: "isDying"
    // Code size:         14276 bytes
    // Data size:         5424 bytes
    // Stack/heap size:      16640 bytes
    // Total requirements:   36340 bytes
    //
    // 1 Warning.
    //
    // Compilation Time: 0.16 sec
    // ----------------------------------------
    
    Press enter to exit ...
    thanks report, it is my negligence, now fix

    update
    Quote:
    v1.0.1 remove unused code, fix isDying not works properly; 2-22-22
    __________________

    Last edited by NoroHime; 02-22-2022 at 06:51.
    NoroHime is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-22-2022 , 13:43   Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.0.2 [23-2-22]
    Reply With Quote #4

    update
    Quote:
    • v1.0.2
      fix issue 'wrong to use GameTime cause cooldown not work on next round'
      use OnClientPutInServer to solve client bind multiple listener; 23-2-22
    im almost cry, because im wrong the date format long time on forum, i dont known should use day-month-year
    Quote:
    • v1.1 add feature: announce adrenaline duration; 28-2-22;
    • v1.1.2 make announce delay show compatible for thirdparty plugin health changes; 25-April-22
    • v1.1.3 fix wrong adrenaline duration, thanks to Silvers; 17-October-2022
    • v1.1.4 add support for Late Load, add support for plugin '[L4D & L4D2] Heartbeat'; 14-November-2022
    __________________

    Last edited by NoroHime; 11-14-2022 at 10:12.
    NoroHime is offline
    MilanesaTM
    Junior Member
    Join Date: Aug 2021
    Old 12-22-2022 , 15:26   Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.1.4 [14-November-2022]
    Reply With Quote #5

    Could you add another text position?
    since L4D2 has a couple more.

    I don't know if these could be used: https://developer.valvesoftware.com/.../Appendix:_HUD
    MilanesaTM is offline
    CrazMan
    Member
    Join Date: Jun 2022
    Old 01-22-2023 , 05:09   Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.1.4 [14-November-2022]
    Reply With Quote #6

    Hello!
    The plugin gives me this error. How can this be fixed?

    L 01/22/2023 - 12:05:02: [SM] Blaming: l4d_announce_healer.smx
    L 01/22/2023 - 12:05:02: [SM] Call stack trace:
    L 01/22/2023 - 12:05:02: [SM] [0] HookEvent
    L 01/22/2023 - 12:05:02: [SM] [1] Line 181, /home/forums/content/files/2/7/2/5/1/8/193798.attach::ApplyCvars
    L 01/22/2023 - 12:05:02: [SM] [2] Line 157, /home/forums/content/files/2/7/2/5/1/8/193798.attach::OnPluginStart
    L 01/22/2023 - 12:05:02: [SM] Unable to load plugin "l4d_announce_healer.smx": Error detected in plugin startup (see error logs)

    Last edited by CrazMan; 01-22-2023 at 05:10.
    CrazMan is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-07-2023 , 14:28   Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.1.4 [14-November-2022]
    Reply With Quote #7

    Quote:
    Originally Posted by MilanesaTM View Post
    Could you add another text position?
    since L4D2 has a couple more.

    I don't know if these could be used: https://developer.valvesoftware.com/.../Appendix:_HUD
    sorry i never been exposed these hud features yet
    __________________

    Last edited by NoroHime; 02-07-2023 at 15:39.
    NoroHime is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-07-2023 , 15:40   Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.1.4 [14-November-2022]
    Reply With Quote #8

    Quote:
    Originally Posted by CrazMan View Post
    Hello!
    The plugin gives me this error. How can this be fixed?

    L 01/22/2023 - 12:05:02: [SM] Blaming: l4d_announce_healer.smx
    L 01/22/2023 - 12:05:02: [SM] Call stack trace:
    L 01/22/2023 - 12:05:02: [SM] [0] HookEvent
    L 01/22/2023 - 12:05:02: [SM] [1] Line 181, /home/forums/content/files/2/7/2/5/1/8/193798.attach::ApplyCvars
    L 01/22/2023 - 12:05:02: [SM] [2] Line 157, /home/forums/content/files/2/7/2/5/1/8/193798.attach::OnPluginStart
    L 01/22/2023 - 12:05:02: [SM] Unable to load plugin "l4d_announce_healer.smx": Error detected in plugin startup (see error logs)
    you maybe using l4d1, anyway fixed that

    Quote:
    Quote:

    ConVar

    PHP Code:
    // when aim to survivor then show the message to AIMer, 30=detect frames, 0=disabled
    announce_healer_aim "30"

    // 1=special infected can received health message 2=can got SI health message 3=both
    announce_healer_si "3" 
    changelog
    • v1.2 (8-February-2023)
      - add support for L4D1
      - change dying text to actually third striked
      - add ConVar *_aim to control show message when aim to survivor
      - allow show survivor health for special infected when aim
      - allow special infected health when aim
    __________________
    NoroHime 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 01:16.


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