Adding Objective Mode maps to Single Player
Adding Objective Mode maps to Single Player
Excuse me, guys.
I have another question; this time, it is regarding Battlefield 1942: Secret Weapons of WWII. Is it possible to add the Objective Mode maps into Single Player; you know, like adding "bots" to the Objective mode maps? I would like to know. Thanks.
I have another question; this time, it is regarding Battlefield 1942: Secret Weapons of WWII. Is it possible to add the Objective Mode maps into Single Player; you know, like adding "bots" to the Objective mode maps? I would like to know. Thanks.
- Vilespring
- Posts: 740
- Joined: Sat Nov 24, 2012 5:47 am
- Location: Somewere in the United States
Re: Adding Objective Mode maps to Single Player
I don't think so. I don't do bots, but all I think they can do is, run, drive, fly, shoot, die, respawn. I think that is it.
A picture is worth a thousand words, but takes up three thousand times the memory.
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Re: Adding Objective Mode maps to Single Player
They can stand too. They like to stand.
Last edited by Swaffy on Thu Jun 13, 2013 10:43 am, edited 1 time in total.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
-
- Posts: 617
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: Adding Objective Mode maps to Single Player
Bots can be spawned in Objective, but they will focus on capturing flags and killing enemy soldiers rather than destroying or protecting the objectives. It's the same as CTF basically, bots aren't supposed to capture/steal the enemy flag.
See my Strasbourg map project here.
Re: Adding Objective Mode maps to Single Player
you can tune your objectives.
you can add seats without exits plus a botonly spawnpoint.
So up to 6 bots will spawn inside your object, and the object will be attacked by enemys. that should work.
you can add seats without exits plus a botonly spawnpoint.
So up to 6 bots will spawn inside your object, and the object will be attacked by enemys. that should work.
Re: Adding Objective Mode maps to Single Player
You can add bots to any of the modes including objective (there was an thread on it around here that dates back to the old ssm modding days), but you do not need to spawn bots into an object to have it attacked by other bots. All you need to do is add ITTargetTemperature to the objects AI template and set the defending team:
ObjectTemplate.active Chi-he
aiTemplate.addType ITTargetTemperature
ObjectTemplate.create ObjectSpawner japhtankspawner
ObjectTemplate.setObjectTemplate 2 none
ObjectTemplate.setObjectTemplate 1 chi-he
ObjectTemplate.MinSpawnDelay 50
ObjectTemplate.MaxSpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 4
ObjectTemplate.teamOnVehicle 1
ObjectTemplate.maxNrOfObjectSpawned 1
Object.create japhtankspawner
Object.absolutePosition 1600.22/47.1/2603.48
Object.rotation -153.45/0/0
Object.setTeam 1
Because the objectives do not have AI templates written, you need to create new templates in order for the bots to attack them. Here's a generic one i use for most objectives:
aiTemplatePlugIn.create Unit V2RKTUnit
aiTemplatePlugIn.equipmentType 8
aiTemplatePlugIn.setStrategicStrength 0 9
aiTemplatePlugIn.setStrategicStrength 1 9
rem aiTemplatePlugIn.setHasExposedSoldier 1
rem aiTemplatePlugIn.setUseNoPathfindingToGetToObject 1
aiTemplatePlugIn.create Cover V2RKTCover
aiTemplatePlugIn.coverValue 60.0
aiTemplatePlugIn.create Physical V2RKTPhysical
aiTemplatePlugIn.setStrType HeavyArmour
aiTemplatePlugIn.create ControlInfo V2RKTCtrl
aiTemplatePlugIn.driveTurnControl PINone
aiTemplatePlugIn.driveThrottleControl PINone
aiTemplatePlugIn.aimHorizontalControl PIMouseLookX
aiTemplatePlugIn.aimVerticalControl PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl PIMouseLookX
aiTemplatePlugIn.lookVerticalControl PIMouseLookY
aiTemplatePlugIn.throttleSensitivity -1.0
aiTemplatePlugIn.pitchSensitivity 0.21817
aiTemplatePlugIn.rollSensitivity -0.21817
aiTemplatePlugIn.yawSensitivity -2.5
aiTemplatePlugIn.lookVerticalSensitivity 0.21817
aiTemplatePlugIn.lookHorizontalSensitivity -0.21817
aiTemplatePlugIn.throttleLookAhead 1.0
aiTemplatePlugIn.pitchLookAhead 1.0
aiTemplatePlugIn.rollLookAhead 1.0
aiTemplatePlugIn.yawLookAhead 1.0
aiTemplatePlugIn.lookVerticalLookAhead 1.0
aiTemplatePlugIn.lookHorizontalLookAhead 1.0
aiTemplatePlugIn.throttleScale 1.0
rem *** Angle in radians ***
aiTemplatePlugIn.pitchScale 5.0
aiTemplatePlugIn.rollScale 5.0
aiTemplatePlugIn.yawScale 2.0
aiTemplatePlugIn.lookVerticalScale 1.0
aiTemplatePlugIn.lookHorizontalScale 1.0
rem aiTemplatePlugIn.setCameraRelativeMinRotationDeg 0/0/0
rem aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 0/0/0
rem *** AITemplate ***
aiTemplate.create V2RKTAI
aiTemplate.addType ITUnit
aiTemplate.addType ITGround
aiTemplate.addType ITFixed
aiTemplate.addType ITCover
aiTemplate.addType ITTargetTemperature
aiTemplate.degeneration 50
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 200
aiTemplate.commonKnowledge 0
aiTemplate.addPlugIn V2RKTUnit
aiTemplate.addPlugIn V2RKTCover
aiTemplate.addPlugIn V2RKTPhysical
aiTemplate.addPlugIn V2RKTCtrl
ObjectTemplate.active Rat_NorthFactory
ObjectTemplate.aiTemplate V2RKTAI
ObjectTemplate.active Rat_SouthFactory
ObjectTemplate.aiTemplate V2RKTAI
Don't forget to set the teams in ObjectiveSpawnerTemplates.con:
ObjectTemplate.create DestroyTargetObjective DestroyFactory02
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName Factory01
ObjectTemplate.ObjectiveName Rat_NorthFactory
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1
ObjectTemplate.create DestroyTargetObjective DestroyFactory03
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName Factory02
ObjectTemplate.ObjectiveName Rat_SouthFactory
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1
Edit: Here is a link to a BFSP thread where i posted my FHSW Operation Rattrap SSM extension. Everything you need to know about adding bots to a mode (objective in this case) is in there. Let me know if ther'es anything i can do to clarify.
Matt
http://www.battlefieldsingleplayer.com/ ... 5&start=15
Edit 2: This Hellendoorn map extension adds AI to objective mode server side:
ObjectTemplate.active Chi-he
aiTemplate.addType ITTargetTemperature
ObjectTemplate.create ObjectSpawner japhtankspawner
ObjectTemplate.setObjectTemplate 2 none
ObjectTemplate.setObjectTemplate 1 chi-he
ObjectTemplate.MinSpawnDelay 50
ObjectTemplate.MaxSpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 4
ObjectTemplate.teamOnVehicle 1
ObjectTemplate.maxNrOfObjectSpawned 1
Object.create japhtankspawner
Object.absolutePosition 1600.22/47.1/2603.48
Object.rotation -153.45/0/0
Object.setTeam 1
Because the objectives do not have AI templates written, you need to create new templates in order for the bots to attack them. Here's a generic one i use for most objectives:
aiTemplatePlugIn.create Unit V2RKTUnit
aiTemplatePlugIn.equipmentType 8
aiTemplatePlugIn.setStrategicStrength 0 9
aiTemplatePlugIn.setStrategicStrength 1 9
rem aiTemplatePlugIn.setHasExposedSoldier 1
rem aiTemplatePlugIn.setUseNoPathfindingToGetToObject 1
aiTemplatePlugIn.create Cover V2RKTCover
aiTemplatePlugIn.coverValue 60.0
aiTemplatePlugIn.create Physical V2RKTPhysical
aiTemplatePlugIn.setStrType HeavyArmour
aiTemplatePlugIn.create ControlInfo V2RKTCtrl
aiTemplatePlugIn.driveTurnControl PINone
aiTemplatePlugIn.driveThrottleControl PINone
aiTemplatePlugIn.aimHorizontalControl PIMouseLookX
aiTemplatePlugIn.aimVerticalControl PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl PIMouseLookX
aiTemplatePlugIn.lookVerticalControl PIMouseLookY
aiTemplatePlugIn.throttleSensitivity -1.0
aiTemplatePlugIn.pitchSensitivity 0.21817
aiTemplatePlugIn.rollSensitivity -0.21817
aiTemplatePlugIn.yawSensitivity -2.5
aiTemplatePlugIn.lookVerticalSensitivity 0.21817
aiTemplatePlugIn.lookHorizontalSensitivity -0.21817
aiTemplatePlugIn.throttleLookAhead 1.0
aiTemplatePlugIn.pitchLookAhead 1.0
aiTemplatePlugIn.rollLookAhead 1.0
aiTemplatePlugIn.yawLookAhead 1.0
aiTemplatePlugIn.lookVerticalLookAhead 1.0
aiTemplatePlugIn.lookHorizontalLookAhead 1.0
aiTemplatePlugIn.throttleScale 1.0
rem *** Angle in radians ***
aiTemplatePlugIn.pitchScale 5.0
aiTemplatePlugIn.rollScale 5.0
aiTemplatePlugIn.yawScale 2.0
aiTemplatePlugIn.lookVerticalScale 1.0
aiTemplatePlugIn.lookHorizontalScale 1.0
rem aiTemplatePlugIn.setCameraRelativeMinRotationDeg 0/0/0
rem aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 0/0/0
rem *** AITemplate ***
aiTemplate.create V2RKTAI
aiTemplate.addType ITUnit
aiTemplate.addType ITGround
aiTemplate.addType ITFixed
aiTemplate.addType ITCover
aiTemplate.addType ITTargetTemperature
aiTemplate.degeneration 50
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 200
aiTemplate.commonKnowledge 0
aiTemplate.addPlugIn V2RKTUnit
aiTemplate.addPlugIn V2RKTCover
aiTemplate.addPlugIn V2RKTPhysical
aiTemplate.addPlugIn V2RKTCtrl
ObjectTemplate.active Rat_NorthFactory
ObjectTemplate.aiTemplate V2RKTAI
ObjectTemplate.active Rat_SouthFactory
ObjectTemplate.aiTemplate V2RKTAI
Don't forget to set the teams in ObjectiveSpawnerTemplates.con:
ObjectTemplate.create DestroyTargetObjective DestroyFactory02
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName Factory01
ObjectTemplate.ObjectiveName Rat_NorthFactory
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1
ObjectTemplate.create DestroyTargetObjective DestroyFactory03
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName Factory02
ObjectTemplate.ObjectiveName Rat_SouthFactory
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1
Edit: Here is a link to a BFSP thread where i posted my FHSW Operation Rattrap SSM extension. Everything you need to know about adding bots to a mode (objective in this case) is in there. Let me know if ther'es anything i can do to clarify.
Matt
http://www.battlefieldsingleplayer.com/ ... 5&start=15
Edit 2: This Hellendoorn map extension adds AI to objective mode server side:
Re: Adding Objective Mode maps to Single Player
Thank you, Matt. This bit will be able to help me whenever I want to add Objective Mode maps from Secret Weapons of WWII into single player, such as Eagle's Nest. Note: I am going to do this for my personal use, not for distribution on the Internet, in any way. Also, I know that Objective Mode was added to single player, in the form of Battle of Britain.
- Vilespring
- Posts: 740
- Joined: Sat Nov 24, 2012 5:47 am
- Location: Somewere in the United States
Re: Adding Objective Mode maps to Single Player
I figured out why in the battle of Britain map a bot gets into the factory, so the other bots see it as a target. So, theoretically, if there was no bot in the factory, the bots wouldn't even notice it? This means a bot can sit inside your custom objective.
A picture is worth a thousand words, but takes up three thousand times the memory.
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Re: Adding Objective Mode maps to Single Player
Right. Bots will attack a PCO (vehicle, objective, etc) occupied by an enemy bot, but there is no need to waste the use of a bot for that purpose. Set the PCO's aitemplate to ITTargetTemperature and set its team as shown above, and bots will attack it unoccupied.
Edit: Speaking of Eagles Nest, here's a server side map extension that adds AI to CTF and Objective mode in addition to the existing coop mode:
My pleasure! Glad i could help. Use it as you see fit. The more use it gets, the happier i am!Thank you, Matt. This bit will be able to help me whenever I want to add Objective Mode maps from Secret Weapons of WWII into single player, such as Eagle's Nest. Note: I am going to do this for my personal use, not for distribution on the Internet, in any way. Also, I know that Objective Mode was added to single player, in the form of Battle of Britain.
Edit: Speaking of Eagles Nest, here's a server side map extension that adds AI to CTF and Objective mode in addition to the existing coop mode:
- Attachments
-
- Eagles_Nest_666.zip
- (264.63 KiB) Downloaded 998 times
Re: Adding Objective Mode maps to Single Player
I've been watching this thread, I gotta say it was a nice little learning experience. I'm a n00b at map-making, and things like this get my curiosity up. So thanks!
I think the most map-making I've done was working on (editing) Low Tide Philly which can be seen in my mod. I did some retexturing, heightmap changes, and basic AI support. I will be thrilled to actually get an objective map going, that would be a fun little change. Like a statue in Berlin or Stalingrad, or the hangar and hospital on Midway or something.
I think the most map-making I've done was working on (editing) Low Tide Philly which can be seen in my mod. I did some retexturing, heightmap changes, and basic AI support. I will be thrilled to actually get an objective map going, that would be a fun little change. Like a statue in Berlin or Stalingrad, or the hangar and hospital on Midway or something.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™