mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
Lunatic: rename spriteext[].*off->mdoff.*, actor[].actorstayput->stayputsect.
git-svn-id: https://svn.eduke32.com/eduke32@3874 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f6065e227a
commit
9911e96fe8
4 changed files with 13 additions and 14 deletions
|
@ -381,7 +381,7 @@ local ActorLabels = {
|
|||
htowner = { AC".owner", AC":set_owner(%%s)" },
|
||||
htmovflag = AC"._movflag",
|
||||
httempang = AC".tempang",
|
||||
htactorstayput = AC".actorstayput",
|
||||
htactorstayput = AC".stayputsect", -- NAME
|
||||
htdispicnum = { AC".dispicnum" },
|
||||
-- NOTE: no access for .shootzvel
|
||||
httimetosleep = AC".timetosleep",
|
||||
|
@ -396,13 +396,13 @@ local ActorLabels = {
|
|||
htg_t = { AC":get_t_data(%s)", AC":_set_t_data(%s,%%s)" },
|
||||
htflags = AC".flags",
|
||||
|
||||
-- model flags
|
||||
-- (mostly) model-related flags
|
||||
angoff = SX".angoff",
|
||||
pitch = SX".pitch",
|
||||
roll = SX".roll",
|
||||
mdxoff = SX".xoff",
|
||||
mdyoff = SX".yoff",
|
||||
mdzoff = SX".zoff",
|
||||
mdxoff = SX".mdoff.x", -- NAME
|
||||
mdyoff = SX".mdoff.y",
|
||||
mdzoff = SX".mdoff.z",
|
||||
mdflags = SX".flags",
|
||||
xpanning = SX".xpanning",
|
||||
ypanning = SX".ypanning",
|
||||
|
|
|
@ -162,7 +162,7 @@ __attribute__((packed)) struct {
|
|||
const int16_t owner;
|
||||
int16_t _movflag,tempang,timetosleep; //6b
|
||||
|
||||
int16_t actorstayput;
|
||||
int16_t stayputsect;
|
||||
const int16_t dispicnum;
|
||||
int16_t shootzvel, cgg;
|
||||
|
||||
|
|
|
@ -205,12 +205,15 @@ typedef $ walltype;
|
|||
typedef $ spritetype;
|
||||
typedef struct { spritetype; } tspritetype;
|
||||
|
||||
typedef struct {
|
||||
int32_t x, y, z;
|
||||
} vec3_t;
|
||||
|
||||
typedef struct {
|
||||
const uint32_t mdanimtims;
|
||||
const int16_t mdanimcur;
|
||||
int16_t angoff, pitch, roll;
|
||||
// TODO: make into an ivec3_t
|
||||
int32_t xoff, yoff, zoff;
|
||||
vec3_t mdoff;
|
||||
]]..bitint_member("UBit8", "flags")..[[
|
||||
uint8_t xpanning, ypanning;
|
||||
const uint8_t filler;
|
||||
|
@ -221,10 +224,6 @@ typedef struct {
|
|||
};
|
||||
} spriteext_t;
|
||||
|
||||
typedef struct {
|
||||
int32_t x, y, z;
|
||||
} vec3_t;
|
||||
|
||||
typedef struct {
|
||||
vec3_t pos;
|
||||
int16_t sprite, wall, sect;
|
||||
|
|
|
@ -2188,7 +2188,7 @@ local Cinner = {
|
|||
|
||||
-- cont'd
|
||||
addkills = cmd(D)
|
||||
/ (PLS".actors_killed="..PLS".actors_killed+%1;"..ACS".actorstayput=-1"),
|
||||
/ (PLS".actors_killed="..PLS".actors_killed+%1;"..ACS".stayputsect=-1"),
|
||||
addphealth = cmd(D)
|
||||
/ format("_con._addphealth(%s,_aci,%%1)", PLS""),
|
||||
debug = cmd(D)
|
||||
|
@ -2670,7 +2670,7 @@ local Cif = {
|
|||
ifawayfromwall = cmd()
|
||||
/ format("_con._awayfromwall(%s,108)", SPS""),
|
||||
ifactornotstayput = cmd()
|
||||
/ ACS".actorstayput==-1",
|
||||
/ ACS".stayputsect==-1",
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue