mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- renamed PARAM_DANGLE macros to PARAM_ANGLE, now that the old angle_t type is no longer used in the VM interface.
This commit is contained in:
parent
21340c6eba
commit
a3b687bc4e
6 changed files with 47 additions and 47 deletions
|
@ -122,8 +122,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Saw)
|
||||||
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = NULL; }
|
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = NULL; }
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_FLOAT_OPT (range) { range = 0; }
|
PARAM_FLOAT_OPT (range) { range = 0; }
|
||||||
PARAM_DANGLE_OPT(spread_xy) { spread_xy = 2.8125; }
|
PARAM_ANGLE_OPT (spread_xy) { spread_xy = 2.8125; }
|
||||||
PARAM_DANGLE_OPT(spread_z) { spread_z = 0.; }
|
PARAM_ANGLE_OPT (spread_z) { spread_z = 0.; }
|
||||||
PARAM_FLOAT_OPT (lifesteal) { lifesteal = 0; }
|
PARAM_FLOAT_OPT (lifesteal) { lifesteal = 0; }
|
||||||
PARAM_INT_OPT (lifestealmax) { lifestealmax = 0; }
|
PARAM_INT_OPT (lifestealmax) { lifestealmax = 0; }
|
||||||
PARAM_CLASS_OPT (armorbonustype, ABasicArmorBonus) { armorbonustype = NULL; }
|
PARAM_CLASS_OPT (armorbonustype, ABasicArmorBonus) { armorbonustype = NULL; }
|
||||||
|
@ -636,9 +636,9 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_BFGSpray)
|
||||||
PARAM_CLASS_OPT (spraytype, AActor) { spraytype = NULL; }
|
PARAM_CLASS_OPT (spraytype, AActor) { spraytype = NULL; }
|
||||||
PARAM_INT_OPT (numrays) { numrays = 0; }
|
PARAM_INT_OPT (numrays) { numrays = 0; }
|
||||||
PARAM_INT_OPT (damagecnt) { damagecnt = 0; }
|
PARAM_INT_OPT (damagecnt) { damagecnt = 0; }
|
||||||
PARAM_DANGLE_OPT(angle) { angle = 0.; }
|
PARAM_ANGLE_OPT (angle) { angle = 0.; }
|
||||||
PARAM_FLOAT_OPT (distance) { distance = 0; }
|
PARAM_FLOAT_OPT (distance) { distance = 0; }
|
||||||
PARAM_DANGLE_OPT(vrange) { vrange = 0.; }
|
PARAM_ANGLE_OPT (vrange) { vrange = 0.; }
|
||||||
PARAM_INT_OPT (defdamage) { defdamage = 0; }
|
PARAM_INT_OPT (defdamage) { defdamage = 0; }
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -153,7 +153,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_PainAttack)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
PARAM_CLASS_OPT (spawntype, AActor) { spawntype = NULL; }
|
PARAM_CLASS_OPT (spawntype, AActor) { spawntype = NULL; }
|
||||||
PARAM_DANGLE_OPT (angle) { angle = 0.; }
|
PARAM_ANGLE_OPT (angle) { angle = 0.; }
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_INT_OPT (limit) { limit = -1; }
|
PARAM_INT_OPT (limit) { limit = -1; }
|
||||||
|
|
||||||
|
|
|
@ -690,7 +690,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FireGrenade)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_CLASS(grenadetype, AActor);
|
PARAM_CLASS(grenadetype, AActor);
|
||||||
PARAM_DANGLE(angleofs);
|
PARAM_ANGLE(angleofs);
|
||||||
PARAM_STATE(flash)
|
PARAM_STATE(flash)
|
||||||
|
|
||||||
player_t *player = self->player;
|
player_t *player = self->player;
|
||||||
|
|
|
@ -1890,7 +1890,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_LookEx)
|
||||||
PARAM_FLOAT_OPT (minseedist) { minseedist = 0; }
|
PARAM_FLOAT_OPT (minseedist) { minseedist = 0; }
|
||||||
PARAM_FLOAT_OPT (maxseedist) { maxseedist = 0; }
|
PARAM_FLOAT_OPT (maxseedist) { maxseedist = 0; }
|
||||||
PARAM_FLOAT_OPT (maxheardist) { maxheardist = 0; }
|
PARAM_FLOAT_OPT (maxheardist) { maxheardist = 0; }
|
||||||
PARAM_DANGLE_OPT (fov) { fov = 0.; }
|
PARAM_ANGLE_OPT (fov) { fov = 0.; }
|
||||||
PARAM_STATE_OPT (seestate) { seestate = NULL; }
|
PARAM_STATE_OPT (seestate) { seestate = NULL; }
|
||||||
|
|
||||||
AActor *targ = NULL; // Shuts up gcc
|
AActor *targ = NULL; // Shuts up gcc
|
||||||
|
@ -2921,10 +2921,10 @@ void A_FaceTarget(AActor *self)
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceTarget)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceTarget)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_DANGLE_OPT(max_turn) { max_turn = 0.; }
|
PARAM_ANGLE_OPT(max_turn) { max_turn = 0.; }
|
||||||
PARAM_DANGLE_OPT(max_pitch) { max_pitch = 270.; }
|
PARAM_ANGLE_OPT(max_pitch) { max_pitch = 270.; }
|
||||||
PARAM_DANGLE_OPT(ang_offset) { ang_offset = 0.; }
|
PARAM_ANGLE_OPT(ang_offset) { ang_offset = 0.; }
|
||||||
PARAM_DANGLE_OPT(pitch_offset) { pitch_offset = 0.; }
|
PARAM_ANGLE_OPT(pitch_offset) { pitch_offset = 0.; }
|
||||||
PARAM_INT_OPT(flags) { flags = 0; }
|
PARAM_INT_OPT(flags) { flags = 0; }
|
||||||
PARAM_FLOAT_OPT(z_add) { z_add = 0; }
|
PARAM_FLOAT_OPT(z_add) { z_add = 0; }
|
||||||
|
|
||||||
|
@ -2935,10 +2935,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceTarget)
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceMaster)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceMaster)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_DANGLE_OPT(max_turn) { max_turn = 0.; }
|
PARAM_ANGLE_OPT(max_turn) { max_turn = 0.; }
|
||||||
PARAM_DANGLE_OPT(max_pitch) { max_pitch = 270.; }
|
PARAM_ANGLE_OPT(max_pitch) { max_pitch = 270.; }
|
||||||
PARAM_DANGLE_OPT(ang_offset) { ang_offset = 0.; }
|
PARAM_ANGLE_OPT(ang_offset) { ang_offset = 0.; }
|
||||||
PARAM_DANGLE_OPT(pitch_offset) { pitch_offset = 0.; }
|
PARAM_ANGLE_OPT(pitch_offset) { pitch_offset = 0.; }
|
||||||
PARAM_INT_OPT(flags) { flags = 0; }
|
PARAM_INT_OPT(flags) { flags = 0; }
|
||||||
PARAM_FLOAT_OPT(z_add) { z_add = 0; }
|
PARAM_FLOAT_OPT(z_add) { z_add = 0; }
|
||||||
|
|
||||||
|
@ -2949,10 +2949,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceMaster)
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceTracer)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceTracer)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_DANGLE_OPT(max_turn) { max_turn = 0.; }
|
PARAM_ANGLE_OPT(max_turn) { max_turn = 0.; }
|
||||||
PARAM_DANGLE_OPT(max_pitch) { max_pitch = 270.; }
|
PARAM_ANGLE_OPT(max_pitch) { max_pitch = 270.; }
|
||||||
PARAM_DANGLE_OPT(ang_offset) { ang_offset = 0.; }
|
PARAM_ANGLE_OPT(ang_offset) { ang_offset = 0.; }
|
||||||
PARAM_DANGLE_OPT(pitch_offset) { pitch_offset = 0.; }
|
PARAM_ANGLE_OPT(pitch_offset) { pitch_offset = 0.; }
|
||||||
PARAM_INT_OPT(flags) { flags = 0; }
|
PARAM_INT_OPT(flags) { flags = 0; }
|
||||||
PARAM_FLOAT_OPT(z_add) { z_add = 0; }
|
PARAM_FLOAT_OPT(z_add) { z_add = 0; }
|
||||||
|
|
||||||
|
|
|
@ -1198,9 +1198,9 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomMissile)
|
||||||
PARAM_CLASS (ti, AActor);
|
PARAM_CLASS (ti, AActor);
|
||||||
PARAM_FLOAT_OPT (Spawnheight) { Spawnheight = 32; }
|
PARAM_FLOAT_OPT (Spawnheight) { Spawnheight = 32; }
|
||||||
PARAM_FLOAT_OPT (Spawnofs_xy) { Spawnofs_xy = 0; }
|
PARAM_FLOAT_OPT (Spawnofs_xy) { Spawnofs_xy = 0; }
|
||||||
PARAM_DANGLE_OPT(Angle) { Angle = 0.; }
|
PARAM_ANGLE_OPT (Angle) { Angle = 0.; }
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_DANGLE_OPT(Pitch) { Pitch = 0.; }
|
PARAM_ANGLE_OPT (Pitch) { Pitch = 0.; }
|
||||||
PARAM_INT_OPT (ptr) { ptr = AAPTR_TARGET; }
|
PARAM_INT_OPT (ptr) { ptr = AAPTR_TARGET; }
|
||||||
|
|
||||||
AActor *ref = COPY_AAPTR(self, ptr);
|
AActor *ref = COPY_AAPTR(self, ptr);
|
||||||
|
@ -1339,8 +1339,8 @@ enum CBA_Flags
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomBulletAttack)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomBulletAttack)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_DANGLE (spread_xy);
|
PARAM_ANGLE (spread_xy);
|
||||||
PARAM_DANGLE (spread_z);
|
PARAM_ANGLE (spread_z);
|
||||||
PARAM_INT (numbullets);
|
PARAM_INT (numbullets);
|
||||||
PARAM_INT (damageperbullet);
|
PARAM_INT (damageperbullet);
|
||||||
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = PClass::FindActor(NAME_BulletPuff); }
|
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = PClass::FindActor(NAME_BulletPuff); }
|
||||||
|
@ -1524,8 +1524,8 @@ enum FB_Flags
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FireBullets)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FireBullets)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_DANGLE (spread_xy);
|
PARAM_ANGLE (spread_xy);
|
||||||
PARAM_DANGLE (spread_z);
|
PARAM_ANGLE (spread_z);
|
||||||
PARAM_INT (numbullets);
|
PARAM_INT (numbullets);
|
||||||
PARAM_INT (damageperbullet);
|
PARAM_INT (damageperbullet);
|
||||||
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = NULL; }
|
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = NULL; }
|
||||||
|
@ -1618,12 +1618,12 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FireCustomMissile)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_CLASS (ti, AActor);
|
PARAM_CLASS (ti, AActor);
|
||||||
PARAM_DANGLE_OPT(angle) { angle = 0.; }
|
PARAM_ANGLE_OPT (angle) { angle = 0.; }
|
||||||
PARAM_BOOL_OPT (useammo) { useammo = true; }
|
PARAM_BOOL_OPT (useammo) { useammo = true; }
|
||||||
PARAM_FLOAT_OPT (spawnofs_xy) { spawnofs_xy = 0; }
|
PARAM_FLOAT_OPT (spawnofs_xy) { spawnofs_xy = 0; }
|
||||||
PARAM_FLOAT_OPT (spawnheight) { spawnheight = 0; }
|
PARAM_FLOAT_OPT (spawnheight) { spawnheight = 0; }
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_DANGLE_OPT(pitch) { pitch = 0.; }
|
PARAM_ANGLE_OPT (pitch) { pitch = 0.; }
|
||||||
|
|
||||||
if (!self->player)
|
if (!self->player)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1806,8 +1806,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RailAttack)
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_FLOAT_OPT (maxdiff) { maxdiff = 0; }
|
PARAM_FLOAT_OPT (maxdiff) { maxdiff = 0; }
|
||||||
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = PClass::FindActor(NAME_BulletPuff); }
|
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = PClass::FindActor(NAME_BulletPuff); }
|
||||||
PARAM_DANGLE_OPT(spread_xy) { spread_xy = 0.; }
|
PARAM_ANGLE_OPT (spread_xy) { spread_xy = 0.; }
|
||||||
PARAM_DANGLE_OPT(spread_z) { spread_z = 0.; }
|
PARAM_ANGLE_OPT (spread_z) { spread_z = 0.; }
|
||||||
PARAM_FLOAT_OPT (range) { range = 0; }
|
PARAM_FLOAT_OPT (range) { range = 0; }
|
||||||
PARAM_INT_OPT (duration) { duration = 0; }
|
PARAM_INT_OPT (duration) { duration = 0; }
|
||||||
PARAM_FLOAT_OPT (sparsity) { sparsity = 1; }
|
PARAM_FLOAT_OPT (sparsity) { sparsity = 1; }
|
||||||
|
@ -1883,8 +1883,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomRailgun)
|
||||||
PARAM_INT_OPT (aim) { aim = CRF_DONTAIM; }
|
PARAM_INT_OPT (aim) { aim = CRF_DONTAIM; }
|
||||||
PARAM_FLOAT_OPT (maxdiff) { maxdiff = 0; }
|
PARAM_FLOAT_OPT (maxdiff) { maxdiff = 0; }
|
||||||
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = PClass::FindActor(NAME_BulletPuff); }
|
PARAM_CLASS_OPT (pufftype, AActor) { pufftype = PClass::FindActor(NAME_BulletPuff); }
|
||||||
PARAM_DANGLE_OPT(spread_xy) { spread_xy = 0.; }
|
PARAM_ANGLE_OPT (spread_xy) { spread_xy = 0.; }
|
||||||
PARAM_DANGLE_OPT(spread_z) { spread_z = 0.; }
|
PARAM_ANGLE_OPT (spread_z) { spread_z = 0.; }
|
||||||
PARAM_FLOAT_OPT (range) { range = 0; }
|
PARAM_FLOAT_OPT (range) { range = 0; }
|
||||||
PARAM_INT_OPT (duration) { duration = 0; }
|
PARAM_INT_OPT (duration) { duration = 0; }
|
||||||
PARAM_FLOAT_OPT (sparsity) { sparsity = 1; }
|
PARAM_FLOAT_OPT (sparsity) { sparsity = 1; }
|
||||||
|
@ -2453,7 +2453,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SpawnItemEx)
|
||||||
PARAM_FLOAT_OPT (xvel) { xvel = 0; }
|
PARAM_FLOAT_OPT (xvel) { xvel = 0; }
|
||||||
PARAM_FLOAT_OPT (yvel) { yvel = 0; }
|
PARAM_FLOAT_OPT (yvel) { yvel = 0; }
|
||||||
PARAM_FLOAT_OPT (zvel) { zvel = 0; }
|
PARAM_FLOAT_OPT (zvel) { zvel = 0; }
|
||||||
PARAM_DANGLE_OPT(angle) { angle = 0.; }
|
PARAM_ANGLE_OPT (angle) { angle = 0.; }
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_INT_OPT (chance) { chance = 0; }
|
PARAM_INT_OPT (chance) { chance = 0; }
|
||||||
PARAM_INT_OPT (tid) { tid = 0; }
|
PARAM_INT_OPT (tid) { tid = 0; }
|
||||||
|
@ -2995,7 +2995,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SpawnParticle)
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_INT_OPT (lifetime) { lifetime = 35; }
|
PARAM_INT_OPT (lifetime) { lifetime = 35; }
|
||||||
PARAM_INT_OPT (size) { size = 1; }
|
PARAM_INT_OPT (size) { size = 1; }
|
||||||
PARAM_DANGLE_OPT(angle) { angle = 0.; }
|
PARAM_ANGLE_OPT (angle) { angle = 0.; }
|
||||||
PARAM_FLOAT_OPT (xoff) { xoff = 0; }
|
PARAM_FLOAT_OPT (xoff) { xoff = 0; }
|
||||||
PARAM_FLOAT_OPT (yoff) { yoff = 0; }
|
PARAM_FLOAT_OPT (yoff) { yoff = 0; }
|
||||||
PARAM_FLOAT_OPT (zoff) { zoff = 0; }
|
PARAM_FLOAT_OPT (zoff) { zoff = 0; }
|
||||||
|
@ -3679,8 +3679,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckLOF)
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_FLOAT_OPT (range) { range = 0; }
|
PARAM_FLOAT_OPT (range) { range = 0; }
|
||||||
PARAM_FLOAT_OPT (minrange) { minrange = 0; }
|
PARAM_FLOAT_OPT (minrange) { minrange = 0; }
|
||||||
PARAM_DANGLE_OPT(angle) { angle = 0.; }
|
PARAM_ANGLE_OPT (angle) { angle = 0.; }
|
||||||
PARAM_DANGLE_OPT(pitch) { pitch = 0.; }
|
PARAM_ANGLE_OPT (pitch) { pitch = 0.; }
|
||||||
PARAM_FLOAT_OPT (offsetheight) { offsetheight = 0; }
|
PARAM_FLOAT_OPT (offsetheight) { offsetheight = 0; }
|
||||||
PARAM_FLOAT_OPT (offsetwidth) { offsetwidth = 0; }
|
PARAM_FLOAT_OPT (offsetwidth) { offsetwidth = 0; }
|
||||||
PARAM_INT_OPT (ptr_target) { ptr_target = AAPTR_DEFAULT; }
|
PARAM_INT_OPT (ptr_target) { ptr_target = AAPTR_DEFAULT; }
|
||||||
|
@ -3868,7 +3868,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_JumpIfTargetInLOS)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_STATE (jump);
|
PARAM_STATE (jump);
|
||||||
PARAM_DANGLE_OPT(fov) { fov = 0.; }
|
PARAM_ANGLE_OPT (fov) { fov = 0.; }
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_FLOAT_OPT (dist_max) { dist_max = 0; }
|
PARAM_FLOAT_OPT (dist_max) { dist_max = 0; }
|
||||||
PARAM_FLOAT_OPT (dist_close) { dist_close = 0; }
|
PARAM_FLOAT_OPT (dist_close) { dist_close = 0; }
|
||||||
|
@ -4004,7 +4004,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_JumpIfInTargetLOS)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_STATE (jump);
|
PARAM_STATE (jump);
|
||||||
PARAM_DANGLE_OPT(fov) { fov = 0.; }
|
PARAM_ANGLE_OPT (fov) { fov = 0.; }
|
||||||
PARAM_INT_OPT (flags) { flags = 0; }
|
PARAM_INT_OPT (flags) { flags = 0; }
|
||||||
PARAM_FLOAT_OPT (dist_max) { dist_max = 0; }
|
PARAM_FLOAT_OPT (dist_max) { dist_max = 0; }
|
||||||
PARAM_FLOAT_OPT (dist_close) { dist_close = 0; }
|
PARAM_FLOAT_OPT (dist_close) { dist_close = 0; }
|
||||||
|
@ -5118,12 +5118,12 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Warp)
|
||||||
PARAM_FLOAT_OPT(xofs) { xofs = 0; }
|
PARAM_FLOAT_OPT(xofs) { xofs = 0; }
|
||||||
PARAM_FLOAT_OPT(yofs) { yofs = 0; }
|
PARAM_FLOAT_OPT(yofs) { yofs = 0; }
|
||||||
PARAM_FLOAT_OPT(zofs) { zofs = 0; }
|
PARAM_FLOAT_OPT(zofs) { zofs = 0; }
|
||||||
PARAM_DANGLE_OPT(angle) { angle = 0.; }
|
PARAM_ANGLE_OPT(angle) { angle = 0.; }
|
||||||
PARAM_INT_OPT(flags) { flags = 0; }
|
PARAM_INT_OPT(flags) { flags = 0; }
|
||||||
PARAM_STATE_OPT(success_state) { success_state = NULL; }
|
PARAM_STATE_OPT(success_state) { success_state = NULL; }
|
||||||
PARAM_FLOAT_OPT(heightoffset) { heightoffset = 0; }
|
PARAM_FLOAT_OPT(heightoffset) { heightoffset = 0; }
|
||||||
PARAM_FLOAT_OPT(radiusoffset) { radiusoffset = 0; }
|
PARAM_FLOAT_OPT(radiusoffset) { radiusoffset = 0; }
|
||||||
PARAM_DANGLE_OPT(pitch) { pitch = 0.; }
|
PARAM_ANGLE_OPT(pitch) { pitch = 0.; }
|
||||||
|
|
||||||
AActor *reference;
|
AActor *reference;
|
||||||
|
|
||||||
|
@ -6605,7 +6605,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckBlock)
|
||||||
PARAM_FLOAT_OPT(xofs) { xofs = 0; }
|
PARAM_FLOAT_OPT(xofs) { xofs = 0; }
|
||||||
PARAM_FLOAT_OPT(yofs) { yofs = 0; }
|
PARAM_FLOAT_OPT(yofs) { yofs = 0; }
|
||||||
PARAM_FLOAT_OPT(zofs) { zofs = 0; }
|
PARAM_FLOAT_OPT(zofs) { zofs = 0; }
|
||||||
PARAM_DANGLE_OPT(angle) { angle = 0.; }
|
PARAM_ANGLE_OPT(angle) { angle = 0.; }
|
||||||
|
|
||||||
AActor *mobj = COPY_AAPTR(self, ptr);
|
AActor *mobj = COPY_AAPTR(self, ptr);
|
||||||
|
|
||||||
|
@ -6700,9 +6700,9 @@ enum FMDFlags
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceMovementDirection)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceMovementDirection)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_DANGLE_OPT(offset) { offset = 0.; }
|
PARAM_ANGLE_OPT(offset) { offset = 0.; }
|
||||||
PARAM_DANGLE_OPT(anglelimit) { anglelimit = 0.; }
|
PARAM_ANGLE_OPT(anglelimit) { anglelimit = 0.; }
|
||||||
PARAM_DANGLE_OPT(pitchlimit) { pitchlimit = 0.; }
|
PARAM_ANGLE_OPT(pitchlimit) { pitchlimit = 0.; }
|
||||||
PARAM_INT_OPT(flags) { flags = 0; }
|
PARAM_INT_OPT(flags) { flags = 0; }
|
||||||
PARAM_INT_OPT(ptr) { ptr = AAPTR_DEFAULT; }
|
PARAM_INT_OPT(ptr) { ptr = AAPTR_DEFAULT; }
|
||||||
|
|
||||||
|
|
|
@ -894,7 +894,7 @@ void VMDisasm(FILE *out, const VMOP *code, int codesize, const VMScriptFunction
|
||||||
#define PARAM_SOUND_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_INT); FSoundID x = param[p].i;
|
#define PARAM_SOUND_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_INT); FSoundID x = param[p].i;
|
||||||
#define PARAM_COLOR_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_INT); PalEntry x; x.d = param[p].i;
|
#define PARAM_COLOR_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_INT); PalEntry x; x.d = param[p].i;
|
||||||
#define PARAM_FLOAT_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_FLOAT); double x = param[p].f;
|
#define PARAM_FLOAT_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_FLOAT); double x = param[p].f;
|
||||||
#define PARAM_DANGLE_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_FLOAT); DAngle x = param[p].f;
|
#define PARAM_ANGLE_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_FLOAT); DAngle x = param[p].f;
|
||||||
#define PARAM_STRING_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_STRING); FString x = param[p].s();
|
#define PARAM_STRING_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_STRING); FString x = param[p].s();
|
||||||
#define PARAM_STATE_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_POINTER && (param[p].atag == ATAG_STATE || param[p].a == NULL)); FState *x = (FState *)param[p].a;
|
#define PARAM_STATE_AT(p,x) assert((p) < numparam); assert(param[p].Type == REGT_POINTER && (param[p].atag == ATAG_STATE || param[p].a == NULL)); FState *x = (FState *)param[p].a;
|
||||||
#define PARAM_POINTER_AT(p,x,type) assert((p) < numparam); assert(param[p].Type == REGT_POINTER); type *x = (type *)param[p].a;
|
#define PARAM_POINTER_AT(p,x,type) assert((p) < numparam); assert(param[p].Type == REGT_POINTER); type *x = (type *)param[p].a;
|
||||||
|
@ -911,7 +911,7 @@ void VMDisasm(FILE *out, const VMOP *code, int codesize, const VMScriptFunction
|
||||||
#define PARAM_SOUND_OPT_AT(p,x) FSoundID x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_INT); x = FSoundID(param[p].i); } else
|
#define PARAM_SOUND_OPT_AT(p,x) FSoundID x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_INT); x = FSoundID(param[p].i); } else
|
||||||
#define PARAM_COLOR_OPT_AT(p,x) PalEntry x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_INT); x.d = param[p].i; } else
|
#define PARAM_COLOR_OPT_AT(p,x) PalEntry x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_INT); x.d = param[p].i; } else
|
||||||
#define PARAM_FLOAT_OPT_AT(p,x) double x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_FLOAT); x = param[p].f; } else
|
#define PARAM_FLOAT_OPT_AT(p,x) double x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_FLOAT); x = param[p].f; } else
|
||||||
#define PARAM_DANGLE_OPT_AT(p,x) DAngle x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_FLOAT); x = param[p].f; } else
|
#define PARAM_ANGLE_OPT_AT(p,x) DAngle x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_FLOAT); x = param[p].f; } else
|
||||||
#define PARAM_STRING_OPT_AT(p,x) FString x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_STRING); x = param[p].s(); } else
|
#define PARAM_STRING_OPT_AT(p,x) FString x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_STRING); x = param[p].s(); } else
|
||||||
#define PARAM_STATE_OPT_AT(p,x) FState *x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_POINTER && (param[p].atag == ATAG_STATE || param[p].a == NULL)); x = (FState *)param[p].a; } else
|
#define PARAM_STATE_OPT_AT(p,x) FState *x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_POINTER && (param[p].atag == ATAG_STATE || param[p].a == NULL)); x = (FState *)param[p].a; } else
|
||||||
#define PARAM_POINTER_OPT_AT(p,x,type) type *x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_POINTER); x = (type *)param[p].a; } else
|
#define PARAM_POINTER_OPT_AT(p,x,type) type *x; if ((p) < numparam && param[p].Type != REGT_NIL) { assert(param[p].Type == REGT_POINTER); x = (type *)param[p].a; } else
|
||||||
|
@ -927,7 +927,7 @@ void VMDisasm(FILE *out, const VMOP *code, int codesize, const VMScriptFunction
|
||||||
#define PARAM_SOUND(x) ++paramnum; PARAM_SOUND_AT(paramnum,x)
|
#define PARAM_SOUND(x) ++paramnum; PARAM_SOUND_AT(paramnum,x)
|
||||||
#define PARAM_COLOR(x) ++paramnum; PARAM_COLOR_AT(paramnum,x)
|
#define PARAM_COLOR(x) ++paramnum; PARAM_COLOR_AT(paramnum,x)
|
||||||
#define PARAM_FLOAT(x) ++paramnum; PARAM_FLOAT_AT(paramnum,x)
|
#define PARAM_FLOAT(x) ++paramnum; PARAM_FLOAT_AT(paramnum,x)
|
||||||
#define PARAM_DANGLE(x) ++paramnum; PARAM_DANGLE_AT(paramnum,x)
|
#define PARAM_ANGLE(x) ++paramnum; PARAM_ANGLE_AT(paramnum,x)
|
||||||
#define PARAM_STRING(x) ++paramnum; PARAM_STRING_AT(paramnum,x)
|
#define PARAM_STRING(x) ++paramnum; PARAM_STRING_AT(paramnum,x)
|
||||||
#define PARAM_STATE(x) ++paramnum; PARAM_STATE_AT(paramnum,x)
|
#define PARAM_STATE(x) ++paramnum; PARAM_STATE_AT(paramnum,x)
|
||||||
#define PARAM_POINTER(x,type) ++paramnum; PARAM_POINTER_AT(paramnum,x,type)
|
#define PARAM_POINTER(x,type) ++paramnum; PARAM_POINTER_AT(paramnum,x,type)
|
||||||
|
@ -940,7 +940,7 @@ void VMDisasm(FILE *out, const VMOP *code, int codesize, const VMScriptFunction
|
||||||
#define PARAM_SOUND_OPT(x) ++paramnum; PARAM_SOUND_OPT_AT(paramnum,x)
|
#define PARAM_SOUND_OPT(x) ++paramnum; PARAM_SOUND_OPT_AT(paramnum,x)
|
||||||
#define PARAM_COLOR_OPT(x) ++paramnum; PARAM_COLOR_OPT_AT(paramnum,x)
|
#define PARAM_COLOR_OPT(x) ++paramnum; PARAM_COLOR_OPT_AT(paramnum,x)
|
||||||
#define PARAM_FLOAT_OPT(x) ++paramnum; PARAM_FLOAT_OPT_AT(paramnum,x)
|
#define PARAM_FLOAT_OPT(x) ++paramnum; PARAM_FLOAT_OPT_AT(paramnum,x)
|
||||||
#define PARAM_DANGLE_OPT(x) ++paramnum; PARAM_DANGLE_OPT_AT(paramnum,x)
|
#define PARAM_ANGLE_OPT(x) ++paramnum; PARAM_ANGLE_OPT_AT(paramnum,x)
|
||||||
#define PARAM_STRING_OPT(x) ++paramnum; PARAM_STRING_OPT_AT(paramnum,x)
|
#define PARAM_STRING_OPT(x) ++paramnum; PARAM_STRING_OPT_AT(paramnum,x)
|
||||||
#define PARAM_STATE_OPT(x) ++paramnum; PARAM_STATE_OPT_AT(paramnum,x)
|
#define PARAM_STATE_OPT(x) ++paramnum; PARAM_STATE_OPT_AT(paramnum,x)
|
||||||
#define PARAM_POINTER_OPT(x,type) ++paramnum; PARAM_POINTER_OPT_AT(paramnum,x,type)
|
#define PARAM_POINTER_OPT(x,type) ++paramnum; PARAM_POINTER_OPT_AT(paramnum,x,type)
|
||||||
|
|
Loading…
Reference in a new issue