FANDOM


Developer's Mode is a command system that is usable in Halo, to spawn weapons and vehicles, start and end animations, manage dedicated servers, and a lot more.

AboutEdit

Developer's Mode is best used when in a map on LAN[Local Access Network], if Developer's Mode is used online, an exception error will appear.

Activating Developers ModeEdit

There are multiple ways to activate Developers Mode, but the easiest way is to go to your Halo Custom Edition Shortcut, and add a -console to the end of the target location. (Make sure the -console is after the " "). You can also add a "-devmode" to the end of the target location, but this will disable Halo Custom Edition's online access. This is used when you are testing something in-game and need the additional commands not provided by the "-console" extension.

Another way is user a Halo Custom Edition DevMode Activator, you press the on button on the small pop-up box, and it turns Developers Mode on, and press the off button on the small box, to shut it off. This is useful when using Developers Mode in multiplayer, yet it is not recommended. Link to Halo Maps DevMode Activator Download:[1]

CodesEdit

(begin <expression(s)>)
returns the last expression in a sequence after evaluating the sequence in order.

(begin_random <expression(s)>)
evaluates the sequence of expressions in random order and returns the last value evaluated.

(if <boolean> <then> [<else>])
returns one of two values based on the value of a condition.

(cond (<boolean1> <result1>) [(<boolean2> <result2>) [...]])
returns the value associated with the first true condition.

(set <variable name> <expression>)
set the value of a global variable.

(and <boolean(s)>)
returns true if all specified expressions are true.

(or <boolean(s)>)
returns true if any specified expressions are true.

(+ <number(s)>)
returns the sum of all specified expressions.

(- <number> <number>)
returns the difference of two expressions.

(* <number(s)>)
returns the product of all specified expressions.

'(/ <number> <number>)
returns the quotient of two expressions.

(min <number(s)>)
returns the minimum of all specified expressions.

(max <number(s)>)
returns the maximum of all specified expressions.

(= <expression> <expression>)
returns true if two expressions are equal

(!= <expression> <expression>)
returns true if two expressions are not equal

(> <number> <number>)
returns true if the first number is greater than the second.

(< <number> <number>)
returns true if the first number is less than the second.

(>= <number> <number>)
returns true if the first number is greater than or equal to the second.

(<= <number> <number>)
returns true if the first number is less than or equal to the second.

(sleep <short> [<script>])
pauses execution of this script (or, optionally, another script) for the specified number of ticks.

(sleep_until <boolean> [<short>])
pauses execution of this script until the specified condition is true, checking once per second unless a different number of ticks is specified.

(wake <script name>)
wakes a sleeping script in the next update.

(inspect <expression>)
prints the value of an expression to the screen for debugging purposes.

(unit <object>)
converts an object to a unit.

(ai_debug_communication_suppress <string(s)>)
suppresses (or stops suppressing) a set of AI communication types.

(ai_debug_communication_ignore <string(s)>)
ignores (or stops ignoring) a set of AI communication types when printing out communications.

(ai_debug_communication_focus <string(s)>)
focuses (or stops focusing) a set of unit vocalization types.

(not <boolean>)
returns the opposite of the expression.

(print <string>)
prints a string to the console.

(players)
returns a list of the players

(volume_teleport_players_not_inside <trigger_volume> <cutscene_flag>)
moves all players outside a specified trigger volume to a specified flag.

(volume_test_object <trigger_volume> <object>)
returns true if the specified object is within the specified volume.

(volume_test_objects <trigger_volume> <object_list>)
returns true if any of the specified objects are within the specified volume.

(volume_test_objects_all <trigger_volume> <object_list>)
returns true if any of the specified objects are within the specified volume.

(object_teleport <object> <cutscene_flag>)
moves the specified object to the specified flag.

(object_set_facing <object> <cutscene_flag>)
turns the specified object in the direction of the specified flag.

(object_set_shield <object> <real>)
sets the shield vitality of the specified object (between 0 and 1).

(object_set_permutation <object> <string> <string>)
sets the desired region (use "" for all regions) to the permutation with the given name, e.g. (object_set_permutation flood "right arm" ~damaged)

(object_create <object_name>)
creates an object from the scenario.

(object_destroy <object>)
destroys an object.

(object_create_anew <object_name>)
creates an object, destroying it first if it already exists.

(object_create_containing <string>)
creates all objects from the scenario whose names contain the given substring.

(object_create_anew_containing <string>)
creates anew all objects from the scenario whose names contain the given substring.

(object_destroy_containing <string>)
destroys all objects from the scenario whose names contain the given substring.

(object_destroy_all)
destroys all non player objects.

(list_get <object_list> <short>)
returns an item in an object list.

(list_count <object_list>)
returns the number of objects in a list

(effect_new <effect> <cutscene_flag>)
starts the specified effect at the specified flag.

(effect_new_on_object_marker <effect> <object> <string>)
starts the specified effect on the specified object at the specified marker.

(damage_new <damage> <cutscene_flag>)
causes the specified damage at the specified flag.

(damage_object <damage> <object>)
causes the specified damage at the specified object.

(objects_can_see_object <object_list> <object> <real>)
returns true if any of the specified units are looking within the specified number of degrees of the object.

(objects_can_see_flag <object_list> <cutscene_flag> <real>)
returns true if any of the specified units are looking within the specified number of degrees of the flag.

(objects_delete_by_definition <object_definition>)
deletes all objects of type <definition>

(sound_set_gain <string> <real>)
absolutely do not use this

(sound_get_gain <string>)
absolutely do not use this either

(script_recompile)
recompiles scripts.

(script_doc)
saves a file called hs_doc.txt with parameters for all script commands.

(help <string>)
prints a description of the named function.

(random_range <short> <short>)
returns a random value in the range [lower bound, upper bound)

(real_random_range <real> <real>)
returns a random value in the range [lower bound, upper bound)

(numeric_countdown_timer_set <long> <boolean>)
<milliseconds>, <auto_start>

(numeric_countdown_timer_get <short>)
<digit_index>

(numeric_countdown_timer_stop)

(numeric_countdown_timer_restart)

(breakable_surfaces_enable <boolean>)
enables or disables breakability of all breakable surfaces on level

