AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Announce Health / Defib Info v1.2.1 [4-June-2023] (https://forums.alliedmods.net/showthread.php?t=336448)

NoroHime 02-20-2022 15:47

[L4D & L4D2] Announce Health / Defib Info v1.2.1 [4-June-2023]
 
17 Attachment(s)
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/

thewintersoldier97 02-22-2022 06:45

Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.0 [2-21-22]
 
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 ...


NoroHime 02-22-2022 06:51

Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.0 [2-21-22]
 
Quote:

Originally Posted by thewintersoldier97 (Post 2772141)
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

NoroHime 02-22-2022 13:43

Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.0.2 [23-2-22]
 
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


MilanesaTM 12-22-2022 15:26

Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.1.4 [14-November-2022]
 
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

CrazMan 01-22-2023 05:09

Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.1.4 [14-November-2022]
 
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)

NoroHime 02-07-2023 14:28

Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.1.4 [14-November-2022]
 
Quote:

Originally Posted by MilanesaTM (Post 2795757)
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

NoroHime 02-07-2023 15:40

Re: [L4D & L4D2] Announce Health for Healer / Defib Info v1.1.4 [14-November-2022]
 
Quote:

Originally Posted by CrazMan (Post 2797717)
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




All times are GMT -4. The time now is 19:51.

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