mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 08:31:14 +00:00
- added APROP_MaxStepHeight + APROP_MaxDropOffHeight.
This commit is contained in:
parent
ddb2f6b6cb
commit
1d286d5bd5
1 changed files with 15 additions and 0 deletions
|
@ -3737,6 +3737,8 @@ enum
|
||||||
APROP_StencilColor = 41,
|
APROP_StencilColor = 41,
|
||||||
APROP_Friction = 42,
|
APROP_Friction = 42,
|
||||||
APROP_DamageMultiplier=43,
|
APROP_DamageMultiplier=43,
|
||||||
|
APROP_MaxStepHeight = 44,
|
||||||
|
APROP_MaxDropOffHeight= 45,
|
||||||
};
|
};
|
||||||
|
|
||||||
// These are needed for ACS's APROP_RenderStyle
|
// These are needed for ACS's APROP_RenderStyle
|
||||||
|
@ -3987,6 +3989,15 @@ void DLevelScript::DoSetActorProperty (AActor *actor, int property, int value)
|
||||||
case APROP_Friction:
|
case APROP_Friction:
|
||||||
actor->Friction = ACSToDouble(value);
|
actor->Friction = ACSToDouble(value);
|
||||||
|
|
||||||
|
case APROP_MaxStepHeight:
|
||||||
|
actor->MaxStepHeight = ACSToDouble(value);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case APROP_MaxDropOffHeight:
|
||||||
|
actor->MaxDropOffHeight = ACSToDouble(value);
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// do nothing.
|
// do nothing.
|
||||||
break;
|
break;
|
||||||
|
@ -4087,6 +4098,8 @@ int DLevelScript::GetActorProperty (int tid, int property)
|
||||||
case APROP_NameTag: return GlobalACSStrings.AddString(actor->GetTag());
|
case APROP_NameTag: return GlobalACSStrings.AddString(actor->GetTag());
|
||||||
case APROP_StencilColor:return actor->fillcolor;
|
case APROP_StencilColor:return actor->fillcolor;
|
||||||
case APROP_Friction: return DoubleToACS(actor->Friction);
|
case APROP_Friction: return DoubleToACS(actor->Friction);
|
||||||
|
case APROP_MaxStepHeight: return DoubleToACS(actor->MaxStepHeight);
|
||||||
|
case APROP_MaxDropOffHeight: return DoubleToACS(actor->MaxDropOffHeight);
|
||||||
|
|
||||||
default: return 0;
|
default: return 0;
|
||||||
}
|
}
|
||||||
|
@ -4133,6 +4146,8 @@ int DLevelScript::CheckActorProperty (int tid, int property, int value)
|
||||||
case APROP_MeleeRange:
|
case APROP_MeleeRange:
|
||||||
case APROP_ViewHeight:
|
case APROP_ViewHeight:
|
||||||
case APROP_AttackZOffset:
|
case APROP_AttackZOffset:
|
||||||
|
case APROP_MaxStepHeight:
|
||||||
|
case APROP_MaxDropOffHeight:
|
||||||
case APROP_StencilColor:
|
case APROP_StencilColor:
|
||||||
return (GetActorProperty(tid, property) == value);
|
return (GetActorProperty(tid, property) == value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue