Raised This Month: $ Target: $400
 0% 

Triggering UpdateSpeakerStatus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
djuk1c
Junior Member
Join Date: Jul 2022
Old 12-22-2023 , 15:04   Triggering UpdateSpeakerStatus
Reply With Quote #1

Hey

I am looking for a way to trigger the CVoiceStatus::UpdateSpeakerStatus function with a specific entity id.
I need a way to set the m_VoicePlayers[entityId] to true;
https://github.com/ValveSoftware/hal...tatus.cpp#L392

As far as i have tested, the BotVoice message does not trigger this, it just draws the fake sprite above the players head
djuk1c is offline
WATCH_D0GS UNITED
Senior Member
Join Date: Jan 2023
Old 12-22-2023 , 15:45   Re: Triggering UpdateSpeakerStatus
Reply With Quote #2

This may help you:
https://wiki.alliedmods.net/Half-lif...ents#SendAudio

It will give you the id of the bot who sent the audio, the pitch, and the string.

Is this what you want?
__________________
💻Know Our New Blog👄
🔗tube2downs.blogspot.com
WATCH_D0GS UNITED is offline
djuk1c
Junior Member
Join Date: Jul 2022
Old 12-23-2023 , 04:53   Re: Triggering UpdateSpeakerStatus
Reply With Quote #3

I will test this soon and let you know, thank you
Are you sure this sets the m_VoicePlayers[entityId]?
djuk1c is offline
Old 12-23-2023, 09:47
WATCH_D0GS UNITED
This message has been deleted by WATCH_D0GS UNITED. Reason: pls wait
WATCH_D0GS UNITED
Senior Member
Join Date: Jan 2023
Old 12-23-2023 , 10:00   Re: Triggering UpdateSpeakerStatus
Reply With Quote #4

You can use this debugger We've created to get data from the game events in real-time.

If you set get_data_mode to 6 in the console (now the default), the plugin will show you enough data for what you want, like below:

PHP Code:
cl_str_data[3]: 94                                    // Pitch
cl_str_data[2]: radio\bot\im_coming.wav  // Audio File
cl_str_data[1]: 13                                  //  Player who sent the audio 
Please open the script and read. There's a description explaining how to use it.
Add it to your test server and add bots for testing.

Use radio message keys like Z, X, and C to make the bots talk more.

It's better for you to be the first player to join because the default client the plugin use is 1. You can specify.

We will optimize this debugger soon.
You can use it to inspect any event.

Download:
Attached Files
File Type: sma Get Plugin or Get Source (amxx_debug_x.sma - 26 views - 7.8 KB)
__________________
💻Know Our New Blog👄
🔗tube2downs.blogspot.com
WATCH_D0GS UNITED is offline
djuk1c
Junior Member
Join Date: Jul 2022
Old 12-23-2023 , 13:24   Re: Triggering UpdateSpeakerStatus
Reply With Quote #5

SendAudio doesnt seem to do what i want, it doesnt trigger the voice system in game
Can check with voice_clientdebug 1
djuk1c is offline
djuk1c
Junior Member
Join Date: Jul 2022
Old 12-23-2023 , 14:08   Re: Triggering UpdateSpeakerStatus
Reply With Quote #6

The BotVoice message almost works as i want it to work

The CVoiceStatus::UpdateSpeakerStatus gets triggered with BotVoice, but it gets turned off when the round ends, i need it to stay on, like the real voice stays on when the round ends but people still keep talking
djuk1c 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 17:32.


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