Home   Help Search Login Register  

Author Topic: Respawn script - new typus  (Read 1330 times)

0 Members and 1 Guest are viewing this topic.

Nyles

  • Guest
Respawn script - new typus
« on: 19 Oct 2002, 20:38:26 »
Hi, is it possible to create a script which let's the player respawn within his own squad, and when his own squad is wiped out, the respawns as #1 again with his full squad back at base? The mainpart is already available, but you have to somehow work things out, so that you respawn at full strenght once you are placed in bird-mode. Furthermore, dead units from this squad should be removed from the game as soon as the whole squad respawns to save some performance.

Any takers?  ;D

PsyWarrior

  • Guest
Re:Respawn script - new typus
« Reply #1 on: 21 Oct 2002, 14:23:25 »
Do you mean for SP?

If so, i'm already working on it  :)

Nyles

  • Guest
Re:Respawn script - new typus
« Reply #2 on: 21 Oct 2002, 21:47:41 »
I am doing some concept stuff for a more realistic multiplayer experience. The plan is to get some sort of class system working which - depending on the chosen class - gives every player control of his own squad. As the current respawns do not allow for organisation, I had the idea that a respawn system like the one above would be neccessary so that things stay under control. The attached squad basically would shrink in size until it's wiped out (with the player being shifted to another position within the squad when shot). When this happens, the player respawns back at base with his full squad, or maybe has to choose a new class. Something like that. That way, annoying respawns of individual teammates of the squad are not happening. Things would stay overlookable and easy to control.

If you (or anyone else) are (is) interested in helping me realize this project, contact me, please. As I suck at scripting of any kind, I will not be able to make this happen on my own.  ;)
« Last Edit: 21 Oct 2002, 21:53:06 by Nyles »

Nyles

  • Guest
Re:Respawn script - new typus
« Reply #3 on: 25 Oct 2002, 16:48:07 »
ping? ;)

PsyWarrior

  • Guest
Re:Respawn script - new typus
« Reply #4 on: 25 Nov 2002, 18:51:28 »
Once again, sorry for the reply time - I haven't been around recently.

First up: Respawn for SP seems to be impossible. I've been playing round with OnPlayerKilled.sqs and here is the result.
-Player dies
-Wait for 10 secs while playing 'march hell'
-player reappears at preset coords with full health and loadout.

Unfortunately
-'ESC' menu NO LONGER FUNCTIONS. Player can move around and shoot etc. still but there is no way to abort the mission. I have to ALT+F4 out of the game to end the mission.

So that's the end of that idea.

Nyles, I would be interested in helping you in this, unfortunately, I have no idea about multiplayer scripting added to which I have a MASSIVE OFP-RTS project in progress at the minuite. It seems to be taking up all my time but not really moving forward that much  ;)

However, keep me posted about this - I'll do some research and get back to you if I find anything that my be useful for such a script  :)

=============
PsyWarrior
-----------------
Transmision Ends
=============

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Respawn script - new typus
« Reply #5 on: 25 Nov 2002, 20:00:52 »
First up: Respawn for SP seems to be impossible.

It is. The reason that it is impossible is that once a object dies, the game seems to cease to acknowledge the objects existence, even if it is the player. You may have noticed that upon tweaking the "onlplaydeath" script, the enemies no longer see you once you've been resurrected.  :-\

In multiplayer, respawn works creating a new unit and placing you in control of it. The only thing the stays the same from dead unit to new unit are cosmetic, such as name, model, face, voice ect.. :-*

For any single player respawn, BIS would have to change the game and allow it. :-X

Now you could do all of this in coop missions and it would work fine, so all is not lost.   :)

This respawn script I made might help you get started.
http://www.ofpec.com/editors/snippet_view.php?id=166
« Last Edit: 25 Nov 2002, 20:07:42 by toadlife »
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

PsyWarrior

  • Guest
Re:Respawn script - new typus
« Reply #6 on: 26 Nov 2002, 11:43:57 »
 :(
Oh well. Thanks for the input Toadlife.
So basically, OnPlayerKilled.sqs can only be used for cutscenes.  :-\

=========
PsyWarrior
-----------
End
=========