Skip to content

Entity Manager

GeckoN edited this page Jan 31, 2017 · 3 revisions

The Entity Manager plugin contains a number of debug commands that can be used to make map development easier. All commands are chat based, which allows you to type them in game chat to execute them.

Chat Commands

The following chat commands are available:

Command Description Usage
!hurtclass Hurts all entities that have the given classname. If no damage amount is specified, deals 5000 damage. DMG_BLAST is used as the damage type. !hurtclass <classname> <damage(optional)>
!killclass Kills all entities that have the given classname. Behaves like killtarget does, in that it will immediately remove the entity without first dealing damage to physically kill it. !killtarget <classname>
!killtarget Kills all entities that have the given targetname. Behaves identically to killtarget. !killtarget <targetname>
!listentityinfo Lists general entity info for all instances of a given classname. Currently outputs targetname and target. !listentityinfo <classname>
!killinsphere Similar to !killclass, but will kill all entities with the given classname in a given radius. !killinsphere <classname> <radius>
!setscale Sets the scale of the currently targeted entity. Note: passing very small scale values can result in entities becoming too small to target. Passing very large scale values can result in entities blocking movement due to covering the entire map. !setscale <scale>
!speed Sets the speed variable of the entity that you are currently standing on. Entities like trains and platforms use speed to indicate their current movement speed, in units per seconds. Note: setting high speed values can result in physics defying behavior, such as trains skipping parts of their track and flying through world geometry. Handle with care. !speed <speed in units/sec>
!triggerinsphere Triggers all entities in a given radius. Can optionally specify a use type. Use type is the numeric constant that the use type has. Note: triggering all entities can result in various entities breaking. Handle with care. !triggerinsphere <radius> <use type (optional)>
!listentities Generates a list of all entities currently in the map, and the number of instances. The list is output to your console. !listentities
!listweapons Generates a list of all weapons you currently have in your inventory. The list is output to your console. !listentities
!setview Sets your view to another entity's view. If no arguments are specified, resets your view to your own. !setview player <player name>: Sets your view to the view of another player. Usually doesn't work properly, but still has an effect on your view.
!setview targetname <entity targetname>: Sets your view to the given entity's origin and angles. You will look out from the origin in most cases.
!setview classname <entity classname>: Sets your view to the first found entity that has the given classname. You will look out from the origin in most cases.
!sethealth Sets your health to the given value. You cannot set your health to a negative value or 0. !sethealth <health>
!setarmor Sets your armor to the given value.You cannot set your health to a negative value. !setarmor <armor>
!settargethealth Sets the health of the current entity you're looking at to the given health. You cannot set health to a negative value or 0. !settargethealth <health>
!triggerahead Triggers the entity that you're currently looking at. Use type is USE_TOGGLE. !triggerahead
!renametarget Renames the entity that you're currently looking at. You cannot erase a targetname. !renametarget <new name>
!flags Displays, sets or clears entity flags (pev.flags) !flags #: Displays flags
!flags + <index>: Sets the flag at the given index. The index is 0 based, and is converted to a flag value using bitshifting: 1 << index.
!flags - <index>: Clears the flag at the given index. The index is 0 based, and is converted to a flag value using bitshifting: 1 << index.
!removetarget Removes the entity you're currently looking at. Behaves like !killtarget, except you don't specify a targetname. !removetarget
!killallplayers Kills all players in the server. Uses the world as the attacker and inflictor, applies 10000 damage, DMG_GENERIC damage type. !killallplayers
!killallbutme Identical to !killallplayers, except you are not killed. !killallbutme
!makeplayersnonsolid Makes all players non-solid. !makeplayersnonsolid
!makeplayerssolid Makes all players solid. !makeplayerssolid
!respawnallplayers Respawns all players. !respawnallplayers
!setkeyvalue Sets a keyvalue for a given entity. !setkeyvalue <targetname> <key> <value>
!entindex Gets the entity index of the entity that you are currently looking at. !entindex
!myhullsize Outputs your current hull size to game chat. Only you can see this output. !myhullsize

Plugin Configuration

No configuration file exists for this plugin.

Notes

  1. This plugin uses console commands and thus, requires a console command namespace to be set in the plugin list file.
Clone this wiki locally