mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- Added A_SetDamageType.
SVN r4180 (trunk)
This commit is contained in:
parent
fb2f201c8b
commit
8410ac760a
2 changed files with 16 additions and 1 deletions
|
@ -4510,3 +4510,17 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetTics)
|
||||||
|
|
||||||
self->tics = tics_to_set;
|
self->tics = tics_to_set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//==========================================================================
|
||||||
|
//
|
||||||
|
// A_SetDamageType
|
||||||
|
//
|
||||||
|
//==========================================================================
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetDamageType)
|
||||||
|
{
|
||||||
|
ACTION_PARAM_START(1);
|
||||||
|
ACTION_PARAM_NAME(damagetype, 0);
|
||||||
|
|
||||||
|
self->DamageType = damagetype;
|
||||||
|
}
|
||||||
|
|
|
@ -295,6 +295,7 @@ ACTOR Actor native //: Thinker
|
||||||
action native A_SetSpecial(int spec, int arg0 = 0, int arg1 = 0, int arg2 = 0, int arg3 = 0, int arg4 = 0);
|
action native A_SetSpecial(int spec, int arg0 = 0, int arg1 = 0, int arg2 = 0, int arg3 = 0, int arg4 = 0);
|
||||||
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_CheckSightOrRange(float distance, state label);
|
action native A_CheckSightOrRange(float distance, state label);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue