mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-15 06:41:27 +00:00
961a6fe211
# Conflicts: # wadsrc/static/zscript.txt
34 lines
No EOL
1.3 KiB
Text
34 lines
No EOL
1.3 KiB
Text
struct HealthGroup native play
|
|
{
|
|
static clearscope native HealthGroup Find(int id);
|
|
|
|
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);
|
|
} |