Updated Debug Commands (markdown)

Blixibon 2020-06-27 08:42:59 -05:00
parent 58c0421984
commit 026ec75027

@ -1,6 +1,8 @@
Mapbase changes existing debug console commands and also has its own. These commands are supposed to assist in debugging problems and/or messing around with cheats.
## ent_fire
## Changes to existing commands
### ent_fire
`ent_fire` is an existing command that could fire an input on an entity, or a number of entities. The syntax is `ent_fire <target> <input> <optional: parameter> <optional: delay>`.
@ -8,13 +10,13 @@ Mapbase changes existing debug console commands and also has its own. These comm
There was also an oversight with the delay parameter that prevented decimals from being used. This has been fixed in Mapbase.
## ent_teleport, ent_text
### ent_teleport, ent_text
`ent_teleport` and `ent_text` are existing commands that do two completely separate things. `ent_teleport` teleports a named entity to a location and `ent_text` shows debug information on an entity in `developer` mode.
Both support looking through the entity list, but they didn't have auto-completion like `ent_fire` does. Mapbase gives them the same entity list auto-completion function as `ent_fire`, which is extremely useful if you use the commands often.
## ent_create, npc_create, etc.
### ent_create, npc_create, etc.
`ent_create` is an existing command that could create an entity where a player is looking. `npc_create` is a similar existing command that could create a NPC where the player is looking, using a hull check to make sure the NPC could fit in the position.
@ -22,7 +24,7 @@ Mapbase adds auto-completion to both commands, searching through the entity fact
`npc_create_aimed` is an existing command identical to `npc_create`, except it spawns the NPC facing away from the player that spawned it. Mapbase also adds `ent_create_aimed`, a new command equivalent to `npc_create_aimed`, except for `ent_create`. Both commands use the same auto-completion changes mentioned above.
## npc_select, etc.
### npc_select, etc.
`npc_select` is an existing command that lets NPCs get "selected" for debugging purposes, such as to make them perform special actions or print additional information to the console.