Skip to content

Debug Commands

Blixibon edited this page Dec 4, 2019 · 7 revisions

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

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>.

ent_fire includes an "auto-completion" lookup for entities in the map and inputs on an entity, but the entity lookup is not used for classnames by default. ent_fire still works with classnames, but it won't auto-complete. Mapbase adds auto-completion for classnames so they show up as well as targetnames.

There was also an oversight with the delay parameter that prevented decimals from being used. This has been fixed in Mapbase.

ent_create, npc_create, etc.

Not implemented in public build; v1.2 change

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.

Mapbase adds auto-completion to both commands, searching through the entity factory list and allowing the commands to auto-complete based on spawnable entity classes. (todo: make npc_create only show entities prefixed with npc_)

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.

(todo)

Clone this wiki locally