mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-18 23:52:02 +00:00
- Added ACS stubs for GZDoom's new SetGlobalFogParameter action special.
SVN r2058 (trunk)
This commit is contained in:
parent
64789b9111
commit
66c2e4b540
2 changed files with 2 additions and 1 deletions
|
@ -139,6 +139,7 @@ DEFINE_SPECIAL(Teleport_NoStop, 154, 2, 3, 3)
|
||||||
// Although ZDoom doesn't support them it's better to have them defined so that
|
// Although ZDoom doesn't support them it's better to have them defined so that
|
||||||
// WADs using them somewhere can at least be started without aborting due
|
// WADs using them somewhere can at least be started without aborting due
|
||||||
// to an error message.
|
// to an error message.
|
||||||
|
DEFINE_SPECIAL(SetGlobalFogParameter, 157, 2, 2, 2)
|
||||||
DEFINE_SPECIAL(FS_Execute, 158, 1, 4, 4)
|
DEFINE_SPECIAL(FS_Execute, 158, 1, 4, 4)
|
||||||
DEFINE_SPECIAL(Sector_SetPlaneReflection, 159, 3, 3, 3)
|
DEFINE_SPECIAL(Sector_SetPlaneReflection, 159, 3, 3, 3)
|
||||||
DEFINE_SPECIAL(Sector_Set3DFloor, 160, -1, -1, 5)
|
DEFINE_SPECIAL(Sector_Set3DFloor, 160, -1, -1, 5)
|
||||||
|
|
|
@ -125,7 +125,7 @@ bool AArtiPoisonBag3::Use (bool pickup)
|
||||||
angle_t orgpitch = angle_t(-Owner->pitch) >> ANGLETOFINESHIFT;
|
angle_t orgpitch = angle_t(-Owner->pitch) >> ANGLETOFINESHIFT;
|
||||||
angle_t modpitch = angle_t(0xDC00000 - Owner->pitch) >> ANGLETOFINESHIFT;
|
angle_t modpitch = angle_t(0xDC00000 - Owner->pitch) >> ANGLETOFINESHIFT;
|
||||||
angle_t angle = mo->angle >> ANGLETOFINESHIFT;
|
angle_t angle = mo->angle >> ANGLETOFINESHIFT;
|
||||||
fixed_t speed = fixed_t(sqrt((double)mo->Speed*mo->Speed + (4.0*65536*4*65536)));
|
fixed_t speed = FLOAT2FIXED(sqrt((double)mo->Speed*mo->Speed + (4.0*65536*4*65536)));
|
||||||
fixed_t xyscale = FixedMul(speed, finecosine[modpitch]);
|
fixed_t xyscale = FixedMul(speed, finecosine[modpitch]);
|
||||||
|
|
||||||
mo->velz = FixedMul(speed, finesine[modpitch]);
|
mo->velz = FixedMul(speed, finesine[modpitch]);
|
||||||
|
|
Loading…
Reference in a new issue