mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 09:11:21 +00:00
Add action versions of the animation/model methods
This commit is contained in:
parent
b708e16193
commit
79d9217340
1 changed files with 30 additions and 0 deletions
|
@ -1303,6 +1303,36 @@ class Actor : Thinker native
|
|||
native version("4.12") void SetModelFlag(int flag);
|
||||
native version("4.12") void ClearModelFlag(int flag);
|
||||
native version("4.12") void ResetModelFlags();
|
||||
|
||||
|
||||
action version("4.12") void A_SetAnimation(Name animName, double framerate = -1, int startFrame = -1, int loopFrame= -1, int interpolateTics = -1, int flags = 0)
|
||||
{
|
||||
invoker.SetAnimation(animName, framerate, startFrame, loopFrame, interpolateTics, flags);
|
||||
}
|
||||
|
||||
action version("4.12") void A_SetAnimationFrameRate(double framerate)
|
||||
{
|
||||
invoker.SetAnimationFrameRate(framerate);
|
||||
}
|
||||
|
||||
action version("4.12") void A_SetModelFlag(int flag)
|
||||
{
|
||||
invoker.SetModelFlag(flag);
|
||||
}
|
||||
|
||||
action version("4.12") void A_ClearModelFlag(int flag)
|
||||
{
|
||||
invoker.ClearModelFlag(flag);
|
||||
}
|
||||
|
||||
action version("4.12") void A_ResetModelFlags()
|
||||
{
|
||||
invoker.ResetModelFlags();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int ACS_NamedExecute(name script, int mapnum=0, int arg1=0, int arg2=0, int arg3=0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue