mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- Added jpalomo's A_SetSpeed patch.
This commit is contained in:
parent
cf5d608eb5
commit
44683657f2
3 changed files with 17 additions and 0 deletions
|
@ -4980,3 +4980,17 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_DropItem)
|
|||
|
||||
P_DropItem(self, spawntype, amount, chance);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// A_SetSpeed
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetSpeed)
|
||||
{
|
||||
ACTION_PARAM_START(1);
|
||||
ACTION_PARAM_FIXED(speed, 0);
|
||||
|
||||
self->Speed = speed;
|
||||
}
|
||||
|
|
|
@ -88,6 +88,7 @@ DEFINE_MEMBER_VARIABLE(height, AActor)
|
|||
DEFINE_MEMBER_VARIABLE(radius, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(reactiontime, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(meleerange, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(Speed, AActor)
|
||||
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
@ -62,6 +62,7 @@ ACTOR Actor native //: Thinker
|
|||
native fixed_t radius;
|
||||
native int reactiontime;
|
||||
native fixed_t meleerange;
|
||||
native fixed_t speed;
|
||||
|
||||
// Meh, MBF redundant functions. Only for DeHackEd support.
|
||||
action native A_Turn(float angle = 0);
|
||||
|
@ -302,6 +303,7 @@ ACTOR Actor native //: Thinker
|
|||
action native A_SetTics(int tics);
|
||||
action native A_SetDamageType(name damagetype);
|
||||
action native A_DropItem(class<Actor> item, int dropamount = -1, int chance = 256);
|
||||
action native A_SetSpeed(float speed);
|
||||
|
||||
action native A_CheckSightOrRange(float distance, state label);
|
||||
action native A_CheckRange(float distance, state label);
|
||||
|
|
Loading…
Reference in a new issue