tmsg doesnt trigger ::onchat [message #463966] |
Thu, 08 March 2012 06:44 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
as the title says tmsg doesnt trigger the onchat command
if it is an error on my side pls tell me.
Owner of kambot TT server
kambot.freeforums.org
|
|
|
|
|
Re: tmsg doesnt trigger ::onchat [message #463973 is a reply to message #463969] |
Thu, 08 March 2012 08:55 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
nuker7738 wrote on Thu, 08 March 2012 15:07 | we can't know if it's an error on your part if you don't post your script code >_>
|
if it is in my code im trying to fix it already, i just wonder if it is a bug.
I saw they made a new textmessageenum special for the tmsg maybe the hook doesnt respondon it.but what do i know
StealthEye wrote on Thu, 08 March 2012 15:15 | It triggers the hook that can be used by calling AddHostHook. It indeed seems to make more sense to call the chat hook instead.
|
i dont really understand what youre saying here :s
Owner of kambot TT server
kambot.freeforums.org
|
|
|
|
Re: tmsg doesnt trigger ::onchat [message #464017 is a reply to message #463966] |
Thu, 08 March 2012 16:38 |
StealthEye
Messages: 2518 Registered: May 2006 Location: The Netherlands
Karma: 0
|
General (2 Stars) |
|
|
It currently calls the "Host hook" when TMSG is executed, which is supposed to be triggered when the host sends a message (e.g. MSG command). I added it to the todo to change this to trigger the chat hook instead.
Currently, the host hook can be used by calling AddHostHook from a SSGM plugin or SSGM itself, but not via the same method other hooks are used.
There is no need for him to post the source code; it's a change TT will have to make to make it trigger the chat hook.
BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
[Updated on: Thu, 08 March 2012 16:38] Report message to a moderator
|
|
|
Re: tmsg doesnt trigger ::onchat [message #464349 is a reply to message #463966] |
Tue, 13 March 2012 06:55 |
|
ok, this is fixed, TMSG console command will now call the chat hook as well as the host hook.
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|
Re: tmsg doesnt trigger ::onchat [message #473777 is a reply to message #463966] |
Fri, 31 August 2012 12:34 |
|
Gen_Blacky
Messages: 3250 Registered: September 2006
Karma: 1
|
General (3 Stars) |
|
|
The host hook doesn't trigger on regular host messages
Host: The game has started.
msg mmmmm
>HOSTHOOK -1, mmmmm
>msg mmmmmmmmmmmmmmm
>HOSTHOOK -1, mmmmmmmmmmmmmmm
>tmsg 1 weeeeeeeeeeeeeeeeeeeeeeeeeee
>
>Player rawr joined the game
GameSpy mode active since 8/31/2012 - 13:27:48 PM
Gameplay in progress
Map : C&C_Field.mix
Time : 0.09.56
Fps : 63
GDI : 1/20 players 0 points
NOD : 0/20 players 0 points
>tmsg 1 weeeeeeeeeeeeeeeeeeee
>HOSTHOOK 1, weeeeeeeeeeeeeeeeeeee
rawr: mmmmmmmmmmmmmmmm
gameover
>Terminating game on demand...
>Loading level C&C_Hourglass.mix
Host: Teams have been remixed.
Load 100% complete
Level loaded OK
Load took 69.9 seconds. Waiting for players...
Finished waiting after 0.0 seconds. Some players are still loading.
Host: The game has started.
|
|
|