OsirisAndExtra icon indicating copy to clipboard operation
OsirisAndExtra copied to clipboard

fix lag with chocking packets when voice chat is active (cant make pr on phone)

Open Wolfyyta opened this issue 2 years ago • 10 comments

fix for the voice sounds

bool __fastcall send_net_channel(INetChannel* thisptr, int edx, INetMessage* message, bool force_reliable, bool voice)
{
	// check for voicedata group and enable voice streams
	if (message->get_group() == INetChannelInfo::VOICE)
		voice = true;

        // call og
	return og::net_channel(thisptr, edx, message, force_reliable, voice);
}

Wolfyyta avatar Jan 02 '23 15:01 Wolfyyta

99% sure jannes will comment first on this

Wolfyyta avatar Jan 02 '23 15:01 Wolfyyta

99% sure jannes will comment first on this

u could not mention that

Xsintashi avatar Jan 02 '23 16:01 Xsintashi

99% sure jannes will comment first on this

ong cap

JannesBonk avatar Jan 02 '23 16:01 JannesBonk

bool __fastcall send_net_channel(INetChannel* thisptr, int edx, INetMessage* message, bool force_reliable, bool voice) { // check for voicedata group and enable voice streams if (message->get_group() == INetChannelInfo::VOICE) voice = true;

    // call og

return og::net_channel(thisptr, edx, message, force_reliable, voice); }

  • this isnt even in osiris

JannesBonk avatar Jan 02 '23 17:01 JannesBonk

bool __fastcall send_net_channel(INetChannel* thisptr, int edx, INetMessage* message, bool force_reliable, bool voice) { // check for voicedata group and enable voice streams if (message->get_group() == INetChannelInfo::VOICE) voice = true;

    // call og

return og::net_channel(thisptr, edx, message, force_reliable, voice); }

  • this isnt even in osiris

stolen from public source but gets it done x)

Wolfyyta avatar Jan 02 '23 19:01 Wolfyyta

bool __fastcall send_net_channel(INetChannel* thisptr, int edx, INetMessage* message, bool force_reliable, bool voice) { // check for voicedata group and enable voice streams if (message->get_group() == INetChannelInfo::VOICE) voice = true;

    // call og

return og::net_channel(thisptr, edx, message, force_reliable, voice); }

  • this isnt even in osiris

stolen from public source but gets it done x)

ill find a way to add it to my pasta $$$

JannesBonk avatar Jan 02 '23 20:01 JannesBonk

forgot to let the enum for this one x) VOICE is at index 9 in the enum, here's the full:

	enum
	{
		GENERIC = 0,	// must be first and is default group
		LOCALPLAYER,	// bytes for local player entity update
		OTHERPLAYERS,	// bytes for other players update
		ENTITIES,		// all other entity bytes
		SOUNDS,			// game sounds
		EVENTS,			// event messages
		TEMPENTS,		// temp entities
		USERMESSAGES,	// user messages
		ENTMESSAGES,	// entity messages
		VOICE,			// voice data
		STRINGTABLE,	// a stringtable update
		MOVE,			// client move cmds
		STRINGCMD,		// string command
		SIGNON,			// various signondata
		PAINTMAP,		// paintmap data
		ENCRYPTED,		// encrypted data
		TOTAL,			// must be last and is not a real group
	};

Wolfyyta avatar Jan 03 '23 13:01 Wolfyyta

bool __fastcall send_net_channel(INetChannel* thisptr, int edx, INetMessage* message, bool force_reliable, bool voice) { // check for voicedata group and enable voice streams if (message->get_group() == INetChannelInfo::VOICE) voice = true;

    // call og

return og::net_channel(thisptr, edx, message, force_reliable, voice); }

i found a much simpler solution

JannesBonk avatar Jan 03 '23 16:01 JannesBonk

then share with the class :D

Smellon69 avatar Feb 17 '23 23:02 Smellon69

then share with the class :D

alr published by @Xsintashi

JannesBonk avatar Feb 18 '23 13:02 JannesBonk