(recording_play <unit> <cutscene_recording>)
make the specified unit run the specified cutscene recording.

(recording_play_and_delete <unit> <cutscene_recording>)
make the specified unit run the specified cutscene recording, deletes the unit when the animation finishes.

(recording_play_and_hover <vehicle> <cutscene_recording>)
make the specified vehicle run the specified cutscene recording, hovers the vehicle when the animation finishes.

(recording_kill <unit>)
kill the specified unit's cutscene recording.

(recording_time <unit>)
return the time remaining in the specified unit's cutscene recording.

(object_set_ranged_attack_inhibited <object> <boolean>)
FALSE prevents object from using ranged attack

(object_set_melee_attack_inhibited <object> <boolean>)
FALSE prevents object from using melee attack

(objects_dump_memory)
debugs object memory usage

(object_set_collideable <object> <boolean>)
FALSE prevents any object from colliding with the given object

(object_set_scale <object> <real> <short>)
sets the scale for a given object and interpolates over the given number of frames to achieve that scale

(objects_attach <object> <string> <object> <string>)
attaches the second object to the first; both strings can be empty

(objects_detach <object> <object>)
detaches from the given parent object the given child object

(garbage_collect_now)
causes all garbage objects except those visible to a player to be collected immediately

(object_cannot_take_damage <object_list>)
prevents an object from taking damage

(object_can_take_damage <object_list>)
allows an object to take damage again

(object_beautify <object> <boolean>)
makes an object pretty for the remainder of the levels' cutscenes.

(objects_predict <object_list>)
loads textures necessary to draw a objects that are about to come on-screen.

(object_type_predict <object_definition>)
loads textures necessary to draw an object that's about to come on-screen.

(object_pvs_activate <object>)
just another (old) name for object_pvs_set_object.

(object_pvs_set_object <object>)
sets the specified object as the special place that activates everything it sees.

(object_pvs_set_camera <cutscene_camera_point>)
sets the specified cutscene camera point as the special place that activates everything it sees.

(object_pvs_clear)
removes the special place that activates everything it sees.

(render_lights <boolean>)
enables/disables dynamic lights

(scenery_get_animation_time <scenery>)
returns the number of ticks remaining in a custom animation (or zero, if the animation is over).

(scenery_animation_start <scenery> <animation_graph> <string>)
starts a custom animation playing on a piece of scenery

(scenery_animation_start_at_frame <scenery> <animation_graph> <string> <short>)
starts a custom animation playing on a piece of scenery at a specific frame

(render_effects <boolean>)

(unit_can_blink <unit> <boolean>)
allows a unit to blink or not (units never blink when they are dead)

(unit_open <unit>)
opens the hatches on the given unit

(unit_close <unit>)
closes the hatches on a given unit

(unit_kill <unit>)
kills a given unit, no saving throw

