A weapon to revive dead teammates?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

A weapon to revive dead teammates?

Post by ARCTroopaNate »

Another "Is it possible" thread. I'm wondering if it's possible to somehow revive dead teammates. Like having a weapon that when you aim at a body of your dead teammate it can revive them. I don't think it's ever been done. Does anyone know how I could potentially do this?
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Re: Is it possible...

Post by willinator »

No, I don't think there is any way to "truly" revive dead teammates. However, you could probably do it through a LUA spawn weapon. There is probably some way to set a dead body to be some type of object. You could then set in the LUA weapon's parameters so that when it hits that type of object, it spawns a teammate. However, this would be really buggy, and not work perfectly. Heck, it might not even be possible! This is just what I would do.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Is it possible...

Post by Marth8880 »

I am almost positive that this cannot be done, or at least not the way you want it, mainly due to the fact that corpses fade away within a few seconds, which is unchangeable as far as we all know. However, it might be possible to make a weapon that spawns whichever unit died the most recently, but that would produce rather "skippy" results since there are other units who are constantly dying elsewhere throughout the map; though, this would have better results if used on a map where your team only consists of a few A.I. who follow you like a squad, such as in a SW:RC-like campaign.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Is it possible...

Post by ARCTroopaNate »

Alright, thank you for the responses everyone!
AcaelusThorne
Corporal
Corporal
Posts: 153
Joined: Tue Apr 26, 2011 3:30 am
Projects :: Republic Commando Side Mod
Games I'm Playing :: SWBII
xbox live or psn: No gamertag set

Re: A weapon to revive dead teammates?

Post by AcaelusThorne »

It might be possible when you move everyone who dies into a different team (a team of deads ? =D) that is in a certain cameraangle to spectate. A timer would set his time in that team and after time has run up he gets back into his old team (respawn). Else a teammate could spawn him (change teams back with no point loose) with the gun at the place he used the gun.
A simple revivial like in RC but I am not shure if that works it is only theory, because I have not worked a lot with codding in SwbII yet. Also it would mayby cause a crash when too many players join the dead team. Additional there could be a attack for players to respawn before time has run out.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: A weapon to revive dead teammates?

Post by ARCTroopaNate »

Alright, thanks everyone for the answers, seems to be too much hassle. Thanks again for the answers. :thumbs:
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Is it possible...

Post by [RDH]Zerted »

willinator wrote:...do it through a LUA spawn weapon. There is probably some way to set a dead body to be some type of object. You could then set in the LUA weapon's parameters so that when it hits that type of object, it spawns a teammate...
That's exacly how to do it. I don't know if you can turn a dead body into a hittable object, but you could create a custom object at the same location.

@ARCTroopaNate I know you got your answer, but someone else might want to use the idea too.
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Re: A weapon to revive dead teammates?

Post by willinator »

You could probably do it through an "on player death function" or something, have the dying player spawn a dead trooper prop with the special object type.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: A weapon to revive dead teammates?

Post by THEWULFMAN »

willinator wrote:You could probably do it through an "on player death function" or something, have the dying player spawn a dead trooper prop with the special object type.


Firefang and I tried that, not as easy as it sounds. Admittingly it was a long time ago on a crappy computer, so it might be worth it to try again.
AcaelusThorne
Corporal
Corporal
Posts: 153
Joined: Tue Apr 26, 2011 3:30 am
Projects :: Republic Commando Side Mod
Games I'm Playing :: SWBII
xbox live or psn: No gamertag set

Re: Is it possible...

Post by AcaelusThorne »

[RDH]Zerted wrote:
willinator wrote:...do it through a LUA spawn weapon. There is probably some way to set a dead body to be some type of object. You could then set in the LUA weapon's parameters so that when it hits that type of object, it spawns a teammate...
That's exacly how to do it. I don't know if you can turn a dead body into a hittable object, but you could create a custom object at the same location.
Wouldn´t that end up with a map full of dead bodies? And even if the dead bodies would "fade away" by a certain timer it could happen that one person has to dead bodies where he can be teleported to 2 places which on the one hand would be quite enoying and on the other hand might cause a crash. Also I did´t quite understand your suggestion about spawn at the object. Does that mean he can be spawned there only in the spawntime while he is dead or while the player is alive ?
Post Reply