Console Commands

Oct 26, 2018
136
30
28
California, USA
youtube.com
Gamertag
demonsako
#1
A list of console commands for the current update. I'll update this list as more are added.


Host Commands
logplayers
Logs information about players. (Peer index, team etc.)
[Ex: logplayers]


kick
Kicks players based off of their peer index.
[Ex: kick <PEER_INDEX>] (Peer index is found in logplayers)


sendTeamChange
Changes a players team based off of their peer index.
[Ex: sendteamchange <PEER_INDEX> <VALUE>] (Team color is based off of values 1-8)
  1. Blue
  2. Yellow
  3. Green
  4. Purple
  5. Orange
  6. Brown
  7. Pink
  8. Red
maxplayers
Sets the max amount of players allowed in a lobby.
[Ex: maxplayers <VALUE>] (between 1 and 16)


Game Settings
controller_sens
Sets the controllers look sensitivity, useful for going higher than 10.
[Ex: controller_sens <VALUE>]

mouse_sens
Sets the mouse look sensitivity, useful for going higher than 10.
[Ex: mouse_sens <VALUE>]

reloadMaps
Reloads the maps folder so you don't have to re-launch the game, useful for when adding a new custom map.
[Ex: reloadmaps]

xyz
Displays XYZ coordinates on screen.
[Ex: xyz]

leavegame
Forces you to leave a game. Works in "bluescreens" and when you attempt to join a game.
[Ex: leavegame]

netstats
Displays packets per second and average packet size on screen.
[Ex: netstats]


mapfilename
Displays the name of the .map file of the map you're currently in. Useful for when making edits in Assembly.
[Ex: mapfilename]


isHost
Tells you whether or not you are the host of a game.
[Ex: ishost]


Spawn Commands
resetSpawnCommandList
Reloads commands.txt. Removing the need to re-launch the game.
[Ex: resetspawncommandlist]

spawnNear
Spawns items based off of datum indexes near the players biped.
[Ex: spawnNear <item_name> <count>]

spawn
Spawns items based off of datum indexes at specific locations using coordinates.
[Ex: spawn <item_name> <count> x y z] (see the command xyz)


More About Spawn Commands
Commands.txt
Commands.txt is a text file that is created manually by the user and placed at the root directory of their Halo 2 install. A name for the tag and its datum index is placed inside the text file which is then used in game with the spawn command to spawn the object. They usually look like this: item_name,0xE000000

Sidenotes: You can change the name of whatever it is you want to put on the list but if you try to spawn something with an invalid datum index your game will crash. Also spawning items only works if you're the host of a game or dedicated server. Some maps don't play nicely and items might not show up...try spawning more items.

Datum Indexes for commands.txt
There are tools to get the datum indexes for items such as Assembly but I'll save you the trouble and post all the indexes for all the items in shared.map in an organized list. (These only work in multiplayer maps. If you want to spawn in campaign you would need to find the indexes of the items in the campaigns individual map files.)

  • Human
    • Weapons
      • smg,0xED3F32DA
        magnum,0xEAD83073
        shotgun,0xECD63271
        sniper_rifle,0xED753310
        rocket_launcher,0xEDD4336F
        battle_rifle,0xEC3131CC
        frag_grenade,0xEA1F2FBA
    • Vehicles
      • scorpion,0xE7A42D3F
        chaingun_hog,0xE46E2A09


  • Covenant
    • Weapons
      • plasma_rifle,0xEC9E3239
        plasma_pistol,0xEB9E3139
        energy_sword,0xEE7B3416
        brute_plasma_rifle,0xEED3346E
        beam_rifle,0xEE9E3439
        brute_shot,0xEE0933A4
        needler,0xEB4230DD
        sentinel_beam,0xEEF1348C
        covenant_carbine,0xEC673202
        fuel_rod_cannon,0xEDA2333D
        plasma_grenade,0xEA4B2FE6
    • Vehicles
      • wraith,0xE8882E23
        ghost,0xE7022C9D
        spectre,0xE9242EBF
        banshee,0xE6382BD3


  • Other
    • Turrets
      • plasma_turret,0xE84D2DE8
        chaingun,0xE77D2D18
        warthog_chaingun,0xE5172AB2
        warthog_gauss,0xE5E12B7C
    • Ammunition
      • br_ammo,0xEAAE3049
        needler_ammo,0xEAB63051
        magnum_ammo,0xEAC0305B
        rocket_launcher_ammo,0xEA963031
        shotgun_ammo,0xEAC83063
        smg_ammo,0xEAD0306B
        sniper_rifle_ammo,0xEA8D3028
    • Equipment
      • active_camo,0xEA73300E
        over_shield,0xEA873022
    • Misc. Items
      • assult_bomb,0xEE3433CF
        ball,0xEE5233ED
        flag,0xEE5F33FA
    • Bipeds
      • masterchief_mp,0xF28C3826
        arbiter,0xF26B3805
        elite_mp,0xF29A3834
If needed there is also an attached commands.txt with the entire list in it if you don't feel like making your own. Just drop it wherever you installed the game.
I
I
I
 

Attachments

Last edited:
Likes: Z70XFire
May 15, 2017
6
0
1
Gamertag
luisxdlol1
#4
I have to press the command key and then put the $ symbol and the command? for example $ spawnnear

I think the console does not allow me to put the $ symbol
 
Mar 9, 2019
1
0
1
19
Gamertag
Dr Dualech
#6
Does any of this work for games created in the server browser (i.e., 'Create New Game' button at the top)? The in-game console doesn't allow for shift-combos and alt-codes. If not, is there a way to kick players without having to run a dedicated server?
 
Last edited:

mills

Staff
Project Cartographer Staff
May 10, 2017
281
27
28
#7
Does any of this work for games created in the server browser (i.e., 'Create New Game' button at the top)? The in-game console doesn't allow for shift-combos and alt-codes. If not, is there a way to kick players without having to run a dedicated server?
they mostly only work on your own created games. not sure if kick works in this version (cause it's reverted from previous versions)
 
Oct 26, 2018
136
30
28
California, USA
youtube.com
Gamertag
demonsako
#8
Does any of this work for games created in the server browser (i.e., 'Create New Game' button at the top)? The in-game console doesn't allow for shift-combos and alt-codes. If not, is there a way to kick players without having to run a dedicated server?
All of this works in a hosted game. As mills said most of these were taken out when 0.5 was reverted so most of these are useless atm. When Live List is back you'll most likely be able to again.

And to answer your question no. You can't kick in this update unless it's in a dedi that you run.