- Added A_SetDamageType.

SVN r4180 (trunk)
This commit is contained in:
Randy Heit 2013-03-13 04:04:48 +00:00
parent fb2f201c8b
commit 8410ac760a
2 changed files with 16 additions and 1 deletions

View file

@ -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;
}

View file

@ -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);