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

make fakeclient use voice


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
djuk1c
Junior Member
Join Date: Jul 2022
Old 07-02-2022 , 22:16   make fakeclient use voice
Reply With Quote #1

I want to make my fakeclient use voip. It doesnt have to transmit anything, just trigger it like a normal player would. Or even just trigger the yellow sprite above its head for a few seconds, thats all i am looking for.

Last edited by djuk1c; 07-02-2022 at 22:18.
djuk1c is offline
731
Member
Join Date: Aug 2006
Old 07-05-2022 , 03:56   Re: make fakeclient use voice
Reply With Quote #2

You can capture the player who is speaking
turn on voice
voice_record_open
turn off voice
voice_record_close
Attached Files
File Type: zip VoiceHook.zip (193.8 KB, 31 views)
731 is offline
djuk1c
Junior Member
Join Date: Jul 2022
Old 07-05-2022 , 16:56   Re: make fakeclient use voice
Reply With Quote #3

Quote:
Originally Posted by 731 View Post
You can capture the player who is speaking
turn on voice
voice_record_open
turn off voice
voice_record_close
Interesting, where do i put the dll?
(server crashes when i put it as a metamod module and a player joins)

Last edited by djuk1c; 07-05-2022 at 17:05.
djuk1c is offline
djuk1c
Junior Member
Join Date: Jul 2022
Old 07-05-2022 , 18:04   Re: make fakeclient use voice
Reply With Quote #4

Quote:
Originally Posted by djuk1c View Post
Interesting, where do i put the dll?
(server crashes when i put it as a metamod module and a player joins)
oh it's a amx module, mb. Server crashes when i add it..
djuk1c is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 07-05-2022 , 18:15   Re: make fakeclient use voice
Reply With Quote #5

https://wiki.alliedmods.net/Half-lif...vents#BotVoice
jimaway is offline
djuk1c
Junior Member
Join Date: Jul 2022
Old 07-05-2022 , 18:24   Re: make fakeclient use voice
Reply With Quote #6

Quote:
Originally Posted by jimaway View Post
Could you provide an example of how i could use this? Thanks!
djuk1c is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 07-05-2022 , 18:42   Re: make fakeclient use voice
Reply With Quote #7

Code:
message_begin(MSG_BROADCAST, get_user_msgid("BotVoice")) write_byte(status) //1 to show 0 to hide write_byte(id) //client id message_end()

Last edited by jimaway; 07-05-2022 at 18:45.
jimaway is offline
djuk1c
Junior Member
Join Date: Jul 2022
Old 07-05-2022 , 18:47   Re: make fakeclient use voice
Reply With Quote #8

Quote:
Originally Posted by jimaway View Post
Code:
message_begin(MSG_BROADCAST, get_user_msgid("BotVoice")) write_byte(status) //1 to show 0 to hide write_byte(id) //client id message_end()
Excatly what I wanted, thank you so much!
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 00:20.


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