I am trying to develop a game with pvp in it, I am asking for some advice how to get the PVP networking right and get that smooth crisp pvp games like other games have. Its a sword game with possibly projectiles such as arrows later on, I am focusing on delivering the MVP first so I only need the bare minimum setup first (so people don't get frustrated with bad hitreg.. etc)
#How do good games write crisp PVP networking?
1 messages · Page 1 of 1 (latest)
I don't have a lot of knowledge when it comes to making a pvp networking so anything i say might be wrong but one thing is that you should not make physical objects for the projectiles as they will take up a lot of performance(especially when you have a lot of projectiles at the same time) you should try your best to make an instance(which is the projectile) into a bunch of numbers that you can use to predict where the instance is going and when it will reach that spot
I was always a fan of ballistic trajectories though, and the projectiles are generally arrows so their velocity is slower, and using hitscan would be unreasonable in my opinion
Is there a scenario where there would be a lot of projectiles?
that is made on the server
unless the players coordinate themselves to crash a server, no I would only have bow and arrows
so the firerate wouldn't be all that
a few seconds per arrow
wait how much people are you planning to have in a single server?
50-100
holy
you can count around 20 people to never be firing arrows, and 30 more that might not use arrows cuz they will have swords instead
okay
cuz the game will revolve around 20 people doing logistics
Only sync relevant players nearby, not the whole server yk what i mean like no need to show a player that is swinging a sword and is far away from one another
Honestly your best bet about learning such thing is to use google as many people in this discord server isn't like a scripter who understand such stuff
I use gemini but mainly do my own stuff alone, when I started this project (3 days ago) I had no idea what I was doing and basically used gemini for the whole code, but today I am writing my own code independently
I made the sword module in like 15 minutes with anticheat checks
and it works
because ai is popo
yeah I am handling it myself
lowkey hes good at debugging sometimes
Have you tried going to the dev forum?
Yea but you can't always guarantee that it will give you working code
no like searching up your problem surely there is someone who asked the same question and solve it
I do sometimes
but I mainly read docs
if I need something