Author Topic: Respawn timer in SP **SOLVED**  (Read 848 times)

Offline cannonfodder

  • Full Member
  • ***
  • Posts: 1.228
    • View Profile
Respawn timer in SP **SOLVED**
« on: 11-06-2010, 12:06:02 »
I want to get rid of it, but I can't figure out where the line that controls it is... :-\

The only thing I can find is in the gamelogicinit.con file:
Quote
if c_testing == 1
renderer.drawNametags 0
gameLogic.enableVoHelp 0
sv.spawntime 1
sv.mandowntime 2

sv.numPlayersNeededToStart 1
sv.radioBlockedDurationTime 0
sv.radioMaxSpamFlagCount 10000
sv.radioSpamInterval 1
endIf
It's not what I'm looking for though, as it's the same as the 2.25 file.


Could someone be so kind as to gimme a shove in the right direction?
« Last Edit: 12-06-2010, 13:06:28 by cannonfodder »

Offline Eat Uranium

  • Tea Drinker
  • Global Moderator
  • *****
  • Posts: 4.569
  • Today's news will contain [REDACTED]
    • View Profile
    • FH2 Music
Re: Respawn timer in SP
« Reply #1 on: 11-06-2010, 12:06:28 »
Try fiddling with the values in C:\Users\cannonfodder\Documents\Battlefield 2\Profiles\0001\ServerSettings.con

I'm not sure if these will change anything, but try it none the less.

Offline cannonfodder

  • Full Member
  • ***
  • Posts: 1.228
    • View Profile
Re: Respawn timer in SP
« Reply #2 on: 11-06-2010, 13:06:57 »
Tried this:
Quote
GameServerSettings.setSpawnTime 0
...but no luck.

When I checked it afterwards it was back at 15, so I changed it back to 0 and made the file read-only. Tried it again, but still no luck... :(


I should point out that I do realize I can get rid of it by playing Co-op, but I'd rather play SP.

Offline fh_spitfire

  • Developer
  • ******
  • Posts: 421
  • FHer since 0.6 | aka spitfire05
    • View Profile
Re: Respawn timer in SP
« Reply #3 on: 11-06-2010, 19:06:12 »
You want no spawntime in you singleplayer game?

# Solution 1:
Start your game, open console (~) and type:
Code: [Select]
sv.spawntime 0
You have to do this everytime your game starts

# Solution 2:
Open gamelogicinit.con and add
Code: [Select]
sv.spawntime 0 to the end of the file

You may also want to change 0 to 1, as 0 gives (really) instant spawn, which may be irritating.

--------

Or do you want to remove the spawnwave feature?

In this case go to mods/fh2/python/game/ and open gameplayPlugin.py with Notepad.

Find:
Code: [Select]
standard = 'tankDisable aiFixups limitKitNCO artillery commanderChair artilleryReload parachute awards deployables spawnwave'.split() (line 26)

Change to:
Code: [Select]
standard = 'tankDisable aiFixups limitKitNCO artillery commanderChair artilleryReload parachute awards deployables'.split()

All of above are multiplayer-friendly (you don't have to revert the changes to join multi game), but not fh2-patcher friendly (you will have to download full install next release).

Offline Eat Uranium

  • Tea Drinker
  • Global Moderator
  • *****
  • Posts: 4.569
  • Today's news will contain [REDACTED]
    • View Profile
    • FH2 Music
Re: Respawn timer in SP
« Reply #4 on: 11-06-2010, 19:06:01 »
Spit, I'm thinking that maybe he is on about finding a way to get rid of the mandowntime - which for some reason has returned to being annoying.

Offline fh_spitfire

  • Developer
  • ******
  • Posts: 421
  • FHer since 0.6 | aka spitfire05
    • View Profile
Re: Respawn timer in SP
« Reply #5 on: 12-06-2010, 10:06:44 »
In this case:

# Solution 1:
Start your game, open console (~) and type:
Code: [Select]
sv.mandowntime 0

You have to do this everytime your game starts

# Solution 2:
Open gamelogicinit.con and add
Code: [Select]
sv.mandowntime 0
to the end of the file

Offline cannonfodder

  • Full Member
  • ***
  • Posts: 1.228
    • View Profile
Re: Respawn timer in SP
« Reply #6 on: 12-06-2010, 13:06:20 »
Yeah sorry, I meant the mandown timer. Having to wait 35 seconds to respawn is bloody ridiculous...

Solution 2 it is. Thanks guys... :)


...which for some reason has returned to being annoying.
Well that answers that question. I was thinking it must've been something the devs had changed in 2.26, and was like "What the fuck!? Why would they do that!"... :)