mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Exported TryMove.
This commit is contained in:
parent
76a74e0364
commit
60d93008ba
2 changed files with 9 additions and 0 deletions
|
@ -2498,6 +2498,14 @@ bool P_TryMove(AActor *thing, const DVector2 &pos,
|
||||||
return P_TryMove(thing, pos, dropoff, onfloor, tm);
|
return P_TryMove(thing, pos, dropoff, onfloor, tm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(AActor, TryMove)
|
||||||
|
{
|
||||||
|
PARAM_SELF_PROLOGUE(AActor);
|
||||||
|
PARAM_FLOAT_DEF(x);
|
||||||
|
PARAM_FLOAT_DEF(y);
|
||||||
|
PARAM_INT(dropoff);
|
||||||
|
ACTION_RETURN_BOOL(P_TryMove(self, DVector2(x, y), dropoff));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
|
@ -97,6 +97,7 @@ class Actor : Thinker native
|
||||||
native bool CheckSight(Actor target, int flags = 0);
|
native bool CheckSight(Actor target, int flags = 0);
|
||||||
native bool HitFriend();
|
native bool HitFriend();
|
||||||
native bool MonsterMove();
|
native bool MonsterMove();
|
||||||
|
native bool TryMove(vector2 newpos, int dropoff);
|
||||||
native void NewChaseDir();
|
native void NewChaseDir();
|
||||||
native bool CheckMissileRange();
|
native bool CheckMissileRange();
|
||||||
native bool SetState(state st, bool nofunction = false);
|
native bool SetState(state st, bool nofunction = false);
|
||||||
|
|
Loading…
Reference in a new issue