Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: QuantumDelta on August 29, 2009, 06:41:34 am

Title: Respawn timer
Post by: QuantumDelta on August 29, 2009, 06:41:34 am
Can I has make fred request too pretty please (I thought it'd probably be better to use an existing thread than plonk another one down)..?

A "Force respawn" timer, either in events for specific ships, or mission wide in something like mission specs.

The reason being is three fold;
a) The functionality doesn't seem to be in (or if it is no one I've quizzed on the subject seems to be aware of it) and it'd be kinda cool generally.
b) The multi guys (well, cc, E and I) have been working on a mission I sorta put together a concept for and it's kinda 'broken as a concept' if the players are allowed to sit on the respawn screen and go afk for 10 minutes.
c) Not respawning was an abused tactic in squad wars on occasion, if we're to re-construct SW, I'd like to see the abuse of that 'tactic' removed, cuz it's really not intended..

So....with sugar on top? and maybe a strawberry? :p
Title: Respawn timer
Post by: karajorma on August 29, 2009, 07:55:39 am
Adding this to mission specs as a mission flag looks like a 10-15 minute job to me. Adding it with a timer would take a little while longer. Adding for specific ships might be a little harder though.

Which would you rather have? It seems to me that something like this should be in mission specs.
Title: Respawn timer
Post by: The E on August 29, 2009, 08:07:47 am
I would say mission specs, with a timer. Makes is easier for everyone involved.
Title: Respawn timer
Post by: QuantumDelta on August 29, 2009, 04:43:17 pm
It's most ideal really indeed, even prevents people from building skewed missions by accident.
But a timer is really needed, if that can be done in mission specs it would be great
Title: Re: Respawn timer
Post by: karajorma on August 29, 2009, 06:26:27 pm
I figured this was going to get confusing in the original topic.

I should have some time to code today so I'll look into it. It does mean doing some things with timestamps that I haven't tried before but this should be a good learning experience. :D

EDIT : Done. Seems to work in multiplayer mode with only a single player, don't have another PC to test it in multiplayer yet (although I will soonish).

Download here (http://www.freespacefaq.com/Misc-Downloads/Builds/Max_Respawn_Delay_Build.7z). FRED build included.
Title: Re: Respawn timer
Post by: QuantumDelta on August 30, 2009, 11:10:34 am
Works brilliantly with clients too, could do with a "Forced respawn in xyz" timer if possible though for people who aren't ready for it, it can be quite disorientating ;D
Title: Re: Respawn timer
Post by: The E on September 01, 2009, 06:22:25 am
Oh, just something we noticed while playing this yesterday: The respawn timer needs to default to infinity, not zero, if no respawn timeout is given.
Title: Re: Respawn timer
Post by: Ziame on September 01, 2009, 06:23:14 am
Yup, or it goes insta-respawn
Title: Re: Respawn timer
Post by: karajorma on September 01, 2009, 06:54:42 am
Nah, it just needs me to actually check whether it's 0 or not. I kinda forgot to. :D

Unless people actually want there to be an option for no respawn delay. In that case a -1 default would make sense.
Title: Re: Respawn timer
Post by: The E on September 01, 2009, 06:56:31 am
In that case, I'm all for -1. Respawn time of 0 has its uses.
Title: Re: Respawn timer
Post by: Aardwolf on September 01, 2009, 04:35:20 pm
On a related note, can we possibly make it so that dying does NOT temporarily prevent you from sending messages?

Like, when I die, if I was typing a message which admittedly is most often the cause of my death, in such cases, I have to wait until the respawn dialog displays before I can finish typing it and send it.
Title: Re: Respawn timer
Post by: karajorma on September 08, 2009, 03:47:54 am
:bump: fixed a couple of bugs and added a message so people know how long before auto-respawn.

Link is the same as before.
Title: Re: Respawn timer
Post by: Colonol Dekker on September 08, 2009, 08:35:37 am
Don't suppose it'd be possible to add a flag/checkbox for tvt missions that'd stop respawns until an entire team was smoked. . . .like in counter strike?
Title: Re: Respawn timer
Post by: karajorma on September 08, 2009, 10:34:31 am
That would require a hell of a lot more work.
Title: Re: Respawn timer
Post by: QuantumDelta on September 08, 2009, 01:57:46 pm
Also depending on how you use it, very boring for some people.

If I was flying with a total newbie on my side (*I often end up with the weakest, or a couple of the weaker pilots on my team in TvT to make it fair if the sides are numerically balanced) they wouldn't be able to do things for ages... >.>
Title: Re: Respawn timer
Post by: karajorma on September 09, 2009, 05:25:06 am
Yep, that sort of thing only works in missions where everyone dies very quickly no matter how skillful. Something like FPS TvTs where everyone has rocket launchers with unlimited ammo. :D