Commit graph

2547 commits

Author SHA1 Message Date
Christoph Oelckers
372cfbc4e1 - owner wrapper stuff 2021-11-23 12:31:49 +01:00
Christoph Oelckers
11f459cd83 sprite[plr.spritenum] globally replaced. 2021-11-23 12:31:00 +01:00
Christoph Oelckers
56494526d5 - monsterweapon 2021-11-23 12:29:09 +01:00
Christoph Oelckers
d9ad0661f7 - second half of AI code complete (again, without owner) 2021-11-23 12:26:14 +01:00
Christoph Oelckers
758bf78c81 - first half of AI code fully cleaned up (except owner) 2021-11-23 12:25:00 +01:00
Christoph Oelckers
04218f4f89 -premap functions. 2021-11-23 12:22:11 +01:00
Christoph Oelckers
398207aa31 - eliminated the remaining setsprite calls. 2021-11-23 12:17:21 +01:00
Christoph Oelckers
d039c82037 - insertsprite 2021-11-23 12:15:52 +01:00
Christoph Oelckers
486066e02d - attack() 2021-11-23 12:11:37 +01:00
Christoph Oelckers
e8101ed970 - spritesound 2021-11-23 12:10:04 +01:00
Christoph Oelckers
48f41a143f - use actors in a large parts of spritesound calls. 2021-11-23 12:07:53 +01:00
Christoph Oelckers
09950ffa0a - checkfluid 2021-11-23 12:05:10 +01:00
Christoph Oelckers
5b84755aed - do the same for plr.sector to eliminate another large batch of sector[] references. 2021-11-23 12:00:45 +01:00
Christoph Oelckers
dcee283154 - use sector accessor in spritetype.
This removes more than 1/3 of all sector[] references at once.
2021-11-23 11:59:15 +01:00
Christoph Oelckers
d39efeb1c2 - handle zr_florhit. 2021-11-23 11:56:28 +01:00
Christoph Oelckers
2b73adb5a5 - 5 newstatus calls + 3 deletesprite calls. 2021-11-23 11:53:42 +01:00
Christoph Oelckers
858ac6bf35 - damageactor 2021-11-23 11:51:38 +01:00
Christoph Oelckers
705c89de68 - handle the rest of the collision code. 2021-11-22 00:12:02 +01:00
Christoph Oelckers
bd3b94f93e - preparations for handling movesprite.
Renaming variables and removing type casts to make all calls uniform.
2021-11-22 00:09:11 +01:00
Christoph Oelckers
44c95673a1 - aimove + aifly return value.
This takes care of most checks of Build collision values.
2021-11-22 00:06:10 +01:00
Christoph Oelckers
47436c58d7 - WH: enable sprite interpolation.
For all games: completely disable interpolation by setting smoothratio to 1 when cl_interpolate == 0 or cl_capfps == 1.
2021-11-21 23:49:37 +01:00
Christoph Oelckers
11831b0a26 - WH: enabled interpolations. 2021-11-21 23:07:53 +01:00
Christoph Oelckers
8b213edf4c - chunksofmeat 2021-11-21 16:43:06 +01:00
Christoph Oelckers
c74c868dce - castspell 2021-11-21 16:41:34 +01:00
Christoph Oelckers
068f887892 - deleted a large number of unused GetSpriteIndex calls. 2021-11-21 16:40:47 +01:00
Christoph Oelckers
89e687f166 - checkdist 2021-11-21 16:40:19 +01:00
Christoph Oelckers
722f836869 - aiFly 2021-11-21 16:38:29 +01:00
Christoph Oelckers
970dc3c96a - aisearch 2021-11-21 16:37:45 +01:00
Christoph Oelckers
fc90343673 - processfluid 2021-11-21 16:33:09 +01:00
Christoph Oelckers
290d539200 - 3 more sprite spawns de-indexed. 2021-11-21 16:31:25 +01:00
Christoph Oelckers
799cddfb66 - replaced the deletesprite calls inside the item interface, also using actors in callbacks. 2021-11-21 16:29:08 +01:00
Christoph Oelckers
99f0c89e4e - replaced most deletesprite calls outside the item interface. 2021-11-21 16:27:16 +01:00
Christoph Oelckers
e261a17d2c - first batch of setsprite.
This was pure search/replace.
2021-11-21 16:19:25 +01:00
Christoph Oelckers
6eca4d721d - checksector6 2021-11-21 16:17:27 +01:00
Christoph Oelckers
394675e9a8 - warpsprite 2021-11-21 16:14:59 +01:00
Christoph Oelckers
825e903246 - checkmove 2021-11-21 16:13:17 +01:00
Christoph Oelckers
a2bb4d20d9 - checksight 2021-11-21 16:11:55 +01:00
Christoph Oelckers
c762fd31dc - trailingsmoke 2021-11-21 16:10:14 +01:00
Christoph Oelckers
49cbba8355 - replaced more than half of the remaining newstatus calls that already had actors available. 2021-11-21 16:04:32 +01:00
Christoph Oelckers
f6da8fd754 - replaced the remaining full loops over the sprite array with iterators. 2021-11-21 16:04:32 +01:00
Christoph Oelckers
a418d8b53e - replaced some full loops over the sprite array with iterators. 2021-11-21 16:04:32 +01:00
Christoph Oelckers
a0b13ce785 - removed sprite[i] references in AI code. 2021-11-21 16:04:32 +01:00
Christoph Oelckers
c3cbaa91ce - removed unneeded GetSpriteIndex calls. 2021-11-21 16:04:32 +01:00
Christoph Oelckers
2193597c3e - handle all newstatus calls in AI code.
Again done by search/replace.
2021-11-21 16:04:31 +01:00
Christoph Oelckers
abd19f4e1d - use actors in the AIState interface.
This was a massive cppy/paste operation that only changed function headers and a few internal calls.
2021-11-21 16:04:31 +01:00
Mitch Richters
1b487c1b05 - WH: Fix bad whitespace in input.cpp and add a dead player check to unsynchronised mouse input. 2021-11-21 16:04:31 +01:00
Christoph Oelckers
959405ecb0 - operatesprite cleanup 2021-11-21 16:04:31 +01:00
Christoph Oelckers
1e27f067ad - prepareboard cleanup 2021-11-21 16:04:31 +01:00
Christoph Oelckers
a33c655033 - replaced changespritestat with ChangeActorStat in animateobjs. 2021-11-21 16:04:31 +01:00
Christoph Oelckers
c62dff2606 - replaced changespritestat with ChangeActorStat in newstatus.
Like before, just one search / replace for all of this.
2021-11-21 16:04:30 +01:00