- scriptified a large part of the weapon code.

This commit is contained in:
Christoph Oelckers 2017-01-19 17:40:34 +01:00
commit 19b1c10ba8
22 changed files with 463 additions and 445 deletions

View file

@ -643,6 +643,11 @@ DEFINE_ACTION_FUNCTION(_PlayerInfo, GetUserName)
ACTION_RETURN_STRING(self->userinfo.GetName());
}
DEFINE_ACTION_FUNCTION(_PlayerInfo, GetNeverSwitch)
{
PARAM_SELF_STRUCT_PROLOGUE(player_t);
ACTION_RETURN_BOOL(self->userinfo.GetNeverSwitch());
}
//===========================================================================
//