(unit_kill_silent <unit>)
kills a given unit silently (doesn't make them play their normal death animation or sound)

(unit_get_custom_animation_time <unit>)
returns the number of ticks remaining in a unit's custom animation (or zero, if the animation is over).

(unit_stop_custom_animation <unit>)
stops the custom animation running on the given unit.

(unit_custom_animation_at_frame <unit> <animation_graph> <string> <boolean> <short>)
starts a custom animation playing on a unit at a specific frame index (interpolates into animation if next to last parameter is TRUE)

(custom_animation <unit> <animation_graph> <string> <boolean>)
starts a custom animation playing on a unit (interpolates into animation if last parameter is TRUE)

(custom_animation_list <object_list> <animation_graph> <string> <boolean>)
starts a custom animation playing on a unit list (interpolates into animation if last parameter is TRUE)

(unit_is_playing_custom_animation <unit>)
returns TRUE if the given unit is still playing a custom animation

(unit_aim_without_turning <unit> <boolean>)
allows a unit to aim in place without turning

(unit_set_emotion <unit> <short>)
sets a unit's facial expression (-1 is none, other values depend on unit)

(unit_set_enterable_by_player <unit> <boolean>)
can be used to prevent the player from entering a vehicle

(unit_enter_vehicle <unit> <vehicle> <string>)
puts the specified unit in the specified vehicle (in the named seat)

(vehicle_test_seat_list <vehicle> <string> <object_list>)
tests whether the named seat has an object in the object list

(vehicle_test_seat <vehicle> <string> <unit>)
tests whether the named seat has a specified unit in it

(unit_set_emotion_animation <unit> <string>)
sets the emotion animation to be used for the given unit

(unit_exit_vehicle <unit>)
makes a unit exit its vehicle

(unit_set_maximum_vitality <unit> <real> <real>)
sets a unit's maximum body and shield vitality

(units_set_maximum_vitality <object_list> <real> <real>)
sets a group of units' maximum body and shield vitality

(unit_set_current_vitality <unit> <real> <real>)
sets a unit's current body and shield vitality

(units_set_current_vitality <object_list> <real> <real>)
sets a group of units' current body and shield vitality

(vehicle_load_magic <unit> <string> <object_list>)
makes a list of units (named or by encounter) magically get into a vehicle, in the substring-specified seats (e.g. CD-passenger... empty string matches all seats)

(vehicle_unload <unit> <string>)
makes units get out of a vehicle from the substring-specified seats (e.g. CD-passenger... empty string matches all seats)

(magic_seat_name <string>)
all units controlled by the player will assume the given seat name (valid values are 'asleep', 'alert', 'stand', 'crouch' and 'flee')

(unit_set_seat <unit> <string>)
this unit will assume the named seat

(magic_melee_attack)
causes player's unit to start a melee attack

(vehicle_riders <unit>)
returns a list of all riders in a vehicle

(vehicle_driver <unit>)
returns the driver of a vehicle

(vehicle_gunner <unit>)
returns the gunner of a vehicle

(unit_get_health <unit>)
returns the health [0,1] of the unit, returns -1 if the unit does not exist

(unit_get_shield <unit>)
returns the shield [0,1] of the unit, returns -1 if the unit does not exists

(unit_get_total_grenade_count <unit>)
returns the total number of grenades for the given unit, 0 if it does not exist

(unit_has_weapon <unit> <object_definition>)
returns TRUE if the <unit> has <object> as a weapon, FALSE otherwise

(unit_has_weapon_readied <unit> <object_definition>)
returns TRUE if the <unit> has <object> as the primary weapon, FALSE otherwise

(unit_doesnt_drop_items <object_list>)
prevents any of the given units from dropping weapons or grenades when they die

(unit_impervious <object_list> <boolean>)
prevents any of the given units from being knocked around or playing ping animations

(unit_suspended <unit> <boolean>)
stops gravity from working on the given unit

(unit_solo_player_integrated_night_vision_is_active)
returns whether the night-vision mode could be activated via the flashlight button

(units_set_desired_flashlight_state <object_list> <boolean>)
sets the units' desired flashlight state

(unit_set_desired_flashlight_state <unit> <boolean>)
sets the unit's desired flashlight state

(unit_get_current_flashlight_state <unit>)
gets the unit's current flashlight state

(device_set_never_appears_locked <device> <boolean>)
changes a machine's never_appears_locked flag, but only if paul is a *******

(device_get_power <device>)
gets the current power of a named device

(device_set_power <device> <real>)
immediately sets the power of a named device to the given value

(device_set_position <device> <real>)
set the desired position of the given device (used for devices without explicit device groups)

(device_get_position <device>)
gets the current position of the given device (used for devices without explicit device groups)

(device_set_position_immediate <device> <real>)
instantaneously changes the position of the given device (used for devices without explicit device groups

(device_group_get <device_group>)
returns the desired value of the specified device group.

(device_group_set <device_group> <real>)
changes the desired value of the specified device group.

(device_group_set_immediate <device_group> <real>)
instantaneously changes the value of the specified device group.

(device_one_sided_set <device> <boolean>)
TRUE makes the given device one-sided (only able to be opened from one direction), FALSE makes it two-sided

(device_operates_automatically_set <device> <boolean>)
TRUE makes the given device open automatically when any biped is nearby, FALSE makes it not

(device_group_change_only_once_more_set <device_group> <boolean>)
TRUE allows a device to change states only once

(breakable_surfaces_reset)
restores all breakable surfaces

(cheat_all_powerups)
drops all powerups near player

(cheat_all_weapons)
drops all weapons near player

(cheat_spawn_warthog)
drops a warthog near player

(cheat_all_vehicles)
drops all vehicles on player

(cheat_teleport_to_camera)
teleports player to camera location

(cheat_active_camouflage)
gives the player active camouflage

(cheat_active_camouflage_local_player <short>)
gives the player active camouflage

(cheats_load)
reloads the cheats.txt file

(ai_free <ai>)
removes a group of actors from their encounter and sets them free

(ai_free_units <object_list>)
removes a set of units from their encounter (if any) and sets them free

(ai_attach <unit> <ai>)
attaches the specified unit to the specified encounter.

(ai_attach_free <unit> <actor_variant>)
attaches a unit to a newly created free actor of the specified type

(ai_detach <unit>)
detaches the specified unit from all AI.

(ai_place <ai>)
places the specified encounter on the map.

(ai_kill <ai>)
instantly kills the specified encounter and/or squad.

(ai_kill_silent <ai>)
instantly and silently (no animation or sound played) kills the specified encounter and/or squad.

(ai_erase <ai>)
erases the specified encounter and/or squad.

(ai_erase_all)
erases all AI.

(ai_select <ai>)
selects the specified encounter.

(ai_deselect)
clears the selected encounter.

(ai_spawn_actor <ai>)
spawns a single actor in the specified encounter and/or squad.

(ai_set_respawn <ai> <boolean>)
enables or disables respawning in the specified encounter.

(ai_set_deaf <ai> <boolean>)
enables or disables hearing for actors in the specified encounter.

(ai_set_blind <ai> <boolean>)
enables or disables sight for actors in the specified encounter.

(ai_magically_see_encounter <ai> <ai>)
makes one encounter magically aware of another.

(ai_magically_see_players <ai>)
makes an encounter magically aware of nearby players.

(ai_magically_see_unit <ai> <unit>)
makes an encounter magically aware of the specified unit.

(ai_timer_start <ai>)
makes a squad's delay timer start counting.

(ai_timer_expire <ai>)
makes a squad's delay timer expire and releases them to enter combat.

(ai_attack <ai>)
makes the specified platoon(s) go into the attacking state.

(ai_defend <ai>)
makes the specified platoon(s) go into the defending state.

(ai_retreat <ai>)
makes all squads in the specified platoon(s) maneuver to their designated maneuver squads.

(ai_maneuver <ai>)
makes all squads in the specified platoon(s) maneuver to their designated maneuver squads.

(ai_maneuver_enable <ai> <boolean>)
enables or disables the maneuver/retreat rule for an encounter or platoon. the rule will still trigger, but none of the actors will be given the order to change squads.

(ai_migrate <ai> <ai>)
makes all or part of an encounter move to another encounter.

(ai_migrate_and_speak <ai> <ai> <string>)
makes all or part of an encounter move to another encounter, and say their 'advance' or 'retreat' speech lines.

(ai_migrate_by_unit <object_list> <ai>)
makes a named vehicle or group of units move to another encounter.

(ai_allegiance <team> <team>)
creates an allegiance between two teams.

(ai_allegiance_remove <team> <team>)
destroys an allegiance between two teams.

(ai_living_count <ai>)
return the number of living actors in the specified encounter and/or squad.

(ai_living_fraction <ai>)
return the fraction [0-1] of living actors in the specified encounter and/or squad.

(ai_strength <ai>)
return the current strength (average body vitality from 0-1) of the specified encounter and/or squad.

(ai_swarm_count <ai>)
return the number of swarm actors in the specified encounter and/or squad.

(ai_nonswarm_count <ai>)
return the number of non-swarm actors in the specified encounter and/or squad.

(ai_actors <ai>)
converts an ai reference to an object list.

(ai_go_to_vehicle <ai> <unit> <string>)
tells a group of actors to get into a vehicle, in the substring-specified seats (e.g. passenger for pelican)... does not interrupt any actors who are already going to vehicles

(ai_go_to_vehicle_override <ai> <unit> <string>)
tells a group of actors to get into a vehicle, in the substring-specified seats (e.g. passenger for pelican)... NB: any actors who are already going to vehicles will stop and go to this one instead!

(ai_going_to_vehicle <unit>)
return the number of actors that are still trying to get into the specified vehicle

(ai_exit_vehicle <ai>)
tells a group of actors to get out of any vehicles that they are in

(ai_braindead <ai> <boolean>)
makes a group of actors braindead, or restores them to life (in their initial state)

(ai_braindead_by_unit <object_list> <boolean>)
makes a list of objects braindead, or restores them to life. if you pass in a vehicle index, it makes all actors in that vehicle braindead (including any built-in guns)

(ai_disregard <object_list> <boolean>)
if TRUE, forces all actors to completely disregard the specified units, otherwise lets them acknowledge the units again

(ai_prefer_target <object_list> <boolean>)
if TRUE, *ALL* enemies will prefer to attack the specified units. if FALSE, removes the preference.

(ai_teleport_to_starting_location <ai>)
teleports a group of actors to the starting locations of their current squad(s)

(ai_teleport_to_starting_location_if_unsupported <ai>)
teleports a group of actors to the starting locations of their current squad(s), only if they are not supported by solid ground (i.e. if they are falling after switching BSPs)

(ai_renew <ai>)
refreshes the health and grenade count of a group of actors, so they are as good as new

(ai_try_to_fight_nothing <ai>)
removes the preferential target setting from a group of actors

(ai_try_to_fight <ai> <ai>)
causes a group of actors to preferentially target another group of actors

(ai_try_to_fight_player <ai>)
causes a group of actors to preferentially target the player

(ai_command_list <ai> <ai_command_list>)
tells a group of actors to begin executing the specified command list

(ai_command_list_by_unit <unit> <ai_command_list>)
tells a named unit to begin executing the specified command list

(ai_command_list_advance <ai>)
tells a group of actors that are running a command list that they may advance further along the list (if they are waiting for a stimulus)

(ai_command_list_advance_by_unit <unit>)
just like ai_command_list_advance but operates upon a unit instead

(ai_command_list_status <object_list>)
gets the status of a number of units running command lists: 0 = none, 1 = finished command list, 2 = waiting for stimulus, 3 = running command list

(ai_is_attacking <ai>)
returns whether a platoon is in the attacking mode (or if an encounter is specified, returns whether any platoon in that encounter is attacking)

(ai_force_active <ai> <boolean>)
forces an encounter to remain active (i.e. not freeze in place) even if there are no players nearby

(ai_force_active_by_unit <unit> <boolean>)
forces a named actor that is NOT in an encounter to remain active (i.e. not freeze in place) even if there are no players nearby

(ai_set_return_state <ai> <ai_default_state>)
sets the state that a group of actors will return to when they have nothing to do

(ai_set_current_state <ai> <ai_default_state>)
sets the current state of a group of actors. WARNING: may have unpredictable results on actors that are in combat

(ai_playfight <ai> <boolean>)
sets an encounter to be playfighting or not

(ai_status <ai>)
returns the most severe combat status of a group of actors (0=inactive, 1=noncombat, 2=guarding, 3=search/suspicious, 4=definite enemy(heard or magic awareness), 5=visible enemy, 6=engaging in combat.

(ai_reconnect)
reconnects all AI information to the current structure bsp (use this after you create encounters or command lists in sapien, or place new firing points or command list points)

(ai_vehicle_encounter <unit> <ai>)
sets a vehicle to 'belong' to a particular encounter/squad. any actors who get into the vehicle will be placed in this squad. NB: vehicles potentially drivable by multiple teams need their own encounter!

(ai_vehicle_enterable_distance <unit> <real>)
sets a vehicle as being impulsively enterable for actors within a certain distance

(ai_vehicle_enterable_team <unit> <team>)
sets a vehicle as being impulsively enterable for actors on a certain team

(ai_vehicle_enterable_actor_type <unit> <actor_type>)
sets a vehicle as being impulsively enterable for actors of a certain type (grunt, elite, marine etc)

(ai_vehicle_enterable_actors <unit> <ai>)
sets a vehicle as being impulsively enterable for a certain encounter/squad of actors

(ai_vehicle_enterable_disable <unit>)
disables actors from impulsively getting into a vehicle (this is the default state for newly placed vehicles)

(ai_look_at_object <unit> <object>)
tells an actor to look at an object until further notice

(ai_stop_looking <unit>)
tells an actor to stop looking at whatever it's looking at

(ai_automatic_migration_target <ai> <boolean>)
enables or disables a squad as being an automatic migration target

(ai_follow_target_disable <ai>)
turns off following for an encounter

(ai_follow_target_players <ai>)
sets the follow target for an encounter to be the closest player

(ai_follow_target_unit <ai> <unit>)
sets the follow target for an encounter to be a specific unit

(ai_follow_target_ai <ai> <ai>)
sets the follow target for an encounter to be a group of AI (encounter, squad or platoon)

(ai_follow_distance <ai> <real>)
sets the distance threshold which will cause squads to migrate when following someone

(ai_conversation <conversation>)
tries to add an entry to the list of conversations waiting to play. returns FALSE if the required units could not be found to play the conversation, or if the player is too far away and the 'delay' flag is not set.

(ai_conversation_stop <conversation>)
stops a conversation from playing or trying to play

(ai_conversation_advance <conversation>)
tells a conversation that it may advance

(ai_conversation_line <conversation>)
returns which line the conversation is currently playing, or 999 if the conversation is not currently playing

(ai_conversation_status <conversation>)
returns the status of a conversation (0=none, 1=trying to begin, 2=waiting for guys to get in position, 3=playing, 4=waiting to advance, 5=could not begin, 6=finished successfully, 7=aborted midway

(ai_link_activation <ai> <ai>)
links the first encounter so that it will be made active whenever it detects that the second encounter is active

(ai_berserk <ai> <boolean>)
forces a group of actors to start or stop berserking

(ai_set_team <ai> <team>)
makes an encounter change to a new team

(ai_allow_charge <ai> <boolean>)
either enables or disables charging behavior for a group of actors

(ai_allow_dormant <ai> <boolean>)
either enables or disables automatic dormancy for a group of actors

(ai_allegiance_broken <team> <team>)
returns whether two teams have an allegiance that is currently broken by traitorous behavior

(camera_control <boolean>)
toggles script control of the camera.

(camera_set <cutscene_camera_point> <short>)
moves the camera to the specified camera point over the specified number of ticks.

(camera_set_relative <cutscene_camera_point> <short> <object>)
moves the camera to the specified camera point over the specified number of ticks (position is relative to the specified object).

(camera_set_animation <animation_graph> <string>)
begins a prerecorded camera animation.

(camera_set_first_person <unit>)
makes the scripted camera follow a unit.

(camera_set_dead <unit>)
makes the scripted camera zoom out around a unit as if it were dead.

(camera_time)
returns the number of ticks remaining in the current camera interpolation.

(debug_camera_load)
loads the saved camera position and facing.

(debug_camera_save)
saves the camera position and facing.

(game_speed <real>)
changes the game speed.

(game_time)
gets ticks elapsed since the start of the game.

(game_variant <string>)
set the game engine

(game_difficulty_get)
returns the current difficulty setting, but lies to you and will never return easy, instead returning normal

(game_difficulty_get_real)
returns the actual current difficulty setting without lying

(profile_service_clear_timers)
clears the timers that are present in the profiling service

(profile_service_dump_timers)
dumps the profiling service timers

(map_reset)
starts the map from the beginning.

(map_name <string>)
changes the name of the solo player map.

(multiplayer_map_name <string>)
changes the name of the multiplayer map

(game_difficulty_set <game_difficulty>)
changes the difficulty setting for the next map to be loaded.

(crash <string>)
crashes (for debugging).

(switch_bsp <short>)
changes to a different structure bsp

(structure_bsp_index)
returns the current structure bsp index

(version)
prints the build version.

(playback)
starts game in film playback mode

(quit)
quits the game

(texture_cache_flush)
Flushes out the cache from the commands used to predict textures.

(sound_cache_flush)
Flushes out the cache from the commands used to predict sounds.

(sound_cache_dump_to_file)

(debug_memory)
dumps memory leaks.

(debug_memory_by_file)
dumps memory leaks by source file.

(debug_memory_for_file <string>)
dumps memory leaks from the specified source file.

(debug_tags)
writes all memory being used by tag files into tag_dump.txt

(profile_reset)
resets profiling data.

(profile_dump <string>)
dumps profile based on a substring.

(profile_activate <string>)
activates profile sections based on a substring.

(profile_deactivate <string>)
deactivates profile sections based on a substring.

(profile_graph_toggle <string>)
enables or disables profile graph display of a particular value.

(debug_pvs <boolean>)
displays the current pvs.

(radiosity_start)
starts radiosity computation.

(radiosity_save)
saves radiosity solution.

(radiosity_debug_point)
tests sun occlusion at a point.

(ai <boolean>)
turns all AI on or off.

(ai_dialogue_triggers <boolean>)
turns impromptu dialogue on or off.

(ai_grenades <boolean>)
turns grenade inventory on or off.

(ai_lines)
cycles through AI line-spray modes

(ai_debug_sound_point_set)
drops the AI debugging sound point at the camera location

(ai_debug_vocalize <string> <string>)
makes the selected AI vocalize

(ai_debug_teleport_to <ai>)
teleports all players to the specified encounter

(ai_debug_speak <string>)
makes the currently selected AI speak a vocalization (e.g. ai_speak "pain minor")

(ai_debug_speak_list <string>)
makes the currently selected AI speak a list of vocalizations (e.g. ai_speak_list "involuntary")

(fade_in <real> <real> <real> <short>)
does a screen fade in from a particular color

(fade_out <real> <real> <real> <short>)
does a screen fade out to a particular color

(cinematic_start)
initializes game to start a cinematic (interruptive) cutscene

(cinematic_stop)
initializes the game to end a cinematic (interruptive) cutscene

(cinematic_abort)
aborts a cinematic

(cinematic_skip_start_internal)

(cinematic_skip_stop_internal)

(cinematic_show_letterbox <boolean>)
sets or removes the letterbox bars

(cinematic_set_title <cutscene_title>)
activates the chapter title

(cinematic_set_title_delayed <cutscene_title> <real>)
activates the chapter title, delayed by <real> seconds

(cinematic_suppress_bsp_object_creation <boolean>)
suppresses or enables the automatic creation of objects during cutscenes due to a bsp switch

(attract_mode_start)

(game_won)
causes the player to successfully finish the current level and move to the next

(game_lost)
causes the player to revert to his previous saved game

(game_safe_to_save)
returns FALSE if it would be a bad idea to save the player's game right now

(game_all_quiet)
returns FALSE if there are bad guys around, projectiles in the air, etc.

(game_safe_to_speak)
returns FALSE if it would be a bad idea to save the player's game right now

(game_is_cooperative)
returns TRUE if the game is cooperative

(game_save)
checks to see if it is safe to save game, then saves (gives up after 8 seconds)

(game_save_cancel)
cancels any pending game_save, timeout or not

(game_save_no_timeout)
checks to see if it is safe to save game, then saves (this version never gives up)

(game_save_totally_unsafe)
disregards player's current situation

(game_saving)
checks to see if the game is trying to save the map.

(game_revert)
reverts to last saved game or restarts level

(game_reverted)
don't use this for anything

(core_save)
saves debug game state to core\core.bin

(core_save_name <string>)
saves debug game state to core\<path>

(core_load)
loads debug game state from core\core.bin

(core_load_at_startup)
loads debug game state from core\core.bin as soon as the map is initialized

(core_load_name <string>)
loads debug game state from core\<path>

(core_load_name_at_startup <string>)
loads debug game state from core\<path> as soon as the map is initialized

(game_skip_ticks <short>)
skips <short> amount of game ticks. ONLY USE IN CUTSCENES!!!

(sound_impulse_predict <sound> <boolean>)
loads an impulse sound into the sound cache ready for playback.

(sound_impulse_start <sound> <object> <real>)
plays an impulse sound from the specified source object (or "none"), with the specified scale.

(sound_impulse_time <sound>)
returns the time remaining for the specified impulse sound.

(sound_impulse_stop <sound>)
stops the specified impulse sound.

(sound_looping_predict <looping_sound>)
your mom.

(sound_looping_start <looping_sound> <object> <real>)
plays a looping sound from the specified source object (or "none"), with the specified scale.

(sound_looping_stop <looping_sound>)
stops the specified looping sound.

(sound_looping_set_scale <looping_sound> <real>)
changes the scale of the sound (which should affect the volume) within the range 0 to 1.

(sound_looping_set_alternate <looping_sound> <boolean>)
enables or disables the alternate loop/alternate end for a looping sound.

(debug_sounds_enable <string> <boolean>)
enables or disabled all sound classes matching the substring.

(debug_sounds_distances <string> <real> <real>)
changes the minimum and maximum distances for all sound classes matching the substring.

(debug_sounds_wet <string> <real>)
changes the reverb level for all sound classes matching the substring.

(sound_enable <boolean>)
enables or disables all sound.

(sound_set_master_gain <real>)
Set the game's master gain

(sound_get_master_gain)
Returns the game's master gain

(sound_set_music_gain <real>)
Set the game's music gain

(sound_get_music_gain)
Returns the game's music gain

(sound_set_effects_gain <real>)
Set the game's effects gain

(sound_get_effects_gain)
Returns the game's effects gain

(sound_class_set_gain <string> <real> <short>)
changes the gain on the specified sound class(es) to the specified game over the specified number of ticks.

(vehicle_hover <vehicle> <boolean>)
stops the vehicle from running real physics and runs fake hovering physics instead.

(players_unzoom_all)
resets zoom levels on all players

(player_enable_input <boolean>)
toggle player input. the player can still free-look, but nothing else.

(player_camera_control <boolean>)
enables/disables camera control globally

(player_action_test_reset)
resets the player action test state so that all tests will return false.

(player_action_test_jump)
returns true if any player has jumped since the last call to (player_action_test_reset).

(player_action_test_primary_trigger)
returns true if any player has used primary trigger since the last call to (player_action_test_reset).

(player_action_test_grenade_trigger)
returns true if any player has used grenade trigger since the last call to (player_action_test_reset).

(player_action_test_zoom)
returns true if any player has hit the zoom button since the last call to (player_action_test_reset).

(player_action_test_action)
returns true if any player has hit the action key since the last call to (player_action_test_reset).

(player_action_test_accept)
returns true if any player has hit accept since the last call to (player_action_test_reset).

(player_action_test_back)
returns true if any player has hit the back key since the last call to (player_action_test_reset).

(player_action_test_look_relative_up)
returns true if any player has looked up since the last call to (player_action_test_reset).

(player_action_test_look_relative_down)
returns true if any player has looked down since the last call to (player_action_test_reset).

(player_action_test_look_relative_left)
returns true if any player has looked left since the last call to (player_action_test_reset).

(player_action_test_look_relative_right)
returns true if any player has looked right since the last call to (player_action_test_reset).

(player_action_test_look_relative_all_directions)
returns true if any player has looked up, down, left, and right since the last call to (player_action_test_reset).

(player_action_test_move_relative_all_directions)
returns true if any player has moved forward, backward, left, and right since the last call to (player_action_test_reset).

(player_add_equipment <unit> <starting_profile> <boolean>)
adds/resets the player's health, shield, and inventory (weapons and grenades) to the named profile. resets if third parameter is true, adds if false.

(debug_teleport_player <short> <short>)

(show_hud <boolean>)
shows or hides the hud

(show_hud_help_text <boolean>)
shows or hides the hud help text

(enable_hud_help_flash <boolean>)
starts/stops the help text flashing

(hud_help_flash_restart)
resets the timer for the help text flashing

(activate_nav_point_flag <navpoint> <unit> <cutscene_flag> <real>)
activates a nav point type <string> attached to (local) player <unit> anchored to a flag with a vertical offset <real>. If the player is not local to the machine, this will fail

(activate_nav_point_object <navpoint> <unit> <object> <real>)
activates a nav point type <string> attached to (local) player <unit> anchored to an object with a vertical offset <real>. If the player is not local to the machine, this will fail

(activate_team_nav_point_flag <navpoint> <team> <cutscene_flag> <real>)
activates a nav point type <string> attached to a team anchored to a flag with a vertical offset <real>. If the player is not local to the machine, this will fail

(activate_team_nav_point_object <navpoint> <team> <object> <real>)
activates a nav point type <string> attached to a team anchored to an object with a vertical offset <real>. If the player is not local to the machine, this will fail

(deactivate_nav_point_flag <unit> <cutscene_flag>)
deactivates a nav point type attached to a player <unit> anchored to a flag

(deactivate_nav_point_object <unit> <object>)
deactivates a nav point type attached to a player <unit> anchored to an object

(deactivate_team_nav_point_flag <team> <cutscene_flag>)
deactivates a nav point type attached to a team anchored to a flag

(deactivate_team_nav_point_object <team> <object>)
deactivates a nav point type attached to a team anchored to an object

(hud_team_icon_set_pos <long> <long>)

(hud_team_icon_set_scale <real> <real>)

(hud_team_background_set_pos <long> <long>)

(hud_team_background_set_scale <real> <real>)

(cls)
clears console text from the screen

(connect <string> <string>)
Attempt to connect to server - use ip:port password as parameters

(disconnect)
Disconnect from a server

(hammer_begin <string> <string> <long> <short> <short>)
hammers the server by connecting and disconnecting repeatedly.

(hammer_stop)
stops hammering the server.

(network_server_dump)
Dumps info on network server.

(network_client_dump)
Dumps info on network client.

(net_graph_clear)
Clears the net_graph.

(net_graph_show <string> <string>)
Changes the net_graph display (bytes/packets, sent/received)

(play_update_history <long> <boolean>)
Playback client input history starting from the specified last completed update id.

(show_player_update_stats)
Shows update history playback stats.

(message_metrics_clear)
clears network messaging metrics

(message_metrics_dump <string>)
dumps network messaging metrics to given file ("" for default)

(error_overflow_suppression <boolean>)
enables or disables the suppression of error spamming

(structure_lens_flares_place)
places lens flares in the structure bsp

(player_effect_set_max_translation <real> <real> <real>)
<x> <y> <z>

(player_effect_set_max_rotation <real> <real> <real>)
<yaw> <pitch> <roll>

(player_effect_set_max_vibrate <real> <real>)
<left> <right>

(player_effect_start <real> <real>)
<max_intensity> <attack time>

(player_effect_stop <real>)
<decay>

(hud_show_health <boolean>)
hides/shows the health panel

(hud_blink_health <boolean>)
starts/stops manual blinking of the health panel

(hud_show_shield <boolean>)
hides/shows the shield panel

(hud_blink_shield <boolean>)
starts/stops manual blinking of the shield panel

(hud_show_motion_sensor <boolean>)
hides/shows the motion sensor panel

(hud_blink_motion_sensor <boolean>)
starts/stops manual blinking of the motion sensor panel

(hud_show_crosshair <boolean>)
hides/shows the weapon crosshair

(hud_clear_messages)
clears all non-state messages on the hud

(hud_set_help_text <hud_message>)
displays <message> as the help text

(hud_set_objective_text <hud_message>)
sets <message> as the current objective

(hud_set_timer_time <short> <short>)
sets the time for the timer to <short> minutes and <short> seconds, and starts and displays timer

(hud_set_timer_warning_time <short> <short>)
sets the warning time for the timer to <short> minutes and <short> seconds

(hud_set_timer_position <short> <short> <hud_corner>)
sets the timer upper left position to (x, y)=>(<short>, <short>)

(show_hud_timer <boolean>)
displays the hud timer

(pause_hud_timer <boolean>)
pauses or unpauses the hud timer

(hud_get_timer_ticks)
returns the ticks left on the hud timer

(time_code_show <boolean>)
shows the time code timer

(time_code_start <boolean>)
starts/stops the time code timer

(time_code_reset)
resets the time code timer

(reload_shader_transparent_chicago)

(rasterizer_reload_effects)
check for shader changes

(set_gamma <long>)
set the gamma

(rasterizer_fixed_function_ambient <long>)
set the ambient light value for fixed function

(rasterizer_decals_flush)
flush all decals

(rasterizer_fps_accumulate)
average fps

(rasterizer_model_ambient_reflection_tint <real> <real> <real> <real>)

(rasterizer_lights_reset_for_new_map)

(script_screen_effect_set_value <short> <real>)
sets a screen effect script value

(cinematic_screen_effect_start <boolean>)
starts screen effect; pass TRUE to clear

(cinematic_screen_effect_set_convolution <short> <short> <real> <real> <real>)
sets the convolution effect

(cinematic_screen_effect_set_filter <real> <real> <real> <real> <boolean> <real>)
sets the filter effect

(cinematic_screen_effect_set_filter_desaturation_tint <real> <real> <real>)
sets the desaturation filter tint color

(cinematic_screen_effect_set_video <short> <real>)
sets the video effect: <noise intensity[0,1]>, <overbright: 0=none, 1=2x, 2=4x>

(cinematic_screen_effect_stop)
returns control of the screen effects to the rest of the game

(cinematic_set_near_clip_distance <real>)

(delete_save_game_files)
delete all custom profile files

(fast_setup_network_server <string> <string> <boolean>)
sets up a network server with the given map name, game variant, and true for remote connections, false for not

(profile_unlock_solo_levels)
unlocks all the solo player levels for player 1's profile

(player0_look_invert_pitch <boolean>)
invert player0's look

(player0_look_pitch_is_inverted)
returns TRUE if player0's look pitch is inverted

(player0_joystick_set_is_normal)
returns TRUE if player0 is using the normal joystick set

(ui_widget_show_path <boolean>)
blah blah

(display_scenario_help <short>)
display in-game help dialog

(sound_enable_eax <boolean>)
Enable or disable EAX extensions

(sound_eax_enabled)
Returns true if EAX extensions are enabled

(sound_set_env <short>)
Change environment preset

(sound_enable_hardware <boolean> <boolean>)
Enable or disable hardware sound buffers

(sound_set_supplementary_buffers <short> <boolean>)
Set the amount of supplementary buffers

(sound_get_supplementary_buffers)
Get the amount of supplementary buffers

(sound_set_rolloff <real>)
Set the DSound rolloff value

(sound_set_factor <real>)
Set the DSound factor value

(input_get_joy_count)
test function to return the number of joysticks enumerated

(input_is_joy_active <short>)
test function to determine if an enumerated joystick is activated or not

(input_activate_joy <short> <short>)
activates an enumerated joystick into a logical joystick slot

(input_deactivate_joy <short>)
deactivates an enumerated joystick, freeing up the logical joystick slot

(input_find_joystick <string>)
test function to find a joystick by GUID (string representation)

(input_show_joystick_info)
test function to show the enumerated joystick information for all joystick

(input_find_default <string>)
test function that looks up a default profile for a deviceid

(config_one_control <string>)
test function to configure a single control

(get_yaw_rate <short>)
gets the yaw rate for the given player number

(get_pitch_rate <short>) gets the yaw rate for the given player number

(set_yaw_rate <short> <real>)
sets the yaw rate for the given player number

(set_pitch_rate <short> <real>)
sets the yaw rate for the given player number

(get_digital_forward_throttle <short>)
gets the amount of forward throttle applied by digital device stimuli

(set_digital_forward_throttle <short> <real>)
sets the amount of forward throttle applied by digital device stimuli

(get_digital_strafe_throttle <short>)
gets the amount of strafe throttle applied by digital device stimuli

(set_digital_strafe_throttle <short> <real>)
sets the amount of strafe throttle applied by digital device stimuli

(get_digital_yaw_increment <short>)
gets the increment in yaw applied by digital device stimuli

(set_digital_yaw_increment <short> <real>)
sets the increment in yaw applied by digital device stimuli

(get_digital_pitch_increment <short>)
gets the increment in pitch applied by digital device stimuli

(set_digital_pitch_increment <short> <real>)
sets the increment in pitch applied by digital device stimuli

(get_mouse_forward_threshold <short>)
gets the threshold beyond which mouse movement is full forward throttle

(set_mouse_forward_threshold <short> <real>)
sets the threshold beyond which mouse movement is full forward throttle

(get_mouse_strafe_threshold <short>)
gets the threshold beyond which mouse movement is full strafe throttle

(set_mouse_strafe_threshold <short> <real>)
sets the threshold beyond which mouse movement is full strafe throttle

(get_mouse_yaw_scale <short>)
gets the scale for mouse control of yaw

(set_mouse_yaw_scale <short> <real>)
sets the scale for mouse control of yaw

(get_mouse_pitch_scale <short>)
gets the scale for mouse control of pitch

(set_mouse_pitch_scale <short> <real>)
sets the scale for mouse control of pitch

(get_gamepad_forward_threshold <short>)
gets the threshold beyond which gamepad movement is full forward throttle

(set_gamepad_forward_threshold <short> <real>)
sets the threshold beyond which gamepad movement is full forward throttle

(get_gamepad_strafe_threshold <short>)
gets the threshold beyond which gamepad movement is full strafe throttle

(set_gamepad_strafe_threshold <short> <real>)
sets the threshold beyond which gamepad movement is full strafe throttle

(get_gamepad_yaw_scale <short>)
gets the scale for gamepad control of yaw

(set_gamepad_yaw_scale <short> <real>)
sets the scale for gamepad control of yaw

(get_gamepad_pitch_scale <short>)
gets the scale for gamepad control of pitch

(set_gamepad_pitch_scale <short> <real>)
sets the scale for gamepad control of pitch

(bind <string> <string> <string>)
binds an input device/button combination to a game control

(unbind <string> <string>)
unbinds an input device/button combination

(print_binds)
prints a list of all input bindings

(sv_end_game)
End the current game.

(change_team <short>)
change your team (0=red,1=blue,else=auto

(sv_mapcycle)
Print the contents of the currently loaded mapcycle file

(sv_mapcycle_begin)
Restart or begin playing the currently loaded mapcycle file

(sv_mapcycle_add <string> <string>)
Usage: sv_mapcycle_add <mapname> <variantname> Add a new game to the end of the mapcycle file.

(sv_mapcycle_del <long>)
Usage: sv_mapcycle_del <index> Removes the game at <index>. Will not affect running games.

(sv_map_next)
<Server Only> Abort the current game and begin the next game in the playlist

(sv_map_reset)
<Server Only> Reset the current game

(sv_map <string> <string>)
<Server Only> Usage: "sv_map <mapname> <variantname>" Abort current game and playlist and start specified game

(rcon [rcon password] [command])
Sends a command for server to execute at console. Use \" to send quotes.

(sv_rcon_password [remote console password])
Sets the server remote console password. If no password is given, displays the current password. Enter "" to disable rcon.

(sv_say <string>)
<Server Only> Usage: "sv_say <message>" Send a message to users

(sv_players)
<Server Only> Print a list of players in the current game

(sv_kick <string>)
<Server Only> Usage: sv_kick <player # or name> Kicks the specified player from the server

(sv_ban [player # or name] opt:[duration (#)(m,h,d)])
<Server Only> Player is kicked and added to banned.txt. Use sv_players to find the index. Specify optional duration for timed ban. Use 0 to follow sv_ban_penalty rules.

(sv_banlist)
Print a list of banned players

(sv_unban <long>)
<Server Only> Usage: sv_unban <index> Removes player at index in the banlist. Use sv_banlist to find the index

(sv_parameters_reload)
<Server Only> Usage: sv_parameters_reload Reloads the parameters.cfg file.

(sv_parameters_dump)
Dumps out the local parameter configuration to parameters.cfg file.

(sv_status)
Shows status of the server

(sv_name [name])
Sets the name of the server. If no name is given, displays the current name.

(sv_password [password])
Sets the server password. If no password is given, displays the current password.

(sv_log_note <string>)
Leave a note in the server log

(sv_log_file [log file name])
Sets the server log file name. If no name is given, displays the current log file name.

(sv_log_enabled ["1" to enable, "0" to disable])
Enables or disables server logging. If 0/1 is not given, displays the current logging status.

(sv_log_rotation_threshold [threshold in kilobytes])
Sets the log rotation threshold. When a log file's size (in kilobytes) exceeds this number, it will be rotated. Set to 0 to disable log rotation. If the threshold is not specified, displays the current threshold.

(sv_log_echo_chat [preference])
Enables or disbles chat echo to the console. Set the preference to 0 to disable chat echo, or 1 to enable chat echo. If the preference is not specified, displays the current preference.

(profile_load <string>)
Load any included builtin profiles and create profiles on disk.

(track_remote_player_position_updates <string>)
Sets the name of the remote player whose position update are to be tracked.

(remote_player_stats <string>)
Displays the prediction stats of the specified remote player.

(sv_get_player_action_queue_length <string>)
Displays the action queue length for the specified player.

(thread_sleep <long>)
Sleeps the calling thread for the specified number of ms.

(checkpoint_save)
save last solo checkpoint

(checkpoint_load <string>)
load a saved checkpoint

(sv_maplist [substring])
Display a list of maps, matching an optional substring.

(sv_gamelist [substring])
Display a list of game types, matching an optional substring.

(sv_friendly_fire ["0" = defaults, "1" = off, "2" = shields, "3" = on])
Use to provide a global override for the gametype friendly fire setting.

(sv_timelimit ["-1" = default, "0" = infinite, <time in minutes>])
Use to provide a global override for the gametype timelimit setting.

(sv_ban_penalty [(#)(m,h,d), 0=infinite])
specify up to 4 ban times for repeat ban/TK offenders.

(sv_tk_grace [time (#)(s,m)])

(sv_tk_cooldown [time (#)(s,m)])
Specify a TK point cooldown period, after which players lose a TK point.

(sv_banlist_file [alphanumeric banlist file suffix])
Sets and opens the file to be used for the player ban list.

(sv_maxplayers [1 - 16])
Sets the maximum number of players (between 1 and 16). If no value is given, displays the current value.

(sv_single_flag_force_reset [boolean])
Force the flag to reset in single flag CTF games when the timer expires, even if held by a player. If not specified, displays the current value.

(sv_motd [motd file name])
Sets the server message of the day file name. If no name is given, displays the current motd file name. Set to "" to turn motd off.

(oid_watch)
Sets/displays translated object table watch parameters.

(oid_dump)
dumps the whole translated object table to network.log

(oid_status)
displays the status of the translated object table.

ReferencesEdit

Developer's Mode Codes supplied by Halo Maps, via use of the "hs_doc" command in Sapien.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.