Christoph Oelckers
86909c9068
- fixed cacheit_d sector loop.
2020-11-04 19:55:16 +01:00
Christoph Oelckers
2b0f56a94c
- changed setsectinterpolate to receive a sector number, not a sprite number.
2020-11-04 19:55:16 +01:00
Christoph Oelckers
32fc9329de
- another iterator.
...
This one's for init code that needs to iterate sprites in spawn order.
2020-11-04 19:55:15 +01:00
Christoph Oelckers
12ef8c4543
This completes player_r.cpp
2020-11-04 19:55:15 +01:00
Christoph Oelckers
34d0219d06
- nullptr fixes
2020-11-04 19:55:15 +01:00
Christoph Oelckers
36370b71e2
- wrapped neartag to return an actor.
2020-11-04 19:55:15 +01:00
Christoph Oelckers
bc6ae872ae
- cleaned up the checkhitswitch interface to receive sprites as pointers.
2020-11-04 19:55:15 +01:00
Christoph Oelckers
3e7c8adc1e
- checkhitswitch_r part 4
2020-11-04 19:55:15 +01:00
Christoph Oelckers
4ce19b74b0
- checkhitswitch_r part 3
2020-11-04 19:55:14 +01:00
Christoph Oelckers
e81b37b31a
- checkhitswitch_r part 2
2020-11-04 19:55:14 +01:00
Christoph Oelckers
2a23dfa0a8
- checkhitswitch_r part 1
2020-11-04 19:55:14 +01:00
Christoph Oelckers
f13a8943ab
- checkhitswitch_d part 2
2020-11-04 19:55:14 +01:00
Christoph Oelckers
f1ab8f03ef
- checkhitswitch_d part 1
2020-11-04 19:55:14 +01:00
Christoph Oelckers
87e8801531
- handle the clipmove result in processinput.
2020-11-04 19:55:14 +01:00
Christoph Oelckers
419cf9af5e
- processinput part 1.
2020-11-04 19:55:13 +01:00
Christoph Oelckers
ef2c773e02
- RR processweapon pass 1
2020-11-04 19:55:13 +01:00
Christoph Oelckers
d4dabee52d
- OnMotorcycle/BoatHit.
2020-11-04 19:55:13 +01:00
Christoph Oelckers
454b2315d4
- use actors instead of indices for sound calls.
2020-11-04 19:55:13 +01:00
Christoph Oelckers
8d55138db0
- checkweapons_r.
2020-11-04 19:55:13 +01:00
Christoph Oelckers
635b53f78f
- RR-movement + dummyplayersprite
2020-11-04 19:55:13 +01:00
Christoph Oelckers
60ec6b8c7d
- handled the last remaining sprite references in player_d.cpp.
2020-11-04 19:55:12 +01:00
Christoph Oelckers
70e1b87160
- Duke underwater.
2020-11-04 19:55:12 +01:00
Christoph Oelckers
b302f2535f
- player index and hittypes in player_d.cpp
2020-11-04 19:55:12 +01:00
Christoph Oelckers
f598c16e03
- use the script interface where needed.
...
Later the scripts should only see some token representing an actor, not an index.
2020-11-04 08:24:17 +01:00
Christoph Oelckers
773aa9976d
- fixed compilation of release build.
2020-11-04 07:01:25 +01:00
Christoph Oelckers
29b08b2115
- access_spritenum
2020-11-03 22:49:17 +01:00
Christoph Oelckers
b891646c37
- all of player_w.cpp
2020-11-03 22:41:24 +01:00
Christoph Oelckers
be591e9cf9
- the last bit of shoot_d.
2020-11-03 22:41:24 +01:00
Christoph Oelckers
16089e56f0
- the rest of shoot_r.
2020-11-03 22:41:24 +01:00
Christoph Oelckers
47f77a97e4
- RR shootrpg and shootwhip.
2020-11-03 22:41:24 +01:00
Christoph Oelckers
aa6dd72688
- RR shootstuff
2020-11-03 22:41:23 +01:00
Christoph Oelckers
32a7c2349e
- shoot interface transitioned/operateweapon mostly done.
2020-11-03 22:01:58 +01:00
Christoph Oelckers
513744aa56
- this was nonsense. atwith is a tile number, not a sprite index.
2020-11-03 21:51:17 +01:00
Christoph Oelckers
7e29be7569
- switched checkhitwall interface to actors.
2020-11-03 21:49:57 +01:00
Christoph Oelckers
4258c27248
- switched the checkhitsprite interface to actors.
2020-11-03 21:43:50 +01:00
Christoph Oelckers
30f4057451
- removed the remaining references to 'i' from checkhitsprite_d.
2020-11-03 21:43:50 +01:00
Christoph Oelckers
a31cb23be1
- checkhitsprite_r references to 'i' removed.
2020-11-03 21:43:49 +01:00
Christoph Oelckers
1ab13688a7
- RR shootweapon
2020-11-03 21:43:49 +01:00
Christoph Oelckers
51705e5a61
- RR shootmelee.
2020-11-03 21:43:49 +01:00
Christoph Oelckers
f276a5f443
- shootlaser and shootgrowspark
2020-11-03 21:43:49 +01:00
Christoph Oelckers
badf536fef
- shootstuff and shootrpg.
2020-11-03 21:43:49 +01:00
Christoph Oelckers
ca78ed9b63
- shootweapon
2020-11-03 21:43:49 +01:00
Christoph Oelckers
617c2c2503
- replaced index for sound origin in checkhitsprite_r.
2020-11-03 21:43:48 +01:00
Christoph Oelckers
41f2fe5e06
- same for checkhitsprite_r.
2020-11-03 21:43:48 +01:00
Christoph Oelckers
4443234126
- replacing sprite[sn] in checkhitsprite_d.
2020-11-03 21:43:48 +01:00
Christoph Oelckers
faa4248c5c
- lotsofglass wrapper and variable renaming in checkhitsprite_d.
2020-11-03 20:43:38 +01:00
Christoph Oelckers
17737eea85
- wrapped hitscan in a variant returning an actor.
2020-11-03 20:43:38 +01:00
Christoph Oelckers
768487584e
- aim and all calling instances.
...
This also takes care of RR's chicken arrow storing an actor reference in lotag.
2020-11-03 20:42:03 +01:00
Christoph Oelckers
8268c1b538
- shootfireball, shootflamethrowerflame, shootknee
2020-11-03 20:21:53 +01:00
Christoph Oelckers
6ee856b8c1
- added missing 'break' to SE code.
...
This caused the car in RR's first level to go too fast.
2020-11-03 20:21:30 +01:00
Christoph Oelckers
3fdeedcae7
- player.cpp is free of array references, except one that's unavoidable for now.
2020-11-03 19:25:07 +01:00
Christoph Oelckers
79f850d126
- PlayerColorChanged, hits, hitasprite.
2020-11-03 19:21:44 +01:00
Christoph Oelckers
1fcd5eef47
- CON game access interface done.
2020-11-03 19:21:44 +01:00
Christoph Oelckers
f5cccb0df2
- actorflag, actorfella, automap, animateaccess, holoduke spawn, initreactor.
...
# Conflicts:
# source/games/duke/src/game_misc.cpp
2020-11-03 19:21:43 +01:00
Christoph Oelckers
2db8ace275
- eliminated all array accesses in game_misc.cpp.
2020-11-03 19:21:43 +01:00
Christoph Oelckers
61013af910
- fixed three crashes found when testing WW2GI.
2020-11-03 19:21:43 +01:00
Christoph Oelckers
a514910aa4
- use an actor pointer in Get/SetGameVarID's parameters to weed out the ordering screwups.
2020-11-03 19:21:43 +01:00
Christoph Oelckers
de92287d0b
- fixed the messed up parameter order of OnEvent.
...
This should serve as a textbook example why passing around indices is a very, very bad idea!
2020-11-03 19:21:42 +01:00
Christoph Oelckers
c1b5b17541
- removed a few references in animatesprites.
2020-11-03 19:21:42 +01:00
Christoph Oelckers
3ea6887c43
- replaced a bit more.
2020-11-03 19:21:42 +01:00
Christoph Oelckers
2c573a720b
- starting at the bottom of player_r.cpp.
2020-11-03 19:21:42 +01:00
Christoph Oelckers
33f730baf3
- replaced "sprite[p->i]" globally.
2020-11-03 19:21:42 +01:00
Christoph Oelckers
b5309a6410
- some quick'n easy replacements.
2020-11-03 19:21:42 +01:00
Christoph Oelckers
cd70818d54
- added a few NULL checks.
2020-11-03 07:12:11 +01:00
Christoph Oelckers
b2497b346c
- use GetActor() wrapper in hud weapon code.
2020-11-03 07:06:30 +01:00
Christoph Oelckers
f729f7d7a3
- renamed a few things in animatesprites.
...
This function will need special handling later, for now let's just reduce the work surface to a few pointers.
2020-11-03 07:06:30 +01:00
Christoph Oelckers
ac58dd8017
- execute.
2020-11-03 07:06:30 +01:00
Christoph Oelckers
8f815f9391
- LoadActor.
2020-11-03 07:06:29 +01:00
Christoph Oelckers
da9c4d90a2
- parse - part 7.
2020-11-03 07:06:29 +01:00
Christoph Oelckers
38817c3bee
- parse - part 6.
2020-11-03 07:06:29 +01:00
Christoph Oelckers
aa3d1fdcad
- parse - part 5.
2020-11-03 07:06:29 +01:00
Christoph Oelckers
7438b57f23
- parse - part 4.
2020-11-03 07:06:29 +01:00
Christoph Oelckers
59d9138b77
- parse - part 3.
2020-11-03 07:06:28 +01:00
Christoph Oelckers
65fc6dd3c7
- parse - part 2.
2020-11-03 07:06:28 +01:00
Christoph Oelckers
8bdeb66dcb
- parse - part 1.
2020-11-03 07:06:28 +01:00
Christoph Oelckers
0fac102c26
- renamed variables in ifcansee.
2020-11-03 07:06:28 +01:00
Christoph Oelckers
83217ee620
- ifcansee.
2020-11-03 07:06:27 +01:00
Christoph Oelckers
83b47f60b3
- ifcanshoottarget.
2020-11-03 07:06:27 +01:00
Christoph Oelckers
ea9a8642b0
- doactor.
...
# Conflicts:
# source/games/duke/src/gameexec.cpp
2020-11-03 07:06:27 +01:00
Christoph Oelckers
669fcc967f
- cheats.cpp and ccmds.cpp handled.
...
# Conflicts:
# source/games/duke/src/cheats.cpp
2020-11-03 07:06:27 +01:00
Christoph Oelckers
ad84c8149e
- the rest of sectors.cpp
2020-11-03 07:06:27 +01:00
Christoph Oelckers
4236f800f6
- operateactivators and operatemasterswitches.
2020-11-03 07:06:26 +01:00
Christoph Oelckers
7635fc9ad6
- operatesectors.
2020-11-03 07:06:26 +01:00
Christoph Oelckers
326ca9e172
- handle_st28,
2020-11-03 07:06:26 +01:00
Christoph Oelckers
06695073d0
- handle_st27.
2020-11-03 07:06:26 +01:00
Christoph Oelckers
d4c53226d0
- handle_st25.
2020-11-03 07:06:26 +01:00
Christoph Oelckers
fd8ee214f5
- handle_st23.
2020-11-03 07:06:25 +01:00
Christoph Oelckers
e6507887d3
- handle_st20.
2020-11-03 07:06:25 +01:00
Christoph Oelckers
2afbbcb157
- handle_st29.
2020-11-03 07:06:25 +01:00
Christoph Oelckers
7c491742f9
- handle_st15.
2020-11-03 07:06:25 +01:00
Christoph Oelckers
c9c649d3f8
- crash fix with null pointer.
2020-11-03 07:05:51 +01:00
Christoph Oelckers
88adef3caa
- split up operatesectors into more digestable pieces.
2020-11-03 07:03:01 +01:00
Christoph Oelckers
4dd9be7b6d
..
...
- activatewarpelevators
2020-11-03 06:52:26 +01:00
Christoph Oelckers
1a300aa220
- fixed GC crash with new statusbar code.
...
It looks GZDoom never run in the case where using Create<> to create an object this left a pointer uninitialized.
To be safe, use Calloc instead of Malloc to get the memory for the new object so that everything is nulled.
2020-11-03 06:51:42 +01:00
Christoph Oelckers
8d1409a708
- bring weaprec handling of RR in line with Duke.
...
This code set a sprite index where a tile number is expected by all other code checking this array.
In the stock game this should never trigger, though, as the actor being checked is the burning dynamite which cannot be picked up again as-is.
2020-11-03 06:51:29 +01:00
Christoph Oelckers
595a2156e4
- fixed bad spawn owner in refactored loop.
2020-11-02 21:45:36 +01:00
Mitchell Richters
6dd2f31156
- WHaven: Set enginecompatibility_mode
to ENGINECOMPATIBILITY_19950829
in app_init()
.
2020-11-02 22:31:36 +11:00
Mitchell Richters
4382ab09b8
- WHaven: Fix issues with smoothratio
.
2020-11-02 22:31:33 +11:00
Christoph Oelckers
6adc2f8e55
- findplayer
2020-11-01 17:07:47 +01:00
Christoph Oelckers
fa5b48d270
- check_activator_motion, doanimations.
2020-11-01 17:07:47 +01:00
Christoph Oelckers
b2a2232260
- callsound
2020-11-01 17:07:46 +01:00
Christoph Oelckers
3c19f8e44e
- the last remaining small functions in actors_d.cpp and actors_r.cpp.
2020-11-01 17:07:46 +01:00
Christoph Oelckers
52c342a2ff
- renamed variables in move functions.
2020-11-01 17:07:46 +01:00
Christoph Oelckers
e6e53d1954
- move, fakebubbaspawn and destroyit.
2020-11-01 17:07:46 +01:00
Christoph Oelckers
a6f9673403
- moveeffectors.
2020-11-01 17:07:46 +01:00
Christoph Oelckers
c438061b83
- made SE06 and SE28 separate functions.
2020-11-01 17:07:45 +01:00
Christoph Oelckers
f5338d0acb
- moveexplosions.
2020-11-01 17:07:45 +01:00
Christoph Oelckers
76c4eeddc4
- moveactors.
2020-11-01 17:07:45 +01:00
Christoph Oelckers
2ad31247ec
- henstand and bowling.
2020-11-01 17:07:45 +01:00
Christoph Oelckers
a31a19d430
- fixed 2 bad iterators.
2020-11-01 17:07:45 +01:00
Christoph Oelckers
0c2a7de550
- fixed uninitialized variable with 'hitasprite'.
2020-11-01 17:06:52 +01:00
Christoph Oelckers
fd83b87b94
- rr_specialstats.
2020-11-01 15:25:18 +01:00
Christoph Oelckers
0ec7732bd4
- rrra_specialstats.
2020-11-01 15:22:34 +01:00
Christoph Oelckers
63646e7c5c
- heavyhbomb
2020-11-01 15:19:51 +01:00
Christoph Oelckers
441ed6bdc5
- flamethrowerflame
2020-11-01 15:17:49 +01:00
Christoph Oelckers
44fc4f9243
- greenslime.
2020-11-01 15:11:49 +01:00
Christoph Oelckers
d4ee8a1c48
- removed a few redundant GetIndex calls.
2020-11-01 15:08:48 +01:00
Christoph Oelckers
9826ff54f9
- movetransports.
2020-11-01 15:05:21 +01:00
Christoph Oelckers
076dcef5d0
- renamed variables in movetransports.
2020-11-01 14:56:23 +01:00
Christoph Oelckers
2d1b8a2b4b
- use the cleaned up movesprite interface in moveweapons.
2020-11-01 14:51:32 +01:00
Christoph Oelckers
3aaf2e80a9
- moveweapons.
2020-11-01 14:46:05 +01:00
Christoph Oelckers
00b12c5fd6
- weaponcommon subfunctions.
2020-11-01 12:27:43 +01:00
Christoph Oelckers
c5f7c29ead
- chickenarrow and movefireball.
2020-11-01 12:23:14 +01:00
Christoph Oelckers
a3860de440
- movestandables.
2020-11-01 12:09:01 +01:00
Christoph Oelckers
1af39eb29d
- move*bolt.
2020-11-01 12:08:39 +01:00
Christoph Oelckers
dc75037d01
- movecrack, movefireext, moveviewscreen.
2020-11-01 12:06:20 +01:00
Christoph Oelckers
a4ac7764de
- movetripbomb.
2020-11-01 12:02:58 +01:00
Christoph Oelckers
d9b6be83b3
- movefallers.
2020-11-01 12:00:29 +01:00
Christoph Oelckers
7e8be10b04
- movefta and ifhitsectors.
2020-11-01 11:58:41 +01:00
Christoph Oelckers
861342a278
- guts_d and guts_r.
2020-11-01 11:32:34 +01:00
Christoph Oelckers
90d1c5f7bb
- ifsquished.
2020-11-01 10:55:38 +01:00
Christoph Oelckers
4c9655b110
- check_fta_sounds.
2020-11-01 10:53:45 +01:00
Christoph Oelckers
b9aa5de217
- fixed merge error in handle_se00.
2020-11-01 10:52:38 +01:00
Christoph Oelckers
7967391728
- actors_lava.cpp handled.
2020-11-01 10:50:10 +01:00
Christoph Oelckers
6a97b3d58e
- renamed variables.
2020-11-01 10:49:50 +01:00
Christoph Oelckers
f0b1ab504d
- fall_common and its fallspecial subfunction.
2020-11-01 10:48:26 +01:00
Christoph Oelckers
185b795481
- renamed variables in alterang.
2020-11-01 10:45:09 +01:00
Christoph Oelckers
85ea1df76a
- alterang
2020-11-01 10:44:16 +01:00
Christoph Oelckers
31e5023004
- dodge, furthestcanseepoint, furthestangle.
2020-11-01 10:41:25 +01:00
Christoph Oelckers
4e675ea322
- makeitfall
2020-11-01 10:41:24 +01:00
Christoph Oelckers
291edcdab8
- getglobalz
2020-11-01 10:41:16 +01:00
Christoph Oelckers
8f75a58343
- shared SE31 code.
2020-11-01 10:31:41 +01:00
Christoph Oelckers
21fb3fb7bb
- shared SE25 code.
2020-11-01 10:27:54 +01:00
Christoph Oelckers
00f5a08390
- shared SE24 code.
2020-11-01 10:27:41 +01:00
Christoph Oelckers
02813802d4
- the 5 remaining shared SE handlers.
2020-11-01 10:12:27 +01:00
Christoph Oelckers
769bc3bd22
- handle_se20-26.
2020-11-01 10:02:58 +01:00
Christoph Oelckers
5d837176de
- handle_se18+19
2020-11-01 09:58:39 +01:00
Christoph Oelckers
5b096ea35e
- handle_se15-17.
2020-11-01 09:53:50 +01:00
Christoph Oelckers
33377e1810
- renamed a few things.
2020-11-01 09:45:37 +01:00
Christoph Oelckers
b585192721
- handle_se11-13.
2020-11-01 09:37:41 +01:00