Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Lorric on January 11, 2013, 02:11:45 pm

Title: Player Respawns?
Post by: Lorric on January 11, 2013, 02:11:45 pm
Hello. Does anyone know if it's possible to give the player respawns in a normal mission, like you can give everything else?

This is not an urgent question, it is just something I've been curious about for a while.
Title: Re: Player Respawns?
Post by: Axem on January 11, 2013, 05:53:04 pm
Short answer: No with a but.

Long answer: You can't have the same system as multiplayer does with respawning. But you can try to fake it. You could try guardianing the player, then when you hit 1% hull either do a death roll or mini cutscene (in an attempt to recreate the death roll cutscene we see) if you like, then heal the player up, reload his weapons, and move him to a respawn point.

You can keep track of the number of times this happens with variables and kill the player for real if he runs out of lives or something.
Title: Re: Player Respawns?
Post by: Lorric on January 12, 2013, 01:26:09 am
Short answer: No with a but.

Long answer: You can't have the same system as multiplayer does with respawning. But you can try to fake it. You could try guardianing the player, then when you hit 1% hull either do a death roll or mini cutscene (in an attempt to recreate the death roll cutscene we see) if you like, then heal the player up, reload his weapons, and move him to a respawn point.

You can keep track of the number of times this happens with variables and kill the player for real if he runs out of lives or something.

Thanks. The recreation would be beyond me, but I might be able to do just filling the player's health back up from 1% and nothing else. I haven't done anything at all with variables though.

I guess I'll be taking "no with a but". I like that. No with a but... I've never heard anyone say that before.
Title: Re: Player Respawns?
Post by: General Battuta on January 12, 2013, 01:30:52 am
You should learn variables.

Another option is to set up a checkpoint system so the player can save and load their progress in the mission.
Title: Re: Player Respawns?
Post by: karajorma on January 12, 2013, 04:35:23 am
I actually plan to have a long look at the respawn code once the pilot code is in trunk. I've been toying with the idea of seeing if it's possible to have respawns in single player rather than just multi.
Title: Re: Player Respawns?
Post by: MatthTheGeek on January 12, 2013, 06:49:37 am
If it's just one mission, make it a coop mission with one player. If you want it in a SP campaign though, you'll have to do whatever was said above.
Title: Re: Player Respawns?
Post by: Lorric on January 12, 2013, 10:49:53 am
You should learn variables.

Another option is to set up a checkpoint system so the player can save and load their progress in the mission.

I don't understand them. I made some stuff for Warcraft 3 years ago and I didn't understand them then either. I understood what they do but not how to make them work. But for now I haven't needed them. If I do though, maybe I'll come back here and ask about them. For now, I don't want to run before I can walk.

I actually plan to have a long look at the respawn code once the pilot code is in trunk. I've been toying with the idea of seeing if it's possible to have respawns in single player rather than just multi.

I think that could add a new dimension to future missions. Long or difficult missions could be more enjoyable that way. The best players would still get a challenge trying to complete it without dying, while others could still complete it.

If it's just one mission, make it a coop mission with one player. If you want it in a SP campaign though, you'll have to do whatever was said above.

I've never tried doing anything with the co-op missions, I might have to look into it sometime. I didn't know you could have a 1 player co-op mission, it kind of defeats the purpose, doesn't it?

Thanks for that.
Title: Re: Player Respawns?
Post by: General Battuta on January 12, 2013, 10:51:18 am
I think that could add a new dimension to future missions. Long or difficult missions could be more enjoyable that way. The best players would still get a challenge trying to complete it without dying, while others could still complete it.

That's what checkpoints are for.
Title: Re: Player Respawns?
Post by: MatthTheGeek on January 12, 2013, 10:55:48 am
I've never tried doing anything with the co-op missions, I might have to look into it sometime. I didn't know you could have a 1 player co-op mission, it kind of defeats the purpose, doesn't it?
Well you could probably say that, but you'd have your respawns with 0 effort needed !
Title: Re: Player Respawns?
Post by: Lorric on January 12, 2013, 11:31:21 am
I think that could add a new dimension to future missions. Long or difficult missions could be more enjoyable that way. The best players would still get a challenge trying to complete it without dying, while others could still complete it.

That's what checkpoints are for.

And I've no idea how to do those either. But checkpoints are not what I want at all in this case, I was thinking the player would have some lives.

I've never tried doing anything with the co-op missions, I might have to look into it sometime. I didn't know you could have a 1 player co-op mission, it kind of defeats the purpose, doesn't it?
Well you could probably say that, but you'd have your respawns with 0 effort needed !

Sounds good! I would have control over the respawns of everything else, wouldn't I? It wouldn't force everything to have the same number of respawns, would it?
Title: Re: Player Respawns?
Post by: MatthTheGeek on January 12, 2013, 12:35:04 pm
Well, everything in player wings will use the same number of respawn, so if you have only one player, that's just you. All other wings behave just like in SP, so that's fully under your control.
Title: Re: Player Respawns?
Post by: Lorric on January 12, 2013, 03:25:39 pm
Well, everything in player wings will use the same number of respawn, so if you have only one player, that's just you. All other wings behave just like in SP, so that's fully under your control.

Ah, good! Thanks  :)
Title: Re: Player Respawns?
Post by: SypheDMar on January 13, 2013, 12:39:27 am
Andrew's scroll shooter could be more arcade-y with extra lives.