- scriptified P_CalcHeight.
This was the only code using the ViewBob member variable. This also moves the range check for this variable to its application, because a badly behaved mod can just as easily change it at run time instead of just setting an absurdly large value in the class definition.
This commit is contained in:
parent
9e5c5b68c5
commit
2bd72478ee
8 changed files with 170 additions and 175 deletions
|
|
@ -1651,7 +1651,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, CheckFor3DCeilingHit, CheckFor3DCeilingHit
|
|||
|
||||
//===========================================================================
|
||||
//
|
||||
// APlayerPawn :: MarkPlayerSounds
|
||||
// APlayerPawn functions
|
||||
//
|
||||
//===========================================================================
|
||||
|
||||
|
|
@ -1662,6 +1662,19 @@ DEFINE_ACTION_FUNCTION_NATIVE(APlayerPawn, MarkPlayerSounds, S_MarkPlayerSounds)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void GetPrintableDisplayNameJit(PClassActor *cls, FString *result)
|
||||
{
|
||||
*result = cls->GetDisplayName();
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(APlayerPawn, GetPrintableDisplayName, GetPrintableDisplayNameJit)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_CLASS(type, AActor);
|
||||
ACTION_RETURN_STRING(type->GetDisplayName());
|
||||
}
|
||||
|
||||
|
||||
|
||||
DEFINE_FIELD(AActor, snext)
|
||||
DEFINE_FIELD(AActor, player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue