Как изменить время спавна battlefield 2

Как изменить время респавна техники?

Как изменить время респавна техники?

AdroV

Например, взял танк, а через несколько секунд он появляется. Чтобы техника быстрее появлялась на своих местах. Какие файлы следует изменить?


AdroV
да
-nkScab-
не советую такое время ставить, а то отъехать не успеешь, уже сверху следующий упадет :D

  • пожаловаться
  • скопировать ссылку


А время своего респавна? 14 секунд — много!

  • пожаловаться
  • скопировать ссылку


А время своего респавна? 14 секунд — много!

  • пожаловаться
  • скопировать ссылку


Спасибо попробую. Еще вопрос а как сменить настройки сингла сервера? На пример время респавна игрока от 15 до 10? За ранее спасибо за ответы!

  • пожаловаться
  • скопировать ссылку


AdroV
Например в карте Dragon_Valley заходим в server.zipGameModessp116GamePlayObjects.con и находим вот эту строку CPNAME_DV_SP16_woodyard_HeavyTank далее меняем вот так:
ObjectTemplate.setObjectTemplate 1 TNK_TYPE98
ObjectTemplate.setObjectTemplate 2 USTNK_M1A2
ObjectTemplate.minSpawnDelay 1 — минимальное время спавна в секундах
ObjectTemplate.maxSpawnDelay 1 — максимальное время спавна
ObjectTemplate.maxNrOfObjectSpawned 20 — максимальное количество спавна, например при выезде танка с места спавна тут же спавнится новый танк и так до 20 раз.

  • пожаловаться
  • скопировать ссылку


Последние строки самому вписывать? Если нет, то у меня нет таких строк.

  • пожаловаться
  • скопировать ссылку


С танками всё работает. Можно даже вместо багги тунгуску поставить.

  • пожаловаться
  • скопировать ссылку


ShamanDjRus
как менять технику? ну к примеру на одной из карт только истребители, а как сделать чтобы и бомбер и истребитель?

  • пожаловаться
  • скопировать ссылку

BF2

Battlefield 2

Battlefield2 is an amazing shooting game, although the game is a little old (2004) it’s still worth playing! 😉

The game is a military game, you can enjoy a collection of real weapons,vehicles and of course high graphics, you can play in many vast maps!

Changing Spawn Time:

Let’s say we want to change spawn time to 3 seconds! Two ways I’ve found:

