This Is Why You Get Bad Hit Registration - Unity Multiplayer Game Development

  Рет қаралды 17,823

xzippyzachx

xzippyzachx

Күн бұрын

Пікірлер: 134
@Skeffles
@Skeffles 3 жыл бұрын
Great explanation for collider rollback. I've always wondered how it was done.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks! Glad you liked it :p
3 жыл бұрын
Yeah, having a lag compensation system is kinda important for PVP games. I was always terrified of trying to make one of those systems but thanks to your very clear explanation now I have a better idea how it's done. Good job! :)
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yeah it really is! Glad I could help you understand a bit more about how its done :p
@elorus1366
@elorus1366 3 жыл бұрын
I like it. also thank you for replying to my comment last vid! made my day.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
No problem!! Glad you like it!
@RugbugRedfern
@RugbugRedfern 3 жыл бұрын
Ooh I like the new scoreboard a lot! All these improvements are great.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks Rug!
@kryten719
@kryten719 2 жыл бұрын
Nearly 20k subscribers :D Great job
@xzippyzachx
@xzippyzachx 2 жыл бұрын
🎉 Almost there!
@coolk4275
@coolk4275 3 жыл бұрын
Can’t wait for the game it’s gonna be so cool
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Nice!
@JS-ew2ri
@JS-ew2ri 3 жыл бұрын
Yay, I'm so glad there is another one!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Me too! :p
@JayCode_dev
@JayCode_dev 3 жыл бұрын
It's really cool to see these new changes! It's cool that the lag compensation is here!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks Jay!
@JayCode_dev
@JayCode_dev 3 жыл бұрын
@@xzippyzachx Always there!
@GamesBySaul
@GamesBySaul 3 жыл бұрын
Great video Zach! - Again you explain a somewhat confusing concept really well - and the difference it's seemed to have made as well is amazing! :D Also love the new recoil system!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks Saul! I second guess if I actually explained it well. So its nice to hear that I did a good job. Glad you liked it! :p
@GamesBySaul
@GamesBySaul 3 жыл бұрын
@@xzippyzachx Sensing a recurring theme, especially with your last video on CSP - You're great at it!
@aimegrieten
@aimegrieten 3 жыл бұрын
you could maybe implement a friends list so when the game releases you can play with friends!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yeah probably, or I will implement steam integration or something like that to invite your friends
@gqmeboi_2135
@gqmeboi_2135 2 жыл бұрын
If you have friends Cries
@minijimi
@minijimi 3 жыл бұрын
Good Job man, I like the custom gameboard value you put in. Good for all game modes, nice. I bet the lag compensation was cool to implement, keep up the game development.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks! :p
@kombatcbse2819
@kombatcbse2819 3 жыл бұрын
Great work Zach
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks!
@Dubitarul
@Dubitarul 3 жыл бұрын
Yes . A now video! I love your videos
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Glad you like them!
@prod.halfnhalf
@prod.halfnhalf 2 жыл бұрын
Recoil is much better. Gud job
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Thanks!
@panically
@panically 2 жыл бұрын
Hey may I request these features: In a settings menu you can enable low computer mode(which decreases particles for grenades and snow and grass and clouds and others and lowers quality but enhances fps for worse computers) in the settings menu you can enable custom crosshair mode(which allows the client to change his crosshairs to a color or chrome or default) in the settings menu you can change chunk render(so the trees around you load with full texture but the far away things like trees and clouds don't load as great or don't load at all for better fps) sliding(allows the client to slide down hills and ramps by pressing a key for increased momentum PS add a camera shake or motion blur while sliding depending on your velocity) in the settings menu you can enable color highlights(so when your in range to pick up a weapon you can change the color of the outline) lastly I just want say its my birthday today and you using any of my suggestions would be nice to know. thanks in advance...
@MideyDev
@MideyDev 3 жыл бұрын
Lessgoooo. New recoil system looks a lot better too. I wonder how you get all this stuff done while also doing uni work.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Glad you like it! Very slowly. I work on it a few times a week but sometimes take longer breaks when life is busy. :p
@chocco_fairy
@chocco_fairy 2 жыл бұрын
Thanx to you and other coders I am interested in coding
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Great!
@plaidev
@plaidev 3 жыл бұрын
0:36 damn he cracked
@xzippyzachx
@xzippyzachx 3 жыл бұрын
I wish KZbin compression didn't make it so blurry but yeah I may have snuck a few of my Val plays in :p
@rockukaz4648
@rockukaz4648 2 жыл бұрын
i love your videos. May i suggest you to add some kind of additional items or abilities, like granades
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Yes, there will me a lot more content added in the future. Grenades are on my list.
@rockukaz4648
@rockukaz4648 2 жыл бұрын
Nice
@tomweiland
@tomweiland 3 жыл бұрын
Congrats on getting the lag compensation working! Did you apply it to the knife as well or just the guns?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Its on the knife as well but the knife is still using a raycast which makes it hard to hit players. Need to try changing it to a sphere cast instead I think.
@RugbugRedfern
@RugbugRedfern 3 жыл бұрын
@@xzippyzachx I'd probably use an OverlapSphere instead of a SphereCast
@PuffoPufferfish
@PuffoPufferfish 2 жыл бұрын
I watched this video (well done, hope the game went well) and the CSGO video by Devin but was still left a little confused on how exactly the rollback part functions; Are you archiving the player's collision every tick on the server and referring back to the archived collisions whenever a shot is fired at the player, or is it using some other system?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Thanks! Yes you understand it correctly. I keep around a 1 second buffer/archive of the players positions. This way I can rollback to account for latency. Here is an in depth playlist on the topic if you are even more interested in all the mechanics kzbin.info/aero/PLoRL6aS9crowO6h2SL7k9lUV5eeC6uqnx
@winterboltgames
@winterboltgames 3 жыл бұрын
Really interesting!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Glad you liked it!
@facusandoval4074
@facusandoval4074 3 жыл бұрын
Thank you bro!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
:p
@mrIUBERSTRIKE
@mrIUBERSTRIKE 3 жыл бұрын
I think you should add a feature where during capture the flag when you got the flag you can use it as a weapon
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Like a melee weapon? Interesting idea :p
@darkigg
@darkigg 3 жыл бұрын
There's only one problem with that - the player who go hit by the shot, is not there, and he will absolutely complain about the fact that he got hit by a shot - that never hit him. Though there is no any way to fix it........
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yeah, that's the way it works in every FPS game though. Its called the peakers advantage.
@darkigg
@darkigg 3 жыл бұрын
@@xzippyzachx now I finally understand why do I and basically every other gamer always complain about people hitting us when we're not there lol
@kingdomlamb7741
@kingdomlamb7741 Жыл бұрын
@@xzippyzachx”camera-ing” in cod is basically the same except your running around a corner fast so the enemies computer doesn’t render it as fast as yours
@Bongabangoboga
@Bongabangoboga 2 жыл бұрын
Here is an idea: why not implement a weapon customization (If you have time)
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Yeah both weapon and player customization is on my long list of features to implement :p
@moonknight7564
@moonknight7564 3 жыл бұрын
Cool!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks!
@reallocal
@reallocal 3 жыл бұрын
very epic.
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Thanks!
@EXP256
@EXP256 2 жыл бұрын
I think that the recoil going back to the start should be with sniper rifles only but you do you
@StepLite
@StepLite 3 жыл бұрын
when this game fullly release
@LAE-7
@LAE-7 3 жыл бұрын
yeah
@xzippyzachx
@xzippyzachx 3 жыл бұрын
No clue, when its ready. And I don't know when that will be :p
@Sebastian-Bianchi
@Sebastian-Bianchi 2 жыл бұрын
Hey man, you should add odball mode from halo. Also, when is this gonna be out?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Yeah a gamemode like odball would be cool. I really don't know when it will be in a releasable state, still a long time until then I would imagine.
@Sebastian-Bianchi
@Sebastian-Bianchi 2 жыл бұрын
@@xzippyzachx ok cool
@GaLzZy.
@GaLzZy. 4 ай бұрын
I'd be very curious to know how you implemented your lag compensation more in detail. I am making a game that would require it, but in my case instead of a gun shot it would be a projectile that is way slower like a spell for example so I was wondering how I could implement that...
@xzippyzachx
@xzippyzachx 4 ай бұрын
I suggest asking about lag compensation on my Discord server. I can do my best to answer there.
@edgeworksgames
@edgeworksgames 9 ай бұрын
Great video but just want to say that you should probably put an on screen credit/text to show the person who's video you've used :D Specifically for the csgo video
@xzippyzachx
@xzippyzachx 9 ай бұрын
I asked for permission to use their video and its linked in the description :p
@edgeworksgames
@edgeworksgames 9 ай бұрын
@@xzippyzachx Yaa of course but I think it would be good just to have the channel name in the corner maybe so people could know
@josephnowland8940
@josephnowland8940 2 жыл бұрын
you should add waves to the ship map water
@xzippyzachx
@xzippyzachx 2 жыл бұрын
There are very small waves right now. I might make them bigger
@josephnowland8940
@josephnowland8940 2 жыл бұрын
@@xzippyzachx cool
@mrIUBERSTRIKE
@mrIUBERSTRIKE 3 жыл бұрын
I think you should add a map maker feature
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Maybe eventually :p
@mrIUBERSTRIKE
@mrIUBERSTRIKE 3 жыл бұрын
Yay Thank you
@Chillco600
@Chillco600 2 жыл бұрын
isnt this also just because of bad netcode? some things cant be fixed no matter how good of netcode you have, but i feel like this isnt one of those, if you have a system in place to make it so that movement and the such is handled by directions (if a player starts moving in a new direction at a given speed, send both the direction vector and the speed float/integer to the server and make it appear like they are moving in that direction on the client) and have a direction and speed comparing system for it ( if the client fires a shot, have the client send the direction and speed the target is currently moving, if it matches up, consider the shot landed, if it doesnt, then dont) and a course correction system along with it (every time a new direction and speed is sent, have them send the current position too, if it for whatever reason does not match up, set their position to the position sent)
@xzippyzachx
@xzippyzachx 2 жыл бұрын
You have the right idea. I have both a client prediction system and collider rollback system implemented. I do explain the solution to this problem in the video so I am not sure why you had to repeat an explanation here. :p
@byzantinebb2037
@byzantinebb2037 3 жыл бұрын
Strong
@xzippyzachx
@xzippyzachx 3 жыл бұрын
💪
@mr.soulless904
@mr.soulless904 2 жыл бұрын
Amazing, is there anyway i can apply collider rollback with photon?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
I am sure you can but it depends if you actually need it. If you are using Photons peer to peer networking then I don't think there is any delay in hit detection. I may be wrong though.
@mr.soulless904
@mr.soulless904 2 жыл бұрын
@@xzippyzachx oh there is and it’s really bad, it’s because i live in middle east and they don’t support middle east server, so i chose the nearest server which is Europe, however it’s still on 110 ms, so i was wondering how do i implement collider rollback?
@juhaszdavid640
@juhaszdavid640 3 жыл бұрын
Hey How did you manage the camera recoil to return to the center? I used to do that with lerping back to Vector2.zero, but when you do that it weirdly moves downwards after when your done with shooting Game's looking great, cheers
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Its kind of hard to explain but I am using lerping and slerping to accomplish the returning. If you ask on my Discord server I can direct you to the resources I used.
@juhaszdavid640
@juhaszdavid640 3 жыл бұрын
@@xzippyzachx i have done the same, but doesnt it feel weird when you try to compensate your recoil? Thanks, I will definitely join your discord!
@s4ng124
@s4ng124 2 жыл бұрын
you should make a story mode for multi player, and solo
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Maybe...
@mrIUBERSTRIKE
@mrIUBERSTRIKE 2 жыл бұрын
Can you please add and improve that cops vs bad guys mode?
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Is that the gamemode where you could breach walls in my old multiplayer game? If so then yes its on my list of gamemodes to add to this game.
@mrIUBERSTRIKE
@mrIUBERSTRIKE 2 жыл бұрын
Yes
@andresv8856
@andresv8856 Жыл бұрын
What happens when you have an unstable connection??
@xzippyzachx
@xzippyzachx Жыл бұрын
An unstable connection would make the hit registration even worse.
@andresv8856
@andresv8856 Жыл бұрын
@xzippyzachx yeah it's really difficult for me to play online fps, I got fiber but still sucks
@zoidskenji2597
@zoidskenji2597 3 жыл бұрын
I download your game ,but i don't know to how to join the server?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Servers are only running during playtests. If you are on my Discord server you will be notified when there is a playtest.
@zoidskenji2597
@zoidskenji2597 3 жыл бұрын
@@xzippyzachxi just joined your discord server
@zoidskenji2597
@zoidskenji2597 3 жыл бұрын
I don't know how to make your own server?Just like the old one
@xzippyzachx
@xzippyzachx 3 жыл бұрын
You cant host your own servers in my new multiplayer game yet.
@lop1506
@lop1506 3 жыл бұрын
can you add explosives to break walls. with that i mean: 5 years of making games in unity 8:40
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yeah I might add that to this game eventually
@fv4202x
@fv4202x 3 жыл бұрын
1:25 If we shoot a little bit further than it moves, can we kill the enemy then?
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yes if there is no lag compensation then you could lead your shots to try and "guess" where there actual position is on the server.
@fv4202x
@fv4202x 3 жыл бұрын
@@xzippyzachx So we can think like csgo has wind :D
@yousset808
@yousset808 2 жыл бұрын
please upload vedio for player name in unet
@mrIUBERSTRIKE
@mrIUBERSTRIKE 2 жыл бұрын
Are you gonna add story mode
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Maybe, but for now I will be focusing on the multiplayer aspect
@realmizan
@realmizan 3 жыл бұрын
When can I play this I can’t wait !!
@xzippyzachx
@xzippyzachx 3 жыл бұрын
join the discord and give yourself the playtester role. Next time we playtest you will be pinged.
@realmizan
@realmizan 2 жыл бұрын
@@xzippyzachx ok i did ill wait
@jadelinliske371
@jadelinliske371 3 жыл бұрын
cracked valorant player
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yeeeeeeeeeeeeeeeee
@WhiteFTO
@WhiteFTO 3 жыл бұрын
bro i love ur game were can i download it
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Become a playtester on my Discord server and you can play with us next playtest session
@molkayt7984
@molkayt7984 2 жыл бұрын
You should see with getting it on console it's really good
@xzippyzachx
@xzippyzachx 2 жыл бұрын
Maybe, but focusing on PC first
@jeffersonbellon4432
@jeffersonbellon4432 3 жыл бұрын
If I play this game I fell like it would be to easy to shoot for the head, it looks so big tho
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yeah thats why I am not sure if head shots should do more damage or not.
@troublebub8475
@troublebub8475 3 жыл бұрын
First
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Yep!!
@troublebub8475
@troublebub8475 3 жыл бұрын
Hi hbi
@xzippyzachx
@xzippyzachx 3 жыл бұрын
👋
@jadelinliske371
@jadelinliske371 3 жыл бұрын
second
@xzippyzachx
@xzippyzachx 3 жыл бұрын
👀
@BruceTheShark7
@BruceTheShark7 3 жыл бұрын
Bro
@xzippyzachx
@xzippyzachx 3 жыл бұрын
Bro x2
@wolf_ro3660
@wolf_ro3660 2 жыл бұрын
Make it mobile
@xzippyzachx
@xzippyzachx 2 жыл бұрын
I don't think performance would be good on mobile
Unity Multiplayer Game Development - Player Hands & New Shotgun
5:45
Unity Multiplayer Game Development - Uploading To STEAM
7:16
xzippyzachx
Рет қаралды 4,9 М.
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 17 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 2,6 МЛН
5 Years of Making Games in Unity!
13:27
xzippyzachx
Рет қаралды 2,3 МЛН
6 Game Design Mistakes You MUST Avoid
18:22
Thomas Brush
Рет қаралды 42 М.
Why I’m switching from Unity to Unreal Engine
9:02
LixianTV
Рет қаралды 1,1 МЛН
Multiplayer Game Development - Player Hosted Games
7:11
xzippyzachx
Рет қаралды 1,9 М.
4 Months of Game Programming With My Own Engine
21:30
jdh
Рет қаралды 492 М.
I OVERHAULED My Game To Add This Weapon - Devlog
7:17
OBrooks
Рет қаралды 94 М.
Making a Souls Like In A Month
15:32
Emis
Рет қаралды 976 М.
I Made a Game in Unreal in 14 Days... (No Experience)
32:59
Jack Sather
Рет қаралды 1,5 МЛН
Making MULTIPLAYER Games has never been EASIER!
12:49
Code Monkey
Рет қаралды 83 М.
I Paid Game Developers on Fiverr to Make the Same Game
9:49
BadGameDev
Рет қаралды 3,4 МЛН