Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2021-03-14 00:00:00Z and 2021-03-15 00:00:00Z
jxsl13
2021-03-14 17:47:02Z
is it possible to send a CHAT_ALL message specific players only?
17:47
or rather how if
Dune
2021-03-14 18:07:17Z
yes it is
18:07
look into
SendChat
probably
jxsl13
2021-03-14 18:11:29Z
I do, I'm onto it
18:11
guess via Msg.m_TargetID or something like that
Dune
2021-03-14 18:12:25Z
you could use whisper though, would make it more clear that other players can't read that
jxsl13
is it possible to send a CHAT_ALL message specific players only?
fokkonaut
2021-03-14 18:48:07Z
https://github.com/fokkonaut/F-DDrace/blob/50cb5ba7b66f13ad1b4ebd4856171c0fce37d536/src/game/server/gamecontext.cpp#L452
fokkonaut/F-DDrace
F-DDrace is a server mod for Teeworlds 0.7 developed by fokkonaut. - fokkonaut/F-DDrace
18:53
m_Target is used for whisper
18:53
Just send the packet only to the specific client
jxsl13
2021-03-14 18:53:30Z
the purpose is that people do not know that their messages do not reach certain other people
fokkonaut
2021-03-14 18:53:41Z
Works with this^
jxsl13
2021-03-14 18:53:53Z
imma look at it
fokkonaut
2021-03-14 18:54:47Z
https://github.com/fokkonaut/F-DDrace/blob/50cb5ba7b66f13ad1b4ebd4856171c0fce37d536/src/game/server/gamecontext.cpp#L417
fokkonaut/F-DDrace
F-DDrace is a server mod for Teeworlds 0.7 developed by fokkonaut. - fokkonaut/F-DDrace
18:54
I do the same here too btw, I have a local chat mode
18:55
It only sends and receives messages from players closer to you
(edited)
18:55
Just send the packet to the clients you want to, not to everyone (-1)
WhiteKitty
2021-03-14 20:40:37Z
@Spyry
add me to Friends list
jxsl13
2021-03-14 22:06:29Z
Thanks
@fokkonaut
helped a lot. My misconception of targetId was cleared up.
jxsl13
Thanks
@fokkonaut
helped a lot. My misconception of targetId was cleared up.
fokkonaut
2021-03-14 22:06:56Z
np :)
Exported 20 message(s)