1) Safe way : While in game press “`”  or “End” to show the console screen, type the following two lines:

sv.spawnTime 3
sv.manDownTime 3

(if you can’t see the console screen check your controls in the game options).

manDownTime is the time you stay (after being shot down) on the ground in a “Critically Damaged” state, this means that Medics in your team can still heal you!

spawnTime & manDownTime both start counting when you’re shot down, you won’t spawn until both spawnTime & manDownTime reach zero…If manDownTime is equal to zero but spawnTime is not then Medics cannot help you any more & you’ll have to wait until spawnTime is equal to zero.

You’ve to repeat this method each time you start a map..

I’ve tried this method while playing offline but it should work in multiplayer if you’re the server and you want to change the spawnTime during game play.

2) mmm…The (not that safe way) 😉

Go to your Battlefield root directory, in my version of the game it’s found on

“C:Program FilesBattlefield 2 With All Expansion”

Search for the file “GameLogicInit.con“, you might find more than on file depending on the packs/mods you’ve installed, make sure to make a backup copy of the file, after you do that open the original file, it should contain a script similar to this:

rem *** Put non level specific initializations here ***

rem *** Load multiplayer free camera here
run Common/FreeCamera/Object.con

gameLogic.setDefaultNumberOfTickets 1 250
gameLogic.setDefaultNumberOfTickets 2 250

gameLogic.enableVoHelp 1
gameLogic.supplyDropHeight 50
gameLogic.supplyDropNumSecsToLive 300

before the first line insert the following line:

run d:/mySettings.con

note using a slash “/” instead of a backslash””, the former is usually used when in web addresses while the later is used in files paths

What this does is telling the game to execute commands found in the file “d:mySettings.con” which we will write next…note that you can change the path and the file name “d:mySettings.con” as you like, but make sure to create the a file with the correct path & name.

Now create a the file “mySettings.con” in the path you chose earlier and write the following script:

sv.spawnTime 3
sv.manDownTime 3

as you noticed it’s the same script you would write in the console screen…but this way the values are initialized once and only when the game executable is started…

You can add any command you want to the file “GameLogicInit.con” see file “ServerSettings.con” for some commands (Search for it in the BF2 directory).

Now the reason the first method is safe because you’re not changing the files of the game, while in the second way you change the file “GameLogicInit.con” which will prevent you from joining a multiplayer BF2 game that is not modified!

So if you chose the second way you’ll have to remove the line you added to the file “GameLogicInit.con” each time you want to join a multiplayer game!

With spawn time reduced to 3 seconds, you can enjoy unlimited action,you won’t have to wait 15 seconds each time you die !:D but beware that reducing spawnTime will make it harder to capture flags.

You might want to increase tickets count since the game will go faster from now on! to do that just add “sv.ticketRatio 600” to the file “mySettings.con” you created earlier.

The next article will demonstrate how you can modify game weapons, vehicles and lots more 😀 😀

1. Управление демозаписями

2. Команды рендеринга (Renderer Commands)

3. Команды в игре

4. Команды профиля

5. Глобальные команды

6. Команды сервера (Sv Commands)

7. Gamelogic Commands

8. Менеджмент настроек (Settingsmanager Commands)

9. Настройки управления (Controlmap Commands)

10. Управление устройствами ввода (Inputdevices Commands)

11. Управление картами (Maplist Commands)

12. Администрирование сервера (Admin Commands)

13. Удаленное управление сервером (Remote Console)

Введение:

Для того, что бы открыть/закрыть консоль нажмите клавишу ‘~’, что бы просмотреть список категорий команд дважды нажмите ‘Tab’, введите префикс команды (до первой точки) и дважды нажмите ‘Tab’ для просмотра полного списка команд в выбранной категории.

1. Управление демозаписями

demo.recordDemo [demoname] — Старт записи демо demoname.bf2demo и сохранение в Program Files/EA Games/Battlefield 2/ Demo/mods/bf2/Demos (по умолчанию)
demo.stopRecording — Остановка записи демо
demo.ShutdownDemo — останавливает воспроизведение демо и выходит в главное меню игры (является единственным корректным способом завершения воспроизведения демо в таких программах, как BattleDirrector, что позволяет избавится от дальнейших проблем с клиентом)

2. Команды рендеринга (Renderer Commands)

renderer.drawHud [0,1] — Управляет отображением средств интерфейса на экране — Heads Up Display (HUD), полезная функция при захвате видео, позволяющая видеть весь экран без лишней игровой информации
renderer.drawConsole [0,1] — Запрещает доступ к консоли из интерфейса клиента, если установлено значение 0
renderer.drawFps [0,1] — демонстрирует на экране текущую частоту смены кадров (FPS) без использования сторонних программ, тких как Fraps (работает не во всех версиях клиента)

3. Команды в игре

game.sayAll [string] — Сказать в чат всем
game.sayTeam [number] [string] — Сказать в чат команде
game.lockFps [framerate] — Установить максимальное значение FPS в игре
game.allowToggleFullscreen [0,1] — Если значение установлено в 1, то разрешено переключение между полноэкранным и оконным режимом запуска игры
game.toggleFullscreen — Переключение между полноэкранным и оконным режимом игры

4. Команды профиля

localProfile.setName [name] — Установка имени для текущего аккаунта
localProfile.setNick [nick] — Установка ника для текущего аккаунта
localProfile.setGamespyNick [GameSpyNick] — Установка логина GameSpy для текущего аккаунта
localProfile.setEmail [email account] — Установка e-mail для текущего аккаунта
localProfile.setPassword [password] — Установка пароля для текущего аккаунта
localProfile.setNumTimesLoggedIn [number] — Устанавливает количество возможных подключений к игре из данного профиля
localProfile.setTotalPlayedTime [seconds] — Устанавливает время нахождения текущего профиля в игре
localProfile.save — значение функции не известно
localProfile.addDemoBookmark [ ] — Добавить закладку в демо от текущего профиля

5. Глобальные команды

globalSettings.setDefaultUser [number] — Устанавливает номер профиля, используемый по умолчанию, первым будет 0001, далее 0002 и т.д..

6. Команды сервера (Sv Commands)

Эти команды используются для управления настройками сервера и идентичны командам в файле Serversettings.con в папке Documents and Settings[username]My DocumentsBattlefield 2 DemoProfiles[profile].

sv.allowNATNegotiation [0,1] —
sv.interface —
sv.timeBeforeRestarting [0,1] — Включает/отключает таймаут перед рестартом карты
sv.autoBalanceTeam [0,1] — Управляет включением/отключением автобаланса
sv.teamRatioPercent [0,1] —
sv.autoRecord [0,1] — Позволяет включить автоматическую запись демо в начале каждого раунда
sv.demoIndexURL [address] — Адрес выгрузки демо
sv.demoDownloadURL [address] — Адрес для загрузки демо
sv.autoDemoHook —
sv.demoQuality — Устанавливает качество демо
sv.adminScript — Выполняет скрипт администратора из имеющегося файла
sv.sponsorText — Выводит текст спонсора (во время загрузки карты)
sv.sponsorLogoURL [address] — Устанавливает файл с изображением спонсора (демонстрируется во время загрузки карты)
sv.communityLogoURL [address] — Адрес логотипа сообщества
sv.radioSpamInterval — Устанавливает время таймаута в VoipServer для предотвращения засорения эфира
sv.radioMaxSpamFlagCount — Максимальное количество активных единовременно Voip клиентов
sv.radioBlockedDurationTime [seconds] — Время блокировки радиоканала для одного игрока при исчерпании лимита времени переговоров
sv.useGlobalRank [0,1] — Использовать глобальный рейтинг игроков (не работает на сервере, запущенном на клиентской машине), необходима для исполнения следующей команды
sv.useGlobalUnlocks [0,1] — Позволяет использовать анлоки (не работает на сервере, запущенном на клиентской машине)

7. Gamelogic Commands

gameLogic.togglePause — Включает паузу в игре, используется только в одиночной игре, идентично нажатию клавиши ‘P’

8. Менеджмент настроек (Settingsmanager Commands)

Эти команды устанавливают диапазон значений переменных в игре. Переменные должны принимать значения только того типа, который указан в команде: bool — для логических переменных, int — для целых, float — для переменных с плавающей запятой и т.д.

SettingsManager.stringSet
SettingsManager.boolSet
SettingsManager.IntSet
SettingsManager.floatSet
SettingsManager.u32Set
SettingsManager.stringGet
SettingsMana ger.boolGet
SettingsManager.intGet
SettingsManager.floatGet
SettingsManager.U32Get

9. Настройки управления (Controlmap Commands)

Эти команды используются в файле controls.con в папке Documents and Settings[username]My DocumentsBattlefield 2 DemoProfiles[profile].Все эти функции отвечают за настройки управления в игре и дублируются в меню, что делает излишним их описание, так как настройки применяются только к клиентской машине на которой были использованы.

controlMap.deleteControlMap
controlMap.dump
controlMap.setButtonRiseTime
controlMap.SetButtonFallTime
controlMap.SetDou bleTapTime
controlMap.addAxisToAxisMapping [string]
controlMap.addButtonsToAxisMapping [string]
controlMap.addKeyAndButtonToAxisMapping [string]
controlMap.addKeysToAxisMapping [string]
controlMap.addButtonToTriggerMapping [string]
controlMap.AddKeyToTriggerMapping [string]
controlMap.setAxisScale
controlMap.setYawFactor
controlMap.setPitchFactor
controlMap.addAxisToTriggerMapping
controlMap.InvertMouse [0,1]
controlMap.mouseSensitivity [number]
controlMap.keyboardSensitivity [number]
10. Управление устройствами ввода (Inputdevices Commands)

InputDevices.setInvertAxis — инвертировать оси средства интерфейса
InputDevices.setAxisScale — установить апертуру оси 11. Управление картами (Maplist Commands)
Эти команды используются администратором для управления списком карт.

mapList.list — Выводит список карт, включая ID карты, ее название, режим игры и количество игроков (если оно установлено)
mapList.configFile [new location for file] — Используется для установки нового местоположения файла _mapList.con file. По умолчанию это: My DocumentsBattlefield 2 DemoServerConfigs
mapList.load — Принуждает сервер перезагрузить файл _mapList.con
mapList.save — Сохраняет текущий список карт в файл _mapList.con
mapList.mapCount — Показывает текущее количество карт в списке
mapList.currentMap — Показывает ID текущей карты
mapList.clear — Очищает список карт
mapList.remove [map ID number] — Удаляет карту с указанным ID из текущего списка
mapList.append [map name] [game mode] [number of players] — Добавляет новую карту в конец списка. Вам следует указать название карты и режим игры.
mapList.insert [map ID number] [map name] [game mode] [number of players] — Команда идентична предыдущей, но позволяет указать место в списке на котором она будет располагаться.

12. Администрирование сервера (Admin Commands)

Данные команды могут быть использованы только администратором сервера или человеком с равными правами через удаленное управление

admin.listPlayers — Показывает список игроков, подключенных к серверу, показывая их имя, ID номер и IP.
admin.runNextLevel — Принуждает сервер завершить текущую карту и начать следующую
admin.currentLevel — Показывает ID номер текущей карты
admin.nextLevel — Показывает ID следующей карты
admin.restartMap — Перезапускает текущую карту
admin.banPlayer [player ID number] [timeout] — Помещает указанного игрока в бан-лис по его IP. Timeout устанавливает время бана ‘perm’ для постоянного бана, ’round’ — бан до конца раунда, 180 — это 180 секунд (3 минуты)
admin.banPlayerKey [player ID number] [timeout] — Бан игрока по его индивидуальному номер CD (неприменимо для нашей сети, так как смена ключа в данном клиенте — дело двух кликов)
admin.addAddressToBanList [IP address] [timeout] — Бан известного IP
admin.addKeyToBanList [CD key hash] [timeout] — Бан CD ключа
admin.removeAddressFromBanList [IP address] — Удалить IP из бан-листа
admin.removeKeyFromBanList [CD key hash] — Удалисть CD ключ из бан-листа
admin.clearBanList — Очистить бан-лист
admin.listBannedAddresses — Показывает список забаненых IP
admin.listBannedKeys — Показывает список забаненых CD ключей
admin.kickPlayer [player ID number] — Немедленный кик игрока с указанным ID

13. Удаленное управление сервером (Remote Console)

Для организации удаленного доступа к консоли сервера создайте новый пустой текстовый документ с названием default.cfg и вставьте следующий текст в файл:

port=4711

password=ВашПароль

Сохраните файл и запустите сервер. Теперь вы можете управлять сервером удаленно используя следующие команды в консоли клиента:

rcon login [ВашПароль] — Используйте эту команду для авторизации на сервере
rcon users — Эта команды показывает всех игроков, подключенных к серверу. Очень похожа на admin.listPlayers
rcon exec [имя команды] — Используйте для управления сервером. Например: ‘rcon exec admin.kickPlayer 3’, если вводить команды без этого префикса, то они будут применены к клиенту, а не серверу

Exit — Покинуть игру и вернуться на рабочий стол.

How do I keep bots from using a vehicle?[]

You’ll need to edit the «objects/vehicles/(air,land,sea)/(name-of-vehicle)/objects.ai» file for the vehicle, and edit the line «aiTemplate.basicTemp #», and change the number to 0. Some times there’s a spawn point that spawns the bot into the vehicle, you’ll need to edit the map to get rid of those.

How would I get bots to man and stay on stationary weapons? —[]

Try increasing the temperature for the weapon in the «aiTemplate.basicTemp #» line in the object.ai file. 

How to get bots to use Landing Zones?  []

Landing Zone AI in BF1942 was removed from the Refractor game engine for BF2. The only option is to set up Strategic Areas at Beaches. BF2 bots can exit a vehicle when they get to a strategic area, but they are not capable of using the landing craft door like in BF1942.  

How to stop Commander Spam? []

One of the uncapable flags in the map was 2-way neighbored. The rule for neighboring uncapable flags is you 1 way neighbor the other flag to the uncap. It’s useful to remember, «My neighbor comes to me» when neighboring SA.

How to stop Bot’s grenade spam? []

go into the «objects/weapons/handheld/(name of weapon)/AI/weapons.ai file», and change the line«weaponTemplate.setStrength Infantry #». Set the number to 0, and they wont spam grenades again.

How can I generate just the infantry, or vehicle navmesh? []

In the /battlefield2/navmesh/navmeshControl.py file, Change the «modes = [ «Infantry», «Vehicle»]» line, and delete either the «infantry», or «vehicle» part, depending on which mesh you want gened.

How can I disable bots attacking with defibrillator?[]

To stop or decrease the Medic bots from attacking the enemy with the defibrillator versus using their knife during a melee you need to do the following: 1. Edit the weapons.ai file for both the knife and the defibrillator, 2. Reverse the weaponTemplate.setStrengths from the defibrillator to the knife. For example: weaponTemplate.setStrength Infantry 5.0 (Knife) weaponTemplate.setStrength Infantry 3.0 (Defibrillator).

The AI commander won’t use the arty or supply drop []

This is caused by a bug in the 1.5 patch for BF2. Only way to fix it is to go back to v1.41, there is nothing else you can do.

I have added some stationary weapons to my map, I am able to enter them, but not exit them []

You need to move the weapon higher up, it’s probably too low.….the exit for the weapon is blocked by something.

How do I open an existing map in the editor? I get a «can’t find init.con» error![]

You Need to unzip the client.zip and server.zip for the map, into the map’s folder. You should end up with a path like this, «.…/levels/(map name)/init.con» NOT «.…/levels/(map name)/server/init.con»

I see text in the water. []

You need to disable the autoload of the singleplayer plugin and quit/restart the editor. Then re-do your envmaps.

How can I make a flag have multiple spawn locations? []

in the editor, select a spawn point, then in the tweaker bar change the group number.

How do I add a custom sky to my map?[]

You need to put the sky texture, saved as a 2048×512 .dds file, into the client.zip, then in the sky.con, change the line «Skydome.skyTexture levels/(name-of-map)/(name-of-sky-texture)» to point to your new sky. Then go and change the other sky settings to match your new sky.

How to increase the view distance?[]

To change the view distance in a map, there are 2 main controls. The «GameLogic.MaximumLevelViewDistance ###» in the init.con in the map’s server.zip, and the «Renderer.fogStartEndAndBase #/#/#/#» line in the sky.con, which is also in the map’s server.zip.

How do I change where the 3rd person camera is? []

you need to change the settings in the lines, «ObjectTemplate.chaseDistance #»«ObjectTemplate.chaseAngle #», and «ObjectTemplate.chaseOffset #/#/#» in the camera’s template in the vehicle’s .tweak file.

I moved a weapon/vehicle from one mod to another, and the HUD files[]

won’t work?! 

You need to save the HUD pics as .DDS files, the game will not read .tga files. Also, see below.…

What are the proper file format settings for HUD pics? []

You need to save the HUD pics as an «ARGB 8.8.8.8 with no mipmaps».DDS file. You could also rename the file from .tga to .DDS, however this can cause problems.

How do I change which camera views are available in a vehicle? []

In the camera’s template in the vehicle’s .tweak file, you can use the lines, «ObjectTemplate.CVMNose #, ObjectTemplate.CVMChase #, ObjectTemplate.CVMFrontChase #, ObjectTemplate.CVMFlyBy #» to turn on/off the different camera views. 1 = on, 0 = off. 

How do I convert music/sounds to BF2’s .ogg file format? / my .ogg files wont work! []

you need to download the BF2 Sound Tools. Then save your sound as a .wav file, and drag/drop your sound file onto the «oggenc.exe». That will create a .ogg file that BF2 can use. 

Weapon sound not playing or looping correctly? []

you need to set region markers in the sound file and make sure the sound template is setup correctly

How do I increase the distance that a gunshot can be heard?[]

you will find the 2 lines in the 3p firing sound area of the weapon’s .tweak file. «ObjectTemplate.minDistance #» and «ObjectTemplate.halfVolumeDistance #» Change those numbers to what you want, like, min 15, max 30.

I edited a skin, and now it’s very shiny []

You lost the alpha channel for the texture. The alpha channel controls how shiny a texture is, white = shiny, black = dull. You’ll have to put the original alpha back into the texture, or make a new one, and resave the texture as «DTX5, ARGB, 8 bpp, | interpolated alpha», with mipmaps set to «all».

What are the proper file format settings for ground textures? []

For colormap textures, you need to create a «512×512, 8.8.8.8 ARGB with no MIP-maps».DDS texture. For detail texture, you need to create a «512×512, DXT1 RGB no alpha, with MIP-maps set to «all».DDS texture.(I’m not sure about the detail texture settings. If I’m wrong, correct me!)

I edited a weapon/vehicle, and now there are no projectiles/it won’t fire []

You need to make sure the weapon is properly setup to use a projectile that exists.

How do you edit the rate of fire of a weapon? []

In the weapon’s template in the .tweak file for the weapon or vehicle, this line «ObjectTemplate.fire.roundsPerMinute #» controls the ROF. *note* the RPM MUST be divisible by 1800(the frames per min the physics engine runs at). If it’s not, the game will automatically round the number up. Example, if you try to use 550 RPM, the game will use 600 instead.

How can I make it take longer to make a weapon overheat? []

the 2 lines, «ObjectTemplate.heatAddWhenFire #» and «ObjectTemplate.coolDownPerSec #» control the overheating.

The dummy projectiles on my vehicle don’t reappear after the weapon reloads []

You need to give the weapon 2 or more mags for the dummy projectiles to reappear. 

I went to fire my weapon and got an error «No barrels configured for this firearm» []

Check the Weapon’s TWEAK file in the SinglefireComp section. Make sure it says ObjectTemplate.createComponent SingleFireComp  If it’s set up for MultifireComp be sure you have both inputs (standard fire and alt fire) properly setup for the weapon. Most weapons should use SinglefireComp and not MultifireComp.

How do I get the ejected shells to stay longer? []

the empty shell effects are in «objects_server.zip/effects/weapons/shellejections/geometry/» folder. Open one of them, and change the line «ObjectTemplate.timeToLive CRD_UNIFORM/#/#/#» to change how long it lives.

How do I make dead bodies/vehicle wrecks stay longer? []

Edit the «TimeStayAsWreck #» in the .tweak file for what ever it is. -1 will make it stay forever.

How do I remove the «Need Players to start» message? []

Edit the «My Documents/Battlefield2/Profiles/(profile)/ServerSettings.con». Edit the line «sv.numPlayersNeededToStart #» line to have a 1. It might be a good idea to mark the file as «read only» when your done.

How do I make soldiers walk/run faster? []

edit the file, «ObjectssoldiersCommonCommon.con». The «phy-soldier-speed-factor #» line controls the walk/run speed. You can change jump height, and several other things in this file. There are other movement related settings in the «objects/soldiers/(team-name)/(soldier-name).con»

I’ve added more than 9 weapons/items to a kit, and now I get random CTD?[]

There is no known fix.

I’m seeing black flickering on the textures of weapons/buildings/etc! []

This is called the «Z-fighting bug» and there is currently no known 100% fix. Best current remedy is «You could try «renderer.tweakNearPlane1p 0.1» and «renderer.tweakFarPlane1p 5» just add these to the Init.con of the mod. The default values are «renderer.tweakNearPlane1p 0.04» and «renderer.tweakFarPlane1p 15″. Higher values for the near plane will allow better Z buffer precision (-> less Z-fighting) but too high will cause near culling and for the far plane lower values are better but too low will cause far culling.»

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Как изменить время сохранения документа на компьютере
  • Как изменить время сети на андроид
  • Как изменить время свечения экрана
  • Как изменить время росписи на госуслугах
  • Как изменить время резервной копии whatsapp

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии