- got rid of all default parameter redundancies.
- scriptified a few more functions.
This commit is contained in:
parent
03efb63e93
commit
286f9510d4
26 changed files with 184 additions and 252 deletions
|
|
@ -514,7 +514,7 @@ DEFINE_ACTION_FUNCTION(AActor, SetState)
|
|||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_STATE(state);
|
||||
PARAM_BOOL_OPT(nofunction) { nofunction = false; }
|
||||
PARAM_BOOL_DEF(nofunction);
|
||||
ACTION_RETURN_BOOL(self->SetState(state, nofunction));
|
||||
};
|
||||
|
||||
|
|
@ -6257,6 +6257,13 @@ bool AActor::IsFriend (AActor *other)
|
|||
return false;
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, isFriend)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_OBJECT(other, AActor);
|
||||
ACTION_RETURN_BOOL(self->IsFriend(other));
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// AActor :: IsHostile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue