- scriptified the Heresiarch.

This commit is contained in:
Christoph Oelckers 2016-11-29 17:17:10 +01:00
commit f17f6c30c2
7 changed files with 461 additions and 596 deletions

View file

@ -842,6 +842,13 @@ DEFINE_ACTION_FUNCTION(DObject, GameType)
ACTION_RETURN_INT(gameinfo.gametype);
}
DEFINE_ACTION_FUNCTION(DObject, BAM)
{
PARAM_PROLOGUE;
PARAM_FLOAT(ang);
ACTION_RETURN_INT(DAngle(ang).BAMs());
}
DEFINE_ACTION_FUNCTION(FStringTable, Localize)
{
PARAM_PROLOGUE;
@ -856,4 +863,5 @@ DEFINE_ACTION_FUNCTION(FString, Replace)
PARAM_STRING(s2);
self->Substitute(*s1, *s2);
return 0;
}
}