- scriptified the Acolyte.

This commit is contained in:
Christoph Oelckers 2016-11-28 10:41:36 +01:00
commit 7ea9f60464
7 changed files with 87 additions and 94 deletions

View file

@ -486,6 +486,14 @@ void player_t::SetLogNumber (int num)
}
}
DEFINE_ACTION_FUNCTION(_PlayerInfo, SetLogNumber)
{
PARAM_SELF_STRUCT_PROLOGUE(player_t);
PARAM_INT(log);
self->SetLogNumber(log);
return 0;
}
void player_t::SetLogText (const char *text)
{
LogText = text;
@ -496,6 +504,14 @@ void player_t::SetLogText (const char *text)
AddToConsole(-1, "\n");
}
DEFINE_ACTION_FUNCTION(_PlayerInfo, SetLogText)
{
PARAM_SELF_STRUCT_PROLOGUE(player_t);
PARAM_STRING(log);
self->SetLogText(log);
return 0;
}
int player_t::GetSpawnClass()
{
const PClass * type = PlayerClasses[CurrentPlayerClass].Type;