- scriptified ArtiBlastRadius.

This commit is contained in:
Christoph Oelckers 2016-11-26 09:51:14 +01:00
commit 4e802652c7
12 changed files with 273 additions and 175 deletions

View file

@ -22,7 +22,6 @@
//-----------------------------------------------------------------------------
// HEADER FILES ------------------------------------------------------------
#include <float.h>
#include "templates.h"
#include "i_system.h"
@ -3342,6 +3341,16 @@ bool AActor::SpecialBlastHandling (AActor *source, double strength)
return true;
}
// This only gets called from the script side so we do not need a native wrapper like for the other virtual methods.
DEFINE_ACTION_FUNCTION(AActor, SpecialBlastHandling)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_OBJECT(source, AActor);
PARAM_FLOAT(strength);
ACTION_RETURN_BOOL(self->SpecialBlastHandling(source, strength));
}
int AActor::SpecialMissileHit (AActor *victim)
{
return -1;