ChillerDragon / teeworlds-protocol

Documenting the teeworlds network protocol
8 stars 2 forks source link

Differences page #18

Open ChillerDragon opened 1 year ago

ChillerDragon commented 1 year ago

Should we also diff minor releases? Like 0.6.5 security tokens?

Anyways this is noteworthy the ctrl message got removed https://github.com/teeworlds/teeworlds/commit/d3fc0807d5f59d88661c8e58854805b064db3c4d

ChillerDragon commented 1 year ago

https://github.com/teeworlds/teeworlds/commit/57e28e5c88c52a621b2e1c7b24d9f9f9987299d9#diff-65908fcaf323f624c0a8e584e92664d0d49640bb139729c6e22a14a5b2170c3fR1092

conless inf3 got a new hostname field in 0.7

ChillerDragon commented 10 months ago

m_GameFlags moved from snap item to game message NETMSGTYPE_SV_GAMEINFO

FROM: https://chillerdragon.github.io/teeworlds-protocol/06/snap_items.html#obj_game_info TO: https://chillerdragon.github.io/teeworlds-protocol/07/game_messages.html#NETMSGTYPE_SV_GAMEINFO_game_flags

ChillerDragon commented 6 months ago

Hooking player sound was sent by the server in 0.6 in server/../character.cpp as its own snap obj/event

if(Events & COREEVENT_HOOK_ATTACH_PLAYER)
            GameServer()->CreateSound(m_Pos, SOUND_HOOK_ATTACH_PLAYER, TeamMaskExceptSelfIfSixup);

And is now played by the client in gameclient.cpp based on the m_TriggeredEvents in the obj_character snap item.

    if(Events&COREEVENTFLAG_HOOK_ATTACH_PLAYER)
        m_pSounds->PlayAt(CSounds::CHN_WORLD, SOUND_HOOK_ATTACH_PLAYER, 1.0f, Pos);