Christoph Oelckers
f80b228a83
- deal with int positions in approxdist calls
2022-10-13 00:58:59 +02:00
Christoph Oelckers
c53a2ac93a
- one final batch of AI stuff
2022-10-13 00:58:59 +02:00
Christoph Oelckers
230913bad3
- another large AI cleanup batch
2022-10-13 00:58:59 +02:00
Christoph Oelckers
ea04f5f800
- more vector stuff in Blood AI
...
all the same pattern
2022-10-12 22:18:11 +02:00
Christoph Oelckers
67d0e51919
- migrate Blood AI to floating point vectors, part 1
...
Velocity is still left untouched.
2022-10-12 22:18:11 +02:00
Christoph Oelckers
2f896b859b
- made the code mostly signed-char safe.
...
This eliminates all char function parameters that are not really ASCII characters and casts all char argument to the ctype is... functions.
2022-10-12 22:12:30 +02:00
Christoph Oelckers
e26d6aec14
- 3* EGS->CreateActor
2022-10-12 22:10:37 +02:00
Christoph Oelckers
97e93004b1
- quick’n easy replacements
2022-10-12 22:10:37 +02:00
Christoph Oelckers
f269ceff64
slope functions with position vectors
2022-10-12 22:10:37 +02:00
Christoph Oelckers
0499be0c26
- getting rid of some int_pos calls.
2022-10-12 22:10:37 +02:00
Christoph Oelckers
18a445aee5
- added ZeroVelocity function to DBloodActor.
2022-10-12 22:10:36 +02:00
Christoph Oelckers
a5a3669238
- eliminated the SetActor/Z function receiving a vec3_t pointer.
...
The only one left is the one with a DVector3 now.
2022-10-12 22:10:36 +02:00
Christoph Oelckers
00436bfdac
- eliminated one UpdateActor pverload.
2022-10-12 22:10:36 +02:00
Christoph Oelckers
f750ea8a70
- twq more SpawnActor calls.
2022-10-12 22:10:36 +02:00
Christoph Oelckers
9af2045dee
- code cleanup in Exhumed's Lion AI.
2022-10-12 22:10:36 +02:00
Christoph Oelckers
12b238b2bf
- the remaining SpawnActor calls.
2022-10-12 22:10:36 +02:00
Christoph Oelckers
80f019c429
- next batch of SpawnActor calls.
2022-10-12 22:10:35 +02:00
Christoph Oelckers
c7437da255
- more SpawnActors
2022-10-12 22:10:35 +02:00
Christoph Oelckers
da6e8e9341
- several SpawnActor and getangle calls.
2022-10-12 22:10:35 +02:00
Christoph Oelckers
8a86cc26b6
- floatified Recon.
2022-10-12 22:10:35 +02:00
Christoph Oelckers
9275c14c9c
- floatify SE18 handler.
...
To store floars in temp_data without relying on map format conventions, the FixedTo functions were extended to allow custom precision.
2022-10-12 22:10:35 +02:00
Christoph Oelckers
1131eeb443
- setfloorz and setceilingz must be called for changing sector planes
2022-10-12 22:10:35 +02:00
Christoph Oelckers
fe42de1fcb
- the one add_int_floorz/add_int_ceilingz calls each in SW.
2022-10-12 22:10:35 +02:00
Christoph Oelckers
f0769048ed
- yet another bunch of SpawnActor calls in weapon.cpp
2022-10-12 22:10:35 +02:00
Christoph Oelckers
5e28b2cca3
- lots of SpawnActor calls in weapon.cpp
2022-10-12 22:10:34 +02:00
Christoph Oelckers
446407cafe
- more SpawnActor calls
2022-10-12 22:10:34 +02:00
Christoph Oelckers
d8c7054751
- many SpawnActor calls
2022-10-12 22:10:34 +02:00
Christoph Oelckers
2a8dd6b955
- improved RANDOM_P2F interface.
2022-10-12 22:10:34 +02:00
Christoph Oelckers
f77ecbed32
- several HitBreakWall calls
2022-10-12 22:10:34 +02:00
Christoph Oelckers
3a0eec76ad
- some getangle and SpawnActor calls
2022-10-12 22:10:34 +02:00
Christoph Oelckers
a0c0894e41
- aiSetTarget calls
2022-10-12 22:10:34 +02:00
Christoph Oelckers
97223af592
- silenced a few conversion truncation warnings.
2022-10-12 15:49:07 +02:00
Christoph Oelckers
f35c610328
- the remaining cansee calls
2022-10-11 18:09:48 +02:00
Christoph Oelckers
db0ce36143
- use engine's updatesector in Blood instead of the limited homegrown FindSector variant.
2022-10-11 18:09:48 +02:00
Christoph Oelckers
72187a7f3b
- mummy’s cansee and FindPlayer
2022-10-11 18:09:05 +02:00
Mitchell Richters
b804d7fe15
- Duke: Fix bad setups when calling cansee()
. Fixes issues with pigcop on kerb in E2L1.
2022-10-11 18:07:40 +02:00
Christoph Oelckers
113980ca8e
- cansee in Duke
2022-10-11 18:05:15 +02:00
Christoph Oelckers
085839af32
- CheckPickUp floatification
2022-10-10 17:37:20 +02:00
Christoph Oelckers
a808f04415
- cansee refactoring part 4
2022-10-10 17:37:20 +02:00
Christoph Oelckers
3da68ab038
- cansee refactoring, part 3
2022-10-10 17:37:20 +02:00
Christoph Oelckers
80412bdc51
- cansee refactoring, part 2
2022-10-10 17:37:20 +02:00
Christoph Oelckers
781ffc9a43
- cansee refactoring, part 1.
2022-10-10 17:37:20 +02:00
Christoph Oelckers
d8f379c8fa
- SetActorZ vectors
2022-10-10 17:37:20 +02:00
Christoph Oelckers
e76dfa5d3c
- GetActor pos replacement
2022-10-10 17:37:19 +02:00
Christoph Oelckers
1c154a984d
- floatified XSPRITE::TargetPos
2022-10-10 17:37:19 +02:00
Christoph Oelckers
d26a4e70c3
- wrapped XSPRITE::TargetPos
2022-10-10 17:37:19 +02:00
Christoph Oelckers
4888b363e8
- added vector variant of gFX.fxSpawnActor
2022-10-10 17:37:19 +02:00
Christoph Oelckers
e20b2ab872
- don't use labs.
2022-10-10 17:37:19 +02:00
Christoph Oelckers
139969d017
- FindSector variants with vectors
2022-10-10 17:37:19 +02:00
Christoph Oelckers
f41c78d622
- actDropObject
2022-10-10 17:37:19 +02:00
Christoph Oelckers
e7ec2c072a
- floatified Blood’s startpos
2022-10-10 17:37:19 +02:00
Christoph Oelckers
cb39a07580
- position in actSpawnSprite
2022-10-10 17:37:18 +02:00
Christoph Oelckers
08c19cd2a4
- floatified CheckProximity position parameter
2022-10-10 17:37:18 +02:00
Christoph Oelckers
12d54a8b5c
- use vector math for distances in actRadiusDamage
2022-10-10 17:37:18 +02:00
Christoph Oelckers
9460239417
- pass a vector to GetClosestSpriteSectors
2022-10-10 17:37:18 +02:00
Christoph Oelckers
64cf9a4ec6
- pass vector position to actRadiusDamage
2022-10-10 17:37:18 +02:00
Christoph Oelckers
645c606e39
- floatified ConcussSprite
2022-10-10 17:37:18 +02:00
Christoph Oelckers
0767ffe41b
- eliminated the last wrapper call for track points
2022-10-10 17:37:17 +02:00
Christoph Oelckers
23a0433b95
- the remaining track point stuff.
2022-10-10 17:37:17 +02:00
Christoph Oelckers
aa584c51ac
- trackpoint wrapper cleanup
2022-10-10 17:37:17 +02:00
Christoph Oelckers
90cbb1be13
- more track stuff
2022-10-10 17:37:17 +02:00
Christoph Oelckers
767933dff9
- track stuff in ai.cpp
2022-10-10 17:37:17 +02:00
Christoph Oelckers
27152ae189
- floatified track point storage.
2022-10-10 17:37:17 +02:00
Christoph Oelckers
3ac4b6300f
- code cleanup to eliminate wrappers.
2022-10-10 17:36:41 +02:00
Christoph Oelckers
45f37525e0
- minor angle stuff in Blood
2022-10-10 17:31:30 +02:00
Christoph Oelckers
ed12e333e3
- RANDOM_ANGLE + move_debris
2022-10-10 17:31:30 +02:00
Christoph Oelckers
834f833298
- 2 getangle calls refactored
2022-10-10 17:31:30 +02:00
Christoph Oelckers
ef1e77514d
- floatified DoActorOperate
2022-10-10 17:31:30 +02:00
Christoph Oelckers
072cb5ccdf
- floatified CanHitPlayer and sanitized its overcomplicated and broken math.
2022-10-10 17:31:29 +02:00
Christoph Oelckers
bc5a92bcc9
- distance stuff in sound code.
2022-10-10 17:31:29 +02:00
Christoph Oelckers
9444bd4370
- last FAFcansee bunch
2022-10-10 17:31:29 +02:00
Christoph Oelckers
7aca321fab
- FAFcansee refactoring, part 5.
2022-10-10 17:31:29 +02:00
Christoph Oelckers
9f9a315ce2
- FAFcansee refactoring, part 4.
2022-10-10 17:31:29 +02:00
Christoph Oelckers
4aa5de689c
- renamed old FAFcansee function for easier searching.
2022-10-10 17:31:29 +02:00
Christoph Oelckers
ff6d1fd284
- FAFcansee refactoring, part 3.
2022-10-10 17:31:29 +02:00
Christoph Oelckers
7eb2dede6a
- FAFcansee refactoring, part 2.
2022-10-10 17:31:29 +02:00
Christoph Oelckers
5b7b8233e7
- FAFcansee refactoring, part 1.
2022-10-10 17:31:28 +02:00
Christoph Oelckers
6ee24a2213
- let ANIM work on the native floating point data.
2022-10-10 17:31:28 +02:00
Christoph Oelckers
80e10d89f4
- added alignceilslope and alignflorslope variants receiving a position vector.
2022-10-10 17:31:28 +02:00
Christoph Oelckers
98b06697f7
- pass position pointers to DISTANCE.
2022-10-10 17:31:28 +02:00
Christoph Oelckers
bd497a7e68
- floatified remote.pos.
2022-10-09 23:59:01 +02:00
Christoph Oelckers
837b31c672
- got rid of int_ploz and int_phiz.
2022-10-09 23:59:01 +02:00
Christoph Oelckers
7475a6cfb7
- renamed variable back.
2022-10-09 23:57:17 +02:00
Christoph Oelckers
e089100ab1
- floatified PLAYER::bob_amt
2022-10-09 23:56:15 +02:00
Christoph Oelckers
4dc2fc9151
- floatified 3 function interfaces.
2022-10-09 22:30:51 +02:00
Christoph Oelckers
24b23d6919
- floatified PLAYER::ceiling_dist/floor_dist.
2022-10-09 22:30:51 +02:00
Christoph Oelckers
8aab82691b
- renamed two PLAYER members for easier searching.
2022-10-09 22:30:51 +02:00
Christoph Oelckers
6497456471
- most of int_phiz,int_ploz
2022-10-09 22:29:54 +02:00
Christoph Oelckers
e1a26c157d
- leftovers
2022-10-09 22:00:43 +02:00
Christoph Oelckers
13d9505662
- PLAYER::hiz,loz refactoring, part 1
2022-10-09 22:00:43 +02:00
Christoph Oelckers
30b620c700
- removed unused oz_speed member variable.
2022-10-09 22:00:43 +02:00
Christoph Oelckers
209867e036
- cleaned out some unnecessary inlines.
2022-10-09 22:00:43 +02:00
Christoph Oelckers
e1ceab240b
- SW's quake stuff
2022-10-09 22:00:43 +02:00
Christoph Oelckers
31dfd1af7a
- eliminated most int_upos calls.
2022-10-09 21:57:30 +02:00
Christoph Oelckers
df2f68efc1
- messy ladder stuff.
2022-10-09 14:53:11 +02:00
Christoph Oelckers
17d5242958
- got rid of int_z_tgt
2022-10-09 14:53:11 +02:00
Christoph Oelckers
d2818322b0
- 2x int_hiz
2022-10-09 14:53:11 +02:00
Christoph Oelckers
7e963cb7a3
- floatified DoHornetMatchPlayerZ
2022-10-09 14:53:11 +02:00
Christoph Oelckers
0d24aeb3f5
- handle all remaining trivial int_loz.
2022-10-09 14:53:11 +02:00
Christoph Oelckers
5e14361dd6
- another set of 2 Utilities prepared for floatification.
2022-10-09 14:53:11 +02:00
Christoph Oelckers
82968f876f
- floatified most of DoEelMatchPlayerZ
2022-10-09 14:53:11 +02:00
Christoph Oelckers
9ed66acd44
- renamed 2 integer functions to add float variants
2022-10-09 14:53:10 +02:00
Christoph Oelckers
abf9d764c4
- fix some z scaling mishap (again...)
...
- shadow stuff
2022-10-09 14:53:10 +02:00
Christoph Oelckers
30e6db9e3b
- floatified DoVatorMove and got rid of int_oz.
2022-10-09 14:53:10 +02:00
Christoph Oelckers
af7e63137f
- got rid of most int_oz calls.
2022-10-09 14:53:10 +02:00
Christoph Oelckers
9433f2ada8
- floatified DoCoolgMatchPlayerZ.
2022-10-09 14:53:10 +02:00
Christoph Oelckers
f53a61693b
- floatified user.pos.
...
Special care needed to be taken for two cases where it did not store a coordinate.
2022-10-09 08:21:56 +02:00
Christoph Oelckers
f43a8d4fce
- user.pos wrapping.
2022-10-09 08:21:56 +02:00
Christoph Oelckers
bc853d3a00
- user.zclip floatified
2022-10-09 08:21:56 +02:00
Christoph Oelckers
a93349b445
- messy pointer use cleaned up.
2022-10-09 08:21:56 +02:00
Christoph Oelckers
a630f27a48
- wrapped user.zclip reads.
2022-10-09 08:21:56 +02:00
Christoph Oelckers
4021d13e8d
- completed floatification of ceiling_dist and floor_dist.
2022-10-09 08:21:56 +02:00
Christoph Oelckers
5416100ba2
- trivial assignments
...
(does not compile, this commit is only supposed to reduce the noise on the next one.
2022-10-09 08:21:55 +02:00
Christoph Oelckers
5f12f0deaa
- missed 3.
2022-10-09 08:21:55 +02:00
Christoph Oelckers
8672a9f051
- wrapped user.floor_dist reads.
2022-10-09 08:21:55 +02:00
Christoph Oelckers
4f073dec26
- wrapped user.ceiling_dist reads.
2022-10-09 08:21:55 +02:00
Christoph Oelckers
467ab9f7ee
- int_hiz/int_loz replacements.
2022-10-09 08:21:55 +02:00
Christoph Oelckers
425f4055b4
- floatified user.z_tgt.
2022-10-09 08:21:55 +02:00
Christoph Oelckers
65d1e5cac9
- wrapped user.z_tgt reads.
2022-10-09 08:21:55 +02:00
Christoph Oelckers
620f7c5430
- floatified user.oz.
2022-10-09 08:21:54 +02:00
Christoph Oelckers
a7d62f944b
- wrapped user.oz reads.
2022-10-09 08:21:54 +02:00
Christoph Oelckers
306e751a51
- floatified user.hiz and user.loz
2022-10-09 08:21:54 +02:00
Christoph Oelckers
d117544da8
- wrapped user.hiz reads.
2022-10-09 08:21:54 +02:00
Christoph Oelckers
ac3f6d73e3
- wrapped all reads to user.loz.
2022-10-09 08:21:54 +02:00
Christoph Oelckers
ade20cbfe2
- some angular stuff.
2022-10-09 08:21:54 +02:00
Christoph Oelckers
766ddeb445
- one more batch of trivial replacements
2022-10-09 08:21:53 +02:00
Christoph Oelckers
6111b11359
- trivial replacements in SW.
2022-10-09 08:21:53 +02:00
Christoph Oelckers
7152868077
- trivial replacements in Exhumed.
2022-10-09 08:21:53 +02:00
Christoph Oelckers
9314d4c774
- yet another batch of wrapper replacements
2022-10-09 08:21:53 +02:00
Christoph Oelckers
d9397b3b5d
- another batch of wrapper replacements
2022-10-09 08:21:53 +02:00
Christoph Oelckers
f13d9892dc
- trivial wrapper replacements in Duke
2022-10-09 08:21:53 +02:00
Christoph Oelckers
4db457f3b0
- stuff in animatesprite.cpp
2022-10-09 08:21:53 +02:00
Christoph Oelckers
91acf93c7d
- SW: fixed viewpoint interpolation
2022-10-09 08:21:53 +02:00
Christoph Oelckers
e5e00c98e7
- a few set_int_z in Duke/actors.cpp
2022-10-09 08:21:52 +02:00
Christoph Oelckers
93150d9e27
- partial floatification of movetransports_d
2022-10-09 08:21:52 +02:00
Christoph Oelckers
b00c8dbaee
- partial floatification of movetransports_r
2022-10-09 08:21:52 +02:00
Christoph Oelckers
a00969fbeb
- partial floatification of furthestcanseepoint.
2022-10-09 08:21:52 +02:00
Christoph Oelckers
df9f444d88
- SW: fixed bad actor parameter in SpawnShell.
...
cherry pick on master
2022-10-09 08:18:38 +02:00
Christoph Oelckers
0e38d5e52b
- SW: fixed sound owner issues with non-follow sounds.
...
These sounds were given the wrong type now.
cherry pick on master.
2022-10-08 19:28:57 +02:00
Christoph Oelckers
96e6424772
- floatified damage logic in aibeast.StompSeqCallback
2022-10-08 19:28:57 +02:00
Christoph Oelckers
aa0080039f
- refactored coordinate display to have a single unified printing function.
...
The games will now only return the data, this has also been added for Exhumed.
Printing will now be in actual map units, not build's internal mixed format.
2022-10-08 19:28:57 +02:00
Christoph Oelckers
b32c4444c4
- replaced all add_int_z calls with constants.
2022-10-08 19:28:57 +02:00
Christoph Oelckers
4a6f9f316a
- one assignment
2022-10-08 19:28:57 +02:00
Christoph Oelckers
c0c74fca84
- fishy grenade stuff
2022-10-08 19:28:56 +02:00
Christoph Oelckers
163146250d
- Exhumed: clean up PlayFXAtXYZ interface and its global variable abuse
2022-10-08 19:28:43 +02:00
Christoph Oelckers
de18371e06
- handle lasthit in Exhumed
2022-10-08 16:11:24 +02:00
Christoph Oelckers
424a58f91b
- Blood: sfxPlay3DSound
2022-10-08 16:11:23 +02:00
Christoph Oelckers
5df5520754
- one more
2022-10-08 16:11:23 +02:00
Christoph Oelckers
0ee39bfad9
- getangle cleanup
2022-10-08 16:11:23 +02:00
Christoph Oelckers
4403a6a411
- eliminated redundant and less precise GetMyAngle function
...
The engine's getangle function just works fine here.
2022-10-08 16:11:23 +02:00