2018-11-06 02:59:17 +00:00
|
|
|
struct HealthGroup native play
|
|
|
|
{
|
2019-01-08 19:40:43 +00:00
|
|
|
deprecated("3.8") static clearscope HealthGroup Find(int id)
|
|
|
|
{
|
|
|
|
return level.FindHealthGroup(id);
|
|
|
|
}
|
2018-11-06 02:59:17 +00:00
|
|
|
|
|
|
|
readonly int id;
|
|
|
|
readonly int health;
|
|
|
|
readonly Array<Sector> sectors;
|
|
|
|
readonly Array<Line> lines;
|
|
|
|
|
|
|
|
native void SetHealth(int newhealth);
|
|
|
|
}
|
|
|
|
|
|
|
|
enum SectorPart
|
|
|
|
{
|
|
|
|
SECPART_None = -1,
|
|
|
|
SECPART_Floor = 0,
|
|
|
|
SECPART_Ceiling = 1,
|
|
|
|
SECPART_3D = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Destructible native play
|
|
|
|
{
|
|
|
|
|
|
|
|
static native void DamageSector(Sector sec, Actor source, int damage, Name damagetype, SectorPart part, vector3 position, bool isradius);
|
|
|
|
static native void DamageLinedef(Line def, Actor source, int damage, Name damagetype, int side, vector3 position, bool isradius);
|
|
|
|
|
|
|
|
static native void GeometryLineAttack(TraceResults trace, Actor thing, int damage, Name damagetype);
|
|
|
|
static native void GeometryRadiusAttack(Actor bombspot, Actor bombsource, int bombdamage, int bombdistance, Name damagetype, int fulldamagedistance);
|
|
|
|
static native bool ProjectileHitLinedef(Actor projectile, Line def);
|
|
|
|
static native bool ProjectileHitPlane(Actor projectile, SectorPart part);
|
|
|
|
|
|
|
|
static clearscope native bool CheckLinedefVulnerable(Line def, int side, SectorPart part);
|
|
|
|
static clearscope native bool CheckSectorVulnerable(Sector sec, SectorPart part);
|
|
|
|
}
|