- 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:
parent
de18276b24
commit
f0f976c4f5
5 changed files with 39 additions and 8 deletions
18
src/info.cpp
18
src/info.cpp
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue