Belzebu Posted July 31, 2016 Author Share Posted July 31, 2016 can anybody help me?I need for a death of timer .when the player dies, a timer appears on the screen 30 sec. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted August 1, 2016 Share Posted August 1, 2016 Have a timer in the client loop that resets when the player dies and once it counts to 30 it calls onDeath or whatever the player death sub is. Hopefully this crude explanation and way of doing it give you ideas or help Link to comment Share on other sites More sharing options...
Lavos Posted August 2, 2016 Share Posted August 2, 2016 Sounds kinda fun to do. If you want i could probably try and take a crack at it. I'm pretty sure its going take some parts of the server side ondeath, but the rendering should be simple. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted August 2, 2016 Share Posted August 2, 2016 Lavos, I have a perma death code that you can use for a guide in this (granted there's more to the code because it's an on/off code) but let me know if you'd like to see it for this. Link to comment Share on other sites More sharing options...
Lavos Posted August 3, 2016 Share Posted August 3, 2016 @'Mohenjo:> Lavos, I have a perma death code that you can use for a guide in this (granted there's more to the code because it's an on/off code) but let me know if you'd like to see it for this.Sure thing bruh, just show me the door and ill get right to it. Link to comment Share on other sites More sharing options...
Matt Posted August 3, 2016 Share Posted August 3, 2016 I tried to post this earlier, but it didn't work apparently. *Fingers crossed*This is some pseudo VB code I wrote up as a solution to this.The way it works is, OnDeath, send a packet to the client with the wait time, On the server, store it with the player.On the client, render "Respawn in X seconds…" and disable input until the time is complete.On the server, refuse input from the client until the time is complete.Clienthttp://pastebin.com/KuDj4vEJServerhttp://pastebin.com/zBDv4pj6 Link to comment Share on other sites More sharing options...
Lavos Posted August 4, 2016 Share Posted August 4, 2016 Thx matt this actually is pretty good skeleton to work with. Link to comment Share on other sites More sharing options...
Belzebu Posted August 16, 2016 Author Share Posted August 16, 2016 sorry guys. I forgot to specify that it was for the EO 2.0 Link to comment Share on other sites More sharing options...
Lavos Posted October 13, 2016 Share Posted October 13, 2016 I started working on that example code MATT, though some of the code is like wtf? lol im cleaning it off now. Its missing a lot. Link to comment Share on other sites More sharing options...
Lavos Posted October 13, 2016 Share Posted October 13, 2016 Did some tweaking to get to work with my engine. I could say that Matts code is safe to use with little adjustments. Good Job matt!![](http://i.imgur.com/6Fv3iJq.gif) Link to comment Share on other sites More sharing options...
Matt Posted October 15, 2016 Share Posted October 15, 2016 Good job Lavos! The code wasn't meant to be complete. It was just a rough skeleton, like you said. Link to comment Share on other sites More sharing options...
angelrangel1 Posted July 3, 2017 Share Posted July 3, 2017 Esto es lo que andaba buscando Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now