Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Announce Health for Healer / Defib Info v1.1.2 [25-April-22]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Senior Member
Join Date: Aug 2016
Location: China
Plugin ID:
7972
Plugin Version:
1.1.2
Plugin Category:
Statistical
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Info Announce to healer & defiber & reviver
    Old 02-20-2022 , 15:47   [L4D & L4D2] Announce Health for Healer / Defib Info v1.1.2 [25-April-22]
    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" 

    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


    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, 229 views)
    File Type: jpg when revived.jpg (71.8 KB, 214 views)
    File Type: jpg after revived switch to pills.jpg (69.0 KB, 207 views)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_announce_healer.sp - 45 views - 15.8 KB)
    File Type: txt l4d_announce_healer.phrases.txt (934 Bytes, 75 views)
    __________________
    receiver/provider from chi

    Last edited by NoroHime; 04-25-2022 at 08:58.
    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
    Senior Member
    Join Date: Aug 2016
    Location: China
    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
    __________________
    receiver/provider from chi

    Last edited by NoroHime; 02-22-2022 at 06:51.
    NoroHime is offline
    NoroHime
    Senior Member
    Join Date: Aug 2016
    Location: China
    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
    __________________
    receiver/provider from chi

    Last edited by NoroHime; 04-25-2022 at 08:58.
    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 03:41.


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