- "myinfo" - executes info on oneself
- "targetinv" - executes "printinv" at current crosshair target
This commit is contained in:
parent
f3762934e3
commit
5e171824ac
2 changed files with 34 additions and 0 deletions
|
|
@ -906,6 +906,16 @@ CCMD(info)
|
|||
"the NOBLOCKMAP flag or have height/radius of 0.\n");
|
||||
}
|
||||
|
||||
CCMD(myinfo)
|
||||
{
|
||||
if (CheckCheatmode () || players[consoleplayer].mo == NULL) return;
|
||||
Printf("Target=%s, Health=%d, Spawnhealth=%d\n",
|
||||
players[consoleplayer].mo->GetClass()->TypeName.GetChars(),
|
||||
players[consoleplayer].mo->health,
|
||||
players[consoleplayer].mo->SpawnHealth());
|
||||
PrintMiscActorInfo(players[consoleplayer].mo);
|
||||
}
|
||||
|
||||
typedef bool (*ActorTypeChecker) (AActor *);
|
||||
|
||||
static bool IsActorAMonster(AActor *mo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue