Single Player Respawn Time

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:

Single Player Respawn Time

Post by ARCTroopaNate »

Is there a way to set respawn time for single player?
hunpeter12
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Mon Apr 18, 2011 2:53 pm
Projects :: Underground City The Complex [WIP]
Games I'm Playing :: SWBF2

Re: Single Player Respawn Time

Post by hunpeter12 »

There might be a LUA workaround, but it would be very complicated I think, because as far as I know SetSpawnDelay only works for AI.
You could add a timer when the player dies and don't let him spawn until the timer ends, but I have no idea how to do that/I'm not sure it's even possible.
I'm sorry that I couldn't help.
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: Single Player Respawn Time

Post by [RDH]Zerted »

To increase spawn time for specific players, increase the PointsToUnlock of all units for the human player who died. When it's time to respawn, restore the old unlock values. This is all done client side (the host can't do it else no one would be able to spawn).
To increase spawn time for all players, have the host change the PointsToUnlock values or enable/disable the CPs at regular intervals.

To decrease spawn time for all players, you need to force spawn units at a rate faster than 15 seconds. This is slightly ugly as some people won't have time to change unit classes or pick their CP. Search GT for more info on force spawning units. It's been done a few times.

*Note to self: Add a custom user script that adds an "Enable Forced Spawning" command to the Fake Console to the list of useful, map specific FC commands that should be developed at some point once every map's CPs and path points are documented somewhere.
Post Reply