- Added a summonfoe CCMD, which is analagous to summonfriend but forces the

summoned creature to be hostile instead.


SVN r453 (trunk)
This commit is contained in:
Randy Heit 2007-01-16 03:04:00 +00:00
commit f0f976c4f5
5 changed files with 39 additions and 8 deletions

View file

@ -745,3 +745,21 @@ CCMD (summonfriend)
Net_WriteString (type->TypeName.GetChars());
}
}
CCMD (summonfoe)
{
if (CheckCheatmode ())
return;
if (argv.argc() > 1)
{
const PClass *type = PClass::FindClass (argv[1]);
if (type == NULL)
{
Printf ("Unknown class '%s'\n", argv[1]);
return;
}
Net_WriteByte (DEM_SUMMONFOE);
Net_WriteString (type->TypeName.GetChars());
}
}