- added a 'local' parameter to the A_Log family.
- complete "give quakes their own damage type." (was only partially saved.)
This commit is contained in:
parent
a388327acb
commit
d73db8c1e8
3 changed files with 13 additions and 4 deletions
|
|
@ -3210,6 +3210,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_Log)
|
|||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_STRING(text);
|
||||
PARAM_BOOL_DEF(local);
|
||||
|
||||
if (local && !self->CheckLocalView(consoleplayer)) return 0;
|
||||
|
||||
if (text[0] == '$') text = GStrings(&text[1]);
|
||||
FString formatted = strbin1(text);
|
||||
|
|
@ -3227,6 +3230,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_LogInt)
|
|||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_INT(num);
|
||||
PARAM_BOOL_DEF(local);
|
||||
|
||||
if (local && !self->CheckLocalView(consoleplayer)) return 0;
|
||||
Printf("%d\n", num);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -3241,6 +3247,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_LogFloat)
|
|||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_FLOAT(num);
|
||||
PARAM_BOOL_DEF(local);
|
||||
|
||||
if (local && !self->CheckLocalView(consoleplayer)) return 0;
|
||||
IGNORE_FORMAT_PRE
|
||||
Printf("%H\n", num);
|
||||
IGNORE_FORMAT_POST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue