Mitchell Richters
9299e5f813
- SW: Pitch-adjusted velocity for InitTurretMicro()
.
2022-11-30 10:03:50 +01:00
Mitchell Richters
86a7f7ca2c
- SW: Pitch-adjusted velocity for InitTankShell()
.
2022-11-30 10:03:49 +01:00
Mitchell Richters
b99dac1e56
- SW: Pitch-adjusted velocity for InitUzi()
.
2022-11-30 10:03:49 +01:00
Mitchell Richters
319c1533b3
- SW: Pitch-adjusted velocity for InitTracerTurret()
.
2022-11-30 10:03:49 +01:00
Mitchell Richters
25e0b9a073
- SW: Pitch-adjusted velocity for InitTracerUzi()
.
2022-11-30 10:03:49 +01:00
Mitchell Richters
7ae21a27cc
- SW: Pitch-adjusted velocity for InitMicro()
.
2022-11-30 10:03:48 +01:00
Mitchell Richters
7658d8772d
- SW: Pitch-adjusted velocity for InitNuke()
.
2022-11-30 10:03:48 +01:00
Mitchell Richters
393553780b
- SW: Pitch-adjusted velocity for InitBunnyRocket()
.
2022-11-30 10:03:48 +01:00
Mitchell Richters
26460bc6aa
- SW: Pitch-adjusted velocity for InitRocket()
.
2022-11-30 10:03:48 +01:00
Mitchell Richters
8da5b096c0
- SW: Pitch-adjusted velocity for InitRail()
.
2022-11-30 10:03:47 +01:00
Mitchell Richters
283f8d208a
- SW: Pitch-adjusted velocity for InitLaser()
.
2022-11-30 10:03:47 +01:00
Mitchell Richters
51c0fbcca1
- SW: Pitch-adjusted velocity for InitShotgun()
.
2022-11-30 10:03:47 +01:00
Mitchell Richters
3fd397e384
- SW: Pitch-adjusted velocity for InitHeartAttack()
.
2022-11-30 10:03:47 +01:00
Mitchell Richters
a27e5a0ed2
- SW: Pitch-adjusted velocity for InitStar()
.
2022-11-30 10:03:47 +01:00
Mitchell Richters
bcf09c3037
- SW: Pitch-adjusted velocity for InitFistAttack()
.
2022-11-30 10:03:46 +01:00
Mitchell Richters
2577ea21f2
- SW: Pitch-adjusted velocity for InitSwordAttack()
.
2022-11-30 10:03:46 +01:00
Mitchell Richters
2b4149b70e
- SW: Pitch-adjusted velocity for InitSpellMirv()
.
2022-11-30 10:03:46 +01:00
Mitchell Richters
b7a1e699f6
- SW: Pitch-adjusted velocity for InitSpellNapalm()
.
2022-11-30 10:03:46 +01:00
Christoph Oelckers
ec48b91730
- fixed the last remaining z/inttoworld mismatches.
...
The one in clipmove was critical, the other ones not so much.
2022-11-27 10:21:47 +01:00
Christoph Oelckers
ed4f49ac86
- fixed sound code for backend update.
2022-11-24 17:46:39 +01:00
Christoph Oelckers
42e02d2956
- eliminated firstWall as well.
2022-11-15 15:44:33 +01:00
Christoph Oelckers
5798fa067f
- cleaned up all -> accesses through firstWall().
2022-11-15 15:33:35 +01:00
Christoph Oelckers
af60408e63
- sector wall access cleanup.
...
lastWall was only used twice and firstWall() + index can be done better now.
2022-11-15 15:31:52 +01:00
Christoph Oelckers
7d9a4ea70d
- eliminated wallsofsector.
2022-11-15 15:24:17 +01:00
Christoph Oelckers
84b17a8a53
- eliminate wall_count.
2022-11-15 14:59:28 +01:00
Christoph Oelckers
c23db8ea35
- wrapped all reads of sectortype::wallnum and renamed all other wallnum variables.
2022-11-15 12:21:21 +01:00
Christoph Oelckers
b7a7584059
- renamed wallnum and sectnum functions.
...
These were creating a lot of search noise because local variables had the same name.
2022-11-15 12:03:44 +01:00
Christoph Oelckers
ac4be79e96
- implemented cl_weaponswitch for Duke.
2022-11-12 09:34:08 +01:00
Christoph Oelckers
cfb9ebf8e5
- fixed bad velocity assignment in DoLaser, causing an endless loop.
2022-11-10 10:00:44 +01:00
Christoph Oelckers
e88b24bce7
- SW: fixed clipdist for brown rippers.
2022-11-09 20:16:47 +01:00
Christoph Oelckers
d2f0981091
- SW: fixed distance check in DoGet.
2022-11-09 19:03:23 +01:00
Christoph Oelckers
870801b8ac
- SW: explicitly initialize sector object turn angle values.
...
The integer code relied on the memset to -1, but with floats that sets it to -NaN.
2022-11-09 18:35:03 +01:00
Christoph Oelckers
fd1864bb48
- fixed bad iterator setup in SpriteSetupPost
2022-11-07 13:48:01 +01:00
Mitchell Richters
d892fa10d2
- SW: Fix ladder speed with unnecessary amplification applied.
...
* Fixes #745 .
2022-11-07 20:23:14 +11:00
Mitchell Richters
143f691c06
- SW: Try to fix up the camera drawing a bit.
...
* Slight pitch adjustment, plus factoring in that values of 0 constituted 100 under original game.
* View screens in game are not actually 1:1 AR but 1.12:1
2022-11-06 21:59:07 +11:00
Christoph Oelckers
99753fd03a
- fixed bad scaling factor in girlninj.cpp.
2022-11-04 18:18:23 +01:00
Christoph Oelckers
0c87bcb91b
- renamed getzsofslopeptr to calcSlope and removed one redundant inline.
2022-10-30 16:51:40 +01:00
Christoph Oelckers
32b2e84fdc
- added episode and total episode time display to alt HUD
2022-10-30 16:51:40 +01:00
Christoph Oelckers
f4c8ac0140
- made AnimSet's vel parameter an actual double.
...
This does not affect any outcome, it just avoids pointless type conversions.
2022-10-30 16:51:36 +01:00
Christoph Oelckers
4ac3820511
- deleted two unused local variables.
2022-10-30 16:51:36 +01:00
Christoph Oelckers
98e2fecd37
- another bunch of type conversion warnings fixed.
...
the ones in the findplayer functions are not critical in singleplayer.
2022-10-30 16:51:35 +01:00
Christoph Oelckers
902f8c9706
- silenced lots of warnings for deliberate type conversions.
...
The ones in d_net.cpp are not in active code.
2022-10-30 16:51:35 +01:00
Christoph Oelckers
0c8a76dc9c
- use ActorVect… functions in a few more places
2022-10-30 16:51:35 +01:00
Christoph Oelckers
e5efb5c15f
- fixed seeker missile aiming
...
merge to "floatified VectorMissileSeek"
2022-10-30 16:51:34 +01:00
Christoph Oelckers
c159953ac6
- use normalangle().
2022-10-30 16:51:33 +01:00
Christoph Oelckers
3c6b64d621
- renamed everything back
2022-10-30 16:51:33 +01:00
Christoph Oelckers
81341ce4a6
- unwrapped SetScale as well.
...
Again no edits here - it's one big replace action.
2022-10-30 16:51:33 +01:00
Christoph Oelckers
da523eb8e3
- unwrapped vector SetScale.
2022-10-30 16:51:32 +01:00
Christoph Oelckers
15db7a7143
- unwrapped SetScaleX/Y.
2022-10-30 16:51:32 +01:00
Christoph Oelckers
8265239d2d
- removed AddScale wrappers.
2022-10-30 16:51:32 +01:00
Christoph Oelckers
85b52b1c77
- removed Scale(), CopyScale() and MultScale wrappers.
2022-10-30 16:51:32 +01:00
Christoph Oelckers
51768439a9
- started removing wrappers. ScaleX() and ScaleY() done.
...
No manual changes in here.
2022-10-30 16:51:31 +01:00
Christoph Oelckers
2df12e7961
- these are the final repeats
2022-10-30 16:51:31 +01:00
Christoph Oelckers
854c42e4ca
- handle all remaining repeat constants.
2022-10-30 16:51:31 +01:00
Christoph Oelckers
42b36d97b9
- half of the remainint repeats in weapon.cpp.
2022-10-30 16:51:30 +01:00
Christoph Oelckers
391b8ffc34
- batch of repeats in weapons.cpp
2022-10-30 16:51:30 +01:00
Christoph Oelckers
0e8594628e
- did the messier parts of weapon.cpp's repeats.
2022-10-30 16:51:30 +01:00
Christoph Oelckers
ce0a40320c
- handle all 'notreallypos' places.
2022-10-30 16:51:30 +01:00
Christoph Oelckers
8a455aa09b
- all remaining repeats outside weapon.cpp plus a few more.
2022-10-30 16:51:30 +01:00
Christoph Oelckers
60782efd01
- some odd repeats.
2022-10-30 16:51:29 +01:00
Christoph Oelckers
33aed76977
- random scale stuff in jweapon.cpp
2022-10-30 16:51:29 +01:00
Christoph Oelckers
8cb40291f2
- lots of repeat literals in SW
2022-10-30 16:51:29 +01:00
Christoph Oelckers
8ede08ce69
- mostly coolie related scaling factors.
2022-10-30 16:51:29 +01:00
Christoph Oelckers
abf5c9feee
- all repeats in SW’s draw code
2022-10-30 16:51:29 +01:00
Christoph Oelckers
509d56d042
- handle bunny scaling in SW
2022-10-30 16:51:29 +01:00
Christoph Oelckers
dd3346cbc5
- mostly comparisons and code surrounding them
2022-10-30 16:51:26 +01:00
Christoph Oelckers
1085752e01
- added more Scale wrappers to spritetype.
2022-10-30 16:51:23 +01:00
Christoph Oelckers
8a8ef22e53
- mostly '>' comparisons with scale values.
2022-10-30 16:51:22 +01:00
Christoph Oelckers
a11a366697
- some automatic replacements.
2022-10-30 16:51:21 +01:00
Christoph Oelckers
91c318b708
- renamed most non-sprite xrepeat and yrepeat as refactpring aid.
...
These will be renamed back later but now they create too much search noise.
A few local variables have been permanently renamed to scale*.
2022-10-30 16:51:20 +01:00
Christoph Oelckers
e60fafec52
- got rid of most REPEAT_SCALE factors.
2022-10-30 16:51:19 +01:00
Christoph Oelckers
8d1626de02
- yet more SetScale uses.
2022-10-30 16:51:18 +01:00
Christoph Oelckers
d8fac32459
- more simple SetScale replacements.
2022-10-30 16:51:17 +01:00
Christoph Oelckers
86d6ba43d4
- more automatic SetScale replacement, plus all of SetScale(0.5, 0.5);
2022-10-30 16:51:17 +01:00
Christoph Oelckers
c7c3b2a20c
- added a SetScale method to spritetype and used it for all places setting x/yrepeat to 0.
2022-10-30 16:51:17 +01:00
Christoph Oelckers
35fbc634de
- silence some warnings
2022-10-30 16:51:17 +01:00
Christoph Oelckers
9f19a1315b
- replaced most native_clipdist() calls
...
Only those in nnext using internal int storage remain.
2022-10-30 16:51:16 +01:00
Christoph Oelckers
e80c32cfd4
- handle magic clipdist values
2022-10-30 16:51:16 +01:00
Christoph Oelckers
a6e35edc6c
- replaced all set_native_clipdist
...
Note that truncation has to be preserved here to ensure the size stays the same as before so the MulScales were not resolved into their factors.
2022-10-30 16:51:16 +01:00
Christoph Oelckers
ed5b35453a
- ';;' cleanup
2022-10-30 16:51:15 +01:00
Christoph Oelckers
7ed45d713a
- refactor all oclipdist uses
2022-10-30 16:51:15 +01:00
Christoph Oelckers
d22c473c31
- manual set_const_clipdist replacements
2022-10-30 16:51:15 +01:00
Christoph Oelckers
48fda0cafd
- second batch of set_const_clipdist replacements
2022-10-30 16:51:15 +01:00
Christoph Oelckers
4af4983d3e
- floatified clipdist and replaced fClipdist wrapper.
...
This uses a new variable because a few things use clipdist as a flag byte
2022-10-30 16:51:14 +01:00
Christoph Oelckers
88dcc37e94
- got rid of the wrappers for the SO angles.
2022-10-30 16:51:13 +01:00
Mitchell Richters
215fc7d407
- SW: Optimise DoPlayerDeathHoriz()
a bit.
2022-10-30 16:51:12 +01:00
Mitchell Richters
cea2b6b428
- Rename PlayerHorizon::__horiz
back to horiz
.
2022-10-30 16:51:12 +01:00
Mitchell Richters
ff1d51b4fe
- Fix 4x horiz negation issues.
2022-10-30 16:51:11 +01:00
Mitchell Richters
0600bf5860
- Negate everything to do with PlayerHorizon::__horiz
where appropriate, including some loose horizoff
members.
2022-10-30 16:51:11 +01:00
Mitchell Richters
619b8005ac
- Rename PlayerHorizon::horiz
in prep for negating this angle throughout code.
2022-10-30 16:51:11 +01:00
Christoph Oelckers
679e029c6d
- do not save randomseed twice.
2022-10-30 16:51:09 +01:00
Christoph Oelckers
7d3babd678
- ported all pushmove calls to the float version.
2022-10-30 16:51:08 +01:00
Christoph Oelckers
f45acdc2a8
- floatified two SOP clipdist variables
2022-10-30 16:51:08 +01:00
Christoph Oelckers
9257fe0078
- fixed clipmove factors.
2022-10-30 16:51:08 +01:00
Christoph Oelckers
600c2a0243
- map all clipmove calls to the version with a full float interface.
2022-10-30 16:50:48 +01:00
Christoph Oelckers
a4dd5bb4ce
- rewrote the model storage code.
...
Using proper C++ containers now.
2022-10-27 16:55:54 +02:00
Mitchell Richters
8bc34f3dac
- Handle all remaining VecToAngle()
calls.
2022-10-27 16:55:53 +02:00
Mitchell Richters
1e7cce28af
- VecToAngle() with delta()
inside to .Angle() replacements.
2022-10-27 16:55:53 +02:00
Mitchell Richters
9b98388215
- VecToAngle() with XY()
inside to .Angle() replacements.
2022-10-27 16:55:53 +02:00
Mitchell Richters
c00c8d196e
- Simple VecToAngle() > .Angle() replacements.
2022-10-27 16:55:52 +02:00