Exported reflection functionality
Localized reflection code to a single function. Fixed an error where NOSHIELDREFLECT was being checked on the wrong Actor. Fixed an oversight where MIRRORREFLECT was checking for valid target despite not needing one.
This commit is contained in:
parent
150e893c67
commit
239a288a9a
5 changed files with 56 additions and 51 deletions
|
|
@ -1861,6 +1861,15 @@ DEFINE_ACTION_FUNCTION(AActor, PlayBounceSound)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, ReflectOffActor)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_OBJECT(blocking, AActor);
|
||||
|
||||
ACTION_RETURN_BOOL(P_ReflectOffActor(self, blocking));
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int isFrozen(AActor *self)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue