hendricks266
0bf330b2c6
Revise r6305.
...
git-svn-id: https://svn.eduke32.com/eduke32@6308 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-28 10:55:41 +00:00
hendricks266
4a69eecc9f
Optimize getofs_viewtype for precision and speed.
...
git-svn-id: https://svn.eduke32.com/eduke32@6307 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 11:01:38 +00:00
hendricks266
42a26b5f3c
Add action viewtypes 12 (like 7 but not mirrored), 9, and 16.
...
git-svn-id: https://svn.eduke32.com/eduke32@6306 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 11:01:34 +00:00
hendricks266
ea0179bd9b
Templatize getofs_viewtype functions.
...
git-svn-id: https://svn.eduke32.com/eduke32@6305 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 11:01:30 +00:00
hendricks266
f55758bc2e
When calculating which rotation to use for CON action viewtype 7, offset the frame intervals by 15 degrees instead of 22.5, clearly a copypaste error from viewtypes 5 or 8. Now these are properly centered.
...
git-svn-id: https://svn.eduke32.com/eduke32@6304 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 11:01:26 +00:00
hendricks266
01b6047377
Trailing whitespace.
...
git-svn-id: https://svn.eduke32.com/eduke32@6303 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 11:01:22 +00:00
hendricks266
bf76269906
What the last commit said.
...
git-svn-id: https://svn.eduke32.com/eduke32@6302 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 11:01:12 +00:00
terminx
1568cabdce
Derp
...
git-svn-id: https://svn.eduke32.com/eduke32@6301 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 02:44:11 +00:00
terminx
bb75d0fbde
Texcache cleanups. No longer allocates a 256 byte buffer for every cache entry's name.
...
git-svn-id: https://svn.eduke32.com/eduke32@6300 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 02:24:34 +00:00
terminx
f490e5b2cb
Fix flickering text on the bonus screen. Derp.
...
git-svn-id: https://svn.eduke32.com/eduke32@6298 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 02:24:22 +00:00
terminx
c25aa4a790
OSD (console) cleanup
...
git-svn-id: https://svn.eduke32.com/eduke32@6297 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 02:24:14 +00:00
terminx
6aa1d36f99
Inconsequential formatting
...
git-svn-id: https://svn.eduke32.com/eduke32@6296 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 02:24:02 +00:00
terminx
1e06189f03
Fix something stupid I noticed
...
git-svn-id: https://svn.eduke32.com/eduke32@6295 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 02:23:57 +00:00
terminx
0f788963b6
Fix bug with setuserdef vm_sprite
...
git-svn-id: https://svn.eduke32.com/eduke32@6294 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 02:23:51 +00:00
terminx
d37c26cc2a
Respect APPBASENAME when showing command line help
...
git-svn-id: https://svn.eduke32.com/eduke32@6291 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 02:22:42 +00:00
hendricks266
6bbfbb5e1d
Fix crash when attempting to play an IVF video in 8-bit.
...
git-svn-id: https://svn.eduke32.com/eduke32@6290 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 01:50:59 +00:00
hendricks266
4b15e4629e
Menu stuff
...
git-svn-id: https://svn.eduke32.com/eduke32@6289 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 01:50:55 +00:00
hendricks266
6487dc0db6
Fix standalone warnings.
...
git-svn-id: https://svn.eduke32.com/eduke32@6288 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-27 01:50:48 +00:00
hendricks266
10d478eba8
When playing an IVF upgraded from an ANM and no sound list has been defined for the IVF, use the ANM's sound list by converting framerates.
...
git-svn-id: https://svn.eduke32.com/eduke32@6287 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:43 +00:00
hendricks266
35b3cea5a6
If an ANM is upgraded to an IVF, use the sounds defined for the .ivf if any have been.
...
git-svn-id: https://svn.eduke32.com/eduke32@6286 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:39 +00:00
hendricks266
d57234e668
Replace sound_func function pointer parameter and associate functions for hardcoded ANMs with equivalent animsounds arrays.
...
git-svn-id: https://svn.eduke32.com/eduke32@6285 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:34 +00:00
hendricks266
5f8c99c3a1
Let animsound value -1 stop all sounds.
...
git-svn-id: https://svn.eduke32.com/eduke32@6284 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:27 +00:00
hendricks266
018bc98ecb
Game defs: Add sounds sub-token to cutscene token that functions identically to animsounds.
...
git-svn-id: https://svn.eduke32.com/eduke32@6283 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:23 +00:00
hendricks266
4db07ee9af
Structify animsounds arrays.
...
git-svn-id: https://svn.eduke32.com/eduke32@6282 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:19 +00:00
hendricks266
6b880ccb06
Structify the hardcoded Anim_Setup calls.
...
git-svn-id: https://svn.eduke32.com/eduke32@6281 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:14 +00:00
hendricks266
aebd4c53c4
Game defs: Split Anim_Create out of Anim_Setup and use it for the cutscene token.
...
git-svn-id: https://svn.eduke32.com/eduke32@6280 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:10 +00:00
hendricks266
7226eb346d
Don't stutter for 1/12 second before starting an ANM.
...
git-svn-id: https://svn.eduke32.com/eduke32@6279 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:06 +00:00
hendricks266
1baac86d72
Game defs: Try loading def modules even if the engine reports failure.
...
git-svn-id: https://svn.eduke32.com/eduke32@6278 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:24:02 +00:00
hendricks266
0d7518891b
CON: Add wall.blend to structure access.
...
git-svn-id: https://svn.eduke32.com/eduke32@6277 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:23:58 +00:00
hendricks266
cb12f25cda
Add a wallext structure for non-Lunatic builds so they can have a blend member too.
...
git-svn-id: https://svn.eduke32.com/eduke32@6276 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:23:53 +00:00
hendricks266
9286a4d40e
Fix Lunatic build.
...
git-svn-id: https://svn.eduke32.com/eduke32@6274 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-25 11:23:41 +00:00
terminx
48e9b22b4f
More standalone stuff
...
git-svn-id: https://svn.eduke32.com/eduke32@6273 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 21:18:18 +00:00
terminx
504b04067b
Remove some Duke-specific screen displays from standalone builds
...
git-svn-id: https://svn.eduke32.com/eduke32@6271 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 21:18:06 +00:00
terminx
0e1784bf4c
Clean up command line parameter help text
...
git-svn-id: https://svn.eduke32.com/eduke32@6269 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 21:17:53 +00:00
terminx
1069db7e1e
Fix swapped EDUKE32_STANDALONE ifdefs for screenshot filenames
...
git-svn-id: https://svn.eduke32.com/eduke32@6268 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 21:17:46 +00:00
terminx
8dc6fb6cfd
Don't try to load duke3d.cfg in standalone builds
...
git-svn-id: https://svn.eduke32.com/eduke32@6267 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 21:17:38 +00:00
terminx
3181e8be9e
Rename snd_duketalk cvar to snd_speech
...
git-svn-id: https://svn.eduke32.com/eduke32@6266 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 21:17:33 +00:00
terminx
047b94d242
Revise r6253
...
git-svn-id: https://svn.eduke32.com/eduke32@6265 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 21:17:26 +00:00
terminx
e4f0b74a4f
Rename two misnamed variables
...
git-svn-id: https://svn.eduke32.com/eduke32@6264 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 21:16:43 +00:00
hendricks266
5ef942f4ec
Shrink the tilesiz vector to use int16_t members as the original arrays were.
...
git-svn-id: https://svn.eduke32.com/eduke32@6263 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 09:21:13 +00:00
hendricks266
7afc8202d2
CON: Add EVENT_PRELOADGAME and EVENT_POSTLOADGAME.
...
git-svn-id: https://svn.eduke32.com/eduke32@6262 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 09:21:07 +00:00
hendricks266
df317aa741
CON: Add drawline256 and drawlinergb commands that call the internal functions used for the automap lines.
...
drawline256 <x0> <y0> <x1> <y1> <index>
drawlinergb <x0> <y0> <x1> <y1> <index> <rgb>
The coordinates are xdim<<12/ydim<<12 based, not 320<<16x200<<16.
<index> is a palette index, and for drawlinergb is used as a fallback in the software renderer.
<rgb> is encoded the same as PROJ_FLASH_COLOR.
git-svn-id: https://svn.eduke32.com/eduke32@6261 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 09:21:03 +00:00
hendricks266
517517a1bb
CON: Add getclosestcol command, which finds the closest palette index given
...
getclosestcol <return> <color> <limit>
<color> is encoded the same as PROJ_FLASH_COLOR.
<limit> is the index of the last palette color that should be considered. Use 255 for the whole palette, 254 to exclude the transparent color, 239 to exclude Duke 3D's fullbrights, etc.
git-svn-id: https://svn.eduke32.com/eduke32@6259 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 09:20:54 +00:00
hendricks266
ffc7de9911
CON: Add EVENT_DISPLAYOVERHEADMAPTEXT.
...
Set RETURN to any non-zero value to disable hardcoded display of text.
If you wish to replace the hardcoded text, you must check that userdef[].overhead_on == 2 yourself.
git-svn-id: https://svn.eduke32.com/eduke32@6258 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 09:20:50 +00:00
hendricks266
0d6842800b
Replace specialized swap C functions with a templatized version.
...
git-svn-id: https://svn.eduke32.com/eduke32@6257 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 09:20:46 +00:00
hendricks266
adf62d216c
scale(1<<##, b, c) --> divscale##(b, c)
...
git-svn-id: https://svn.eduke32.com/eduke32@6256 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 09:20:42 +00:00
hendricks266
bd9abf33ad
scale(a, b, 1<<##) --> mulscale##(a, b)
...
git-svn-id: https://svn.eduke32.com/eduke32@6255 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 09:20:37 +00:00
hendricks266
965e40bda7
mulscale(a, b, ##) --> mulscale##(a, b)
...
git-svn-id: https://svn.eduke32.com/eduke32@6254 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 09:20:21 +00:00
terminx
81ca397802
Fix buggy swinging door behavior
...
git-svn-id: https://svn.eduke32.com/eduke32@6253 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 06:31:37 +00:00
terminx
4e3f55df9b
Dicking around with inlined actor header functions
...
git-svn-id: https://svn.eduke32.com/eduke32@6252 1a8010ca-5511-0410-912e-c29ae57300e0
2017-06-24 06:31:32 +00:00