mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
- Added A_DropItem for DECORATE.
This commit is contained in:
parent
35764ff3b2
commit
c0174ea7cd
2 changed files with 17 additions and 0 deletions
|
@ -4951,3 +4951,19 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetDamageType)
|
||||||
|
|
||||||
self->DamageType = damagetype;
|
self->DamageType = damagetype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//==========================================================================
|
||||||
|
//
|
||||||
|
// A_DropItem
|
||||||
|
//
|
||||||
|
//==========================================================================
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_DropItem)
|
||||||
|
{
|
||||||
|
ACTION_PARAM_START(3);
|
||||||
|
ACTION_PARAM_CLASS(spawntype, 0);
|
||||||
|
ACTION_PARAM_INT(amount, 1);
|
||||||
|
ACTION_PARAM_INT(chance, 2);
|
||||||
|
|
||||||
|
P_DropItem(self, spawntype, amount, chance);
|
||||||
|
}
|
||||||
|
|
|
@ -300,6 +300,7 @@ ACTOR Actor native //: Thinker
|
||||||
action native A_Quake(int intensity, int duration, int damrad, int tremrad, sound sfx = "world/quake");
|
action native A_Quake(int intensity, int duration, int damrad, int tremrad, sound sfx = "world/quake");
|
||||||
action native A_SetTics(int tics);
|
action native A_SetTics(int tics);
|
||||||
action native A_SetDamageType(name damagetype);
|
action native A_SetDamageType(name damagetype);
|
||||||
|
action native A_DropItem(class<Actor> item, int dropamount = -1, int chance = -1);
|
||||||
|
|
||||||
action native A_CheckSightOrRange(float distance, state label);
|
action native A_CheckSightOrRange(float distance, state label);
|
||||||
action native A_CheckRange(float distance, state label);
|
action native A_CheckRange(float distance, state label);
|
||||||
|
|
Loading…
Reference in a new issue