Team Spartan Cookies & Milk Forums
chat.listen(callback, ply) not working - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Help and Support (https://teamscm.co.uk/forum-8.html)
+--- Thread: chat.listen(callback, ply) not working (/thread-1529.html)



chat.listen(callback, ply) not working - Yuri6037 - 15-01-2016

Hey Person,

Tested by EisteeGolem and me : when you put a player parameter to the function it never reconizes any messages you say !
I was using that method from the begining of LanAI as I don't want to listen to everyone because that would fire the method a lot of times and probable crash because of CPU time.
Can you fix the problem ?


RE: chat.listen(callback, ply) not working - Person8880 - 15-01-2016

Fixed, sorry about that. Re-ordered the chat listening stuff (to fix it not picking up messages E2 hides) and missed a few values that let it identify which callbacks belong to the current player speaking.


RE: chat.listen(callback, ply) not working - Kosmos - 15-01-2016

(15-01-2016, 08:10 PM)Person8880 Wrote: Re-ordered the chat listening stuff (to fix it not picking up messages E2 hides)
Does that mean that starfall can now pick up messages hidden by an E2 but not the other way around? Or are they now run in parallel?


RE: chat.listen(callback, ply) not working - Person8880 - 15-01-2016

(15-01-2016, 10:47 PM)Kosmos Wrote:
(15-01-2016, 08:10 PM)Person8880 Wrote: Re-ordered the chat listening stuff (to fix it not picking up messages E2 hides)
Does that mean that starfall can now pick up messages hidden by an E2 but not the other way around? Or are they now run in parallel?
It means if Starfall hides the chat, E2 won't see it. It would be a bit more work to get them both to see each other.