Posted April 16, 20178 yr Hey everyone, I'm trying to figure out how to intercept custom packets sent from the client to the server, while still in the client, and how to send a packet from the client to the same client making it look like it came from the server. I have no idea how to this and any help would be greatly appriciated!
April 16, 20178 yr What is the context for this? What are you actually trying to achieve (in gameplay terms, not code terms)?
April 16, 20178 yr Author 48 minutes ago, Jay Avery said: What is the context for this? What are you actually trying to achieve (in gameplay terms, not code terms)? Make the MorePlayerModels mod be usable on servers that don't have the plugin installed by intercepting and spoofing the packets the mod sends and receives.
April 16, 20178 yr Author 1 minute ago, diesieben07 said: That is the worst possible way to go about it. You should talk to the mod author to implement it properly instead of hacking around with packet spoofing. I actually found a way to set the models for other players without packets already, I just need to find a way to get the player's current model, and I figured that would be the easiest if I intercepted the packet it sends to the server which includes it.
April 16, 20178 yr Author 2 minutes ago, diesieben07 said: No, that is not a good way to do it. If the mod has an API: Use it. If it doesn't, bug the author to make one. Fair enough, thanks!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.