Mitchell Richters
8697e5f054
- Replace all q16horiz(0)
calls.
2022-10-25 07:06:54 +02:00
Mitchell Richters
22a9f89b64
- Remove all uses of fixedhoriz::asq16()
.
2022-10-25 07:06:54 +02:00
Mitchell Richters
06a9a7b1a7
- SW: Change all weapon recoils to work on pitch.
2022-10-25 07:06:54 +02:00
Mitchell Richters
5851c0f2c6
- Clean up some q16horiz usage and how the view pitch is clamped.
2022-10-25 07:06:53 +02:00
Mitchell Richters
4ef9ec93ea
- Remove fixedhoriz::asbuildf()
and associated buildf friend.
...
* The new friend `tanhoriz()` is just for the input code for now.
2022-10-25 07:06:53 +02:00
Mitchell Richters
d8a6471680
- Add fixedhoriz::Tan()
and replace most asbuildf()
calls with it.
2022-10-25 07:06:53 +02:00
Mitchell Richters
f6f88f587d
- SW: Consolidate random range applied to weapon vel.Z into an inline.
2022-10-25 07:06:53 +02:00
Mitchell Richters
d00108b9cf
- Blood: Repair life leach turret mode where target's position and not velocity was used.
2022-10-25 07:06:52 +02:00
Mitchell Richters
ef4b72d18e
- Blood: Floatify LifeLeechOperate()
.
...
* These divscales hurt my soul...
2022-10-25 07:06:52 +02:00
Christoph Oelckers
1255fda4c1
- two more functions in aibeast.cpp.
...
Note that the eyeHeight adjustment was removed because it was applied incorrectly and essentially non-functional.
eyeHeight is in world coordinates but was used as if it was Q24.8, resulting in a value too small to be significant.
2022-10-25 07:06:52 +02:00
Christoph Oelckers
e9fc0d09a9
- renaming things in StompSeqCallback
2022-10-25 07:06:52 +02:00
Christoph Oelckers
0ed4b8b01a
- Blood: floatified SlashSeqCallback
2022-10-25 07:06:52 +02:00
Christoph Oelckers
c1da02de8a
- Blood: floatified calebThinkSwimChase
2022-10-25 07:06:52 +02:00
Christoph Oelckers
c85a95ca03
- Blood: floatified cultThinkChase
...
Welcome to spaghetti-land, this is one 400 line monstrosity. :(
2022-10-25 07:06:52 +02:00
Christoph Oelckers
3055a1e5a7
- Blood: renamed functions and floatified cultThrowSeqCallback3
2022-10-25 07:06:52 +02:00
Christoph Oelckers
fd7c47ce2b
- Blood: floatified cultThrowSeqCallback
2022-10-25 07:06:51 +02:00
Christoph Oelckers
c1e0e04016
- Blood: floatified cerberusThinkChase
2022-10-25 07:06:51 +02:00
Christoph Oelckers
79d17dc645
- floatified cerberusThinkTarget
2022-10-25 07:06:51 +02:00
Christoph Oelckers
d3c3363e92
- Blood: floatified calebThinkChase
2022-10-25 07:06:51 +02:00
Christoph Oelckers
9394691601
- Blood: floatified burnThinkGoto
2022-10-25 07:06:51 +02:00
Christoph Oelckers
3c2239533b
- Blood: floatified burnThinkChase
2022-10-25 07:06:51 +02:00
Christoph Oelckers
f2f74fc239
- Blood: floatified eelThinkChase
2022-10-25 07:06:51 +02:00
Christoph Oelckers
beefa700b7
- Blood: floatified eelThinkPonder
2022-10-25 07:06:51 +02:00
Christoph Oelckers
0672a1a958
- replaced mapangle(85) with DAngle15.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
2c46d66c1e
- Blood: floatified beastThinkChase
2022-10-25 07:06:50 +02:00
Christoph Oelckers
105e20a32d
- eliminated lots of approxDist calls.
...
Only the really simple ones.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
dcfac1c930
- handle a few nAccel values that do not match the generic pattern
2022-10-25 07:06:50 +02:00
Christoph Oelckers
9927d5e25d
- always use FrontSpeed() access function for nAccel.
...
This gets rid of a large amount of FixedToFloat calls.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
8b96a93e80
- turned TurnRange calculation into a subfunction.
...
This formula was used in 36 places
2022-10-25 07:06:50 +02:00
Christoph Oelckers
e309d05161
- use literal constant for this.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
6a0b552352
- floatified first half of aibat.cpp.
...
Note: The scale factor for actFireVector calls with XY set per ToVector is 64. The vector being passed to it uses the same scale for Z as for XY.
This means that XY is 1/16384 of the fixed point vector and Z is 1/256, meaning the scale for XY must be 64x higher.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
ca58e3fc6b
- the rest of ai.cpp.
2022-10-25 07:06:49 +02:00
Christoph Oelckers
48cadbd392
remaining floatification on aiLookForTarget
2022-10-25 07:06:49 +02:00
Christoph Oelckers
fafb4cfc29
- remaining floatification on aiThinkTarget
2022-10-25 07:06:49 +02:00
Christoph Oelckers
298d029d55
- found one last place where an integer wrapper was called in actor.cpp
2022-10-25 07:06:49 +02:00
Christoph Oelckers
6c98a07a60
- elininated the actSpawnThing wrapper.
2022-10-25 07:06:49 +02:00
Christoph Oelckers
f7fe24b19e
- some remaining cleanup on actor.cpp
2022-10-25 07:06:49 +02:00
Christoph Oelckers
b0160bb87c
- removed the int vector in actCheckExplosion.
2022-10-25 07:06:49 +02:00
Christoph Oelckers
080d6969ec
- Blood: floatified some smaller parts in actor.cpp
2022-10-25 07:06:49 +02:00
Christoph Oelckers
b29000c9e1
- this wasn't really a fixed point value - just some scaling factor, so it shouldn't use FixedToFloat.
2022-10-25 07:06:48 +02:00
Christoph Oelckers
0ef9527209
- eliminated the last uses of int_hitpos.
2022-10-25 07:06:48 +02:00
Christoph Oelckers
a655b3835f
- like actFireVector, the direction vector needs to have unit length in 2D for actFireMissile as well.
...
May later be turned into a 3D unit vector for pitch correct missile movement.
2022-10-25 07:06:48 +02:00
Christoph Oelckers
5e4d45f6b8
- floatified actFireMissile
2022-10-25 07:06:48 +02:00
Christoph Oelckers
a070342f0c
- floatified actFireThing
2022-10-25 07:06:48 +02:00
Christoph Oelckers
40cb2116e0
- restore Duke's cheats.
2022-10-24 23:30:09 +02:00
Christoph Oelckers
9342b7b1a4
- Duke/RR: fixed move_player smart action.
2022-10-24 22:09:34 +02:00
Christoph Oelckers
33002b37a9
- RR: fixed randomization for hitscan weapons.
2022-10-24 21:26:41 +02:00
Christoph Oelckers
f9d8763ed5
- Exhumed: fixed wasp's death animation
2022-10-24 20:56:41 +02:00
Christoph Oelckers
c2e5bdbdce
- Exhumed: fixed grenade bouncing.
2022-10-24 20:41:15 +02:00
Christoph Oelckers
5fa27c2a72
- replaced the last set_int_ang calls.
2022-10-23 18:47:17 +02:00
Christoph Oelckers
4500fe6325
- Blood: replaced all calls to randomAngle with RandomAngle
2022-10-23 18:47:17 +02:00
Christoph Oelckers
a8cc6c1189
- floatified angles in useSectorWindGen plus two other set_int_ang.
2022-10-23 18:47:17 +02:00
Christoph Oelckers
a618161387
- floatified nnExtSpawnDude.
2022-10-23 18:47:16 +02:00
Christoph Oelckers
8505757d74
- floatified most of ProcessMotion.
2022-10-23 18:47:16 +02:00
Christoph Oelckers
a90eb853d5
- floatified fxBouncingSleeve and fxPodBloodSplat
2022-10-23 18:47:16 +02:00
Christoph Oelckers
e2d0cbf772
- allow entering cheats in the chat editor without using '#'.
2022-10-23 18:46:18 +02:00
Christoph Oelckers
c23d23ea60
- Blood: floatified fxBloodBits
2022-10-22 20:41:27 +02:00
Christoph Oelckers
fdb31fc2cc
- missing declaration.
2022-10-22 20:41:27 +02:00
Christoph Oelckers
74cf9a2ff2
- hitscan fully rewritten.
...
No traces of Build code left here! :)
2022-10-22 20:41:27 +02:00
Christoph Oelckers
babbad83af
- fixed FAFhitscan to not pass the hitpos back into hitscan.
...
This will overwrite the scan's start and cause the function to malfunction.
2022-10-22 20:41:27 +02:00
Christoph Oelckers
116ba340b2
- further hitscan overhaul.
...
* added floating point sprite intersect handlers for all sprite types. Hopefully this code is more understandable than Build's original variant.
* cleaned up intersectSprite a bit and moved the geometry math into the utility header.
* made some minor corrections to neartag.
* moved SW's testpointinquad to the backend because it was useful here.
2022-10-22 20:41:26 +02:00
Christoph Oelckers
6c6fdaf332
- floatified actSpawnDude and removed its unused last parameter.
...
All callers left it at 0.
2022-10-22 20:41:26 +02:00
Christoph Oelckers
aa0b6bb077
- changed parameters in a few HitScan calls in condCheckSprite
2022-10-22 20:41:26 +02:00
Christoph Oelckers
fc011e847f
- Blood: floatified actCheckTraps
2022-10-22 20:41:26 +02:00
Christoph Oelckers
8d1938b363
- Blood: cleaned up various angle and distance checks in AI code
2022-10-22 20:41:26 +02:00
Christoph Oelckers
e6cfb165f8
- converted all remaining add_int_bvel* calls.
2022-10-22 20:41:26 +02:00
Christoph Oelckers
068feae64e
- floatified actFireVector.
2022-10-22 20:41:25 +02:00
Christoph Oelckers
5c6cac49c8
- changed a few vel setter calls.
2022-10-22 20:41:25 +02:00
Christoph Oelckers
e00eda6cb8
- Blood: floatified VectorScan.
...
The texture checks in here definitely need some more verification, though.
Doing a quick test looked ok, but I do not think this was enough.
2022-10-22 20:41:25 +02:00
Christoph Oelckers
3b76de7b7d
- Blood: renamed actFireVector's arguments.
...
No way this can be refactored with names like a2, a3, a4 etc...
2022-10-22 20:41:25 +02:00
Christoph Oelckers
d1d68f1570
- handled the last remaining set_int_bvel* calls in nnexts.cpp.
2022-10-22 20:41:25 +02:00
Christoph Oelckers
88feac4272
- floatified useVelocityChanger
2022-10-22 20:41:25 +02:00
Christoph Oelckers
044b9e555b
- floatified a bit more of nnExtProcessSuperSprites
2022-10-22 20:41:25 +02:00
Christoph Oelckers
fd5bbbedaf
- floatified aiPatrolMove
2022-10-22 20:40:42 +02:00
Mitchell Richters
0993799967
- Blood: Use sprite angle radians in GameInterface::UpdateSounds()
.
2022-10-22 19:45:10 +02:00
Mitchell Richters
633fb01487
- Blood: Rename some weapon function variables to give us half a chance of refactoring it.
2022-10-22 19:45:10 +02:00
Mitchell Richters
cea0e74299
- Blood: Floatified remaining bits of playerProcess()
.
2022-10-22 19:45:10 +02:00
Mitchell Richters
32c784cd0f
- Blood: Floatified remaining bits of ProcessInput()
.
2022-10-22 19:45:10 +02:00
Christoph Oelckers
781c2492a9
- Blood: floatified aiFightDudeCanSeeTarget + aiPatrolMarkerReached
2022-10-22 19:45:10 +02:00
Christoph Oelckers
ead39cb010
- Blood: floatified parts of condCheckDude
2022-10-22 19:45:09 +02:00
Christoph Oelckers
92f958ded0
- Blood: floatified debrisBubble
2022-10-22 19:45:09 +02:00
Christoph Oelckers
39d100c970
- Blood: floatified debrisConcuss
2022-10-22 19:45:09 +02:00
Christoph Oelckers
549f062973
- Blood: floatified windGenDoVerticalWind
2022-10-22 19:45:09 +02:00
Mitchell Richters
ef03e64025
- Blood: Floatified ActionScan()
.
2022-10-22 12:17:04 +02:00
Mitchell Richters
b8b5fe9162
- Blood: Floatified playerStart()
and ZONE::ang
.
2022-10-22 12:17:04 +02:00
Christoph Oelckers
243c071834
- got rid of bsinf and bcosf.
2022-10-22 12:17:04 +02:00
Christoph Oelckers
6dd7fac902
- eliminated the sine table and moved tilehasmodelorvoxel to a different file to delete engine.cpp.
2022-10-22 12:17:04 +02:00
Christoph Oelckers
ef2f781e09
- rewrite from scratch of neartag.
2022-10-22 12:17:04 +02:00
Christoph Oelckers
600648939a
- removed some unnecessary distance checks.
...
These are the same as the specified max distance and redundant.
2022-10-22 12:17:03 +02:00
Christoph Oelckers
aae468e2b2
- migrated all of SW's neartag calls to the fully floatified version
2022-10-22 12:17:03 +02:00
Christoph Oelckers
20043f6223
- use symbolic constants in neartag calls.
2022-10-22 12:17:03 +02:00
Mitchell Richters
95cd74bdc0
- renamed slope functions so that the int versions get a special name.
2022-10-22 12:17:02 +02:00
Christoph Oelckers
ac2a3c443f
- got rid of all deprecated updatesector variants.
...
This required a few changes in the map loader and render interface.
2022-10-22 12:17:02 +02:00
Mitchell Richters
2e4996e8fc
- floatified nnextCanMove and deleted most deprecated updatesector variants.
2022-10-22 12:17:02 +02:00
Christoph Oelckers
c5a5e3cef5
- deleted some unused deprecated functions.
2022-10-22 12:17:01 +02:00
Christoph Oelckers
9b84a510da
- Blood: floatified debrisMove
2022-10-22 12:17:01 +02:00
Christoph Oelckers
d9453138f9
- fixed FAFcansee not working in some edge cases where one actor is very small and poorly placed.
...
Instead of directly going to the alternative, let's just do a regular cansee anyway and only run the fallback if this fails. hitscan is not good enough to perform sight checks.
2022-10-22 12:17:01 +02:00
Mitchell Richters
ef3be6181e
- Blood: Floatified GibThing()
.
2022-10-22 12:17:01 +02:00
Mitchell Richters
2e202a022c
- Blood: Floatified GibFX()
.
2022-10-22 12:17:01 +02:00
Mitchell Richters
3d16b76c9a
- Blood: Floatified ghostThinkChase()
.
2022-10-22 12:17:01 +02:00
Mitchell Richters
8025682334
- Blood: Floatified gargThinkChase()
.
2022-10-22 12:17:00 +02:00
Mitchell Richters
ad8fbc51de
- Blood: Floatified batThinkChase()
.
2022-10-22 12:17:00 +02:00
Christoph Oelckers
761412313f
- did some trivial replacements for deprecated functions.
2022-10-22 12:17:00 +02:00
Christoph Oelckers
6a1ff029b7
- floatified getslopeval and all related code.
2022-10-22 12:17:00 +02:00
Christoph Oelckers
ece8663f5e
- floatified calcSlope and cleaned up the get*slope interface
2022-10-22 12:17:00 +02:00
Mitchell Richters
930a78f7b2
- Use REPEAT_SCALE
in a few more places.
2022-10-22 12:16:59 +02:00
Christoph Oelckers
8a40fbb020
- deleted ffloorZ.
2022-10-22 12:16:59 +02:00
Christoph Oelckers
84ce8b29f2
- handle another precision issue in MoveDude.
...
That mulscale16r function is broken enough to affect the values in an observable way that cannot be replicated with real floats.
2022-10-22 12:16:59 +02:00
Christoph Oelckers
c9bcfff654
- gross hack to simulate the original bad precision of Blood's ClipMove.
2022-10-22 12:16:59 +02:00
Mitchell Richters
b45c95eec5
- Blood: Floatify MoveDude()
and fixed incorrect velocity check.
2022-10-22 12:16:59 +02:00
Mitchell Richters
4788e26596
- Blood: Floatify actAirDrag()
and some associated XSECTOR
members.
...
* Left `XSECTOR::windVel` as an integer type for now.
2022-10-22 12:16:59 +02:00
Mitchell Richters
7747205e03
- Blood: Some small wrapper replacements.
2022-10-22 12:16:59 +02:00
Mitchell Richters
448c52be74
- Blood: Clean up some rotatepoint()
usage.
2022-10-22 12:16:59 +02:00
Mitchell Richters
9c67110722
- Blood: Floatify GetSpriteExtents()
.
2022-10-22 12:16:59 +02:00
Mitchell Richters
f2be65777b
- Blood: Floatify remaining gib interfaces.
2022-10-22 12:16:58 +02:00
Mitchell Richters
d92fda4312
- Blood: Floatify callbackUniMissileBurst()
.
2022-10-22 12:16:58 +02:00
Mitchell Richters
3858e2cbd1
- Blood: Floatify FlareBurst()
.
2022-10-22 12:16:58 +02:00
Mitchell Richters
216089130c
- Blood: Floatify viewProcessSprites()
.
2022-10-22 12:16:58 +02:00
Mitchell Richters
e5226c65a9
- Blood: Add DAngle overload for CFX::fxSpawnActor()
.
2022-10-22 12:16:58 +02:00
Mitchell Richters
e124288b57
- Blood: Clean up actFloorBounceVector()
floatification.
2022-10-22 12:16:58 +02:00
Mitchell Richters
8e851c8b00
- Blood: Initial pass at floatifying actFloorBounceVector()
.
...
* Direct translation of the original code.
2022-10-22 12:16:58 +02:00
Mitchell Richters
cdf45103ad
- Blood: Floatify MoveThing()
.
2022-10-22 12:16:58 +02:00
Mitchell Richters
56bc13e669
- Blood: Floatify vel math in checkCeilHit()
.
2022-10-22 12:16:57 +02:00
Mitchell Richters
013158da07
- Blood: Floatify actKickObject()
.
2022-10-22 12:16:57 +02:00
Mitchell Richters
6efe565f7c
- Blood: Floatified vector addition in ConcussSprite()
.
2022-10-22 12:16:57 +02:00
Christoph Oelckers
d7a93e140c
- added format conversion helpers to DUDEINFO.
2022-10-22 12:16:57 +02:00
Christoph Oelckers
c44fd07f37
- floatified the portal displacement
2022-10-22 12:16:57 +02:00
Christoph Oelckers
fd4f04b5fd
- eliminated fixed point GetSoundPos variants
2022-10-22 12:16:56 +02:00
Christoph Oelckers
375d346ae8
- pass a vector to the processSprites interface.
2022-10-22 12:16:56 +02:00
Christoph Oelckers
04e98f2f77
- avoid inflation of random functions.
2022-10-22 12:16:56 +02:00
Christoph Oelckers
85e4022f77
- foatified GibWall
2022-10-22 12:16:55 +02:00
Christoph Oelckers
49ae7c0c0f
- floatified sound code in useSeqSpawnerGen
2022-10-22 12:16:55 +02:00
Christoph Oelckers
d03e890833
- fixed: The GC must mark the SprInSect actor lists
2022-10-22 12:16:55 +02:00
Christoph Oelckers
2b3b7f880f
- floatified getSpritesNearWalls
2022-10-22 12:16:55 +02:00
Christoph Oelckers
60e242373c
- floatified AlignSlopes
2022-10-22 12:16:55 +02:00
Christoph Oelckers
a3d1420426
- remove int wrappers from CheckProximityWall
...
As laid out in the comment, the function is broken and only kept for compatibility purposes. Therefore it may not be refactored in any way and should retain its incorrect and often overflowing int math. The wrappers are only a refactoring marker and have no place here.
2022-10-22 12:16:55 +02:00
Christoph Oelckers
e2954dd9d5
- floatified ceilIsTooLow
2022-10-22 12:16:55 +02:00
Christoph Oelckers
02aee7f8aa
- floatification in genDudePrepare
2022-10-22 12:16:54 +02:00
Christoph Oelckers
aa909b843d
- some identical set_int_bvel_z calls
2022-10-22 12:16:54 +02:00
Christoph Oelckers
7804e23ad0
- 8x set_int_ang
2022-10-22 12:16:54 +02:00
Christoph Oelckers
775ac0564c
- convert one sound call
2022-10-22 12:16:54 +02:00
Christoph Oelckers
e682e1bd85
- the last one
2022-10-22 12:16:54 +02:00
Christoph Oelckers
8b260294ae
- two more TranslateSector calls.
2022-10-22 12:16:54 +02:00
Christoph Oelckers
ec9272491e
- second part of TranslateSector calls.
2022-10-22 12:16:54 +02:00
Christoph Oelckers
8eb4296a56
- floatified first part of TranslateSector calls.
2022-10-22 12:16:54 +02:00
Christoph Oelckers
0c43366a04
- added a TranslateSector wrapper using vectors
2022-10-22 12:16:54 +02:00
Mitchell Richters
a4be139ac7
- floatified CheckLink
2022-10-22 12:16:53 +02:00
Christoph Oelckers
05edd22f67
remove set_int_pos from TranslateSector
2022-10-22 12:16:53 +02:00
Christoph Oelckers
38558bbd39
- floatified most of CFX::fxProcess
2022-10-22 12:16:53 +02:00
Christoph Oelckers
de38eb4dab
- add_int_pos in MoveDude
2022-10-22 12:16:53 +02:00
Christoph Oelckers
fb2c4efa2f
- eliminated the last place where tspritetype’s add_int_z was used
2022-10-22 12:16:53 +02:00
Christoph Oelckers
25bc068032
- simple add_int_z stuff in nnexts.cpp
2022-10-22 12:16:53 +02:00
Christoph Oelckers
305bca68c0
- Z velocity in MoveMissile
2022-10-22 12:16:53 +02:00
Mitchell Richters
c76540664d
- Blood: Fixed bad target angle setup in MoveMissile()
where 90° counter-clockwise rotation was lost.
2022-10-22 12:16:52 +02:00
Christoph Oelckers
e1bcb4962e
- cleaned up some function calls where passing a vector is doable
2022-10-22 12:16:52 +02:00
Christoph Oelckers
0fdc91904d
- replaced getposfromactor
2022-10-22 12:09:54 +02:00
Christoph Oelckers
896c480eb6
- deleted player_int_pos
2022-10-22 12:09:54 +02:00
Christoph Oelckers
ca8b9e9793
- overhauled getzrangepoint to use backend utilities
2022-10-22 12:09:54 +02:00
Christoph Oelckers
b2fd1fdaa4
- second part of final bsin replacement.
2022-10-22 12:09:54 +02:00
Christoph Oelckers
05117f9f5d
- first part of final bsin replacement.
2022-10-22 12:09:54 +02:00
Christoph Oelckers
5f44dcc262
- refactor animatesprites API
2022-10-22 12:09:54 +02:00
Christoph Oelckers
9a4c699f53
- floatify all 3 operateweapon functions.
2022-10-22 12:09:44 +02:00
Christoph Oelckers
eae2e638aa
- floatified all getangle calls.
2022-10-22 11:33:16 +02:00
Christoph Oelckers
c511e5dca9
- eliminated int_xvel
2022-10-22 11:33:16 +02:00
Christoph Oelckers
ad2e984367
- floatified move_r
2022-10-22 11:33:16 +02:00
Christoph Oelckers
eb40f78bd1
- floatified move_d
2022-10-22 11:33:16 +02:00
Christoph Oelckers
9325886e35
- split use of tempang between real angles and other counters.
2022-10-22 11:33:16 +02:00
Christoph Oelckers
ee28c90429
- angle stuff in recon()
2022-10-22 11:33:16 +02:00
Christoph Oelckers
e5d9875ae5
- one inttoworld -> maptoworld
2022-10-22 11:33:15 +02:00
Christoph Oelckers
8d99277b87
- remaining add_int_ang calls.
2022-10-22 11:33:15 +02:00
Christoph Oelckers
62d9a80379
- floatified most simple set_int_ang and add_int_ang calls.
2022-10-22 11:33:15 +02:00
Christoph Oelckers
d994dbd537
- floatified player_orig::oa
2022-10-22 11:33:15 +02:00
Christoph Oelckers
54346d9398
- eliminate all int_ang calls, except the one setting player.oa.
2022-10-22 11:33:15 +02:00
Christoph Oelckers
61a45da964
- floatified all remaining add_int_pos calls.
2022-10-22 11:33:15 +02:00
Christoph Oelckers
6c0e2624e5
- remaining angle wrappers in actors.cpp
2022-10-22 11:33:15 +02:00
Christoph Oelckers
2ea426be38
- handle several int_angle calls.
2022-10-22 11:33:15 +02:00
Christoph Oelckers
e42036d43b
- only use the floatified version of findplayer.
2022-10-22 11:33:14 +02:00
Mitchell Richters
132864ec8d
- Duke: Fix issue stemming from - only use the floatified version of findplayer.
.
...
* This value must be floored.
* Fixes E2L1's space ship projectile timing.
2022-10-22 11:33:14 +02:00
Christoph Oelckers
1096344cae
- only use the floatified version of findplayer.
2022-10-22 11:33:14 +02:00
Christoph Oelckers
201526b53c
- only use the floatified version of findplayer.
2022-10-22 11:33:14 +02:00
Christoph Oelckers
1fdfe4635b
- only use the floatified version of findplayer.
2022-10-22 11:33:14 +02:00
Christoph Oelckers
848d7fc16e
- VM interface cleanup
2022-10-22 11:33:14 +02:00
Christoph Oelckers
b712315ec3
- floatified playerJump
2022-10-22 11:33:14 +02:00
Christoph Oelckers
14b5984664
- removed int_playerheight
2022-10-22 11:33:14 +02:00
Christoph Oelckers
4e9ab67c35
- RR's movement and underwater completed.
2022-10-22 11:33:13 +02:00
Christoph Oelckers
8060813ea8
- floatified large parts of processinput_r
2022-10-22 11:33:13 +02:00
Christoph Oelckers
167e0ecd0e
- merge with processinput_d
...
- floatified processinput_d
2022-10-22 11:33:13 +02:00
Christoph Oelckers
47dc2e6b1f
- hitscan call in operatetripbomb
2022-10-22 11:33:13 +02:00
Christoph Oelckers
89cb29292c
- floatified operateJetpack
2022-10-22 11:33:13 +02:00
Christoph Oelckers
583a5bd0e3
- floatified playerisdead
2022-10-22 11:33:13 +02:00
Christoph Oelckers
4ded343aa5
- floatified SE16
2022-10-22 11:30:24 +02:00
Christoph Oelckers
e4898af11a
- floatified remaining code of SE17.
2022-10-22 09:34:16 +02:00
Christoph Oelckers
671e75ba5f
- eliminate the last int_zvel call
2022-10-22 09:34:16 +02:00
Christoph Oelckers
cd6c524b90
- converted most of the remaining CreateActor calls.
2022-10-22 09:34:16 +02:00
Christoph Oelckers
30a3bba644
- many CreateActor calls converted to true floats.
2022-10-22 09:34:15 +02:00
Christoph Oelckers
5ccefcb77b
- first round of CreateActor calls.
2022-10-22 09:34:15 +02:00
Mitchell Richters
bbdb953eda
- Duke: Fix issue stemming from - handle all remaining set_int_xvel and set_int_zvel.
.
...
* Fixes the Liztrooper sprite angle issues.
2022-10-22 09:34:15 +02:00
Christoph Oelckers
13dd7260f5
- handle all remaining set_int_xvel and set_int_zvel.
2022-10-22 09:34:15 +02:00
Christoph Oelckers
e73a6409bb
- forcesphere stuff
2022-10-22 09:34:15 +02:00
Christoph Oelckers
42f179f675
- GreenSlime stuff
2022-10-22 09:34:15 +02:00
Christoph Oelckers
fdfd8c2a35
- change for pyoff
2022-10-22 09:34:15 +02:00
Christoph Oelckers
2e947fded3
- trivial changes
2022-10-22 09:34:14 +02:00
Christoph Oelckers
9557137b58
- floatified queball
2022-10-22 09:34:14 +02:00
Christoph Oelckers
9f219ce809
- floatified bounce()
2022-10-22 09:34:14 +02:00
Christoph Oelckers
b9d803bc24
- floatified Duke's sound frontend
2022-10-22 09:34:14 +02:00
Christoph Oelckers
6ed157ccdb
- handle all remaining int_pos outside the sound code.
...
SPOTLITE has no handler, so its temp_data is of no use.
2022-10-22 09:34:14 +02:00
Christoph Oelckers
f52b361dfc
- floatified aim()
2022-10-22 09:34:14 +02:00
Christoph Oelckers
b8efc5c563
- floatified RR noise code.
2022-10-22 09:34:14 +02:00
Christoph Oelckers
7ee620628d
- floatified handle_se24
2022-10-22 09:34:13 +02:00
Christoph Oelckers
9cfd56a912
- mathutil is not needed anymore.
2022-10-22 09:34:13 +02:00
Christoph Oelckers
ebb7442370
- floatified hitawall
2022-10-22 09:34:13 +02:00
Christoph Oelckers
b176d94ede
- floatified hitasprite
2022-10-22 09:34:13 +02:00
Christoph Oelckers
062e533b81
- floatified hitasprite's callers.
2022-10-22 09:34:13 +02:00
Christoph Oelckers
d4aaee6274
- floatified hits()
2022-10-22 09:34:13 +02:00
Christoph Oelckers
9591325876
- floatified return value of hits()
2022-10-22 09:34:13 +02:00
Christoph Oelckers
479616a80f
- got new CVar system from GZDoom.
2022-10-22 00:12:17 +02:00
Christoph Oelckers
ff25dc7ae5
- fixed AngleChase pitch calculation.
...
This had one variable replacement missing.
2022-10-21 23:57:49 +02:00
Christoph Oelckers
81a688ee75
- fixed bad z-scale relations in BuildBullet
2022-10-21 23:17:07 +02:00
Christoph Oelckers
52dc48d671
- fixed spawn position calculation in shootflamethrowerflame.
2022-10-21 22:20:41 +02:00
Christoph Oelckers
45e2347006
- fixed velocity issues with shoot* functions.
2022-10-21 21:42:00 +02:00
Christoph Oelckers
99ca695333
- floatified the main shoot functions.
2022-10-21 00:00:09 +02:00
Christoph Oelckers
be0eb81c95
- deleted unused utilities
2022-10-21 00:00:09 +02:00
Christoph Oelckers
66b00cfb52
- floatified RR's shootmortar
2022-10-21 00:00:09 +02:00
Christoph Oelckers
d0a890dd15
- floatified RR's shootwhip.
2022-10-21 00:00:08 +02:00
Christoph Oelckers
836d7fea34
- fixed some warnings.
2022-10-21 00:00:08 +02:00
Christoph Oelckers
83fc7a3116
- floatified RR's shootrpg.
2022-10-21 00:00:08 +02:00
Christoph Oelckers
81865969be
- floatified RR's shootstuff
2022-10-21 00:00:08 +02:00
Christoph Oelckers
b105897d9f
- 'effector->GetOwner()' was used a lot in this block...
2022-10-21 00:00:08 +02:00
Christoph Oelckers
4dfba60d99
- eliminated all ldist calls outside the weapon code.
2022-10-21 00:00:08 +02:00
Christoph Oelckers
ef7a6f8c8d
- floatified remaining parts of shootflamethrowerflame.
2022-10-21 00:00:08 +02:00
Christoph Oelckers
9d8685096d
- floatified shootshrinker
2022-10-21 00:00:07 +02:00
Christoph Oelckers
0b58f2ea3c
- floatified shootmortar
2022-10-21 00:00:07 +02:00
Christoph Oelckers
840d1f4793
- floatified shootgrowspark
2022-10-21 00:00:07 +02:00
Christoph Oelckers
cb7c5dc3ac
- floatified tracers
2022-10-21 00:00:07 +02:00
Mitchell Richters
623e0ff30e
- floatified RR's shootweapon.
...
Mostly copy/paste from Duke.
* Edited to fix missed `zvel` change within `if (atwith == SHOTSPARK1)`.
2022-10-21 00:00:07 +02:00
Christoph Oelckers
b706e6276a
- floatified RR's shootmelee.
...
Mostly copy/paste from Duke.
2022-10-21 00:00:07 +02:00
Christoph Oelckers
e224abb949
- silenced warnings.
2022-10-21 00:00:07 +02:00
Christoph Oelckers
977131eb8c
- eliminated all set_int_z calls in Duke.
2022-10-21 00:00:07 +02:00
Christoph Oelckers
933e42eca6
- moved the remaining shoot handlers out of shoot_d.
2022-10-21 00:00:06 +02:00
Christoph Oelckers
7becce8cb6
- floatified shootlaser
2022-10-21 00:00:06 +02:00
Christoph Oelckers
9598468c9a
- floatified Duke's shootrpg
2022-10-21 00:00:06 +02:00
Christoph Oelckers
b5a869b053
- floatified Duke's shootstuff.
2022-10-21 00:00:06 +02:00
Christoph Oelckers
1702491619
- floatified Duke's shootweapon.
2022-10-21 00:00:06 +02:00
Christoph Oelckers
aad2c30af7
- floatified shootknee
2022-10-21 00:00:06 +02:00
Christoph Oelckers
436b8bc50a
- floatified shootfireball
2022-10-21 00:00:06 +02:00
Christoph Oelckers
a226a847bd
- fixed warnings
2022-10-21 00:00:06 +02:00
Christoph Oelckers
9deb1dfa69
- floatified shootbloodsplat.
2022-10-21 00:00:05 +02:00
Christoph Oelckers
4f5dce81f6
- floatifx position in checkhitswitch_d.
2022-10-21 00:00:05 +02:00
Mitchell Richters
2081e270cd
- Duke: Fix bad setup in move_d()
that stopped enforcer working properly in E3L1.
...
* Merge with or above `- eliminated all of add_int_zvel.`.
2022-10-21 00:00:05 +02:00
Christoph Oelckers
1814274124
- eliminated all of add_int_zvel.
2022-10-21 00:00:05 +02:00
Christoph Oelckers
65b6b5ba71
- migrated all simple EGS calls to CreateActor
...
The remaining ones require more work on the weapon code first
2022-10-21 00:00:05 +02:00
Christoph Oelckers
a48ebc51a6
- This makes no sense either way…
2022-10-21 00:00:05 +02:00
Christoph Oelckers
068099cb3e
- floatify glass spawners
2022-10-21 00:00:05 +02:00
Christoph Oelckers
5140baf7c5
- floatified a bunch in move_r
2022-10-21 00:00:05 +02:00
Christoph Oelckers
3e511f33b8
- movetripbomb and movecrack
2022-10-21 00:00:04 +02:00
Christoph Oelckers
facedb6325
- floatified movesprite_ex
2022-10-21 00:00:04 +02:00
Christoph Oelckers
829d06790f
- handle the remaining movesprite_ex calls
2022-10-21 00:00:04 +02:00
Christoph Oelckers
4b184c6d43
- movesprite_ex refactoring, part 2
2022-10-21 00:00:04 +02:00
Christoph Oelckers
5dedce047a
- movesprite_ex refactoring, part 1
2022-10-21 00:00:04 +02:00
Christoph Oelckers
0432930e5b
- converted all dist() calls to vector math and deleted the utilities
2022-10-21 00:00:04 +02:00
Christoph Oelckers
2bcc552ce0
- replace FireProj struct with a second temp_pos vector
...
We’re going to need this anyway for some SE’s.
2022-10-21 00:00:04 +02:00
Christoph Oelckers
dfd098d719
- simple replacements in sector and spawn code
2022-10-21 00:00:04 +02:00
Christoph Oelckers
1c05d80e53
- simple replacements in player code
2022-10-21 00:00:03 +02:00
Christoph Oelckers
f6d06b1326
- simple replacements in actor code
2022-10-21 00:00:03 +02:00
Christoph Oelckers
ada4af8fb7
-consolidated sprite rotation formula in 2 inline functions.
2022-10-21 00:00:03 +02:00
Christoph Oelckers
c066f1754c
- use randomAngle
2022-10-21 00:00:03 +02:00
Christoph Oelckers
b164426dd2
- partial work on processinput_d
2022-10-21 00:00:03 +02:00
Christoph Oelckers
bda3a38ed9
- ported the remaining S_PlaySound3D calls
2022-10-21 00:00:03 +02:00
Christoph Oelckers
4956062b22
- added S_PlaySound3D variant receiving a float vector
2022-10-21 00:00:03 +02:00
Christoph Oelckers
e31f10be8a
- floatify position in all remaining updatesector calls for the player
2022-10-21 00:00:03 +02:00
Christoph Oelckers
3c9a94dba8
- consolidated Duke’s ‚away from wall‘ check in the backend
...
This was also very useful in SW to avoid spawning ‚floating‘ footprints due to lack of an equivalent check in the original.
2022-10-21 00:00:02 +02:00
Christoph Oelckers
1a597c4e0b
- fixed and floatified chickenarrow.
2022-10-21 00:00:02 +02:00
Christoph Oelckers
021f7062d1
- ported all simple EGS calls to CreateActor
2022-10-21 00:00:02 +02:00
Christoph Oelckers
dafc1ff2d2
- spawn coordinate in guts
2022-10-21 00:00:02 +02:00
Christoph Oelckers
6bd97e312d
- cleanup of the wall hit checks in hitradius
...
Yes, the z-check was indeed bad.
2022-10-21 00:00:02 +02:00
Christoph Oelckers
3352783be2
- added a Sum function to TVector familiy
...
Duke uses this kind of distance check quite a lot so it makes sense to add it to the vectors.
2022-10-21 00:00:02 +02:00
Christoph Oelckers
1d7f2c81b6
- fixed position backup for trip bombs.
2022-10-21 00:00:02 +02:00
Christoph Oelckers
38a8e15ff9
- floatified most of movetripbomb and ovel
2022-10-21 00:00:02 +02:00
Christoph Oelckers
1c50801c64
- floatified furthestangle
2022-10-21 00:00:01 +02:00
Christoph Oelckers
3c1970e9e0
- floatified alterang and changed return type of furthestangle
2022-10-21 00:00:01 +02:00
Christoph Oelckers
45f28f666c
- floatified dodge.
2022-10-20 23:59:28 +02:00
Christoph Oelckers
c7eabe5b55
- gameexec.cpp code cleanup
2022-10-20 23:59:27 +02:00
Christoph Oelckers
3711473194
- gameexec cleanup
2022-10-20 23:59:27 +02:00
Christoph Oelckers
3cefda2983
- simplify some angle stuff
2022-10-20 23:59:15 +02:00
Christoph Oelckers
43e1e3f50f
- floatified SE 32.
2022-10-20 23:08:55 +02:00
Christoph Oelckers
c0e7e6a543
- floatified leftover pieces of some debris-type actors.
2022-10-20 23:08:55 +02:00
Christoph Oelckers
2de1aea4a6
- floatified exit position.
2022-10-20 23:08:55 +02:00
Christoph Oelckers
1a64d18349
- floatified RR hitscan teleporter stuff and other minor things.
2022-10-20 23:08:55 +02:00
Christoph Oelckers
4322a30efb
- unlimited the number of active animations, also fixed a few bugs.
2022-10-20 23:08:54 +02:00
Christoph Oelckers
e3ea4cd55c
- floatified animation code.
2022-10-20 23:08:22 +02:00
Christoph Oelckers
0c7274752c
- falladjustz
2022-10-20 22:25:10 +02:00
Christoph Oelckers
6482fefeb3
- 3x add_int_z.
2022-10-20 22:25:10 +02:00
Christoph Oelckers
fe0a10ed29
- handle neartag calls in checksectors.
2022-10-20 22:25:10 +02:00
Christoph Oelckers
13fc658c1f
-floatified findplayer and findotherplayer.
2022-10-20 22:25:09 +02:00
Christoph Oelckers
68bc812681
- floatify hande_se35
...
This looks broken because the destination height is never set anywhere.
2022-10-20 22:25:09 +02:00
Christoph Oelckers
4196195b89
- floatified handle_se25
2022-10-20 22:25:09 +02:00
Mitchell Richters
8bfcb8c939
- Floatify InputPacket::fvel
and InputPacket::svel
.
...
* Since all velocities are floated, we can now take each game's keymove scaling into its ticker and use a consistent keymove size, making non-mouselook and controller input truly identical across the games without having to try and fudge any values.
2022-10-20 00:48:09 +02:00
Mitchell Richters
a178ef1ff6
- Duke: Floatify player_struct::fric
.
2022-10-20 00:48:09 +02:00
Christoph Oelckers
6310b06118
- got rid of set_int_z in Blood.
2022-10-20 00:48:09 +02:00
Mitchell Richters
def2b9d483
- Flip svel
around in the input code so we can use proper anti-clockwise vector math.
2022-10-20 00:48:09 +02:00