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

[L4D2] Instructor Chat v1.0.3 [4-January-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
8348
Plugin Version:
1.0.3
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
2 
Plugin Description:
Old 12-30-2022 , 19:28   [L4D2] Instructor Chat v1.0.3 [4-January-2023]
Reply With Quote #1

about
  • create instructor hint on every chat, to known who saying
  • optional prevent default message or prevent when out of range, or in range


Intro Videos

[L4D2] Instructor Chat (SourceMod)



ConVar

PHP Code:
// instructor hint color, RBG format
chat_instruct_color "255,255,255"

// instructor flags, 1,2,4=pulse 8,16,32=alpha animating 64,128=shake 256=static.
// add numbers together you want
chat_instruct_flags "0"

// instructor hint icon, more see ./pak01_dir.vpk/scripts/mod_textures.txt
chat_instruct_icon "icon_skull"

// hint name prefix
chat_instruct_name "1"

// prevent default chat message 0=no 1=yes 2=prevent if out of range 3=prevent if in range
// required "[Any] Chat-Processor"
chat_instruct_prevent "0"

// instructor hint range, use with *_prevent, 0=infinity
chat_instruct_range "2000"

// time(seconds) to disappear instructor hint, int valuve
chat_instruct_timeout "12" 
known issue
  • plugin might not response fast if player change instructor setting using bind key

changelog
  • v1.0 just releases; 31-December-2022
  • v1.0.1 fixes:
    - dont prevent message when player didnt enabled the instructor,
    - *_prevent now required "chat-processor"; 31-December-2022 (2nd time)
  • v1.0.2 fix throw error when detect player who not connected; 1-January-2023
  • v1.0.3 fix instructor ConVar not found on dedicated server, the previous version wrote on listen server; 4-January-2023

Installation
  • put l4d2_chat_instruct.smx on /plugins/
  • to make *_prevent work required install [Any] Chat-Processor
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_instructor_chat.sp - 434 views - 9.0 KB)
__________________

Last edited by NoroHime; 01-04-2023 at 08:21.
NoroHime is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 12-30-2022 , 22:07   Re: [L4D2] Instructor Chat [31-December-2022]
Reply With Quote #2

Oh.... very nice and special


Maybe you don’t need to see yourself talking, so too many prompts are displayed and the screen looks messy

Last edited by yabi; 12-30-2022 at 22:13.
yabi is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-31-2022 , 03:02   Re: [L4D2] Instructor Chat [31-December-2022]
Reply With Quote #3

Players can disable instructor hints, you should query their convar to verify it works for them, otherwise you're just blocking chat messages to them.
__________________

Last edited by Silvers; 12-31-2022 at 03:03.
Silvers is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 12-31-2022 , 07:33   Re: [L4D2] Instructor Chat [31-December-2022]
Reply With Quote #4

update to solved player disabled instructor hint
Quote:
changelog
  • v1.0.1 fixes:
    - dont prevent message when player didnt enabled the instructor,
    - *_prevent now required "chat-processor"; 31-December-2022 (2nd time)

known issue
  • plugin might not response fast if player change instructor setting using bind key
__________________
NoroHime is offline
AsphyxiaJLSA
Member
Join Date: Oct 2021
Location: Lima,Perú
Old 12-31-2022 , 21:30   Re: [L4D2] Instructor Chat v1.0.1 [31-December-2022]
Reply With Quote #5

oh, very good, you think you can make a hint about each death of a special infected for the client, let's say for example, you kill a hunter and in hint you get "hunter is dead"
__________________
→MY STEAM PROFILE←

DISCORD: Asphyxia#9797

Sorry for my bad English
AsphyxiaJLSA is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 01-01-2023 , 00:28   Re: [L4D2] Instructor Chat v1.0.1 [31-December-2022]
Reply With Quote #6

L 01/01/2023 - 13:16:04: SourceMod error session started
L 01/01/2023 - 13:16:04: Info (map "lostschool_3") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230101.log")
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 2 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 12 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 3 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 1 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 4 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 7 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 10 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 5 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:26:28: Error log file session closed.
yabi is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-01-2023 , 07:07   Re: [L4D2] Instructor Chat v1.0.1 [31-December-2022]
Reply With Quote #7

Quote:
Originally Posted by yabi View Post
L 01/01/2023 - 13:16:04: SourceMod error session started
L 01/01/2023 - 13:16:04: Info (map "lostschool_3") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230101.log")
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 2 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 12 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 3 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 1 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 4 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 7 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 10 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:16:04: [SM] Exception reported: Client 5 is not connected
L 01/01/2023 - 13:16:04: [SM] Blaming: l4d2_instructor_chat.smx
L 01/01/2023 - 13:16:04: [SM] Call stack trace:
L 01/01/2023 - 13:16:04: [SM] [0] QueryClientConVar
L 01/01/2023 - 13:16:04: [SM] [1] Line 297, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2_instructor_chat.sp::CommandPause
L 01/01/2023 - 13:26:28: Error log file session closed.
thanks report, fixed
update
Quote:
  • v1.0.2 fix throw error when detect player who not connected; 1-January-2023
__________________
NoroHime is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 01-01-2023 , 07:47   Re: [L4D2] Instructor Chat v1.0.2 [1-January-2023]
Reply With Quote #8

Changes v1.1.0 [01-January-2023]:
  • fixed error "Client * is not connected"
  • minor code optimization
    PHP Code:
    //// l4d2_instructor_chat 1.0.1.sp
    //
    // Code size:         9992 bytes
    // Data size:         4392 bytes
    // Stack/heap size:      16556 bytes
    // Total requirements:   30940 bytes
    //
    // Compilation Time: 0,31 sec
    // ----------------------------------------

    //// l4d2_instructor_chat 1.1.0.sp
    //
    // Code size:         9328 bytes
    // Data size:         4160 bytes
    // Stack/heap size:      16532 bytes
    // Total requirements:   30020 bytes
    //
    // Compilation Time: 0,27 sec
    // ---------------------------------------- 
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_instructor_chat 1.1.0.sp - 224 views - 8.1 KB)
__________________

Last edited by Grey83; 01-01-2023 at 07:47.
Grey83 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-01-2023 , 09:12   Re: [L4D2] Instructor Chat v1.0.2 [1-January-2023]
Reply With Quote #9

Great plugin, hope it helps player notice teammate when I say "HELP!"

I have a question not related to this plugin.
How do you make AI bots chat in your Intro Videos?
PHP Code:
/do Coach "say no Way" 
__________________

Last edited by HarryPotter; 01-01-2023 at 09:13.
HarryPotter is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 01-01-2023 , 09:33   Re: [L4D2] Instructor Chat v1.0.2 [1-January-2023]
Reply With Quote #10

HarryPotter, something like this: https://forums.alliedmods.net/showthread.php?p=1534017
__________________
Grey83 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 16:47.


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