Jump to content
Official BF Editor Forums
Sign in to follow this  
Frosty98B

Number Of Selectable Classes

Recommended Posts

Hello!

The very last missing thing (except for maps) in death is alive mod is the number of selectable classes. In omnicide, there are seven zombie classes but its modified, so just one appears in kit selection menu. I would like to have first four classes shown in this menu. Looks like I need to modify HUD or something but I am not sure. If someone can help me I will much appreciate it, thanks!

Share this post


Link to post
Share on other sites

Do you mean selectable class for weapons?

if yes, then you have to replace number on "Itemindex"

If not, you have to replace "selectIcon"

I hope you can understand what I mean

sorry I can't help much

Edited by DarkShadow91

Share this post


Link to post
Share on other sites

Thanks for willingness but I mean this

mIhpYJO.jpg

Omnicide is a good example. There are seven zombie classes but just one of them (the 3rd one) appears ingame.

I have no idea which file needs to be edited to reach this. I spent hours by looking for the right file but I didnt find it. :(

Share this post


Link to post
Share on other sites

You must have at least 7 soldiers/kits defined in the maps init.con file for singleplayer and bot spawning to work. If you only want them to use a single class then just duplicate it 7 times.

As for the HUD, find this file:

BF2/menu/HUD/HudSetup/SpawnInterface/HudElementsSpawn.con

and rem out or delete the sections labeled "Select Kit 2~6"

This will of course effect the HUD for both teams though. If this isn't exactly what you wanted, then look at the same file in the Omnicide Mod and see how they did it.

Share this post


Link to post
Share on other sites

Yeah, that is what i was looking for but when I deleted Select Kit 2 - 6, nothing changed, there are still 7 classes :( dunno why

Share this post


Link to post
Share on other sites

It should work, this is how the HUD appears after the changes,

screen002_zpseb774c1d.png

HudElementsSpawn.con

hudBuilder.createButtonNode 		IngameHud MinimizeSpawnButton 770 31 16 16
hudBuilder.setButtonNodeTexture 	2 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd		"hudItems.setBool SetSpawnPoint 0" 3
hudBuilder.setButtonNodeConCmd		"hudManager.setDone 1" 3
hudBuilder.setButtonNodeConCmd		"sound.playSound rosePress" 0
hudBuilder.setNodeShowVariable 		MapFullSizeAndSpawnShow

hudBuilder.createPictureNode 		IngameHud MinimizeSpawnButtonPic 770 31 16 16
hudBuilder.setPictureNodeTexture 	Ingame/MiniMap/boxcross.tga
hudBuilder.setNodeShowVariable 		MapFullSizeAndSpawnShow

rem -----------------------------------------Spawn Timer---------------------------------------------------

hudBuilder.createSplitNode		IngameHud SpawnInfo
hudBuilder.setNodeShowVariable 		SpawnInfoShow
hudBuilder.setNodeLogicShowVariable  	NOT ScoreboardShow 1
hudBuilder.setNodeInTime 		0.3
hudBuilder.setNodeOutTime 		0.5
hudBuilder.addNodeMoveShowEffect	-1.57 50

hudBuilder.createPictureNode 		SpawnInfo TopMiddleBar 250 0 270 19
hudBuilder.setPictureNodeTexture 	Ingame/Respawn/spawnBar_short.tga
hudBuilder.setNodeAlphaVariable		MenuBackgroundAlpha

hudBuilder.createTextNode		SpawnInfo TimeToSpawn 250 1 270 12
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 0
hudBuilder.setTextNodeStringVariable	SpawnInfoString
hudBuilder.setNodeColor 	        0.82 0.82 0.61 1

rem -----------------------------------------Map Buttons---------------------------------------------------

hudBuilder.createSplitNode		TopLayerHud MapButtons
hudBuilder.setNodeShowVariable 		MapFullSizeAndSpawnShow

hudBuilder.createPictureNode 		MapButtons MapSuicideBg 542 539 124 17
hudBuilder.setPictureNodeTexture	Ingame/MiniMap/suicide_button.tga
hudBuilder.setNodeShowVariable 		SuicideButtonShow

hudBuilder.createButtonNode 		MapButtons SuicideButton 542 539 124 17
hudBuilder.setButtonNodeTexture 	2 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd		"spawnManager.commitSuicide" 3
hudBuilder.setButtonNodeConCmd		"sound.playSound rosePress" 0
hudBuilder.setNodeShowVariable 		SuicideButtonShow

hudBuilder.createTextNode		MapButtons SuicideLabel 542 538 124 9
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 0
hudBuilder.setNodeColor 	      	1 0.792 0.043 1
hudBuilder.setTextNodeString 	      	HUD_TEXT_MENU_SPAWN_SUICIDE
hudBuilder.setNodeShowVariable 		SuicideButtonShow

hudBuilder.createPictureNode 		MapButtons MapDoneBg 666 539 124 17
hudBuilder.setPictureNodeTexture	Ingame/MiniMap/done_button.tga

hudBuilder.createButtonNode 		MapButtons DoneButton 666 539 124 17
hudBuilder.setButtonNodeMouseArea 	0 -5 124 22
hudBuilder.setButtonNodeTexture 	2 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd		"hudManager.setDone 1" 3
hudBuilder.setButtonNodeConCmd		"sound.playSound rosePress" 0

hudBuilder.createTextNode		MapButtons DoneLabel 666 538 124 9
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 0
hudBuilder.setNodeColor 	      	1 0.792 0.043 1
hudBuilder.setTextNodeString 	      	HUD_TEXT_MENU_SPAWN_DONE



rem -----------------------------------------Team Select---------------------------------------------------

hudBuilder.createSplitNode		IngameHud SpawnMenu
hudBuilder.setNodeShowVariable 		SpawnShow
hudBuilder.setNodeInTime 		0.1
hudBuilder.setNodeOutTime 		0.1
hudBuilder.addNodeMoveShowEffect	0 30
hudBuilder.addNodeAlphaShowEffect

hudBuilder.createSplitNode		SpawnMenu TeamSelectInfo

hudBuilder.createSplitNode		TeamSelectInfo Team1SelectedInfo
hudBuilder.setNodeShowVariable 		Team1Selected

hudBuilder.createSplitNode		TeamSelectInfo Team2SelectedInfo
hudBuilder.setNodeShowVariable 		Team2Selected

hudBuilder.createPictureNode 		Team2SelectedInfo SelectedTeam1SquadFolder 10 26 246 50
hudBuilder.setPictureNodeTexture	Ingame/Respawn/team1_squad.tga
hudBuilder.setNodeShowVariable 		MembersShow

hudBuilder.createPictureNode 		Team1SelectedInfo SelectedTeam2SquadFolder 10 26 246 50
hudBuilder.setPictureNodeTexture	Ingame/Respawn/team2_squad.tga
hudBuilder.setNodeShowVariable 		MembersShow

hudBuilder.createPictureNode 		Team2SelectedInfo SelectedTeam1KitFolder 10 26 246 50
hudBuilder.setPictureNodeTexture	Ingame/Respawn/team1_kit.tga
hudBuilder.setNodeShowVariable 		KitsShow

hudBuilder.createPictureNode 		Team1SelectedInfo SelectedTeam2KitFolder 10 26 246 50
hudBuilder.setPictureNodeTexture	Ingame/Respawn/team2_kit.tga
hudBuilder.setNodeShowVariable 		KitsShow

hudBuilder.createButtonNode 		TeamSelectInfo SelectTeam1 95 27 85 25
hudBuilder.setButtonNodeTexture 	2 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd		"spawnManager.setPlayerTeam 1" 3
hudBuilder.setButtonNodeConCmd		"sound.playSound rosePress" 0

hudBuilder.createButtonNode 		TeamSelectInfo SelectTeam2 10 27 85 25
hudBuilder.setButtonNodeTexture 	2 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd		"spawnManager.setPlayerTeam 2" 3
hudBuilder.setButtonNodeConCmd		"sound.playSound rosePress" 0

hudBuilder.createTextNode		Team2SelectedInfo SelectTeam1LabelFaded 125 28 77 19
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 2
hudBuilder.setNodeColor 	     	1 0.792 0.043 1
hudBuilder.setTextNodeStringVariable	Team1NameString

hudBuilder.createPictureNode 		Team2SelectedInfo Team1FlagFaded 104 32 18 12
hudBuilder.setPictureNodeVariableTexture 	Team1FlagIconPathString
hudBuilder.setNodeColor 	       	1 1 1 0.7

hudBuilder.createTextNode		Team1SelectedInfo SelectTeam1Label 125 28 77 19
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 2
hudBuilder.setNodeColor 	      	1 1 1 1
hudBuilder.setTextNodeStringVariable	Team1NameString

hudBuilder.createPictureNode 		Team1SelectedInfo Team1SelectedFlag 104 32 18 12
hudBuilder.setPictureNodeVariableTexture 	Team1FlagIconPathString

hudBuilder.createTextNode		Team1SelectedInfo SelectTeam2LabelFaded 37 28 77 19
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 2
hudBuilder.setNodeColor 	      	1 0.792 0.043 1
hudBuilder.setTextNodeStringVariable	Team2NameString

hudBuilder.createTextNode		Team2SelectedInfo SelectTeam2Label 37 28 77 19
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 2
hudBuilder.setNodeColor 	      	1 1 1 1
hudBuilder.setTextNodeStringVariable	Team2NameString

hudBuilder.createPictureNode 		Team2SelectedInfo Team2SelectedFlag 16 31 18 12
hudBuilder.setPictureNodeVariableTexture 	Team2FlagIconPathString

hudBuilder.createPictureNode 		Team1SelectedInfo Team2FlagFaded 16 31 18 12
hudBuilder.setPictureNodeVariableTexture 	Team2FlagIconPathString
hudBuilder.setNodeColor 	        1 1 1 0.7

rem -----------------------------------------Show Select---------------------------------------------------

hudBuilder.createSplitNode		SpawnMenu KitsSelectionInfo
hudBuilder.setNodeShowVariable 		KitsShow

hudBuilder.createSplitNode		SpawnMenu MembersSelectionInfo
hudBuilder.setNodeShowVariable 		MembersShow

hudBuilder.createButtonNode 		SpawnMenu  ShowKitsButton 14 52 103 24
hudBuilder.setButtonNodeTexture 	2 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd		"SpawnManager.toggleMembers 0" 3
hudBuilder.setButtonNodeConCmd		"sound.playSound rosePress" 0

hudBuilder.createButtonNode 		SpawnMenu ShowMembersButton 118 52 103 24
hudBuilder.setButtonNodeTexture 	2 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd		"SpawnManager.toggleMembers 1" 3
hudBuilder.setButtonNodeConCmd		"sound.playSound rosePress" 0

hudBuilder.createTextNode		KitsSelectionInfo ToggleMembersFadedLabel 118 53 101 24
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 0
hudBuilder.setNodeColor 	      	1 0.792 0.043 1
hudBuilder.setTextNodeString 	      	HUD_TEXT_MENU_SPAWN_SQUAD_SQUAD

hudBuilder.createTextNode		MembersSelectionInfo ToggleMembersLabel 118 53 101 24
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 0
hudBuilder.setTextNodeString 	      	HUD_TEXT_MENU_SPAWN_SQUAD_SQUAD
hudBuilder.setNodeColor 	      	1 1 1 1

hudBuilder.createTextNode		MembersSelectionInfo ToggleKitsFadedLabel 15 53 101 24
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 0
hudBuilder.setNodeColor 	      	1 0.792 0.043 1
hudBuilder.setTextNodeString 	      	HUD_TEXT_MENU_SPAWN_KIT_KIT

hudBuilder.createTextNode		KitsSelectionInfo ToggleKitsLabel 15 53 101 24
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 0
hudBuilder.setTextNodeString 	      	HUD_TEXT_MENU_SPAWN_KIT_KIT
hudBuilder.setNodeColor 	      	1 1 1 1

rem ---------------------------------------Select Kit 0-------------------------------------------------------

hudBuilder.createSplitNode		KitsSelectionInfo Kit0Info
hudBuilder.setNodeShowVariable 		Kit0Show

hudBuilder.createPictureNode 		Kit0Info Kit0BackgroundIcon 10 73 246 69
hudBuilder.setPictureNodeTexture 	Ingame/Respawn/kit_background.tga

hudBuilder.createSplitNode		Kit0Info Kit0NotSelected
hudBuilder.setNodeLogicShowVariable  	NOT PlayerKitIcon0SelectShow 1
hudBuilder.setNodeInTime 		0.3
hudBuilder.setNodeOutTime 		0.15
hudBuilder.addNodeAlphaShowEffect

hudBuilder.createPictureNode 		Kit0NotSelected Kit0KitSquare 15 78 15 15
hudBuilder.setPictureNodeTexture 	Ingame/Respawn/iconframe.tga
hudBuilder.setNodeColor 	      	1 0.792 0.043 1

hudBuilder.createPictureNode 		Kit0NotSelected Kit0MiniIcon 15 78 16 16
hudBuilder.setPictureNodeVariableTexture 	KitIcon0Path
hudBuilder.setNodeColor 	      	1 0.792 0.043 1

hudBuilder.createTextNode		Kit0NotSelected SelectKit0InactiveLabel 34 77 142 13
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 2
hudBuilder.setNodeColor 	      	0.792 0.792 0.588 1
hudBuilder.setTextNodeStringVariable    KitName0String

hudBuilder.createButtonNode 		Kit0NotSelected SelectKit0 10 73 246 69
hudBuilder.setButtonNodeTexture 	2 Ingame/Respawn/kit_selected.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/GeneralIcons/empty.tga
hudBuilder.setButtonNodeConCmd		"spawnManager.setPlayerKit 0" 0
hudBuilder.setButtonNodeConCmd		"sound.playSound kitSelect" 0
hudBuilder.setButtonNodeConCmd		"sound.playSound kitOver" 1
hudBuilder.setNodeColor 	      	1 0.792 0.043 1

hudBuilder.createSplitNode		Kit0Info Kit0Selected
hudBuilder.setNodeColor 	        1 1 1 1
hudBuilder.setNodeShowVariable 		PlayerKitIcon0SelectShow
hudBuilder.setNodeInTime 		0.15
hudBuilder.setNodeOutTime 		0.3
hudBuilder.addNodeAlphaShowEffect

hudBuilder.createPictureNode 		Kit0Selected Kit0KitSquareSelected 15 78 15 15
hudBuilder.setPictureNodeTexture 	Ingame/Respawn/iconframe.tga
hudBuilder.setNodeColor 	      	1 0.792 0.043 1

hudBuilder.createPictureNode 		Kit0Selected Kit0MiniIconSelected 15 78 16 16
hudBuilder.setNodeColor 	      	1 0.792 0.043 1
hudBuilder.setPictureNodeVariableTexture 	KitIcon0Path

hudBuilder.createPictureNode 		Kit0Selected Kit0SelectIcon 10 73 246 69
hudBuilder.setPictureNodeTexture 	Ingame/Respawn/kit_selected.tga

hudBuilder.createTextNode		Kit0Selected SelectKit0ActiveLabel 34 77 142 13
hudBuilder.setTextNodeStyle		Fonts/hudFontLocalBold_9.dif 2
hudBuilder.setTextNodeStringVariable    KitName0String

hudBuilder.createPictureNode 		Kit0Info Kit0WeaponIcon 15 95 150 44
hudBuilder.setPictureNodeVariableTexture 	KitWeaponIcon0Path

hudBuilder.createSplitNode		Kit0Info Kit0Unlockable
hudBuilder.setNodeShowVariable  	KitUnlock0Show

hudBuilder.createSplitNode		Kit0Unlockable Kit0Unlocked
hudBuilder.setNodeShowVariable  	KitUnlockArrow0Show

hudBuilder.createPictureNode 		 Kit0Unlocked Kit0AltWeaponIcon 174 77 58 17
hudBuilder.setPictureNodeVariableTexture 	KitAltWeaponIcon0Path
hudBuilder.setNodeColor 	         0.937 0.921 0.776 1

hudBuilder.createButtonNode 		Kit0Unlocked SelectUnlock0Right 233 77 17 17
hudBuilder.setButtonNodeTexture 	3 Ingame/Respawn/swapWeaponIcon2.tga
hudBuilder.setButtonNodeTexture 	2 Ingame/Respawn/swapWeaponIcon.tga
hudBuilder.setButtonNodeTexture 	1 Ingame/Respawn/swapWeaponIcon.tga
hudBuilder.setButtonNodeConCmd		"spawnManager.selectNextUnlock 0" 0

hudBuilder.createPictureNode 		Kit0Unlocked Unlock0Blink 233 77 17 17
hudBuilder.setPictureNodeTexture 	Ingame/Respawn/swapWeaponIcon3.tga
hudBuilder.setNodeColor 	        0.580 0.094 0.098 1
hudBuilder.setNodeAlphaVariable		Kit0UnlockBlinkAlpha

hudBuilder.createSplitNode		Kit0Unlockable Kit0NotUnlocked
hudBuilder.setNodeLogicShowVariable  	NOT KitUnlockArrow0Show 1

hudBuilder.createPictureNode 		Kit0NotUnlocked Kit0LockAltWeaponIcon 174 77 58 17
hudBuilder.setPictureNodeVariableTexture 	KitAltWeaponIcon0Path
hudBuilder.setNodeColor 	        0.678 0.663 0.525 1

hudBuilder.createPictureNode 		Kit0NotUnlocked Kit0LockSquare 234 78 15 15
hudBuilder.setPictureNodeTexture 	Ingame/Respawn/iconframe.tga
hudBuilder.setNodeColor 	        0.576 0.573 0.451 1

hudBuilder.createPictureNode 		Kit0NotUnlocked Kit0Lock 234 78 15 15
hudBuilder.setPictureNodeTexture 	Ingame/Respawn/lockicon.tga
hudBuilder.setNodeColor 	        0.678 0.663 0.525 1

hudBuilder.createPictureNode 		Kit0Info Kit0SprintAbilityIcon 177 101 13 5
hudBuilder.setPictureNodeTexture 	Ingame/Player/Icons/Hud/sprintIcon.tga
hudBuilder.setNodeColor 		0.937 0.921 0.776 1

hudBuilder.createPictureNode 		Kit0Info Kit0SprintAbilityFaded 190 101 59 5
hudBuilder.setPictureNodeTexture 	Ingame/Respawn/sprintAbilityBar_full.tga
hudBuilder.setNodeColor 	        0.678 0.663 0.525 1

hudBuilder.createBarNode 		Kit0Info Kit0SprintAbility 3 190 101 59 5
hudbuilder.setBarNodeTexture		1 Ingame/Respawn/sprintAbilityBar_full.tga
hudBuilder.setBarNodeValueVariable 	Kit0SprintAbility
hudBuilder.setBarNodeSnap		20
hudBuilder.setBarNodeSnapDir		1
hudBuilder.setNodeColor 	        0.937 0.921 0.776 1

hudBuilder.createPictureNode 			Kit0Info Kit0AbilityIcon0 234 114 15 15
hudBuilder.setPictureNodeVariableTexture 	Kit0AbilityIcon0PathString
hudBuilder.setNodeShowVariable  		Kit0AbilityIcon0Show

hudBuilder.createPictureNode 			Kit0Info Kit0AbilityIcon1 216 114 15 15
hudBuilder.setPictureNodeVariableTexture 	Kit0AbilityIcon1PathString
hudBuilder.setNodeShowVariable  		Kit0AbilityIcon1Show

hudBuilder.createPictureNode 			Kit0Info Kit0AbilityIcon2 198 114 15 15
hudBuilder.setPictureNodeVariableTexture 	Kit0AbilityIcon2PathString
hudBuilder.setNodeShowVariable  		Kit0AbilityIcon2Show

hudBuilder.createPictureNode 			Kit0Info Kit0AbilityIcon3 180 114 15 15
hudBuilder.setPictureNodeVariableTexture 	Kit0AbilityIcon3PathString
hudBuilder.setNodeShowVariable  		Kit0AbilityIcon3Show

hudBuilder.createPictureNode 			Kit0Info Kit0AbilityIcon4 162 114 15 15
hudBuilder.setPictureNodeVariableTexture 	Kit0AbilityIcon4PathString
hudBuilder.setNodeShowVariable  		Kit0AbilityIcon4Show
If it isnt working, then you either haven't properly packed the MenuServer.zip archive in your mod, or your mod's ServerArchive.con file doesnt have this:

fileManager.mountArchive Menu_server.zip Menu
Edited by Coronaextra

Share this post


Link to post
Share on other sites

Yeaaah, I deleted that line from Server Archives when I didnt need and I forgot to check this file out. Thanks for help! Gonna try it out :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×