Skip to content

Console commands and variables

CppAndre edited this page Oct 6, 2017 · 5 revisions

List of console commands and variables for PreyRun version 1.0.5.

General

pr_autopause

If set to 1 it will set pr_freeeze to 1 after changing the map. This is useful for segmented speedruns.

pr_autojump

If set to 1 you automatically jump when holding down your jump key (_moveup).

pr_disablejukeboxes

If set to 1 all jukeboxes will be muted. Helps with copyright issues.

pr_reload

Will load the most recent made save game during this session.

pr_freeze

If set to 1 the game will be completely frozen until set back to 0.

Timing

pr_timer_autostart

If set to 1 the in-game timer will automatically start on run begin. (check pr_timer_methode for when this might be)

pr_timer_autostop

If set to 1 the in-game timer will automatically stop on run end. (check pr_timer_methode for when this might be)

pr_timer_methode

Select type of run your planning to do. 0 - RTA - Real Time Attack, the whole game from start (the first frame you can control Tommy) to finish (when the sphere boss is killed) with game time (default) 1 - Individual Level, Starts when a map or save game, is loaded and stops when the map has been completed.

pr_timer_backup

If set to 1 will backup the in-game timer every pr_timer_backup_interval milliseconds. Timer will automatically be recovered after the game crashes and you load the map you were on.

HUD

The following settings universally accept either 0 or 1 to control if the associated HUD element should be drawn. Most of them have *_x, *_y variables to control their location on the screen and *_r, *_g, *_b variables to change the color.

pr_hud

Controls whether the custom PreyRun HUD elements should be drawn.

pr_hud_ammo

Displays your ammo in numbers (White = loaded magazine, Yellow = empty magazine, Red = No ammo left)

pr_hud_custom

Displays what ever is set in pr_hud_custom_text.

pr_hud_damage

Displays the damage you received.

pr_hud_damage_style

Controls if only the last damage you received (0) should be displayed or from the last couple of seconds (1).

pr_hud_distance

Displays the distance from your viewpoint to what ever your aiming at.

pr_hud_entityinfo

Displays information (health, maximum health, name) of the entity aimed at.

pr_hud_health

Displays your current health and maximum health. (White above 25 HP, Yellow = below 25 HP, Red = dead, Grey = god mode)

pr_hud_jumpspeed

Displays the speed recorded immediately after the previous jump.

pr_hud_jumpspeed_style

0 - Always display your jumpspeed. 1 - Display will fade out while on the ground. 2 - Only display while in the air.

pr_hud_keys

Displays the the currently pressed movement keys. The style can be changed with pr_hud_keys_style.

pr_hud_keys_style

Select the style in which the pressed movement keys are displayed. 0 - Under the crosshair, only pressed keys are shown 1 - Under the crosshair, pressed keys are white and not pressed keys are grey 2 - Around the crosshair, only pressed keys are shown 3 - Around the crosshair, pressed keys are white and not pressed keys are grey 4 - At the right side of the screen, only pressed keys are displayed 5 - At the right side of the screen, pressed keys are white and not not pressed keys are grey

pr_hud_location

Displays your current position in the level.

pr_hud_location_methode

Select which position should be displayed in 'pr_hud_location'. 0 - Display eye (viewpoint) position (default) 1 - Display feet position

pr_hud_speedometer

Displays your current velocity.

pr_hud_spiritpower

Displays your current and maximum spirit power. Will be greyed out when not having the ability to spirit walk.

pr_hud_timer

Displays a timer which can be controlled with pr_timer_* commands.

pr_hud_rtatimer

Same as 'pr_hud_timer' except it will display RTA instead of game time.

pr_hud_velocity

Displays detailed information about your velocity.

pr_hud_viewangles

Displays your yaw, pitch and roll angles in degrees relative to the global axes

LiveSplit / PreySplit

pr_preysplit

If set to 1 will enable support for interaction with PreySplit.

pr_preysplit_update

The time in milliseconds PreyRun should wait before updating the game timer of LiveSplit again, note that this is only for displaying the current game time the splits will always be accurate.

pr_preysplit_split

Tells PreySplit to do a custom split.

Autocommandzone

pr_autocmd_add <StartX> <StartY> <StartZ> <EndX> <EndY> <EndZ> <Commands to execute>

Creates a new autocommandzone with the specified start and end point. When the player enters this zone <Commands to exeute> will be executed. Multiple commands must be separated a ;.

pr_autocmd_clear

This command will remove all autocommandzones. (Will be automatically executed on map change)

pr_autocmd_edit <Index> <StartX> <StartY> <StartZ> <EndX> <EndY> <EndZ> <Commands to execute>

Allows you edit a autocommandzone. Index can be retrieved by pr_autocmd_list.

pr_autocmd_list

Lists all autocommandzones with index, start point, end point and commands to execute.

pr_autocmd_remove

Removes an autocommandzone by index. The index can be retrieved from pr_autocmd_list

pr_autocmd_show

If set to 1 displays all autocommandzones in game. (Note that developer must be set to 1)

Cheat commands

pr_ch_sethealth <health>

Sets your health to the specified value.

pr_ch_setpos <x> <y> <z>

Sets your position to the specified coordinates.

pr_ch_setpos_offset <dx> <dy> <dz>

Offsets your position by the specified amount. This is equivalent to adding dx, dy, and dz to the current position.

pr_ch_setspiritpower <power>

Sets your current spirit power to the specified value.

Clone this wiki locally