Revive System Interactable
Problem:
This week I decided to get the player down/revive system implemented. In a game with a round based zombie defense game mode, it is crucial to have a down and revive system that allows players to get back up after they die. In a multiplayer game you should be able to be revived by your team mates, and in a solo game you should have the ability to get extra revives to revive yourself so that you can continue the fight(with a limit in solo). One part of getting this system started was to have an interactable spawn on top of you when you went down, and be replicated to all players so that when they go into the range of it they see a "Hold F to Revive" popup.
There were a few different issues I encountered with this, one being that the interact would show up for the downed player, another being that it would not get destroyed once the player fully dies out,
Solution:
What ended up happening was that I was using the wrong type of replicated functions and the first few ways I tried implementing it, it kept having annoying bugs that would either make it only work if the server player revived a client player, or the other way around. The way that I was able to solve this problem was through some classic trial and error, I went through a few different iterations of calling methods on the player from an on rep function of the game state. What ended up working was that I needed to have the revive interact replicate, and then only be spawned on the server. Also, since the transition to the downed animation state worked, I decided to put the code to remove the revive interact inside the already existing multicast replicated functions for when you get revived and when you fully die out. The result was what I wanted and here is all I needed to add to the multicast functions to make it work.
*Player fully dead method*
*Player revived method*
Get Deadlands Duel: Time Rift Rumble
Deadlands Duel: Time Rift Rumble
A hot-blooded, feel good, zombie wave defense shooter.
Status | Prototype |
Authors | Willy Games, Ghost Of Reddus1, Mystic, LGUAPOJR, StevenCodes, Bjornoid, Johncarlos Lillo |
Genre | Shooter |
Tags | Arcade, Atmospheric, FPS, Horror, Multiplayer, rogue, Sci-fi, Unreal Engine, Zombies |
Languages | English |
More posts
- Perk System SetupMar 31, 2024
- Blog Entry Title: Morale and B featuresMar 29, 2024
- Class Ability ImplementationMar 29, 2024
- Blog Entry: RPG Explosive Projectile: Network Replication and Destruction bugMar 29, 2024
- Blog Entry: Powerup UIMar 29, 2024
- Spectating SystemMar 27, 2024
- Blog Entry Title: User Interface and Under hood with Unreal AudioMar 23, 2024
- Blog Post: The Miniboss ProjectileMar 23, 2024
- Unique but modular class abilitiesMar 23, 2024
- Blog Entry: Instant Kill PowerupMar 23, 2024
Comments
Log in with itch.io to leave a comment.
This is a great explanation of the revive system so people can take inspiration to build their own!
Love the breakdown here.
Love the documentation!!!!