2014-03-15 16:59:03 +00:00
// SONIC ROBO BLAST 2
//-----------------------------------------------------------------------------
// Copyright (C) 1998-2000 by DooM Legacy Team.
2018-11-25 12:35:38 +00:00
// Copyright (C) 1999-2018 by Sonic Team Junior.
2014-03-15 16:59:03 +00:00
//
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
// See the 'LICENSE' file for more details.
//-----------------------------------------------------------------------------
/// \file dehacked.c
/// \brief Load dehacked file and change tables and text
# include "doomdef.h"
2017-09-09 20:19:07 +00:00
# include "d_main.h" // for srb2home
2014-03-15 16:59:03 +00:00
# include "g_game.h"
# include "sounds.h"
# include "info.h"
# include "d_think.h"
# include "m_argv.h"
# include "z_zone.h"
# include "w_wad.h"
# include "m_menu.h"
# include "m_misc.h"
# include "f_finale.h"
# include "dehacked.h"
# include "st_stuff.h"
# include "i_system.h"
# include "p_local.h" // for var1 and var2, and some constants
# include "p_setup.h"
# include "r_data.h"
2019-06-18 16:55:57 +00:00
# include "r_draw.h"
2014-08-04 03:49:33 +00:00
# include "r_sky.h"
2014-03-15 16:59:03 +00:00
# include "fastcmp.h"
# include "lua_script.h"
# include "lua_hook.h"
2016-10-21 20:27:15 +00:00
# include "d_clisrv.h"
2014-03-15 16:59:03 +00:00
# include "m_cond.h"
# ifdef HAVE_BLUA
# include "v_video.h" // video flags (for lua)
# endif
# ifdef HWRENDER
# include "hardware/hw_light.h"
# endif
# ifdef PC_DOS
# include <stdio.h> // for snprintf
//int snprintf(char *str, size_t n, const char *fmt, ...);
int vsnprintf ( char * str , size_t n , const char * fmt , va_list ap ) ;
# endif
// Free slot names
// The crazy word-reading stuff uses these.
static char * FREE_STATES [ NUMSTATEFREESLOTS ] ;
static char * FREE_MOBJS [ NUMMOBJFREESLOTS ] ;
static UINT8 used_spr [ ( NUMSPRITEFREESLOTS / 8 ) + 1 ] ; // Bitwise flag for sprite freeslot in use! I would use ceil() here if I could, but it only saves 1 byte of memory anyway.
# define initfreeslots() {\
memset ( FREE_STATES , 0 , sizeof ( char * ) * NUMSTATEFREESLOTS ) ; \
memset ( FREE_MOBJS , 0 , sizeof ( char * ) * NUMMOBJFREESLOTS ) ; \
memset ( used_spr , 0 , sizeof ( UINT8 ) * ( ( NUMSPRITEFREESLOTS / 8 ) + 1 ) ) ; \
}
// Crazy word-reading stuff
/// \todo Put these in a seperate file or something.
static mobjtype_t get_mobjtype ( const char * word ) ;
static statenum_t get_state ( const char * word ) ;
static spritenum_t get_sprite ( const char * word ) ;
2017-08-25 17:00:20 +00:00
static playersprite_t get_sprite2 ( const char * word ) ;
2014-03-15 16:59:03 +00:00
static sfxenum_t get_sfx ( const char * word ) ;
2016-03-03 10:54:07 +00:00
# ifdef MUSICSLOT_COMPATIBILITY
static UINT16 get_mus ( const char * word , UINT8 dehacked_mode ) ;
# endif
2014-03-15 16:59:03 +00:00
static hudnum_t get_huditem ( const char * word ) ;
2018-11-16 17:07:47 +00:00
static menutype_t get_menutype ( const char * word ) ;
2014-03-15 16:59:03 +00:00
# ifndef HAVE_BLUA
static powertype_t get_power ( const char * word ) ;
# endif
boolean deh_loaded = false ;
static int dbg_line ;
static boolean gamedataadded = false ;
2017-05-14 15:45:08 +00:00
static boolean titlechanged = false ;
static boolean introchanged = false ;
2014-03-15 16:59:03 +00:00
ATTRINLINE static FUNCINLINE char myfget_color ( MYFILE * f )
{
char c = * f - > curpos + + ;
if ( c = = ' ^ ' ) // oh, nevermind then.
return ' ^ ' ;
if ( c > = ' 0 ' & & c < = ' 9 ' )
return 0x80 + ( c - ' 0 ' ) ;
return 0x80 ; // Unhandled -- default to no color
}
ATTRINLINE static FUNCINLINE char myfget_hex ( MYFILE * f )
{
char c = * f - > curpos + + , endchr = 0 ;
if ( c = = ' \\ ' ) // oh, nevermind then.
return ' \\ ' ;
if ( c > = ' 0 ' & & c < = ' 9 ' )
endchr + = ( c - ' 0 ' ) < < 4 ;
else if ( c > = ' A ' & & c < = ' F ' )
endchr + = ( ( c - ' A ' ) + 10 ) < < 4 ;
else if ( c > = ' a ' & & c < = ' f ' )
endchr + = ( ( c - ' a ' ) + 10 ) < < 4 ;
else // invalid. stop and return a question mark.
return ' ? ' ;
c = * f - > curpos + + ;
if ( c > = ' 0 ' & & c < = ' 9 ' )
endchr + = ( c - ' 0 ' ) ;
else if ( c > = ' A ' & & c < = ' F ' )
endchr + = ( ( c - ' A ' ) + 10 ) ;
else if ( c > = ' a ' & & c < = ' f ' )
endchr + = ( ( c - ' a ' ) + 10 ) ;
else // invalid. stop and return a question mark.
return ' ? ' ;
return endchr ;
}
char * myfgets ( char * buf , size_t bufsize , MYFILE * f )
{
size_t i = 0 ;
if ( myfeof ( f ) )
return NULL ;
// we need one byte for a null terminated string
bufsize - - ;
while ( i < bufsize & & ! myfeof ( f ) )
{
char c = * f - > curpos + + ;
if ( c = = ' ^ ' )
buf [ i + + ] = myfget_color ( f ) ;
else if ( c = = ' \\ ' )
buf [ i + + ] = myfget_hex ( f ) ;
else if ( c ! = ' \r ' )
buf [ i + + ] = c ;
if ( c = = ' \n ' )
break ;
}
buf [ i ] = ' \0 ' ;
dbg_line + + ;
return buf ;
}
static char * myhashfgets ( char * buf , size_t bufsize , MYFILE * f )
{
size_t i = 0 ;
if ( myfeof ( f ) )
return NULL ;
// we need one byte for a null terminated string
bufsize - - ;
while ( i < bufsize & & ! myfeof ( f ) )
{
char c = * f - > curpos + + ;
if ( c = = ' ^ ' )
buf [ i + + ] = myfget_color ( f ) ;
else if ( c = = ' \\ ' )
buf [ i + + ] = myfget_hex ( f ) ;
else if ( c ! = ' \r ' )
buf [ i + + ] = c ;
if ( c = = ' \n ' ) // Ensure debug line is right...
dbg_line + + ;
if ( c = = ' # ' )
2018-11-03 08:38:16 +00:00
{
2018-11-03 09:04:09 +00:00
if ( i > 0 ) // don't let i wrap past 0
i - - ; // don't include hash char in string
2014-03-15 16:59:03 +00:00
break ;
2018-11-03 08:38:16 +00:00
}
2014-03-15 16:59:03 +00:00
}
2018-11-03 09:04:09 +00:00
if ( buf [ i ] ! = ' # ' ) // don't include hash char in string
i + + ;
2014-03-15 16:59:03 +00:00
buf [ i ] = ' \0 ' ;
return buf ;
}
static INT32 deh_num_warning = 0 ;
FUNCPRINTF static void deh_warning ( const char * first , . . . )
{
va_list argptr ;
char * buf = Z_Malloc ( 1000 , PU_STATIC , NULL ) ;
va_start ( argptr , first ) ;
vsnprintf ( buf , 1000 , first , argptr ) ; // sizeof only returned 4 here. it didn't like that pointer.
va_end ( argptr ) ;
if ( dbg_line = = - 1 ) // Not in a SOC, line number unknown.
CONS_Alert ( CONS_WARNING , " %s \n " , buf ) ;
else
CONS_Alert ( CONS_WARNING , " Line %u: %s \n " , dbg_line , buf ) ;
deh_num_warning + + ;
Z_Free ( buf ) ;
}
static void deh_strlcpy ( char * dst , const char * src , size_t size , const char * warntext )
{
size_t len = strlen ( src ) + 1 ; // Used to determine if truncation has been done
if ( len > size )
deh_warning ( " %s exceeds max length of %s " , warntext , sizeu1 ( size - 1 ) ) ;
strlcpy ( dst , src , size ) ;
}
/* ======================================================================== */
// Load a dehacked file format
/* ======================================================================== */
/* a sample to see
Thing 1 ( Player ) { // MT_PLAYER
INT32 doomednum ; ID # = 3232 - 1 , // doomednum
INT32 spawnstate ; Initial frame = 32 " PLAY " , // spawnstate
INT32 spawnhealth ; Hit points = 3232 100 , // spawnhealth
INT32 seestate ; First moving frame = 32 " PLAY_RUN1 " , // seestate
INT32 seesound ; Alert sound = 32 sfx_None , // seesound
INT32 reactiontime ; Reaction time = 3232 0 , // reactiontime
INT32 attacksound ; Attack sound = 32 sfx_None , // attacksound
INT32 painstate ; Injury frame = 32 " PLAY_PAIN " , // painstate
INT32 painchance ; Pain chance = 3232 255 , // painchance
INT32 painsound ; Pain sound = 32 sfx_plpain , // painsound
INT32 meleestate ; Close attack frame = 32 " NULL " , // meleestate
INT32 missilestate ; Far attack frame = 32 " PLAY_ATK1 " , // missilestate
INT32 deathstate ; Death frame = 32 " PLAY_DIE1 " , // deathstate
INT32 xdeathstate ; Exploding frame = 32 " PLAY_XDIE1 " , // xdeathstate
INT32 deathsound ; Death sound = 32 sfx_pldeth , // deathsound
INT32 speed ; Speed = 3232 0 , // speed
INT32 radius ; Width = 211812352 16 * FRACUNIT , // radius
INT32 height ; Height = 211812352 56 * FRACUNIT , // height
INT32 dispoffset ; DispOffset = 0 0 , // dispoffset
INT32 mass ; Mass = 3232 100 , // mass
INT32 damage ; Missile damage = 3232 0 , // damage
INT32 activesound ; Action sound = 32 sfx_None , // activesound
INT32 flags ; Bits = 3232 MF_SOLID | MF_SHOOTABLE | MF_DROPOFF | MF_PICKUP | MF_NOTDMATCH ,
INT32 raisestate ; Respawn frame = 32 S_NULL // raisestate
} , */
static INT32 searchvalue ( const char * s )
{
while ( s [ 0 ] ! = ' = ' & & s [ 0 ] )
s + + ;
if ( s [ 0 ] = = ' = ' )
return atoi ( & s [ 1 ] ) ;
else
{
deh_warning ( " No value found " ) ;
return 0 ;
}
}
# ifdef HWRENDER
static float searchfvalue ( const char * s )
{
while ( s [ 0 ] ! = ' = ' & & s [ 0 ] )
s + + ;
if ( s [ 0 ] = = ' = ' )
return ( float ) atof ( & s [ 1 ] ) ;
else
{
deh_warning ( " No value found " ) ;
return 0 ;
}
}
# endif
// These are for clearing all of various things
static void clear_conditionsets ( void )
{
UINT8 i ;
for ( i = 0 ; i < MAXCONDITIONSETS ; + + i )
2015-01-06 13:13:25 +00:00
M_ClearConditionSet ( i + 1 ) ;
2014-03-15 16:59:03 +00:00
}
static void clear_levels ( void )
{
INT16 i ;
// This is potentially dangerous but if we're resetting these headers,
// we may as well try to save some memory, right?
for ( i = 0 ; i < NUMMAPS ; + + i )
{
if ( ! mapheaderinfo [ i ] )
continue ;
2014-08-04 03:49:33 +00:00
// Custom map header info
// (no need to set num to 0, we're freeing the entire header shortly)
Z_Free ( mapheaderinfo [ i ] - > customopts ) ;
2017-01-01 16:24:47 +00:00
P_DeleteFlickies ( i ) ;
2014-03-15 16:59:03 +00:00
P_DeleteGrades ( i ) ;
2016-12-29 17:02:05 +00:00
2014-03-15 16:59:03 +00:00
Z_Free ( mapheaderinfo [ i ] ) ;
mapheaderinfo [ i ] = NULL ;
}
// Realloc the one for the current gamemap as a safeguard
P_AllocMapHeader ( gamemap - 1 ) ;
}
2017-03-17 14:27:17 +00:00
static boolean findFreeSlot ( INT32 * num )
2014-03-15 16:59:03 +00:00
{
// Send the character select entry to a free slot.
2019-02-27 22:36:01 +00:00
while ( * num < MAXSKINS & & ( description [ * num ] . used ) )
2014-03-15 16:59:03 +00:00
* num = * num + 1 ;
// No more free slots. :(
2019-01-16 01:09:55 +00:00
if ( * num > = MAXSKINS )
2014-03-15 16:59:03 +00:00
return false ;
2019-08-19 01:26:52 +00:00
// Redesign your logo. (See M_DrawSetupChoosePlayerMenu in m_menu.c...)
description [ * num ] . picname [ 0 ] = ' \0 ' ;
description [ * num ] . nametag [ 0 ] = ' \0 ' ;
2019-10-14 05:24:44 +00:00
description [ * num ] . displayname [ 0 ] = ' \0 ' ;
description [ * num ] . oppositecolor = SKINCOLOR_NONE ;
description [ * num ] . tagtextcolor = SKINCOLOR_NONE ;
description [ * num ] . tagoutlinecolor = SKINCOLOR_NONE ;
2016-07-12 19:10:01 +00:00
2014-03-15 16:59:03 +00:00
// Found one! ^_^
2017-03-17 14:27:17 +00:00
return ( description [ * num ] . used = true ) ;
2014-03-15 16:59:03 +00:00
}
// Reads a player.
// For modifying the character select screen
static void readPlayer ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word ;
char * word2 ;
2019-10-14 05:24:44 +00:00
char * displayname = ZZ_Alloc ( MAXLINELEN + 1 ) ;
2014-03-15 16:59:03 +00:00
INT32 i ;
boolean slotfound = false ;
2019-10-14 05:24:44 +00:00
# define SLOTFOUND \
if ( ! slotfound & & ( slotfound = findFreeSlot ( & num ) ) = = false ) \
goto done ;
displayname [ MAXLINELEN ] = ' \0 ' ;
2014-03-15 16:59:03 +00:00
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
2019-10-14 05:24:44 +00:00
for ( i = 0 ; i < MAXLINELEN - 3 ; i + + )
{
char * tmp ;
if ( s [ i ] = = ' = ' )
{
tmp = & s [ i + 2 ] ;
strncpy ( displayname , tmp , SKINNAMESIZE ) ;
break ;
}
}
2014-03-15 16:59:03 +00:00
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
if ( fastcmp ( word , " PLAYERTEXT " ) )
{
char * playertext = NULL ;
2019-10-14 05:24:44 +00:00
SLOTFOUND
2014-03-15 16:59:03 +00:00
for ( i = 0 ; i < MAXLINELEN - 3 ; i + + )
{
if ( s [ i ] = = ' = ' )
{
playertext = & s [ i + 2 ] ;
break ;
}
}
if ( playertext )
{
strcpy ( description [ num ] . notes , playertext ) ;
strcat ( description [ num ] . notes , myhashfgets ( playertext , sizeof ( description [ num ] . notes ) , f ) ) ;
}
else
strcpy ( description [ num ] . notes , " " ) ;
// For some reason, cutting the string did not work above. Most likely due to strcpy or strcat...
// It works down here, though.
{
INT32 numline = 0 ;
for ( i = 0 ; i < MAXLINELEN - 1 ; i + + )
{
if ( numline < 20 & & description [ num ] . notes [ i ] = = ' \n ' )
numline + + ;
if ( numline > = 20 | | description [ num ] . notes [ i ] = = ' \0 ' | | description [ num ] . notes [ i ] = = ' # ' )
break ;
}
}
description [ num ] . notes [ strlen ( description [ num ] . notes ) - 1 ] = ' \0 ' ;
description [ num ] . notes [ i ] = ' \0 ' ;
continue ;
}
word2 = strtok ( NULL , " = " ) ;
if ( word2 )
strupr ( word2 ) ;
else
break ;
if ( word2 [ strlen ( word2 ) - 1 ] = = ' \n ' )
word2 [ strlen ( word2 ) - 1 ] = ' \0 ' ;
i = atoi ( word2 ) ;
2016-07-12 19:10:01 +00:00
if ( fastcmp ( word , " PICNAME " ) )
2014-03-15 16:59:03 +00:00
{
2019-10-14 05:24:44 +00:00
SLOTFOUND
2014-03-15 16:59:03 +00:00
strncpy ( description [ num ] . picname , word2 , 8 ) ;
}
2019-10-14 05:24:44 +00:00
// new character select
else if ( fastcmp ( word , " DISPLAYNAME " ) )
2019-08-19 01:26:52 +00:00
{
2019-10-14 05:24:44 +00:00
SLOTFOUND
// replace '#' with line breaks
// (also remove any '\n')
{
char * cur = NULL ;
// remove '\n'
cur = strchr ( displayname , ' \n ' ) ;
if ( cur )
* cur = ' \0 ' ;
2019-08-19 01:26:52 +00:00
2019-10-14 05:24:44 +00:00
// turn '#' into '\n'
cur = strchr ( displayname , ' # ' ) ;
while ( cur )
{
* cur = ' \n ' ;
cur = strchr ( cur , ' # ' ) ;
}
}
// copy final string
strncpy ( description [ num ] . displayname , displayname , SKINNAMESIZE ) ;
}
else if ( fastcmp ( word , " OPPOSITECOLOR " ) | | fastcmp ( word , " OPPOSITECOLOUR " ) )
{
SLOTFOUND
description [ num ] . oppositecolor = ( UINT8 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " NAMETAG " ) | | fastcmp ( word , " TAGNAME " ) )
{
SLOTFOUND
2019-08-19 01:26:52 +00:00
strncpy ( description [ num ] . nametag , word2 , 8 ) ;
}
2019-10-14 05:24:44 +00:00
else if ( fastcmp ( word , " TAGTEXTCOLOR " ) | | fastcmp ( word , " TAGTEXTCOLOUR " ) )
{
SLOTFOUND
description [ num ] . tagtextcolor = ( UINT8 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " TAGOUTLINECOLOR " ) | | fastcmp ( word , " TAGOUTLINECOLOUR " ) )
{
SLOTFOUND
description [ num ] . tagoutlinecolor = ( UINT8 ) get_number ( word2 ) ;
}
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " STATUS " ) )
{
/*
You MAY disable previous entries if you so desire . . .
But try to enable something that ' s already enabled and you will be sent to a free slot .
2016-07-11 22:01:43 +00:00
Because of this , you are allowed to edit any previous entries you like , but only if you
2014-03-15 16:59:03 +00:00
signal that you are purposely doing so by disabling and then reenabling the slot .
*/
2017-03-17 14:27:17 +00:00
if ( i & & ! slotfound & & ( slotfound = findFreeSlot ( & num ) ) = = false )
2014-03-15 16:59:03 +00:00
goto done ;
2017-04-07 14:37:22 +00:00
2017-03-17 14:27:17 +00:00
description [ num ] . used = ( ! ! i ) ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " SKINNAME " ) )
{
// Send to free slot.
2019-10-14 05:24:44 +00:00
SLOTFOUND
2014-03-15 16:59:03 +00:00
strlcpy ( description [ num ] . skinname , word2 , sizeof description [ num ] . skinname ) ;
strlwr ( description [ num ] . skinname ) ;
}
else
deh_warning ( " readPlayer %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
2019-10-14 05:24:44 +00:00
# undef SLOTFOUND
2014-03-15 16:59:03 +00:00
done :
2019-10-14 05:24:44 +00:00
Z_Free ( displayname ) ;
2014-03-15 16:59:03 +00:00
Z_Free ( s ) ;
}
// TODO: Figure out how to do undolines for this....
// TODO: Warnings for running out of freeslots
static void readfreeslots ( MYFILE * f )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word , * type ;
char * tmp ;
int i ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
type = strtok ( s , " _ " ) ;
if ( type )
strupr ( type ) ;
else
break ;
word = strtok ( NULL , " \n " ) ;
if ( word )
strupr ( word ) ;
else
break ;
// TODO: Check for existing freeslot mobjs/states/etc. and make errors.
// TODO: Out-of-slots warnings/errors.
// TODO: Name too long (truncated) warnings.
if ( fastcmp ( type , " SFX " ) )
2014-03-18 17:56:54 +00:00
S_AddSoundFx ( word , false , 0 , false ) ;
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( type , " SPR " ) )
{
for ( i = SPR_FIRSTFREESLOT ; i < = SPR_LASTFREESLOT ; i + + )
{
if ( used_spr [ ( i - SPR_FIRSTFREESLOT ) / 8 ] & ( 1 < < ( i % 8 ) ) )
{
if ( ! sprnames [ i ] [ 4 ] & & memcmp ( sprnames [ i ] , word , 4 ) = = 0 )
sprnames [ i ] [ 4 ] = ( char ) f - > wad ;
continue ; // Already allocated, next.
}
// Found a free slot!
strncpy ( sprnames [ i ] , word , 4 ) ;
//sprnames[i][4] = 0;
used_spr [ ( i - SPR_FIRSTFREESLOT ) / 8 ] | = 1 < < ( i % 8 ) ; // Okay, this sprite slot has been named now.
break ;
}
}
else if ( fastcmp ( type , " S " ) )
{
for ( i = 0 ; i < NUMSTATEFREESLOTS ; i + + )
if ( ! FREE_STATES [ i ] ) {
FREE_STATES [ i ] = Z_Malloc ( strlen ( word ) + 1 , PU_STATIC , NULL ) ;
strcpy ( FREE_STATES [ i ] , word ) ;
break ;
}
}
else if ( fastcmp ( type , " MT " ) )
{
for ( i = 0 ; i < NUMMOBJFREESLOTS ; i + + )
if ( ! FREE_MOBJS [ i ] ) {
FREE_MOBJS [ i ] = Z_Malloc ( strlen ( word ) + 1 , PU_STATIC , NULL ) ;
strcpy ( FREE_MOBJS [ i ] , word ) ;
break ;
}
}
2015-11-11 01:33:01 +00:00
else if ( fastcmp ( type , " SPR2 " ) )
2015-10-31 18:45:42 +00:00
{
// Search if we already have an SPR2 by that name...
2016-01-14 17:11:16 +00:00
for ( i = SPR2_FIRSTFREESLOT ; i < ( int ) free_spr2 ; i + + )
2015-10-31 18:45:42 +00:00
if ( memcmp ( spr2names [ i ] , word , 4 ) = = 0 )
break ;
// We found it? (Two mods using the same SPR2 name?) Then don't allocate another one.
2016-01-14 17:11:16 +00:00
if ( i < ( int ) free_spr2 )
2015-10-31 18:45:42 +00:00
continue ;
// Copy in the spr2 name and increment free_spr2.
if ( free_spr2 < NUMPLAYERSPRITES ) {
A good and bad ending cutscene now exist.
Also:
* SPR2_XTRA - instead of defining lumpnames in S_SKIN, those kinds of assets can just be bundled into the spriteset. Required for ending cutscene stuff, I guess, but also done for HUD life icon and character select image (aside from Sonic&Tails, still SOC'd in).
* Minor oversights in SPR2 support corrected.
* Better evaluation, featuring ending assets.
* Intro has warping-in blackrock, reusing ending assets.
* Cutscene text now supports lowercase (intro and custom).
* Disable the asset-fucking "gamma correction" I put in over two years ago when implementing colour cube. (This is the only thing I could move into another branch if you MUST, but it's basically invisble in the diff so w/e.)
* Don't blank the screen if the top left pixel of a screen-covering patch is transparent. (Checked via nonzero topdelta for first column)
Bugs:
* OPENGL ONLY: The first ~20 frames of both endings are fucked. A little help here? Might be HWR_DrawFadeFill's fault, which I just created. OR it could be in f_finale, but I doubt it, since it doesn't appear in Software.
2019-07-27 23:32:57 +00:00
CONS_Printf ( " Sprite SPR2_%s allocated. \n " , word ) ;
2015-10-31 18:45:42 +00:00
strncpy ( spr2names [ free_spr2 ] , word , 4 ) ;
A good and bad ending cutscene now exist.
Also:
* SPR2_XTRA - instead of defining lumpnames in S_SKIN, those kinds of assets can just be bundled into the spriteset. Required for ending cutscene stuff, I guess, but also done for HUD life icon and character select image (aside from Sonic&Tails, still SOC'd in).
* Minor oversights in SPR2 support corrected.
* Better evaluation, featuring ending assets.
* Intro has warping-in blackrock, reusing ending assets.
* Cutscene text now supports lowercase (intro and custom).
* Disable the asset-fucking "gamma correction" I put in over two years ago when implementing colour cube. (This is the only thing I could move into another branch if you MUST, but it's basically invisble in the diff so w/e.)
* Don't blank the screen if the top left pixel of a screen-covering patch is transparent. (Checked via nonzero topdelta for first column)
Bugs:
* OPENGL ONLY: The first ~20 frames of both endings are fucked. A little help here? Might be HWR_DrawFadeFill's fault, which I just created. OR it could be in f_finale, but I doubt it, since it doesn't appear in Software.
2019-07-27 23:32:57 +00:00
spr2defaults [ free_spr2 ] = 0 ;
2015-10-31 18:45:42 +00:00
spr2names [ free_spr2 + + ] [ 4 ] = 0 ;
} else
CONS_Alert ( CONS_WARNING , " Ran out of free SPR2 slots! \n " ) ;
}
2014-03-15 16:59:03 +00:00
else
deh_warning ( " Freeslots: unknown enum class '%s' for '%s_%s' " , type , type , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
static void readthing ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word , * word2 ;
char * tmp ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
word2 = strtok ( NULL , " = " ) ;
if ( word2 )
strupr ( word2 ) ;
else
break ;
if ( word2 [ strlen ( word2 ) - 1 ] = = ' \n ' )
word2 [ strlen ( word2 ) - 1 ] = ' \0 ' ;
if ( fastcmp ( word , " MAPTHINGNUM " ) | | fastcmp ( word , " DOOMEDNUM " ) )
{
mobjinfo [ num ] . doomednum = ( INT32 ) atoi ( word2 ) ;
}
else if ( fastcmp ( word , " SPAWNSTATE " ) )
{
mobjinfo [ num ] . spawnstate = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " SPAWNHEALTH " ) )
{
mobjinfo [ num ] . spawnhealth = ( INT32 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " SEESTATE " ) )
{
mobjinfo [ num ] . seestate = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " SEESOUND " ) )
{
mobjinfo [ num ] . seesound = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " REACTIONTIME " ) )
{
mobjinfo [ num ] . reactiontime = ( INT32 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " ATTACKSOUND " ) )
{
mobjinfo [ num ] . attacksound = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " PAINSTATE " ) )
{
mobjinfo [ num ] . painstate = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " PAINCHANCE " ) )
{
mobjinfo [ num ] . painchance = ( INT32 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " PAINSOUND " ) )
{
mobjinfo [ num ] . painsound = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " MELEESTATE " ) )
{
mobjinfo [ num ] . meleestate = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " MISSILESTATE " ) )
{
mobjinfo [ num ] . missilestate = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " DEATHSTATE " ) )
{
mobjinfo [ num ] . deathstate = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " DEATHSOUND " ) )
{
mobjinfo [ num ] . deathsound = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " XDEATHSTATE " ) )
{
mobjinfo [ num ] . xdeathstate = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " SPEED " ) )
{
mobjinfo [ num ] . speed = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " RADIUS " ) )
{
mobjinfo [ num ] . radius = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " HEIGHT " ) )
{
mobjinfo [ num ] . height = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " DISPOFFSET " ) )
{
mobjinfo [ num ] . dispoffset = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " MASS " ) )
{
mobjinfo [ num ] . mass = ( INT32 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " DAMAGE " ) )
{
mobjinfo [ num ] . damage = ( INT32 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " ACTIVESOUND " ) )
{
mobjinfo [ num ] . activesound = get_number ( word2 ) ;
}
else if ( fastcmp ( word , " FLAGS " ) )
{
mobjinfo [ num ] . flags = ( INT32 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " RAISESTATE " ) )
{
mobjinfo [ num ] . raisestate = get_number ( word2 ) ;
}
else
deh_warning ( " Thing %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
# ifdef HWRENDER
static void readlight ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word ;
char * tmp ;
INT32 value ;
float fvalue ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
fvalue = searchfvalue ( s ) ;
value = searchvalue ( s ) ;
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
if ( fastcmp ( word , " TYPE " ) )
{
lspr [ num ] . type = ( UINT16 ) value ;
}
else if ( fastcmp ( word , " OFFSETX " ) )
{
lspr [ num ] . light_xoffset = fvalue ;
}
else if ( fastcmp ( word , " OFFSETY " ) )
{
lspr [ num ] . light_yoffset = fvalue ;
}
else if ( fastcmp ( word , " CORONACOLOR " ) )
{
lspr [ num ] . corona_color = value ;
}
else if ( fastcmp ( word , " CORONARADIUS " ) )
{
lspr [ num ] . corona_radius = fvalue ;
}
else if ( fastcmp ( word , " DYNAMICCOLOR " ) )
{
lspr [ num ] . dynamic_color = value ;
}
else if ( fastcmp ( word , " DYNAMICRADIUS " ) )
{
lspr [ num ] . dynamic_radius = fvalue ;
/// \note Update the sqrradius! unnecessary?
lspr [ num ] . dynamic_sqrradius = fvalue * fvalue ;
}
else
deh_warning ( " Light %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
static void readspritelight ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word ;
char * tmp ;
INT32 value ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
value = searchvalue ( s ) ;
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
if ( fastcmp ( word , " LIGHTTYPE " ) )
{
INT32 oldvar ;
for ( oldvar = 0 ; t_lspr [ num ] ! = & lspr [ oldvar ] ; oldvar + + )
;
t_lspr [ num ] = & lspr [ value ] ;
}
else
deh_warning ( " Sprite %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
# endif // HWRENDER
2017-08-25 17:00:20 +00:00
static void readsprite2 ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word , * word2 ;
char * tmp ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
word2 = strtok ( NULL , " = " ) ;
if ( word2 )
strupr ( word2 ) ;
else
break ;
if ( word2 [ strlen ( word2 ) - 1 ] = = ' \n ' )
word2 [ strlen ( word2 ) - 1 ] = ' \0 ' ;
if ( fastcmp ( word , " DEFAULT " ) )
spr2defaults [ num ] = get_number ( word2 ) ;
else
deh_warning ( " Sprite2 %s: unknown word '%s' " , spr2names [ num ] , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
2014-03-15 16:59:03 +00:00
static const struct {
const char * name ;
const UINT16 flag ;
} TYPEOFLEVEL [ ] = {
{ " SOLO " , TOL_SP } ,
{ " SP " , TOL_SP } ,
{ " SINGLEPLAYER " , TOL_SP } ,
{ " SINGLE " , TOL_SP } ,
{ " COOP " , TOL_COOP } ,
{ " CO-OP " , TOL_COOP } ,
{ " COMPETITION " , TOL_COMPETITION } ,
{ " RACE " , TOL_RACE } ,
{ " MATCH " , TOL_MATCH } ,
{ " TAG " , TOL_TAG } ,
{ " CTF " , TOL_CTF } ,
{ " CUSTOM " , TOL_CUSTOM } ,
{ " 2D " , TOL_2D } ,
{ " MARIO " , TOL_MARIO } ,
{ " NIGHTS " , TOL_NIGHTS } ,
{ " OLDBRAK " , TOL_ERZ3 } ,
{ " XMAS " , TOL_XMAS } ,
{ " CHRISTMAS " , TOL_XMAS } ,
{ " WINTER " , TOL_XMAS } ,
{ NULL , 0 }
} ;
2016-12-27 21:01:20 +00:00
static const struct {
const char * name ;
const mobjtype_t type ;
2016-12-29 17:02:05 +00:00
} FLICKYTYPES [ ] = {
2018-04-28 14:13:44 +00:00
{ " BLUEBIRD " , MT_FLICKY_01 } , // Flicky (Flicky)
{ " RABBIT " , MT_FLICKY_02 } , // Pocky (1)
{ " CHICKEN " , MT_FLICKY_03 } , // Cucky (1)
{ " SEAL " , MT_FLICKY_04 } , // Rocky (1)
{ " PIG " , MT_FLICKY_05 } , // Picky (1)
{ " CHIPMUNK " , MT_FLICKY_06 } , // Ricky (1)
{ " PENGUIN " , MT_FLICKY_07 } , // Pecky (1)
{ " FISH " , MT_FLICKY_08 } , // Nicky (CD)
{ " RAM " , MT_FLICKY_09 } , // Flocky (CD)
{ " PUFFIN " , MT_FLICKY_10 } , // Wicky (CD)
{ " COW " , MT_FLICKY_11 } , // Macky (SRB2)
{ " RAT " , MT_FLICKY_12 } , // Micky (2)
{ " BEAR " , MT_FLICKY_13 } , // Becky (2)
{ " DOVE " , MT_FLICKY_14 } , // Docky (CD)
{ " CAT " , MT_FLICKY_15 } , // Nyannyan (Flicky)
{ " CANARY " , MT_FLICKY_16 } , // Lucky (CD)
2016-12-31 23:47:47 +00:00
{ " a " , 0 } , // End of normal flickies - a lower case character so will never fastcmp valid with uppercase tmp
2018-04-28 14:13:44 +00:00
//{"FLICKER", MT_FLICKER}, // Flacky (SRB2)
{ " SPIDER " , MT_SECRETFLICKY_01 } , // Sticky (SRB2)
{ " BAT " , MT_SECRETFLICKY_02 } , // Backy (SRB2)
{ " SEED " , MT_SEED } , // Seed (CD)
2016-12-27 21:01:20 +00:00
{ NULL , 0 }
2016-12-29 17:02:05 +00:00
} ;
2016-12-27 21:01:20 +00:00
2016-12-31 23:47:47 +00:00
# define MAXFLICKIES 64
2014-03-15 16:59:03 +00:00
static void readlevelheader ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
2015-06-13 22:56:28 +00:00
char * word ;
2014-03-15 16:59:03 +00:00
char * word2 ;
2014-08-04 03:49:33 +00:00
//char *word3; // Non-uppercase version of word2
2014-03-15 16:59:03 +00:00
char * tmp ;
INT32 i ;
// Reset all previous map header information
P_AllocMapHeader ( ( INT16 ) ( num - 1 ) ) ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
// First remove trailing newline, if there is one
tmp = strchr ( s , ' \n ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
2015-06-13 22:56:28 +00:00
// Set / reset word, because some things (Lua.) move it
word = s ;
2014-03-15 16:59:03 +00:00
// Get the part before the " = "
tmp = strchr ( s , ' = ' ) ;
2018-10-31 19:26:29 +00:00
if ( tmp )
* ( tmp - 1 ) = ' \0 ' ;
else
break ;
2014-03-15 16:59:03 +00:00
strupr ( word ) ;
// Now get the part after
word2 = tmp + = 2 ;
i = atoi ( word2 ) ; // used for numerical settings
// CHEAP HACK: move this over here for lowercase subtitles
if ( fastcmp ( word , " SUBTITLE " ) )
{
deh_strlcpy ( mapheaderinfo [ num - 1 ] - > subttl , word2 ,
sizeof ( mapheaderinfo [ num - 1 ] - > subttl ) , va ( " Level header %d: subtitle " , num ) ) ;
continue ;
}
2014-08-04 03:49:33 +00:00
// Lua custom options also go above, contents may be case sensitive.
if ( fastncmp ( word , " LUA. " , 4 ) )
{
# ifdef HAVE_BLUA
UINT8 j ;
customoption_t * modoption ;
// Note: we actualy strlwr word here, so things are made a little easier for Lua
strlwr ( word ) ;
word + = 4 ; // move past "lua."
// ... and do a simple name sanity check; the name must start with a letter
if ( * word < ' a ' | | * word > ' z ' )
{
deh_warning ( " Level header %d: invalid custom option name \" %s \" " , num , word ) ;
continue ;
}
// Sanity limit of 128 params
if ( mapheaderinfo [ num - 1 ] - > numCustomOptions = = 128 )
{
deh_warning ( " Level header %d: too many custom parameters " , num ) ;
continue ;
}
j = mapheaderinfo [ num - 1 ] - > numCustomOptions + + ;
mapheaderinfo [ num - 1 ] - > customopts =
Z_Realloc ( mapheaderinfo [ num - 1 ] - > customopts ,
sizeof ( customoption_t ) * mapheaderinfo [ num - 1 ] - > numCustomOptions , PU_STATIC , NULL ) ;
// Newly allocated
modoption = & mapheaderinfo [ num - 1 ] - > customopts [ j ] ;
strncpy ( modoption - > option , word , 31 ) ;
modoption - > option [ 31 ] = ' \0 ' ;
strncpy ( modoption - > value , word2 , 255 ) ;
modoption - > value [ 255 ] = ' \0 ' ;
# else
// Silently ignore.
# endif
continue ;
}
2014-03-15 16:59:03 +00:00
// Now go to uppercase
strupr ( word2 ) ;
2016-12-29 17:02:05 +00:00
// List of flickies that are be freed in this map
if ( fastcmp ( word , " FLICKYLIST " ) | | fastcmp ( word , " ANIMALLIST " ) )
2016-12-27 21:01:20 +00:00
{
if ( fastcmp ( word2 , " NONE " ) )
2017-01-01 16:24:47 +00:00
P_DeleteFlickies ( num - 1 ) ;
else if ( fastcmp ( word2 , " DEMO " ) )
P_SetDemoFlickies ( num - 1 ) ;
2016-12-31 23:47:47 +00:00
else if ( fastcmp ( word2 , " ALL " ) )
{
2017-01-01 00:39:33 +00:00
mobjtype_t tmpflickies [ MAXFLICKIES ] ;
2016-12-31 23:47:47 +00:00
for ( mapheaderinfo [ num - 1 ] - > numFlickies = 0 ;
( ( mapheaderinfo [ num - 1 ] - > numFlickies < MAXFLICKIES ) & & FLICKYTYPES [ mapheaderinfo [ num - 1 ] - > numFlickies ] . type ) ;
mapheaderinfo [ num - 1 ] - > numFlickies + + )
tmpflickies [ mapheaderinfo [ num - 1 ] - > numFlickies ] = FLICKYTYPES [ mapheaderinfo [ num - 1 ] - > numFlickies ] . type ;
2017-01-01 16:24:47 +00:00
if ( mapheaderinfo [ num - 1 ] - > numFlickies ) // just in case...
2016-12-31 23:47:47 +00:00
{
size_t newsize = sizeof ( mobjtype_t ) * mapheaderinfo [ num - 1 ] - > numFlickies ;
mapheaderinfo [ num - 1 ] - > flickies = Z_Realloc ( mapheaderinfo [ num - 1 ] - > flickies , newsize , PU_STATIC , NULL ) ;
M_Memcpy ( mapheaderinfo [ num - 1 ] - > flickies , tmpflickies , newsize ) ;
}
}
2016-12-27 21:01:20 +00:00
else
{
2016-12-29 17:02:05 +00:00
mobjtype_t tmpflickies [ MAXFLICKIES ] ;
mapheaderinfo [ num - 1 ] - > numFlickies = 0 ;
2016-12-27 21:01:20 +00:00
tmp = strtok ( word2 , " , " ) ;
2017-01-01 00:39:33 +00:00
// get up to the first MAXFLICKIES flickies
2016-12-27 21:01:20 +00:00
do {
2016-12-29 17:02:05 +00:00
if ( mapheaderinfo [ num - 1 ] - > numFlickies = = MAXFLICKIES ) // never going to get above that number
{
deh_warning ( " Level header %d: too many flickies \n " , num ) ;
2016-12-31 23:47:47 +00:00
break ;
2016-12-29 17:02:05 +00:00
}
2016-12-27 21:01:20 +00:00
2016-12-29 17:02:05 +00:00
if ( fastncmp ( tmp , " MT_ " , 3 ) ) // support for specified mobjtypes...
{
i = get_mobjtype ( tmp ) ;
if ( ! i )
{
//deh_warning("Level header %d: unknown flicky mobj type %s\n", num, tmp); -- no need for this line as get_mobjtype complains too
continue ;
}
tmpflickies [ mapheaderinfo [ num - 1 ] - > numFlickies ] = i ;
}
else // ...or a quick, limited selection of default flickies!
{
for ( i = 0 ; FLICKYTYPES [ i ] . name ; i + + )
if ( fastcmp ( tmp , FLICKYTYPES [ i ] . name ) )
break ;
if ( ! FLICKYTYPES [ i ] . name )
{
deh_warning ( " Level header %d: unknown flicky selection %s \n " , num , tmp ) ;
continue ;
}
tmpflickies [ mapheaderinfo [ num - 1 ] - > numFlickies ] = FLICKYTYPES [ i ] . type ;
}
mapheaderinfo [ num - 1 ] - > numFlickies + + ;
} while ( ( tmp = strtok ( NULL , " , " ) ) ! = NULL ) ;
2016-12-30 14:04:04 +00:00
if ( mapheaderinfo [ num - 1 ] - > numFlickies )
2016-12-27 21:01:20 +00:00
{
2016-12-29 17:02:05 +00:00
size_t newsize = sizeof ( mobjtype_t ) * mapheaderinfo [ num - 1 ] - > numFlickies ;
mapheaderinfo [ num - 1 ] - > flickies = Z_Realloc ( mapheaderinfo [ num - 1 ] - > flickies , newsize , PU_STATIC , NULL ) ;
2016-12-27 21:01:20 +00:00
// now we add them to the list!
2016-12-29 17:02:05 +00:00
M_Memcpy ( mapheaderinfo [ num - 1 ] - > flickies , tmpflickies , newsize ) ;
2016-12-27 21:01:20 +00:00
}
2016-12-29 17:02:05 +00:00
else
deh_warning ( " Level header %d: no valid flicky types found \n " , num ) ;
2016-12-27 21:01:20 +00:00
}
}
2016-12-29 17:02:05 +00:00
2014-03-15 16:59:03 +00:00
// NiGHTS grades
2016-12-29 17:02:05 +00:00
else if ( fastncmp ( word , " GRADES " , 6 ) )
2014-03-15 16:59:03 +00:00
{
UINT8 mare = ( UINT8 ) atoi ( word + 6 ) ;
if ( mare < = 0 | | mare > 8 )
{
deh_warning ( " Level header %d: unknown word '%s' " , num , word ) ;
continue ;
}
2014-08-04 03:49:33 +00:00
2014-03-15 16:59:03 +00:00
P_AddGradesForMare ( ( INT16 ) ( num - 1 ) , mare - 1 , word2 ) ;
}
// Strings that can be truncated
else if ( fastcmp ( word , " LEVELNAME " ) )
2014-08-04 03:49:33 +00:00
{
2014-03-15 16:59:03 +00:00
deh_strlcpy ( mapheaderinfo [ num - 1 ] - > lvlttl , word2 ,
sizeof ( mapheaderinfo [ num - 1 ] - > lvlttl ) , va ( " Level header %d: levelname " , num ) ) ;
2017-01-26 19:14:52 +00:00
strlcpy ( mapheaderinfo [ num - 1 ] - > selectheading , word2 , sizeof ( mapheaderinfo [ num - 1 ] - > selectheading ) ) ; // not deh_ so only complains once
}
else if ( fastcmp ( word , " SELECTHEADING " ) )
{
deh_strlcpy ( mapheaderinfo [ num - 1 ] - > selectheading , word2 ,
sizeof ( mapheaderinfo [ num - 1 ] - > selectheading ) , va ( " Level header %d: selectheading " , num ) ) ;
2014-08-04 03:49:33 +00:00
}
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " SCRIPTNAME " ) )
2014-08-04 03:49:33 +00:00
{
2014-03-15 16:59:03 +00:00
deh_strlcpy ( mapheaderinfo [ num - 1 ] - > scriptname , word2 ,
sizeof ( mapheaderinfo [ num - 1 ] - > scriptname ) , va ( " Level header %d: scriptname " , num ) ) ;
2014-08-04 03:49:33 +00:00
}
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " RUNSOC " ) )
2014-08-04 03:49:33 +00:00
{
2014-03-15 16:59:03 +00:00
deh_strlcpy ( mapheaderinfo [ num - 1 ] - > runsoc , word2 ,
sizeof ( mapheaderinfo [ num - 1 ] - > runsoc ) , va ( " Level header %d: runsoc " , num ) ) ;
2014-08-04 03:49:33 +00:00
}
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " ACT " ) )
{
if ( i > = 0 & & i < 20 ) // 0 for no act number, TTL1 through TTL19
mapheaderinfo [ num - 1 ] - > actnum = ( UINT8 ) i ;
else
deh_warning ( " Level header %d: invalid act number %d " , num , i ) ;
}
else if ( fastcmp ( word , " NEXTLEVEL " ) )
{
2015-11-08 17:50:05 +00:00
if ( fastcmp ( word2 , " TITLE " ) ) i = 1100 ;
else if ( fastcmp ( word2 , " EVALUATION " ) ) i = 1101 ;
else if ( fastcmp ( word2 , " CREDITS " ) ) i = 1102 ;
A good and bad ending cutscene now exist.
Also:
* SPR2_XTRA - instead of defining lumpnames in S_SKIN, those kinds of assets can just be bundled into the spriteset. Required for ending cutscene stuff, I guess, but also done for HUD life icon and character select image (aside from Sonic&Tails, still SOC'd in).
* Minor oversights in SPR2 support corrected.
* Better evaluation, featuring ending assets.
* Intro has warping-in blackrock, reusing ending assets.
* Cutscene text now supports lowercase (intro and custom).
* Disable the asset-fucking "gamma correction" I put in over two years ago when implementing colour cube. (This is the only thing I could move into another branch if you MUST, but it's basically invisble in the diff so w/e.)
* Don't blank the screen if the top left pixel of a screen-covering patch is transparent. (Checked via nonzero topdelta for first column)
Bugs:
* OPENGL ONLY: The first ~20 frames of both endings are fucked. A little help here? Might be HWR_DrawFadeFill's fault, which I just created. OR it could be in f_finale, but I doubt it, since it doesn't appear in Software.
2019-07-27 23:32:57 +00:00
else if ( fastcmp ( word2 , " ENDING " ) ) i = 1103 ;
2015-11-08 17:50:05 +00:00
else
2014-03-15 16:59:03 +00:00
// Support using the actual map name,
// i.e., Nextlevel = AB, Nextlevel = FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' & & word2 [ 2 ] = = ' \0 ' )
i = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
mapheaderinfo [ num - 1 ] - > nextlevel = ( INT16 ) i ;
}
else if ( fastcmp ( word , " TYPEOFLEVEL " ) )
{
if ( i ) // it's just a number
mapheaderinfo [ num - 1 ] - > typeoflevel = ( UINT16 ) i ;
else
{
UINT16 tol = 0 ;
tmp = strtok ( word2 , " , " ) ;
do {
for ( i = 0 ; TYPEOFLEVEL [ i ] . name ; i + + )
if ( fastcmp ( tmp , TYPEOFLEVEL [ i ] . name ) )
break ;
if ( ! TYPEOFLEVEL [ i ] . name )
deh_warning ( " Level header %d: unknown typeoflevel flag %s \n " , num , tmp ) ;
tol | = TYPEOFLEVEL [ i ] . flag ;
} while ( ( tmp = strtok ( NULL , " , " ) ) ! = NULL ) ;
mapheaderinfo [ num - 1 ] - > typeoflevel = tol ;
}
}
2016-01-08 03:48:20 +00:00
else if ( fastcmp ( word , " MUSIC " ) )
2014-03-15 16:59:03 +00:00
{
2016-01-08 03:48:20 +00:00
if ( fastcmp ( word2 , " NONE " ) )
mapheaderinfo [ num - 1 ] - > musname [ 0 ] = 0 ; // becomes empty string
else
{
deh_strlcpy ( mapheaderinfo [ num - 1 ] - > musname , word2 ,
sizeof ( mapheaderinfo [ num - 1 ] - > musname ) , va ( " Level header %d: music " , num ) ) ;
}
}
2016-03-03 10:54:07 +00:00
# ifdef MUSICSLOT_COMPATIBILITY
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " MUSICSLOT " ) )
{
2016-03-03 10:54:07 +00:00
i = get_mus ( word2 , true ) ;
if ( i & & i < = 1035 )
2016-02-26 07:31:48 +00:00
snprintf ( mapheaderinfo [ num - 1 ] - > musname , 7 , " %sM " , G_BuildMapName ( i ) ) ;
2016-03-03 10:54:07 +00:00
else if ( i & & i < = 1050 )
strncpy ( mapheaderinfo [ num - 1 ] - > musname , compat_special_music_slots [ i - 1036 ] , 7 ) ;
else
mapheaderinfo [ num - 1 ] - > musname [ 0 ] = 0 ; // becomes empty string
mapheaderinfo [ num - 1 ] - > musname [ 6 ] = 0 ;
2014-03-15 16:59:03 +00:00
}
2016-03-03 10:54:07 +00:00
# endif
2016-01-08 03:48:20 +00:00
else if ( fastcmp ( word , " MUSICTRACK " ) )
mapheaderinfo [ num - 1 ] - > mustrack = ( ( UINT16 ) i - 1 ) ;
2018-09-18 14:22:17 +00:00
else if ( fastcmp ( word , " MUSICPOS " ) )
mapheaderinfo [ num - 1 ] - > muspos = ( UINT32 ) get_number ( word2 ) ;
2019-03-15 05:00:50 +00:00
else if ( fastcmp ( word , " MUSICINTERFADEOUT " ) )
mapheaderinfo [ num - 1 ] - > musinterfadeout = ( UINT32 ) get_number ( word2 ) ;
2018-10-21 18:51:49 +00:00
else if ( fastcmp ( word , " MUSICINTER " ) )
deh_strlcpy ( mapheaderinfo [ num - 1 ] - > musintername , word2 ,
sizeof ( mapheaderinfo [ num - 1 ] - > musintername ) , va ( " Level header %d: intermission music " , num ) ) ;
2019-08-04 11:03:57 +00:00
else if ( fastcmp ( word , " MUSICPOSTBOSS " ) )
deh_strlcpy ( mapheaderinfo [ num - 1 ] - > muspostbossname , word2 ,
sizeof ( mapheaderinfo [ num - 1 ] - > muspostbossname ) , va ( " Level header %d: post-boss music " , num ) ) ;
else if ( fastcmp ( word , " MUSICPOSTBOSSTRACK " ) )
mapheaderinfo [ num - 1 ] - > muspostbosstrack = ( ( UINT16 ) i - 1 ) ;
else if ( fastcmp ( word , " MUSICPOSTBOSSPOS " ) )
mapheaderinfo [ num - 1 ] - > muspostbosspos = ( UINT32 ) get_number ( word2 ) ;
else if ( fastcmp ( word , " MUSICPOSTBOSSFADEIN " ) )
mapheaderinfo [ num - 1 ] - > muspostbossfadein = ( UINT32 ) get_number ( word2 ) ;
2019-08-05 00:02:38 +00:00
else if ( fastcmp ( word , " FORCERESETMUSIC " ) )
{
// This is a weird one because "FALSE"/"NO" could either apply to "leave to default preference" (cv_resetmusic)
// or "force off". Let's assume it means "force off", and let an unspecified value mean "default preference"
if ( fastcmp ( word2 , " OFF " ) | | word2 [ 0 ] = = ' F ' | | word2 [ 0 ] = = ' N ' ) i = 0 ;
else if ( fastcmp ( word2 , " ON " ) | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) i = 1 ;
else i = - 1 ; // (fastcmp(word2, "DEFAULT"))
if ( i > = - 1 & & i < = 1 ) // -1 to force off, 1 to force on, 0 to honor default.
// This behavior can be disabled with cv_resetmusicbyheader
mapheaderinfo [ num - 1 ] - > musforcereset = ( SINT8 ) i ;
else
deh_warning ( " Level header %d: invalid forceresetmusic option %d " , num , i ) ;
}
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " FORCECHARACTER " ) )
{
strlcpy ( mapheaderinfo [ num - 1 ] - > forcecharacter , word2 , SKINNAMESIZE + 1 ) ;
strlwr ( mapheaderinfo [ num - 1 ] - > forcecharacter ) ; // skin names are lowercase
}
else if ( fastcmp ( word , " WEATHER " ) )
mapheaderinfo [ num - 1 ] - > weather = ( UINT8 ) get_number ( word2 ) ;
else if ( fastcmp ( word , " SKYNUM " ) )
mapheaderinfo [ num - 1 ] - > skynum = ( INT16 ) i ;
else if ( fastcmp ( word , " INTERSCREEN " ) )
strncpy ( mapheaderinfo [ num - 1 ] - > interscreen , word2 , 8 ) ;
else if ( fastcmp ( word , " PRECUTSCENENUM " ) )
mapheaderinfo [ num - 1 ] - > precutscenenum = ( UINT8 ) i ;
else if ( fastcmp ( word , " CUTSCENENUM " ) )
mapheaderinfo [ num - 1 ] - > cutscenenum = ( UINT8 ) i ;
else if ( fastcmp ( word , " COUNTDOWN " ) )
mapheaderinfo [ num - 1 ] - > countdown = ( INT16 ) i ;
else if ( fastcmp ( word , " PALETTE " ) )
mapheaderinfo [ num - 1 ] - > palette = ( UINT16 ) i ;
else if ( fastcmp ( word , " NUMLAPS " ) )
2014-03-21 18:42:55 +00:00
mapheaderinfo [ num - 1 ] - > numlaps = ( UINT8 ) i ;
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " UNLOCKABLE " ) )
{
if ( i > = 0 & & i < = MAXUNLOCKABLES ) // 0 for no unlock required, anything else requires something
mapheaderinfo [ num - 1 ] - > unlockrequired = ( SINT8 ) i - 1 ;
else
deh_warning ( " Level header %d: invalid unlockable number %d " , num , i ) ;
}
else if ( fastcmp ( word , " LEVELSELECT " ) )
mapheaderinfo [ num - 1 ] - > levelselect = ( UINT8 ) i ;
else if ( fastcmp ( word , " SKYBOXSCALE " ) )
mapheaderinfo [ num - 1 ] - > skybox_scalex = mapheaderinfo [ num - 1 ] - > skybox_scaley = mapheaderinfo [ num - 1 ] - > skybox_scalez = ( INT16 ) i ;
else if ( fastcmp ( word , " SKYBOXSCALEX " ) )
mapheaderinfo [ num - 1 ] - > skybox_scalex = ( INT16 ) i ;
else if ( fastcmp ( word , " SKYBOXSCALEY " ) )
mapheaderinfo [ num - 1 ] - > skybox_scaley = ( INT16 ) i ;
else if ( fastcmp ( word , " SKYBOXSCALEZ " ) )
mapheaderinfo [ num - 1 ] - > skybox_scalez = ( INT16 ) i ;
else if ( fastcmp ( word , " BONUSTYPE " ) )
{
if ( fastcmp ( word2 , " NONE " ) ) i = - 1 ;
else if ( fastcmp ( word2 , " NORMAL " ) ) i = 0 ;
else if ( fastcmp ( word2 , " BOSS " ) ) i = 1 ;
else if ( fastcmp ( word2 , " ERZ3 " ) ) i = 2 ;
2018-08-12 23:23:23 +00:00
else if ( fastcmp ( word2 , " NIGHTS " ) ) i = 3 ;
2018-09-09 05:13:02 +00:00
else if ( fastcmp ( word2 , " NIGHTSLINK " ) ) i = 4 ;
2014-03-15 16:59:03 +00:00
2018-09-19 14:45:51 +00:00
if ( i > = - 1 & & i < = 4 ) // -1 for no bonus. Max is 4.
2014-03-15 16:59:03 +00:00
mapheaderinfo [ num - 1 ] - > bonustype = ( SINT8 ) i ;
else
deh_warning ( " Level header %d: invalid bonus type number %d " , num , i ) ;
}
2018-08-13 18:16:33 +00:00
else if ( fastcmp ( word , " MAXBONUSLIVES " ) )
mapheaderinfo [ num - 1 ] - > maxbonuslives = ( SINT8 ) i ;
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " LEVELFLAGS " ) )
mapheaderinfo [ num - 1 ] - > levelflags = ( UINT8 ) i ;
else if ( fastcmp ( word , " MENUFLAGS " ) )
mapheaderinfo [ num - 1 ] - > menuflags = ( UINT8 ) i ;
// Individual triggers for level flags, for ease of use (and 2.0 compatibility)
else if ( fastcmp ( word , " SCRIPTISFILE " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > levelflags | = LF_SCRIPTISFILE ;
else
mapheaderinfo [ num - 1 ] - > levelflags & = ~ LF_SCRIPTISFILE ;
}
else if ( fastcmp ( word , " SPEEDMUSIC " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > levelflags | = LF_SPEEDMUSIC ;
else
mapheaderinfo [ num - 1 ] - > levelflags & = ~ LF_SPEEDMUSIC ;
}
else if ( fastcmp ( word , " NOSSMUSIC " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > levelflags | = LF_NOSSMUSIC ;
else
mapheaderinfo [ num - 1 ] - > levelflags & = ~ LF_NOSSMUSIC ;
}
else if ( fastcmp ( word , " NORELOAD " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > levelflags | = LF_NORELOAD ;
else
mapheaderinfo [ num - 1 ] - > levelflags & = ~ LF_NORELOAD ;
}
else if ( fastcmp ( word , " NOZONE " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > levelflags | = LF_NOZONE ;
else
mapheaderinfo [ num - 1 ] - > levelflags & = ~ LF_NOZONE ;
}
2017-08-06 20:36:55 +00:00
else if ( fastcmp ( word , " SAVEGAME " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > levelflags | = LF_SAVEGAME ;
else
mapheaderinfo [ num - 1 ] - > levelflags & = ~ LF_SAVEGAME ;
}
2019-03-15 03:10:14 +00:00
else if ( fastcmp ( word , " MIXNIGHTSCOUNTDOWN " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > levelflags | = LF_MIXNIGHTSCOUNTDOWN ;
else
mapheaderinfo [ num - 1 ] - > levelflags & = ~ LF_MIXNIGHTSCOUNTDOWN ;
}
2014-03-15 16:59:03 +00:00
// Individual triggers for menu flags
else if ( fastcmp ( word , " HIDDEN " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > menuflags | = LF2_HIDEINMENU ;
else
mapheaderinfo [ num - 1 ] - > menuflags & = ~ LF2_HIDEINMENU ;
}
else if ( fastcmp ( word , " HIDEINSTATS " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > menuflags | = LF2_HIDEINSTATS ;
else
mapheaderinfo [ num - 1 ] - > menuflags & = ~ LF2_HIDEINSTATS ;
}
else if ( fastcmp ( word , " RECORDATTACK " ) | | fastcmp ( word , " TIMEATTACK " ) )
{ // TIMEATTACK is an accepted alias
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > menuflags | = LF2_RECORDATTACK ;
else
mapheaderinfo [ num - 1 ] - > menuflags & = ~ LF2_RECORDATTACK ;
}
else if ( fastcmp ( word , " NIGHTSATTACK " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > menuflags | = LF2_NIGHTSATTACK ;
else
mapheaderinfo [ num - 1 ] - > menuflags & = LF2_NIGHTSATTACK ;
}
else if ( fastcmp ( word , " NOVISITNEEDED " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > menuflags | = LF2_NOVISITNEEDED ;
else
mapheaderinfo [ num - 1 ] - > menuflags & = ~ LF2_NOVISITNEEDED ;
}
2017-02-17 01:45:21 +00:00
else if ( fastcmp ( word , " WIDEICON " ) )
{
if ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' )
mapheaderinfo [ num - 1 ] - > menuflags | = LF2_WIDEICON ;
else
mapheaderinfo [ num - 1 ] - > menuflags & = ~ LF2_WIDEICON ;
}
2019-06-23 22:15:40 +00:00
else if ( fastcmp ( word , " STARTRINGS " ) )
mapheaderinfo [ num - 1 ] - > startrings = ( UINT16 ) i ;
2014-03-15 16:59:03 +00:00
else
deh_warning ( " Level header %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
2016-12-31 23:47:47 +00:00
# undef MAXFLICKIES
2014-03-15 16:59:03 +00:00
static void readcutscenescene ( MYFILE * f , INT32 num , INT32 scenenum )
{
char * s = Z_Calloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word ;
char * word2 ;
INT32 i ;
UINT16 usi ;
UINT8 picid ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
if ( fastcmp ( word , " SCENETEXT " ) )
{
char * scenetext = NULL ;
char * buffer ;
const int bufferlen = 4096 ;
for ( i = 0 ; i < MAXLINELEN ; i + + )
{
if ( s [ i ] = = ' = ' )
{
scenetext = & s [ i + 2 ] ;
break ;
}
}
if ( ! scenetext )
{
Z_Free ( cutscenes [ num ] - > scene [ scenenum ] . text ) ;
cutscenes [ num ] - > scene [ scenenum ] . text = NULL ;
continue ;
}
for ( i = 0 ; i < MAXLINELEN ; i + + )
{
if ( s [ i ] = = ' \0 ' )
{
s [ i ] = ' \n ' ;
s [ i + 1 ] = ' \0 ' ;
break ;
}
}
buffer = Z_Malloc ( 4096 , PU_STATIC , NULL ) ;
strcpy ( buffer , scenetext ) ;
strcat ( buffer ,
myhashfgets ( scenetext , bufferlen
- strlen ( buffer ) - 1 , f ) ) ;
// A cutscene overwriting another one...
Z_Free ( cutscenes [ num ] - > scene [ scenenum ] . text ) ;
cutscenes [ num ] - > scene [ scenenum ] . text = Z_StrDup ( buffer ) ;
Z_Free ( buffer ) ;
continue ;
}
word2 = strtok ( NULL , " = " ) ;
if ( word2 )
strupr ( word2 ) ;
else
break ;
if ( word2 [ strlen ( word2 ) - 1 ] = = ' \n ' )
word2 [ strlen ( word2 ) - 1 ] = ' \0 ' ;
i = atoi ( word2 ) ;
usi = ( UINT16 ) i ;
if ( fastcmp ( word , " NUMBEROFPICS " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . numpics = ( UINT8 ) i ;
}
else if ( fastncmp ( word , " PIC " , 3 ) )
{
picid = ( UINT8 ) atoi ( word + 3 ) ;
if ( picid > 8 | | picid = = 0 )
{
deh_warning ( " CutSceneScene %d: unknown word '%s' " , num , word ) ;
continue ;
}
- - picid ;
if ( fastcmp ( word + 4 , " NAME " ) )
{
strncpy ( cutscenes [ num ] - > scene [ scenenum ] . picname [ picid ] , word2 , 8 ) ;
}
else if ( fastcmp ( word + 4 , " HIRES " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . pichires [ picid ] = ( UINT8 ) ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
}
else if ( fastcmp ( word + 4 , " DURATION " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . picduration [ picid ] = usi ;
}
else if ( fastcmp ( word + 4 , " XCOORD " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . xcoord [ picid ] = usi ;
}
else if ( fastcmp ( word + 4 , " YCOORD " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . ycoord [ picid ] = usi ;
}
else
deh_warning ( " CutSceneScene %d: unknown word '%s' " , num , word ) ;
}
2016-01-08 03:48:20 +00:00
else if ( fastcmp ( word , " MUSIC " ) )
{
strncpy ( cutscenes [ num ] - > scene [ scenenum ] . musswitch , word2 , 7 ) ;
cutscenes [ num ] - > scene [ scenenum ] . musswitch [ 6 ] = 0 ;
}
2016-03-03 10:54:07 +00:00
# ifdef MUSICSLOT_COMPATIBILITY
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " MUSICSLOT " ) )
{
2016-03-03 10:54:07 +00:00
i = get_mus ( word2 , true ) ;
if ( i & & i < = 1035 )
snprintf ( cutscenes [ num ] - > scene [ scenenum ] . musswitch , 7 , " %sM " , G_BuildMapName ( i ) ) ;
else if ( i & & i < = 1050 )
strncpy ( cutscenes [ num ] - > scene [ scenenum ] . musswitch , compat_special_music_slots [ i - 1036 ] , 7 ) ;
else
cutscenes [ num ] - > scene [ scenenum ] . musswitch [ 0 ] = 0 ; // becomes empty string
cutscenes [ num ] - > scene [ scenenum ] . musswitch [ 6 ] = 0 ;
}
# endif
2016-01-08 03:48:20 +00:00
else if ( fastcmp ( word , " MUSICTRACK " ) )
2014-03-15 16:59:03 +00:00
{
2016-01-08 03:48:20 +00:00
cutscenes [ num ] - > scene [ scenenum ] . musswitchflags = ( ( UINT16 ) i ) & MUSIC_TRACKMASK ;
2014-03-15 16:59:03 +00:00
}
2018-09-18 14:22:17 +00:00
else if ( fastcmp ( word , " MUSICPOS " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . musswitchposition = ( UINT32 ) get_number ( word2 ) ;
}
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " MUSICLOOP " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . musicloop = ( UINT8 ) ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
}
else if ( fastcmp ( word , " TEXTXPOS " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . textxpos = usi ;
}
else if ( fastcmp ( word , " TEXTYPOS " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . textypos = usi ;
}
else if ( fastcmp ( word , " FADEINID " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . fadeinid = ( UINT8 ) i ;
}
else if ( fastcmp ( word , " FADEOUTID " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . fadeoutid = ( UINT8 ) i ;
}
else if ( fastcmp ( word , " FADECOLOR " ) )
{
cutscenes [ num ] - > scene [ scenenum ] . fadecolor = ( UINT8 ) i ;
}
else
deh_warning ( " CutSceneScene %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
static void readcutscene ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word ;
char * word2 ;
char * tmp ;
INT32 value ;
// Allocate memory for this cutscene if we don't yet have any
if ( ! cutscenes [ num ] )
cutscenes [ num ] = Z_Calloc ( sizeof ( cutscene_t ) , PU_STATIC , NULL ) ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
word2 = strtok ( NULL , " " ) ;
if ( word2 )
value = atoi ( word2 ) ;
else
{
deh_warning ( " No value for token %s " , word ) ;
continue ;
}
if ( fastcmp ( word , " NUMSCENES " ) )
{
cutscenes [ num ] - > numscenes = value ;
}
else if ( fastcmp ( word , " SCENE " ) )
{
if ( 1 < = value & & value < = 128 )
{
readcutscenescene ( f , num , value - 1 ) ;
}
else
deh_warning ( " Scene number %d out of range (1 - 128) " , value ) ;
}
else
deh_warning ( " Cutscene %d: unknown word '%s', Scene <num> expected. " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
2018-11-03 05:27:32 +00:00
static void readtextpromptpage ( MYFILE * f , INT32 num , INT32 pagenum )
{
char * s = Z_Calloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word ;
char * word2 ;
INT32 i ;
UINT16 usi ;
2018-11-10 15:30:33 +00:00
UINT8 picid ;
2018-11-03 05:27:32 +00:00
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
if ( fastcmp ( word , " PAGETEXT " ) )
{
char * pagetext = NULL ;
char * buffer ;
const int bufferlen = 4096 ;
for ( i = 0 ; i < MAXLINELEN ; i + + )
{
if ( s [ i ] = = ' = ' )
{
pagetext = & s [ i + 2 ] ;
break ;
}
}
if ( ! pagetext )
{
Z_Free ( textprompts [ num ] - > page [ pagenum ] . text ) ;
textprompts [ num ] - > page [ pagenum ] . text = NULL ;
continue ;
}
for ( i = 0 ; i < MAXLINELEN ; i + + )
{
if ( s [ i ] = = ' \0 ' )
{
s [ i ] = ' \n ' ;
s [ i + 1 ] = ' \0 ' ;
break ;
}
}
buffer = Z_Malloc ( 4096 , PU_STATIC , NULL ) ;
strcpy ( buffer , pagetext ) ;
2018-11-03 09:04:09 +00:00
// \todo trim trailing whitespace before the #
// and also support # at the end of a PAGETEXT with no line break
2018-11-03 05:27:32 +00:00
strcat ( buffer ,
myhashfgets ( pagetext , bufferlen
2018-11-03 09:04:09 +00:00
- strlen ( buffer ) - 1 , f ) ) ;
2018-11-03 05:27:32 +00:00
// A text prompt overwriting another one...
Z_Free ( textprompts [ num ] - > page [ pagenum ] . text ) ;
textprompts [ num ] - > page [ pagenum ] . text = Z_StrDup ( buffer ) ;
Z_Free ( buffer ) ;
continue ;
}
word2 = strtok ( NULL , " = " ) ;
if ( word2 )
strupr ( word2 ) ;
else
break ;
if ( word2 [ strlen ( word2 ) - 1 ] = = ' \n ' )
word2 [ strlen ( word2 ) - 1 ] = ' \0 ' ;
i = atoi ( word2 ) ;
usi = ( UINT16 ) i ;
2018-11-10 15:30:33 +00:00
// copypasta from readcutscenescene
if ( fastcmp ( word , " NUMBEROFPICS " ) )
{
textprompts [ num ] - > page [ pagenum ] . numpics = ( UINT8 ) i ;
}
2018-11-10 17:42:13 +00:00
else if ( fastcmp ( word , " PICMODE " ) )
{
UINT8 picmode = 0 ; // PROMPT_PIC_PERSIST
if ( usi = = 1 | | word2 [ 0 ] = = ' L ' ) picmode = PROMPT_PIC_LOOP ;
else if ( usi = = 2 | | word2 [ 0 ] = = ' D ' | | word2 [ 0 ] = = ' H ' ) picmode = PROMPT_PIC_DESTROY ;
textprompts [ num ] - > page [ pagenum ] . picmode = picmode ;
}
else if ( fastcmp ( word , " PICTOLOOP " ) )
textprompts [ num ] - > page [ pagenum ] . pictoloop = ( UINT8 ) i ;
2018-11-13 04:16:24 +00:00
else if ( fastcmp ( word , " PICTOSTART " ) )
textprompts [ num ] - > page [ pagenum ] . pictostart = ( UINT8 ) i ;
2018-11-11 19:50:10 +00:00
else if ( fastcmp ( word , " PICSMETAPAGE " ) )
{
if ( usi & & usi < = textprompts [ num ] - > numpages )
{
UINT8 metapagenum = usi - 1 ;
textprompts [ num ] - > page [ pagenum ] . numpics = textprompts [ num ] - > page [ metapagenum ] . numpics ;
textprompts [ num ] - > page [ pagenum ] . picmode = textprompts [ num ] - > page [ metapagenum ] . picmode ;
textprompts [ num ] - > page [ pagenum ] . pictoloop = textprompts [ num ] - > page [ metapagenum ] . pictoloop ;
2018-11-13 04:16:24 +00:00
textprompts [ num ] - > page [ pagenum ] . pictostart = textprompts [ num ] - > page [ metapagenum ] . pictostart ;
2018-11-11 19:50:10 +00:00
for ( picid = 0 ; picid < MAX_PROMPT_PICS ; picid + + )
{
strncpy ( textprompts [ num ] - > page [ pagenum ] . picname [ picid ] , textprompts [ num ] - > page [ metapagenum ] . picname [ picid ] , 8 ) ;
textprompts [ num ] - > page [ pagenum ] . pichires [ picid ] = textprompts [ num ] - > page [ metapagenum ] . pichires [ picid ] ;
textprompts [ num ] - > page [ pagenum ] . picduration [ picid ] = textprompts [ num ] - > page [ metapagenum ] . picduration [ picid ] ;
textprompts [ num ] - > page [ pagenum ] . xcoord [ picid ] = textprompts [ num ] - > page [ metapagenum ] . xcoord [ picid ] ;
textprompts [ num ] - > page [ pagenum ] . ycoord [ picid ] = textprompts [ num ] - > page [ metapagenum ] . ycoord [ picid ] ;
}
}
}
2018-11-10 15:30:33 +00:00
else if ( fastncmp ( word , " PIC " , 3 ) )
{
picid = ( UINT8 ) atoi ( word + 3 ) ;
2018-11-10 17:42:13 +00:00
if ( picid > MAX_PROMPT_PICS | | picid = = 0 )
2018-11-10 15:30:33 +00:00
{
deh_warning ( " textpromptscene %d: unknown word '%s' " , num , word ) ;
continue ;
}
- - picid ;
2018-11-03 05:27:32 +00:00
2018-11-10 15:30:33 +00:00
if ( fastcmp ( word + 4 , " NAME " ) )
{
strncpy ( textprompts [ num ] - > page [ pagenum ] . picname [ picid ] , word2 , 8 ) ;
}
else if ( fastcmp ( word + 4 , " HIRES " ) )
{
textprompts [ num ] - > page [ pagenum ] . pichires [ picid ] = ( UINT8 ) ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
}
else if ( fastcmp ( word + 4 , " DURATION " ) )
{
textprompts [ num ] - > page [ pagenum ] . picduration [ picid ] = usi ;
}
else if ( fastcmp ( word + 4 , " XCOORD " ) )
{
textprompts [ num ] - > page [ pagenum ] . xcoord [ picid ] = usi ;
}
else if ( fastcmp ( word + 4 , " YCOORD " ) )
{
textprompts [ num ] - > page [ pagenum ] . ycoord [ picid ] = usi ;
}
else
deh_warning ( " textpromptscene %d: unknown word '%s' " , num , word ) ;
}
else if ( fastcmp ( word , " MUSIC " ) )
{
strncpy ( textprompts [ num ] - > page [ pagenum ] . musswitch , word2 , 7 ) ;
textprompts [ num ] - > page [ pagenum ] . musswitch [ 6 ] = 0 ;
}
# ifdef MUSICSLOT_COMPATIBILITY
else if ( fastcmp ( word , " MUSICSLOT " ) )
{
i = get_mus ( word2 , true ) ;
if ( i & & i < = 1035 )
snprintf ( textprompts [ num ] - > page [ pagenum ] . musswitch , 7 , " %sM " , G_BuildMapName ( i ) ) ;
else if ( i & & i < = 1050 )
strncpy ( textprompts [ num ] - > page [ pagenum ] . musswitch , compat_special_music_slots [ i - 1036 ] , 7 ) ;
else
textprompts [ num ] - > page [ pagenum ] . musswitch [ 0 ] = 0 ; // becomes empty string
textprompts [ num ] - > page [ pagenum ] . musswitch [ 6 ] = 0 ;
}
# endif
else if ( fastcmp ( word , " MUSICTRACK " ) )
{
textprompts [ num ] - > page [ pagenum ] . musswitchflags = ( ( UINT16 ) i ) & MUSIC_TRACKMASK ;
}
else if ( fastcmp ( word , " MUSICLOOP " ) )
{
textprompts [ num ] - > page [ pagenum ] . musicloop = ( UINT8 ) ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
}
// end copypasta from readcutscenescene
else if ( fastcmp ( word , " NAME " ) )
2018-11-03 08:38:16 +00:00
{
2018-11-13 15:31:06 +00:00
INT32 j ;
2018-11-05 02:14:22 +00:00
2018-11-03 08:38:16 +00:00
// HACK: Add yellow control char now
// so the drawing function doesn't call it repeatedly
2018-11-10 14:38:32 +00:00
char name [ 34 ] ;
2018-11-03 08:38:16 +00:00
name [ 0 ] = ' \x82 ' ; // color yellow
name [ 1 ] = 0 ;
2018-11-10 14:38:32 +00:00
strncat ( name , word2 , 33 ) ;
name [ 33 ] = 0 ;
2018-11-05 02:14:22 +00:00
// Replace _ with ' '
2018-11-13 15:31:06 +00:00
for ( j = 0 ; j < 32 & & name [ j ] ; j + + )
2018-11-05 02:14:22 +00:00
{
2018-11-13 15:31:06 +00:00
if ( name [ j ] = = ' _ ' )
name [ j ] = ' ' ;
2018-11-05 02:14:22 +00:00
}
2018-11-03 08:38:16 +00:00
strncpy ( textprompts [ num ] - > page [ pagenum ] . name , name , 32 ) ;
}
2018-11-03 05:27:32 +00:00
else if ( fastcmp ( word , " ICON " ) )
strncpy ( textprompts [ num ] - > page [ pagenum ] . iconname , word2 , 8 ) ;
else if ( fastcmp ( word , " ICONALIGN " ) )
textprompts [ num ] - > page [ pagenum ] . rightside = ( i | | word2 [ 0 ] = = ' R ' ) ;
2018-11-04 02:57:39 +00:00
else if ( fastcmp ( word , " ICONFLIP " ) )
textprompts [ num ] - > page [ pagenum ] . iconflip = ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2018-11-03 05:27:32 +00:00
else if ( fastcmp ( word , " LINES " ) )
textprompts [ num ] - > page [ pagenum ] . lines = usi ;
else if ( fastcmp ( word , " BACKCOLOR " ) )
{
2018-11-10 03:47:42 +00:00
INT32 backcolor ;
2018-11-03 21:13:44 +00:00
if ( i = = 0 | | fastcmp ( word2 , " WHITE " ) ) backcolor = 0 ;
2018-11-10 03:47:42 +00:00
else if ( i = = 1 | | fastcmp ( word2 , " GRAY " ) | | fastcmp ( word2 , " GREY " ) | |
fastcmp ( word2 , " BLACK " ) ) backcolor = 1 ;
2019-06-27 02:05:15 +00:00
else if ( i = = 2 | | fastcmp ( word2 , " SEPIA " ) ) backcolor = 2 ;
else if ( i = = 3 | | fastcmp ( word2 , " BROWN " ) ) backcolor = 3 ;
else if ( i = = 4 | | fastcmp ( word2 , " PINK " ) ) backcolor = 4 ;
else if ( i = = 5 | | fastcmp ( word2 , " RASPBERRY " ) ) backcolor = 5 ;
else if ( i = = 6 | | fastcmp ( word2 , " RED " ) ) backcolor = 6 ;
else if ( i = = 7 | | fastcmp ( word2 , " CREAMSICLE " ) ) backcolor = 7 ;
else if ( i = = 8 | | fastcmp ( word2 , " ORANGE " ) ) backcolor = 8 ;
else if ( i = = 9 | | fastcmp ( word2 , " GOLD " ) ) backcolor = 9 ;
else if ( i = = 10 | | fastcmp ( word2 , " YELLOW " ) ) backcolor = 10 ;
else if ( i = = 11 | | fastcmp ( word2 , " EMERALD " ) ) backcolor = 11 ;
else if ( i = = 12 | | fastcmp ( word2 , " GREEN " ) ) backcolor = 12 ;
else if ( i = = 13 | | fastcmp ( word2 , " CYAN " ) | | fastcmp ( word2 , " AQUA " ) ) backcolor = 13 ;
else if ( i = = 14 | | fastcmp ( word2 , " STEEL " ) ) backcolor = 14 ;
else if ( i = = 15 | | fastcmp ( word2 , " PERIWINKLE " ) ) backcolor = 15 ;
else if ( i = = 16 | | fastcmp ( word2 , " BLUE " ) ) backcolor = 16 ;
else if ( i = = 17 | | fastcmp ( word2 , " PURPLE " ) ) backcolor = 17 ;
else if ( i = = 18 | | fastcmp ( word2 , " LAVENDER " ) ) backcolor = 18 ;
2018-11-10 03:47:42 +00:00
else if ( i < 0 ) backcolor = INT32_MAX ; // CONS_BACKCOLOR user-configured
else backcolor = 1 ; // default gray
2018-11-03 05:27:32 +00:00
textprompts [ num ] - > page [ pagenum ] . backcolor = backcolor ;
}
else if ( fastcmp ( word , " ALIGN " ) )
{
UINT8 align = 0 ; // left
if ( usi = = 1 | | word2 [ 0 ] = = ' R ' ) align = 1 ;
else if ( usi = = 2 | | word2 [ 0 ] = = ' C ' | | word2 [ 0 ] = = ' M ' ) align = 2 ;
textprompts [ num ] - > page [ pagenum ] . align = align ;
}
else if ( fastcmp ( word , " VERTICALALIGN " ) )
{
UINT8 align = 0 ; // top
if ( usi = = 1 | | word2 [ 0 ] = = ' B ' ) align = 1 ;
else if ( usi = = 2 | | word2 [ 0 ] = = ' C ' | | word2 [ 0 ] = = ' M ' ) align = 2 ;
textprompts [ num ] - > page [ pagenum ] . verticalalign = align ;
}
else if ( fastcmp ( word , " TEXTSPEED " ) )
2018-11-04 01:53:17 +00:00
textprompts [ num ] - > page [ pagenum ] . textspeed = get_number ( word2 ) ;
2018-11-03 05:27:32 +00:00
else if ( fastcmp ( word , " TEXTSFX " ) )
textprompts [ num ] - > page [ pagenum ] . textsfx = get_number ( word2 ) ;
2018-11-10 04:26:41 +00:00
else if ( fastcmp ( word , " HIDEHUD " ) )
{
UINT8 hidehud = 0 ;
2018-11-11 19:44:57 +00:00
if ( ( word2 [ 0 ] = = ' F ' & & ( word2 [ 1 ] = = ' A ' | | ! word2 [ 1 ] ) ) | | word2 [ 0 ] = = ' N ' ) hidehud = 0 ; // false
2018-11-10 04:26:41 +00:00
else if ( usi = = 1 | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) hidehud = 1 ; // true (hide appropriate HUD elements)
else if ( usi = = 2 | | word2 [ 0 ] = = ' A ' | | ( word2 [ 0 ] = = ' F ' & & word2 [ 1 ] = = ' O ' ) ) hidehud = 2 ; // force (hide all HUD elements)
textprompts [ num ] - > page [ pagenum ] . hidehud = hidehud ;
}
2018-11-03 05:27:32 +00:00
else if ( fastcmp ( word , " METAPAGE " ) )
{
2018-11-03 17:06:05 +00:00
if ( usi & & usi < = textprompts [ num ] - > numpages )
2018-11-03 05:27:32 +00:00
{
2018-11-03 17:06:05 +00:00
UINT8 metapagenum = usi - 1 ;
2018-11-10 15:30:33 +00:00
2018-11-03 17:06:05 +00:00
strncpy ( textprompts [ num ] - > page [ pagenum ] . name , textprompts [ num ] - > page [ metapagenum ] . name , 32 ) ;
strncpy ( textprompts [ num ] - > page [ pagenum ] . iconname , textprompts [ num ] - > page [ metapagenum ] . iconname , 8 ) ;
textprompts [ num ] - > page [ pagenum ] . rightside = textprompts [ num ] - > page [ metapagenum ] . rightside ;
2018-11-04 02:57:39 +00:00
textprompts [ num ] - > page [ pagenum ] . iconflip = textprompts [ num ] - > page [ metapagenum ] . iconflip ;
2018-11-03 17:06:05 +00:00
textprompts [ num ] - > page [ pagenum ] . lines = textprompts [ num ] - > page [ metapagenum ] . lines ;
textprompts [ num ] - > page [ pagenum ] . backcolor = textprompts [ num ] - > page [ metapagenum ] . backcolor ;
textprompts [ num ] - > page [ pagenum ] . align = textprompts [ num ] - > page [ metapagenum ] . align ;
textprompts [ num ] - > page [ pagenum ] . verticalalign = textprompts [ num ] - > page [ metapagenum ] . verticalalign ;
textprompts [ num ] - > page [ pagenum ] . textspeed = textprompts [ num ] - > page [ metapagenum ] . textspeed ;
textprompts [ num ] - > page [ pagenum ] . textsfx = textprompts [ num ] - > page [ metapagenum ] . textsfx ;
2018-11-10 04:26:41 +00:00
textprompts [ num ] - > page [ pagenum ] . hidehud = textprompts [ num ] - > page [ metapagenum ] . hidehud ;
2018-11-10 15:30:33 +00:00
// music: don't copy, else each page change may reset the music
}
}
2018-11-10 14:32:53 +00:00
else if ( fastcmp ( word , " TAG " ) )
2018-11-10 14:38:32 +00:00
strncpy ( textprompts [ num ] - > page [ pagenum ] . tag , word2 , 33 ) ;
2018-11-03 17:06:05 +00:00
else if ( fastcmp ( word , " NEXTPROMPT " ) )
textprompts [ num ] - > page [ pagenum ] . nextprompt = usi ;
else if ( fastcmp ( word , " NEXTPAGE " ) )
textprompts [ num ] - > page [ pagenum ] . nextpage = usi ;
2018-11-13 05:13:36 +00:00
else if ( fastcmp ( word , " NEXTTAG " ) )
strncpy ( textprompts [ num ] - > page [ pagenum ] . nexttag , word2 , 33 ) ;
2018-11-04 01:53:17 +00:00
else if ( fastcmp ( word , " TIMETONEXT " ) )
textprompts [ num ] - > page [ pagenum ] . timetonext = get_number ( word2 ) ;
2018-11-03 05:27:32 +00:00
else
deh_warning ( " PromptPage %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
static void readtextprompt ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word ;
char * word2 ;
char * tmp ;
INT32 value ;
// Allocate memory for this prompt if we don't yet have any
if ( ! textprompts [ num ] )
textprompts [ num ] = Z_Calloc ( sizeof ( textprompt_t ) , PU_STATIC , NULL ) ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
word2 = strtok ( NULL , " " ) ;
if ( word2 )
value = atoi ( word2 ) ;
else
{
deh_warning ( " No value for token %s " , word ) ;
continue ;
}
if ( fastcmp ( word , " NUMPAGES " ) )
{
2018-11-10 02:55:14 +00:00
textprompts [ num ] - > numpages = min ( max ( value , 0 ) , MAX_PAGES ) ;
2018-11-03 05:27:32 +00:00
}
else if ( fastcmp ( word , " PAGE " ) )
{
2018-11-10 02:55:14 +00:00
if ( 1 < = value & & value < = MAX_PAGES )
2018-11-03 05:27:32 +00:00
{
2018-11-10 03:38:55 +00:00
textprompts [ num ] - > page [ value - 1 ] . backcolor = 1 ; // default to gray
2018-11-10 04:26:41 +00:00
textprompts [ num ] - > page [ value - 1 ] . hidehud = 1 ; // hide appropriate HUD elements
2018-11-03 05:27:32 +00:00
readtextpromptpage ( f , num , value - 1 ) ;
}
else
2018-11-10 02:55:14 +00:00
deh_warning ( " Page number %d out of range (1 - %d) " , value , MAX_PAGES ) ;
2018-11-03 05:27:32 +00:00
}
else
deh_warning ( " Prompt %d: unknown word '%s', Page <num> expected. " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
2018-11-16 17:07:47 +00:00
static void readmenu ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word = s ;
char * word2 ;
char * tmp ;
INT32 value ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
// First remove trailing newline, if there is one
tmp = strchr ( s , ' \n ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
// Get the part before the " = "
tmp = strchr ( s , ' = ' ) ;
if ( tmp )
* ( tmp - 1 ) = ' \0 ' ;
2018-11-16 17:12:11 +00:00
else
break ;
2018-11-16 17:07:47 +00:00
strupr ( word ) ;
// Now get the part after
word2 = ( tmp + = 2 ) ;
strupr ( word2 ) ;
value = atoi ( word2 ) ; // used for numerical settings
if ( fastcmp ( word , " BACKGROUNDNAME " ) )
{
2018-11-25 20:08:12 +00:00
strncpy ( menupres [ num ] . bgname , word2 , 8 ) ;
2018-11-16 17:07:47 +00:00
titlechanged = true ;
}
2018-11-17 21:32:30 +00:00
else if ( fastcmp ( word , " HIDEBACKGROUND " ) )
{
2018-11-25 20:08:12 +00:00
menupres [ num ] . bghide = ( boolean ) ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2018-11-20 22:28:26 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " BACKGROUNDCOLOR " ) )
{
2018-11-25 20:16:53 +00:00
menupres [ num ] . bgcolor = get_number ( word2 ) ;
2018-11-17 21:32:30 +00:00
titlechanged = true ;
}
2018-11-16 17:07:47 +00:00
else if ( fastcmp ( word , " HIDETITLEPICS " ) | | fastcmp ( word , " HIDEPICS " ) )
{
2018-11-17 06:21:21 +00:00
// true by default, except MM_MAIN
2018-11-25 20:08:12 +00:00
menupres [ num ] . hidetitlepics = ( boolean ) ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2018-11-16 17:07:47 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " TITLESCROLLSPEED " ) | | fastcmp ( word , " TITLESCROLLXSPEED " )
| | fastcmp ( word , " SCROLLSPEED " ) | | fastcmp ( word , " SCROLLXSPEED " ) )
{
2018-11-25 20:08:12 +00:00
menupres [ num ] . titlescrollxspeed = get_number ( word2 ) ;
2018-11-16 17:07:47 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " TITLESCROLLYSPEED " ) | | fastcmp ( word , " SCROLLYSPEED " ) )
{
2018-11-25 20:08:12 +00:00
menupres [ num ] . titlescrollyspeed = get_number ( word2 ) ;
2018-11-16 17:07:47 +00:00
titlechanged = true ;
}
2018-11-16 19:18:35 +00:00
else if ( fastcmp ( word , " MUSIC " ) )
{
2018-11-25 20:08:12 +00:00
strncpy ( menupres [ num ] . musname , word2 , 7 ) ;
menupres [ num ] . musname [ 6 ] = 0 ;
2018-11-16 19:18:35 +00:00
titlechanged = true ;
}
# ifdef MUSICSLOT_COMPATIBILITY
else if ( fastcmp ( word , " MUSICSLOT " ) )
{
value = get_mus ( word2 , true ) ;
if ( value & & value < = 1035 )
2018-11-25 20:08:12 +00:00
snprintf ( menupres [ num ] . musname , 7 , " %sM " , G_BuildMapName ( value ) ) ;
2018-11-16 19:18:35 +00:00
else if ( value & & value < = 1050 )
2018-11-25 20:08:12 +00:00
strncpy ( menupres [ num ] . musname , compat_special_music_slots [ value - 1036 ] , 7 ) ;
2018-11-16 19:18:35 +00:00
else
2018-11-25 20:08:12 +00:00
menupres [ num ] . musname [ 0 ] = 0 ; // becomes empty string
menupres [ num ] . musname [ 6 ] = 0 ;
2018-11-16 19:18:35 +00:00
titlechanged = true ;
}
# endif
else if ( fastcmp ( word , " MUSICTRACK " ) )
{
2018-11-25 20:08:12 +00:00
menupres [ num ] . mustrack = ( ( UINT16 ) value - 1 ) ;
2018-11-16 19:18:35 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " MUSICLOOP " ) )
{
2018-11-17 06:21:21 +00:00
// true by default except MM_MAIN
2018-11-25 20:08:12 +00:00
menupres [ num ] . muslooping = ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2018-11-17 21:32:30 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " NOMUSIC " ) )
{
2018-11-25 20:08:12 +00:00
menupres [ num ] . musstop = ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2018-11-17 21:32:30 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " IGNOREMUSIC " ) )
{
2018-11-25 20:08:12 +00:00
menupres [ num ] . musignore = ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2018-11-16 19:18:35 +00:00
titlechanged = true ;
}
2018-11-17 06:21:21 +00:00
else if ( fastcmp ( word , " FADESTRENGTH " ) )
2018-11-16 19:18:35 +00:00
{
2018-11-17 06:21:21 +00:00
// one-based, <= 0 means use default value. 1-32
2018-11-25 20:16:53 +00:00
menupres [ num ] . fadestrength = get_number ( word2 ) - 1 ;
2018-11-16 19:18:35 +00:00
titlechanged = true ;
}
2018-11-17 21:32:30 +00:00
else if ( fastcmp ( word , " NOENTERBUBBLE " ) )
2018-11-16 17:07:47 +00:00
{
2018-11-25 20:08:12 +00:00
menupres [ num ] . enterbubble = ! ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2018-11-17 21:32:30 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " NOEXITBUBBLE " ) )
{
2018-11-25 20:08:12 +00:00
menupres [ num ] . exitbubble = ! ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2018-11-16 17:07:47 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " ENTERTAG " ) )
{
2018-11-25 20:16:53 +00:00
menupres [ num ] . entertag = get_number ( word2 ) ;
2018-11-16 17:07:47 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " EXITTAG " ) )
{
2018-11-25 20:16:53 +00:00
menupres [ num ] . exittag = get_number ( word2 ) ;
2018-11-16 17:07:47 +00:00
titlechanged = true ;
}
2018-11-17 21:32:30 +00:00
else if ( fastcmp ( word , " ENTERWIPE " ) )
{
2018-11-25 20:16:53 +00:00
menupres [ num ] . enterwipe = get_number ( word2 ) ;
2018-11-17 21:32:30 +00:00
titlechanged = true ;
}
else if ( fastcmp ( word , " EXITWIPE " ) )
{
2018-11-25 20:16:53 +00:00
menupres [ num ] . exitwipe = get_number ( word2 ) ;
2018-11-17 21:32:30 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
static void readhuditem ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word = s ;
char * word2 ;
char * tmp ;
INT32 i ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
// First remove trailing newline, if there is one
tmp = strchr ( s , ' \n ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
// Get the part before the " = "
tmp = strchr ( s , ' = ' ) ;
2018-10-31 19:26:29 +00:00
if ( tmp )
* ( tmp - 1 ) = ' \0 ' ;
else
break ;
2014-03-15 16:59:03 +00:00
strupr ( word ) ;
// Now get the part after
word2 = tmp + = 2 ;
strupr ( word2 ) ;
i = atoi ( word2 ) ; // used for numerical settings
if ( fastcmp ( word , " X " ) )
{
hudinfo [ num ] . x = i ;
}
else if ( fastcmp ( word , " Y " ) )
{
hudinfo [ num ] . y = i ;
}
2018-03-19 23:08:51 +00:00
else if ( fastcmp ( word , " F " ) )
{
hudinfo [ num ] . f = i ;
}
2014-03-15 16:59:03 +00:00
else
deh_warning ( " Level header %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
/*
Sprite number = 10
Sprite subnumber = 32968
Duration = 200
Next frame = 200
*/
/** Action pointer for reading actions from Dehacked lumps.
*/
typedef struct
{
actionf_t action ; ///< Function pointer corresponding to the actual action.
const char * name ; ///< Name of the action in ALL CAPS.
} actionpointer_t ;
/** Array mapping action names to action functions.
* Names must be in ALL CAPS for case insensitive comparisons .
*/
static actionpointer_t actionpointers [ ] =
{
2018-05-04 20:30:15 +00:00
{ { A_Explode } , " A_EXPLODE " } ,
{ { A_Pain } , " A_PAIN " } ,
{ { A_Fall } , " A_FALL " } ,
{ { A_MonitorPop } , " A_MONITORPOP " } ,
{ { A_GoldMonitorPop } , " A_GOLDMONITORPOP " } ,
{ { A_GoldMonitorRestore } , " A_GOLDMONITORRESTORE " } ,
{ { A_GoldMonitorSparkle } , " A_GOLDMONITORSPARKLE " } ,
{ { A_Look } , " A_LOOK " } ,
{ { A_Chase } , " A_CHASE " } ,
{ { A_FaceStabChase } , " A_FACESTABCHASE " } ,
2018-05-24 00:40:57 +00:00
{ { A_FaceStabRev } , " A_FACESTABREV " } ,
{ { A_FaceStabHurl } , " A_FACESTABHURL " } ,
{ { A_FaceStabMiss } , " A_FACESTABMISS " } ,
{ { A_StatueBurst } , " A_STATUEBURST " } ,
2018-05-04 20:30:15 +00:00
{ { A_FaceTarget } , " A_FACETARGET " } ,
{ { A_FaceTracer } , " A_FACETRACER " } ,
{ { A_Scream } , " A_SCREAM " } ,
{ { A_BossDeath } , " A_BOSSDEATH " } ,
{ { A_CustomPower } , " A_CUSTOMPOWER " } ,
{ { A_GiveWeapon } , " A_GIVEWEAPON " } ,
{ { A_RingBox } , " A_RINGBOX " } ,
{ { A_Invincibility } , " A_INVINCIBILITY " } ,
{ { A_SuperSneakers } , " A_SUPERSNEAKERS " } ,
{ { A_BunnyHop } , " A_BUNNYHOP " } ,
{ { A_BubbleSpawn } , " A_BUBBLESPAWN " } ,
{ { A_FanBubbleSpawn } , " A_FANBUBBLESPAWN " } ,
{ { A_BubbleRise } , " A_BUBBLERISE " } ,
{ { A_BubbleCheck } , " A_BUBBLECHECK " } ,
{ { A_AwardScore } , " A_AWARDSCORE " } ,
{ { A_ExtraLife } , " A_EXTRALIFE " } ,
{ { A_GiveShield } , " A_GIVESHIELD " } ,
{ { A_GravityBox } , " A_GRAVITYBOX " } ,
{ { A_ScoreRise } , " A_SCORERISE " } ,
{ { A_AttractChase } , " A_ATTRACTCHASE " } ,
{ { A_DropMine } , " A_DROPMINE " } ,
{ { A_FishJump } , " A_FISHJUMP " } ,
{ { A_ThrownRing } , " A_THROWNRING " } ,
{ { A_SetSolidSteam } , " A_SETSOLIDSTEAM " } ,
{ { A_UnsetSolidSteam } , " A_UNSETSOLIDSTEAM " } ,
{ { A_SignPlayer } , " A_SIGNPLAYER " } ,
{ { A_OverlayThink } , " A_OVERLAYTHINK " } ,
{ { A_JetChase } , " A_JETCHASE " } ,
{ { A_JetbThink } , " A_JETBTHINK " } ,
{ { A_JetgThink } , " A_JETGTHINK " } ,
{ { A_JetgShoot } , " A_JETGSHOOT " } ,
{ { A_ShootBullet } , " A_SHOOTBULLET " } ,
{ { A_MinusDigging } , " A_MINUSDIGGING " } ,
{ { A_MinusPopup } , " A_MINUSPOPUP " } ,
{ { A_MinusCheck } , " A_MINUSCHECK " } ,
{ { A_ChickenCheck } , " A_CHICKENCHECK " } ,
{ { A_MouseThink } , " A_MOUSETHINK " } ,
{ { A_DetonChase } , " A_DETONCHASE " } ,
{ { A_CapeChase } , " A_CAPECHASE " } ,
{ { A_RotateSpikeBall } , " A_ROTATESPIKEBALL " } ,
{ { A_SlingAppear } , " A_SLINGAPPEAR " } ,
{ { A_UnidusBall } , " A_UNIDUSBALL " } ,
{ { A_RockSpawn } , " A_ROCKSPAWN " } ,
{ { A_SetFuse } , " A_SETFUSE " } ,
{ { A_CrawlaCommanderThink } , " A_CRAWLACOMMANDERTHINK " } ,
{ { A_SmokeTrailer } , " A_SMOKETRAILER " } ,
{ { A_RingExplode } , " A_RINGEXPLODE " } ,
{ { A_OldRingExplode } , " A_OLDRINGEXPLODE " } ,
{ { A_MixUp } , " A_MIXUP " } ,
{ { A_RecyclePowers } , " A_RECYCLEPOWERS " } ,
{ { A_Boss1Chase } , " A_BOSS1CHASE " } ,
{ { A_FocusTarget } , " A_FOCUSTARGET " } ,
{ { A_Boss2Chase } , " A_BOSS2CHASE " } ,
{ { A_Boss2Pogo } , " A_BOSS2POGO " } ,
{ { A_BossZoom } , " A_BOSSZOOM " } ,
{ { A_BossScream } , " A_BOSSSCREAM " } ,
{ { A_Boss2TakeDamage } , " A_BOSS2TAKEDAMAGE " } ,
{ { A_Boss7Chase } , " A_BOSS7CHASE " } ,
{ { A_GoopSplat } , " A_GOOPSPLAT " } ,
{ { A_Boss2PogoSFX } , " A_BOSS2POGOSFX " } ,
{ { A_Boss2PogoTarget } , " A_BOSS2POGOTARGET " } ,
{ { A_BossJetFume } , " A_BOSSJETFUME " } ,
{ { A_EggmanBox } , " A_EGGMANBOX " } ,
{ { A_TurretFire } , " A_TURRETFIRE " } ,
{ { A_SuperTurretFire } , " A_SUPERTURRETFIRE " } ,
{ { A_TurretStop } , " A_TURRETSTOP " } ,
{ { A_JetJawRoam } , " A_JETJAWROAM " } ,
{ { A_JetJawChomp } , " A_JETJAWCHOMP " } ,
{ { A_PointyThink } , " A_POINTYTHINK " } ,
{ { A_CheckBuddy } , " A_CHECKBUDDY " } ,
2018-05-30 22:16:57 +00:00
{ { A_HoodFire } , " A_HOODFIRE " } ,
2018-05-04 20:30:15 +00:00
{ { A_HoodThink } , " A_HOODTHINK " } ,
2018-05-30 22:16:57 +00:00
{ { A_HoodFall } , " A_HOODFALL " } ,
2018-05-31 20:00:12 +00:00
{ { A_ArrowBonks } , " A_ARROWBONKS " } ,
2018-05-04 20:30:15 +00:00
{ { A_SnailerThink } , " A_SNAILERTHINK " } ,
{ { A_SharpChase } , " A_SHARPCHASE " } ,
{ { A_SharpSpin } , " A_SHARPSPIN " } ,
2018-05-13 13:09:20 +00:00
{ { A_SharpDecel } , " A_SHARPDECEL " } ,
2018-05-14 00:19:24 +00:00
{ { A_CrushstaceanWalk } , " A_CRUSHSTACEANWALK " } ,
{ { A_CrushstaceanPunch } , " A_CRUSHSTACEANPUNCH " } ,
{ { A_CrushclawAim } , " A_CRUSHCLAWAIM " } ,
{ { A_CrushclawLaunch } , " A_CRUSHCLAWLAUNCH " } ,
2018-05-04 20:30:15 +00:00
{ { A_VultureVtol } , " A_VULTUREVTOL " } ,
{ { A_VultureCheck } , " A_VULTURECHECK " } ,
2019-06-10 14:09:15 +00:00
{ { A_VultureHover } , " A_VULTUREHOVER " } ,
{ { A_VultureBlast } , " A_VULTUREBLAST " } ,
{ { A_VultureFly } , " A_VULTUREFLY " } ,
2018-05-04 20:30:15 +00:00
{ { A_SkimChase } , " A_SKIMCHASE " } ,
{ { A_1upThinker } , " A_1UPTHINKER " } ,
{ { A_SkullAttack } , " A_SKULLATTACK " } ,
{ { A_LobShot } , " A_LOBSHOT " } ,
{ { A_FireShot } , " A_FIRESHOT " } ,
{ { A_SuperFireShot } , " A_SUPERFIRESHOT " } ,
{ { A_BossFireShot } , " A_BOSSFIRESHOT " } ,
{ { A_Boss7FireMissiles } , " A_BOSS7FIREMISSILES " } ,
{ { A_Boss1Laser } , " A_BOSS1LASER " } ,
{ { A_Boss4Reverse } , " A_BOSS4REVERSE " } ,
{ { A_Boss4SpeedUp } , " A_BOSS4SPEEDUP " } ,
{ { A_Boss4Raise } , " A_BOSS4RAISE " } ,
{ { A_SparkFollow } , " A_SPARKFOLLOW " } ,
{ { A_BuzzFly } , " A_BUZZFLY " } ,
{ { A_GuardChase } , " A_GUARDCHASE " } ,
{ { A_EggShield } , " A_EGGSHIELD " } ,
{ { A_SetReactionTime } , " A_SETREACTIONTIME " } ,
{ { A_Boss1Spikeballs } , " A_BOSS1SPIKEBALLS " } ,
{ { A_Boss3TakeDamage } , " A_BOSS3TAKEDAMAGE " } ,
{ { A_Boss3Path } , " A_BOSS3PATH " } ,
2019-09-26 10:57:25 +00:00
{ { A_Boss3ShockThink } , " A_BOSS3SHOCKTHINK " } ,
2018-05-04 20:30:15 +00:00
{ { A_LinedefExecute } , " A_LINEDEFEXECUTE " } ,
{ { A_PlaySeeSound } , " A_PLAYSEESOUND " } ,
{ { A_PlayAttackSound } , " A_PLAYATTACKSOUND " } ,
{ { A_PlayActiveSound } , " A_PLAYACTIVESOUND " } ,
{ { A_SpawnObjectAbsolute } , " A_SPAWNOBJECTABSOLUTE " } ,
{ { A_SpawnObjectRelative } , " A_SPAWNOBJECTRELATIVE " } ,
{ { A_ChangeAngleRelative } , " A_CHANGEANGLERELATIVE " } ,
{ { A_ChangeAngleAbsolute } , " A_CHANGEANGLEABSOLUTE " } ,
{ { A_PlaySound } , " A_PLAYSOUND " } ,
{ { A_FindTarget } , " A_FINDTARGET " } ,
{ { A_FindTracer } , " A_FINDTRACER " } ,
{ { A_SetTics } , " A_SETTICS " } ,
{ { A_SetRandomTics } , " A_SETRANDOMTICS " } ,
{ { A_ChangeColorRelative } , " A_CHANGECOLORRELATIVE " } ,
{ { A_ChangeColorAbsolute } , " A_CHANGECOLORABSOLUTE " } ,
{ { A_MoveRelative } , " A_MOVERELATIVE " } ,
{ { A_MoveAbsolute } , " A_MOVEABSOLUTE " } ,
{ { A_Thrust } , " A_THRUST " } ,
{ { A_ZThrust } , " A_ZTHRUST " } ,
{ { A_SetTargetsTarget } , " A_SETTARGETSTARGET " } ,
{ { A_SetObjectFlags } , " A_SETOBJECTFLAGS " } ,
{ { A_SetObjectFlags2 } , " A_SETOBJECTFLAGS2 " } ,
{ { A_RandomState } , " A_RANDOMSTATE " } ,
{ { A_RandomStateRange } , " A_RANDOMSTATERANGE " } ,
{ { A_DualAction } , " A_DUALACTION " } ,
{ { A_RemoteAction } , " A_REMOTEACTION " } ,
{ { A_ToggleFlameJet } , " A_TOGGLEFLAMEJET " } ,
{ { A_OrbitNights } , " A_ORBITNIGHTS " } ,
{ { A_GhostMe } , " A_GHOSTME " } ,
{ { A_SetObjectState } , " A_SETOBJECTSTATE " } ,
{ { A_SetObjectTypeState } , " A_SETOBJECTTYPESTATE " } ,
{ { A_KnockBack } , " A_KNOCKBACK " } ,
{ { A_PushAway } , " A_PUSHAWAY " } ,
{ { A_RingDrain } , " A_RINGDRAIN " } ,
{ { A_SplitShot } , " A_SPLITSHOT " } ,
{ { A_MissileSplit } , " A_MISSILESPLIT " } ,
{ { A_MultiShot } , " A_MULTISHOT " } ,
{ { A_InstaLoop } , " A_INSTALOOP " } ,
{ { A_Custom3DRotate } , " A_CUSTOM3DROTATE " } ,
{ { A_SearchForPlayers } , " A_SEARCHFORPLAYERS " } ,
{ { A_CheckRandom } , " A_CHECKRANDOM " } ,
{ { A_CheckTargetRings } , " A_CHECKTARGETRINGS " } ,
{ { A_CheckRings } , " A_CHECKRINGS " } ,
{ { A_CheckTotalRings } , " A_CHECKTOTALRINGS " } ,
{ { A_CheckHealth } , " A_CHECKHEALTH " } ,
{ { A_CheckRange } , " A_CHECKRANGE " } ,
{ { A_CheckHeight } , " A_CHECKHEIGHT " } ,
{ { A_CheckTrueRange } , " A_CHECKTRUERANGE " } ,
{ { A_CheckThingCount } , " A_CHECKTHINGCOUNT " } ,
{ { A_CheckAmbush } , " A_CHECKAMBUSH " } ,
{ { A_CheckCustomValue } , " A_CHECKCUSTOMVALUE " } ,
{ { A_CheckCusValMemo } , " A_CHECKCUSVALMEMO " } ,
{ { A_SetCustomValue } , " A_SETCUSTOMVALUE " } ,
{ { A_UseCusValMemo } , " A_USECUSVALMEMO " } ,
{ { A_RelayCustomValue } , " A_RELAYCUSTOMVALUE " } ,
{ { A_CusValAction } , " A_CUSVALACTION " } ,
{ { A_ForceStop } , " A_FORCESTOP " } ,
{ { A_ForceWin } , " A_FORCEWIN " } ,
{ { A_SpikeRetract } , " A_SPIKERETRACT " } ,
{ { A_InfoState } , " A_INFOSTATE " } ,
{ { A_Repeat } , " A_REPEAT " } ,
{ { A_SetScale } , " A_SETSCALE " } ,
{ { A_RemoteDamage } , " A_REMOTEDAMAGE " } ,
{ { A_HomingChase } , " A_HOMINGCHASE " } ,
{ { A_TrapShot } , " A_TRAPSHOT " } ,
{ { A_VileTarget } , " A_VILETARGET " } ,
{ { A_VileAttack } , " A_VILEATTACK " } ,
{ { A_VileFire } , " A_VILEFIRE " } ,
{ { A_BrakChase } , " A_BRAKCHASE " } ,
{ { A_BrakFireShot } , " A_BRAKFIRESHOT " } ,
{ { A_BrakLobShot } , " A_BRAKLOBSHOT " } ,
{ { A_NapalmScatter } , " A_NAPALMSCATTER " } ,
{ { A_SpawnFreshCopy } , " A_SPAWNFRESHCOPY " } ,
{ { A_FlickySpawn } , " A_FLICKYSPAWN " } ,
{ { A_FlickyAim } , " A_FLICKYAIM " } ,
{ { A_FlickyFly } , " A_FLICKYFLY " } ,
{ { A_FlickySoar } , " A_FLICKYSOAR " } ,
{ { A_FlickyCoast } , " A_FLICKYCOAST " } ,
{ { A_FlickyHop } , " A_FLICKYHOP " } ,
{ { A_FlickyFlounder } , " A_FLICKYFLOUNDER " } ,
{ { A_FlickyCheck } , " A_FLICKYCHECK " } ,
{ { A_FlickyHeightCheck } , " A_FLICKYHEIGHTCHECK " } ,
{ { A_FlickyFlutter } , " A_FLICKYFLUTTER " } ,
{ { A_FlameParticle } , " A_FLAMEPARTICLE " } ,
{ { A_FadeOverlay } , " A_FADEOVERLAY " } ,
{ { A_Boss5Jump } , " A_BOSS5JUMP " } ,
{ { A_LightBeamReset } , " A_LIGHTBEAMRESET " } ,
{ { A_MineExplode } , " A_MINEEXPLODE " } ,
{ { A_MineRange } , " A_MINERANGE " } ,
{ { A_ConnectToGround } , " A_CONNECTTOGROUND " } ,
{ { A_SpawnParticleRelative } , " A_SPAWNPARTICLERELATIVE " } ,
{ { A_MultiShotDist } , " A_MULTISHOTDIST " } ,
{ { A_WhoCaresIfYourSonIsABee } , " A_WHOCARESIFYOURSONISABEE " } ,
{ { A_ParentTriesToSleep } , " A_PARENTTRIESTOSLEEP " } ,
{ { A_CryingToMomma } , " A_CRYINGTOMOMMA " } ,
2018-05-19 23:04:39 +00:00
{ { A_CheckFlags2 } , " A_CHECKFLAGS2 " } ,
2019-05-03 21:58:54 +00:00
{ { A_Boss5FindWaypoint } , " A_BOSS5FINDWAYPOINT " } ,
2019-05-03 19:00:31 +00:00
{ { A_DoNPCSkid } , " A_DONPCSKID " } ,
2019-05-02 17:32:43 +00:00
{ { A_DoNPCPain } , " A_DONPCPAIN " } ,
2019-05-03 17:51:17 +00:00
{ { A_PrepareRepeat } , " A_PREPAREREPEAT " } ,
2019-05-02 20:21:15 +00:00
{ { A_Boss5ExtraRepeat } , " A_BOSS5EXTRAREPEAT " } ,
2019-05-03 17:51:17 +00:00
{ { A_Boss5Calm } , " A_BOSS5CALM " } ,
2019-05-02 18:09:40 +00:00
{ { A_Boss5CheckOnGround } , " A_BOSS5CHECKONGROUND " } ,
2019-05-02 20:32:28 +00:00
{ { A_Boss5CheckFalling } , " A_BOSS5CHECKFALLING " } ,
2019-05-03 18:46:41 +00:00
{ { A_Boss5PinchShot } , " A_BOSS5PINCHSHOT " } ,
2019-05-03 19:52:56 +00:00
{ { A_Boss5MakeItRain } , " A_BOSS5MAKEITRAIN " } ,
2019-09-25 13:36:20 +00:00
{ { A_Boss5MakeJunk } , " A_BOSS5MAKEJUNK " } ,
2019-05-03 18:14:17 +00:00
{ { A_LookForBetter } , " A_LOOKFORBETTER " } ,
2019-05-21 20:51:19 +00:00
{ { A_Boss5BombExplode } , " A_BOSS5BOMBEXPLODE " } ,
2019-06-08 07:51:46 +00:00
{ { A_DustDevilThink } , " A_DUSTDEVILTHINK " } ,
2019-06-09 08:51:33 +00:00
{ { A_TNTExplode } , " A_TNTEXPLODE " } ,
2019-06-09 10:27:09 +00:00
{ { A_DebrisRandom } , " A_DEBRISRANDOM " } ,
2019-06-09 11:48:07 +00:00
{ { A_TrainCameo } , " A_TRAINCAMEO " } ,
{ { A_TrainCameo2 } , " A_TRAINCAMEO2 " } ,
2019-06-10 11:58:16 +00:00
{ { A_CanarivoreGas } , " A_CANARIVOREGAS " } ,
2019-06-10 18:32:50 +00:00
{ { A_KillSegments } , " A_KILLSEGMENTS " } ,
{ { A_SnapperSpawn } , " A_SNAPPERSPAWN " } ,
{ { A_SnapperThinker } , " A_SNAPPERTHINKER " } ,
2019-06-12 19:20:14 +00:00
{ { A_SaloonDoorSpawn } , " A_SALOONDOORSPAWN " } ,
2019-06-13 19:45:30 +00:00
{ { A_MinecartSparkThink } , " A_MINECARTSPARKTHINK " } ,
2019-08-03 22:28:53 +00:00
{ { A_ModuloToState } , " A_MODULOTOSTATE " } ,
2019-08-25 21:05:38 +00:00
{ { A_LavafallRocks } , " A_LAVAFALLROCKS " } ,
{ { A_LavafallLava } , " A_LAVAFALLLAVA " } ,
{ { A_FallingLavaCheck } , " A_FALLINGLAVACHECK " } ,
2019-08-30 06:17:25 +00:00
{ { A_FireShrink } , " A_FIRESHRINK " } ,
2019-09-29 08:39:09 +00:00
{ { A_SpawnPterabytes } , " A_SPAWNPTERABYTES " } ,
{ { A_PterabyteHover } , " A_PTERABYTEHOVER " } ,
2019-09-29 12:18:40 +00:00
{ { A_RolloutSpawn } , " A_ROLLOUTSPAWN " } ,
{ { A_RolloutRock } , " A_ROLLOUTROCK " } ,
2019-06-09 08:51:33 +00:00
{ { NULL } , " NONE " } ,
2014-03-15 16:59:03 +00:00
// This NULL entry must be the last in the list
{ { NULL } , NULL } ,
} ;
static void readframe ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word1 ;
char * word2 = NULL ;
char * tmp ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
word1 = strtok ( s , " " ) ;
if ( word1 )
strupr ( word1 ) ;
else
break ;
word2 = strtok ( NULL , " = " ) ;
if ( word2 )
strupr ( word2 ) ;
else
break ;
if ( word2 [ strlen ( word2 ) - 1 ] = = ' \n ' )
word2 [ strlen ( word2 ) - 1 ] = ' \0 ' ;
if ( fastcmp ( word1 , " SPRITENUMBER " ) | | fastcmp ( word1 , " SPRITENAME " ) )
{
states [ num ] . sprite = get_sprite ( word2 ) ;
}
else if ( fastcmp ( word1 , " SPRITESUBNUMBER " ) | | fastcmp ( word1 , " SPRITEFRAME " ) )
{
states [ num ] . frame = ( INT32 ) get_number ( word2 ) ; // So the FF_ flags get calculated
}
else if ( fastcmp ( word1 , " DURATION " ) )
{
states [ num ] . tics = ( INT32 ) get_number ( word2 ) ; // So TICRATE can be used
}
else if ( fastcmp ( word1 , " NEXT " ) )
{
states [ num ] . nextstate = get_state ( word2 ) ;
}
else if ( fastcmp ( word1 , " VAR1 " ) )
{
states [ num ] . var1 = ( INT32 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word1 , " VAR2 " ) )
{
states [ num ] . var2 = ( INT32 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word1 , " ACTION " ) )
{
size_t z ;
boolean found = false ;
2017-09-29 18:46:23 +00:00
char actiontocompare [ 32 ] ;
2014-03-15 16:59:03 +00:00
memset ( actiontocompare , 0x00 , sizeof ( actiontocompare ) ) ;
strlcpy ( actiontocompare , word2 , sizeof ( actiontocompare ) ) ;
strupr ( actiontocompare ) ;
for ( z = 0 ; z < 32 ; z + + )
{
if ( actiontocompare [ z ] = = ' \n ' | | actiontocompare [ z ] = = ' \r ' )
{
actiontocompare [ z ] = ' \0 ' ;
break ;
}
}
for ( z = 0 ; actionpointers [ z ] . name ; z + + )
{
if ( actionpointers [ z ] . action . acv = = states [ num ] . action . acv )
break ;
}
z = 0 ;
# ifdef HAVE_BLUA
found = LUA_SetLuaAction ( & states [ num ] , actiontocompare ) ;
if ( ! found )
# endif
while ( actionpointers [ z ] . name )
{
if ( fastcmp ( actiontocompare , actionpointers [ z ] . name ) )
{
states [ num ] . action = actionpointers [ z ] . action ;
states [ num ] . action . acv = actionpointers [ z ] . action . acv ; // assign
states [ num ] . action . acp1 = actionpointers [ z ] . action . acp1 ;
found = true ;
break ;
}
z + + ;
}
if ( ! found )
deh_warning ( " Unknown action %s " , actiontocompare ) ;
}
else
deh_warning ( " Frame %d: unknown word '%s' " , num , word1 ) ;
}
} while ( ! myfeof ( f ) ) ;
Z_Free ( s ) ;
}
2017-06-24 19:33:56 +00:00
static void readsound ( MYFILE * f , INT32 num )
2014-03-15 16:59:03 +00:00
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word ;
2017-04-17 00:09:47 +00:00
char * word2 ;
2014-03-15 16:59:03 +00:00
char * tmp ;
INT32 value ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
2017-04-17 00:09:47 +00:00
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
2014-03-15 16:59:03 +00:00
word = strtok ( s , " " ) ;
if ( word )
strupr ( word ) ;
else
break ;
2017-04-17 00:09:47 +00:00
word2 = strtok ( NULL , " " ) ;
if ( word2 )
value = atoi ( word2 ) ;
else
{
deh_warning ( " No value for token %s " , word ) ;
continue ;
}
2017-06-24 19:33:56 +00:00
if ( fastcmp ( word , " SINGULAR " ) )
2014-03-15 16:59:03 +00:00
{
S_sfx [ num ] . singularity = value ;
}
else if ( fastcmp ( word , " PRIORITY " ) )
{
S_sfx [ num ] . priority = value ;
}
else if ( fastcmp ( word , " FLAGS " ) )
{
S_sfx [ num ] . pitch = value ;
}
2017-04-17 00:09:47 +00:00
else if ( fastcmp ( word , " CAPTION " ) | | fastcmp ( word , " DESCRIPTION " ) )
{
deh_strlcpy ( S_sfx [ num ] . caption , word2 ,
sizeof ( S_sfx [ num ] . caption ) , va ( " Sound effect %d: caption " , num ) ) ;
}
2014-03-15 16:59:03 +00:00
else
deh_warning ( " Sound %d : unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ;
Z_Free ( s ) ;
}
/** Checks if a game data file name for a mod is good.
* " Good " means that it contains only alphanumerics , _ , and - ;
* ends in " .dat " ; has at least one character before the " .dat " ;
* and is not " gamedata.dat " ( tested case - insensitively ) .
*
* Assumption : that gamedata . dat is the only . dat file that will
* ever be treated specially by the game .
*
* Note : Check for the tail " .dat " case - insensitively since at
* present , we get passed the filename in all uppercase .
*
* \ param s Filename string to check .
* \ return True if the filename is good .
* \ sa readmaincfg ( )
* \ author Graue < graue @ oceanbase . org >
*/
static boolean GoodDataFileName ( const char * s )
{
const char * p ;
const char * tail = " .dat " ;
for ( p = s ; * p ! = ' \0 ' ; p + + )
if ( ! isalnum ( * p ) & & * p ! = ' _ ' & & * p ! = ' - ' & & * p ! = ' . ' )
return false ;
p = s + strlen ( s ) - strlen ( tail ) ;
if ( p < = s ) return false ; // too short
if ( ! fasticmp ( p , tail ) ) return false ; // doesn't end in .dat
if ( fasticmp ( s , " gamedata.dat " ) ) return false ;
return true ;
}
static void reademblemdata ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word = s ;
char * word2 ;
char * tmp ;
INT32 value ;
memset ( & emblemlocations [ num - 1 ] , 0 , sizeof ( emblem_t ) ) ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
// First remove trailing newline, if there is one
tmp = strchr ( s , ' \n ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
// Get the part before the " = "
tmp = strchr ( s , ' = ' ) ;
2018-10-31 19:26:29 +00:00
if ( tmp )
* ( tmp - 1 ) = ' \0 ' ;
else
break ;
2014-03-15 16:59:03 +00:00
strupr ( word ) ;
// Now get the part after
word2 = tmp + = 2 ;
value = atoi ( word2 ) ; // used for numerical settings
// Up here to allow lowercase in hints
if ( fastcmp ( word , " HINT " ) )
{
while ( ( tmp = strchr ( word2 , ' \\ ' ) ) )
* tmp = ' \n ' ;
deh_strlcpy ( emblemlocations [ num - 1 ] . hint , word2 , sizeof ( emblemlocations [ num - 1 ] . hint ) , va ( " Emblem %d: hint " , num ) ) ;
continue ;
}
strupr ( word2 ) ;
if ( fastcmp ( word , " TYPE " ) )
{
if ( fastcmp ( word2 , " GLOBAL " ) )
emblemlocations [ num - 1 ] . type = ET_GLOBAL ;
else if ( fastcmp ( word2 , " SKIN " ) )
emblemlocations [ num - 1 ] . type = ET_SKIN ;
else if ( fastcmp ( word2 , " SCORE " ) )
emblemlocations [ num - 1 ] . type = ET_SCORE ;
else if ( fastcmp ( word2 , " TIME " ) )
emblemlocations [ num - 1 ] . type = ET_TIME ;
else if ( fastcmp ( word2 , " RINGS " ) )
emblemlocations [ num - 1 ] . type = ET_RINGS ;
2017-05-09 15:20:26 +00:00
else if ( fastcmp ( word2 , " MAP " ) )
emblemlocations [ num - 1 ] . type = ET_MAP ;
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word2 , " NGRADE " ) )
emblemlocations [ num - 1 ] . type = ET_NGRADE ;
else if ( fastcmp ( word2 , " NTIME " ) )
emblemlocations [ num - 1 ] . type = ET_NTIME ;
else
emblemlocations [ num - 1 ] . type = ( UINT8 ) value ;
}
2019-02-03 13:32:07 +00:00
else if ( fastcmp ( word , " TAG " ) )
emblemlocations [ num - 1 ] . tag = ( INT16 ) value ;
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " MAPNUM " ) )
{
// Support using the actual map name,
// i.e., Level AB, Level FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
value = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
emblemlocations [ num - 1 ] . level = ( INT16 ) value ;
}
else if ( fastcmp ( word , " SPRITE " ) )
{
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
value = word2 [ 0 ] ;
else
value + = ' A ' - 1 ;
if ( value < ' A ' | | value > ' Z ' )
deh_warning ( " Emblem %d: sprite must be from A - Z (1 - 26) " , num ) ;
else
emblemlocations [ num - 1 ] . sprite = ( UINT8 ) value ;
}
else if ( fastcmp ( word , " COLOR " ) )
emblemlocations [ num - 1 ] . color = get_number ( word2 ) ;
else if ( fastcmp ( word , " VAR " ) )
emblemlocations [ num - 1 ] . var = get_number ( word2 ) ;
else
deh_warning ( " Emblem %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ;
// Default sprite and color definitions for lazy people like me
if ( ! emblemlocations [ num - 1 ] . sprite ) switch ( emblemlocations [ num - 1 ] . type )
{
case ET_RINGS :
emblemlocations [ num - 1 ] . sprite = ' R ' ; break ;
case ET_SCORE : case ET_NGRADE :
emblemlocations [ num - 1 ] . sprite = ' S ' ; break ;
case ET_TIME : case ET_NTIME :
emblemlocations [ num - 1 ] . sprite = ' T ' ; break ;
default :
emblemlocations [ num - 1 ] . sprite = ' A ' ; break ;
}
if ( ! emblemlocations [ num - 1 ] . color ) switch ( emblemlocations [ num - 1 ] . type )
{
case ET_RINGS :
emblemlocations [ num - 1 ] . color = SKINCOLOR_GOLD ; break ;
case ET_SCORE :
emblemlocations [ num - 1 ] . color = SKINCOLOR_BROWN ; break ;
case ET_NGRADE :
emblemlocations [ num - 1 ] . color = SKINCOLOR_TEAL ; break ;
case ET_TIME : case ET_NTIME :
emblemlocations [ num - 1 ] . color = SKINCOLOR_GREY ; break ;
default :
emblemlocations [ num - 1 ] . color = SKINCOLOR_BLUE ; break ;
}
Z_Free ( s ) ;
}
static void readextraemblemdata ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word = s ;
char * word2 ;
char * tmp ;
INT32 value ;
memset ( & extraemblems [ num - 1 ] , 0 , sizeof ( extraemblem_t ) ) ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
// First remove trailing newline, if there is one
tmp = strchr ( s , ' \n ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
// Get the part before the " = "
tmp = strchr ( s , ' = ' ) ;
2018-10-31 19:26:29 +00:00
if ( tmp )
* ( tmp - 1 ) = ' \0 ' ;
else
break ;
2014-03-15 16:59:03 +00:00
strupr ( word ) ;
// Now get the part after
word2 = tmp + = 2 ;
strupr ( word2 ) ;
value = atoi ( word2 ) ; // used for numerical settings
if ( fastcmp ( word , " NAME " ) )
deh_strlcpy ( extraemblems [ num - 1 ] . name , word2 ,
sizeof ( extraemblems [ num - 1 ] . name ) , va ( " Extra emblem %d: name " , num ) ) ;
else if ( fastcmp ( word , " OBJECTIVE " ) )
deh_strlcpy ( extraemblems [ num - 1 ] . description , word2 ,
sizeof ( extraemblems [ num - 1 ] . description ) , va ( " Extra emblem %d: objective " , num ) ) ;
else if ( fastcmp ( word , " CONDITIONSET " ) )
extraemblems [ num - 1 ] . conditionset = ( UINT8 ) value ;
else if ( fastcmp ( word , " SPRITE " ) )
{
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
value = word2 [ 0 ] ;
else
value + = ' A ' - 1 ;
if ( value < ' A ' | | value > ' Z ' )
deh_warning ( " Emblem %d: sprite must be from A - Z (1 - 26) " , num ) ;
else
extraemblems [ num - 1 ] . sprite = ( UINT8 ) value ;
}
else if ( fastcmp ( word , " COLOR " ) )
extraemblems [ num - 1 ] . color = get_number ( word2 ) ;
else
deh_warning ( " Extra emblem %d: unknown word '%s' " , num , word ) ;
}
} while ( ! myfeof ( f ) ) ;
if ( ! extraemblems [ num - 1 ] . sprite )
extraemblems [ num - 1 ] . sprite = ' X ' ;
if ( ! extraemblems [ num - 1 ] . color )
extraemblems [ num - 1 ] . color = SKINCOLOR_BLUE ;
Z_Free ( s ) ;
}
static void readunlockable ( MYFILE * f , INT32 num )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word = s ;
char * word2 ;
char * tmp ;
INT32 i ;
memset ( & unlockables [ num ] , 0 , sizeof ( unlockable_t ) ) ;
2017-04-22 23:16:09 +00:00
unlockables [ num ] . objective [ 0 ] = ' / ' ;
2014-03-15 16:59:03 +00:00
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
// First remove trailing newline, if there is one
tmp = strchr ( s , ' \n ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
// Get the part before the " = "
tmp = strchr ( s , ' = ' ) ;
2018-10-31 19:26:29 +00:00
if ( tmp )
* ( tmp - 1 ) = ' \0 ' ;
else
break ;
2014-03-15 16:59:03 +00:00
strupr ( word ) ;
// Now get the part after
word2 = tmp + = 2 ;
strupr ( word2 ) ;
i = atoi ( word2 ) ; // used for numerical settings
if ( fastcmp ( word , " NAME " ) )
deh_strlcpy ( unlockables [ num ] . name , word2 ,
sizeof ( unlockables [ num ] . name ) , va ( " Unlockable %d: name " , num ) ) ;
else if ( fastcmp ( word , " OBJECTIVE " ) )
deh_strlcpy ( unlockables [ num ] . objective , word2 ,
sizeof ( unlockables [ num ] . objective ) , va ( " Unlockable %d: objective " , num ) ) ;
else if ( fastcmp ( word , " HEIGHT " ) )
unlockables [ num ] . height = ( UINT16 ) i ;
else if ( fastcmp ( word , " CONDITIONSET " ) )
unlockables [ num ] . conditionset = ( UINT8 ) i ;
else if ( fastcmp ( word , " NOCECHO " ) )
unlockables [ num ] . nocecho = ( UINT8 ) ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
else if ( fastcmp ( word , " NOCHECKLIST " ) )
unlockables [ num ] . nochecklist = ( UINT8 ) ( i | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
else if ( fastcmp ( word , " TYPE " ) )
{
if ( fastcmp ( word2 , " NONE " ) )
unlockables [ num ] . type = SECRET_NONE ;
else if ( fastcmp ( word2 , " ITEMFINDER " ) )
unlockables [ num ] . type = SECRET_ITEMFINDER ;
else if ( fastcmp ( word2 , " EMBLEMHINTS " ) )
unlockables [ num ] . type = SECRET_EMBLEMHINTS ;
else if ( fastcmp ( word2 , " PANDORA " ) )
unlockables [ num ] . type = SECRET_PANDORA ;
else if ( fastcmp ( word2 , " CREDITS " ) )
unlockables [ num ] . type = SECRET_CREDITS ;
else if ( fastcmp ( word2 , " RECORDATTACK " ) )
unlockables [ num ] . type = SECRET_RECORDATTACK ;
else if ( fastcmp ( word2 , " NIGHTSMODE " ) )
unlockables [ num ] . type = SECRET_NIGHTSMODE ;
else if ( fastcmp ( word2 , " HEADER " ) )
unlockables [ num ] . type = SECRET_HEADER ;
else if ( fastcmp ( word2 , " LEVELSELECT " ) )
unlockables [ num ] . type = SECRET_LEVELSELECT ;
else if ( fastcmp ( word2 , " WARP " ) )
unlockables [ num ] . type = SECRET_WARP ;
else if ( fastcmp ( word2 , " SOUNDTEST " ) )
unlockables [ num ] . type = SECRET_SOUNDTEST ;
else
unlockables [ num ] . type = ( INT16 ) i ;
}
else if ( fastcmp ( word , " VAR " ) )
{
// Support using the actual map name,
// i.e., Level AB, Level FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
i = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
unlockables [ num ] . variable = ( INT16 ) i ;
}
else
deh_warning ( " Unlockable %d: unknown word '%s' " , num + 1 , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
2019-09-07 19:08:05 +00:00
static const char NIGHTSGRADE_LIST [ ] = {
' F ' , // GRADE_F
' E ' , // GRADE_E
' D ' , // GRADE_D
' C ' , // GRADE_C
' B ' , // GRADE_B
' A ' , // GRADE_A
' S ' , // GRADE_S
' \0 '
} ;
2014-03-15 16:59:03 +00:00
# define PARAMCHECK(n) do { if (!params[n]) { deh_warning("Too few parameters, need %d", n); return; }} while (0)
static void readcondition ( UINT8 set , UINT32 id , char * word2 )
{
INT32 i ;
char * params [ 4 ] ; // condition, requirement, extra info, extra info
char * spos ;
conditiontype_t ty ;
INT32 re ;
INT16 x1 = 0 , x2 = 0 ;
INT32 offset = 0 ;
spos = strtok ( word2 , " " ) ;
for ( i = 0 ; i < 4 ; + + i )
{
if ( spos ! = NULL )
{
params [ i ] = spos ;
spos = strtok ( NULL , " " ) ;
}
else
params [ i ] = NULL ;
}
if ( ! params [ 0 ] )
{
deh_warning ( " condition line is empty " ) ;
return ;
}
if ( fastcmp ( params [ 0 ] , " PLAYTIME " ) )
{
PARAMCHECK ( 1 ) ;
ty = UC_PLAYTIME ;
re = atoi ( params [ 1 ] ) ;
}
else if ( fastcmp ( params [ 0 ] , " GAMECLEAR " )
| | ( + + offset & & fastcmp ( params [ 0 ] , " ALLEMERALDS " ) )
| | ( + + offset & & fastcmp ( params [ 0 ] , " ULTIMATECLEAR " ) ) )
{
ty = UC_GAMECLEAR + offset ;
re = ( params [ 1 ] ) ? atoi ( params [ 1 ] ) : 1 ;
}
else if ( ( offset = 0 ) | | fastcmp ( params [ 0 ] , " OVERALLSCORE " )
| | ( + + offset & & fastcmp ( params [ 0 ] , " OVERALLTIME " ) )
| | ( + + offset & & fastcmp ( params [ 0 ] , " OVERALLRINGS " ) ) )
{
PARAMCHECK ( 1 ) ;
ty = UC_OVERALLSCORE + offset ;
re = atoi ( params [ 1 ] ) ;
}
else if ( ( offset = 0 ) | | fastcmp ( params [ 0 ] , " MAPVISITED " )
| | ( + + offset & & fastcmp ( params [ 0 ] , " MAPBEATEN " ) )
| | ( + + offset & & fastcmp ( params [ 0 ] , " MAPALLEMERALDS " ) )
| | ( + + offset & & fastcmp ( params [ 0 ] , " MAPULTIMATE " ) )
| | ( + + offset & & fastcmp ( params [ 0 ] , " MAPPERFECT " ) ) )
{
PARAMCHECK ( 1 ) ;
ty = UC_MAPVISITED + offset ;
// Convert to map number if it appears to be one
if ( params [ 1 ] [ 0 ] > = ' A ' & & params [ 1 ] [ 0 ] < = ' Z ' )
re = M_MapNumber ( params [ 1 ] [ 0 ] , params [ 1 ] [ 1 ] ) ;
else
re = atoi ( params [ 1 ] ) ;
if ( re < 0 | | re > = NUMMAPS )
{
deh_warning ( " Level number %d out of range (1 - %d) " , re , NUMMAPS ) ;
return ;
}
}
else if ( ( offset = 0 ) | | fastcmp ( params [ 0 ] , " MAPSCORE " )
| | ( + + offset & & fastcmp ( params [ 0 ] , " MAPTIME " ) )
| | ( + + offset & & fastcmp ( params [ 0 ] , " MAPRINGS " ) ) )
{
PARAMCHECK ( 2 ) ;
ty = UC_MAPSCORE + offset ;
re = atoi ( params [ 2 ] ) ;
// Convert to map number if it appears to be one
if ( params [ 1 ] [ 0 ] > = ' A ' & & params [ 1 ] [ 0 ] < = ' Z ' )
x1 = ( INT16 ) M_MapNumber ( params [ 1 ] [ 0 ] , params [ 1 ] [ 1 ] ) ;
else
x1 = ( INT16 ) atoi ( params [ 1 ] ) ;
if ( x1 < 0 | | x1 > = NUMMAPS )
{
deh_warning ( " Level number %d out of range (1 - %d) " , re , NUMMAPS ) ;
return ;
}
}
else if ( ( offset = 0 ) | | fastcmp ( params [ 0 ] , " NIGHTSSCORE " )
| | ( + + offset & & fastcmp ( params [ 0 ] , " NIGHTSTIME " ) )
| | ( + + offset & & fastcmp ( params [ 0 ] , " NIGHTSGRADE " ) ) )
{
PARAMCHECK ( 2 ) ; // one optional one
ty = UC_NIGHTSSCORE + offset ;
2019-09-07 19:08:05 +00:00
i = ( params [ 3 ] ? 3 : 2 ) ;
if ( fastncmp ( " GRADE_ " , params [ i ] , 6 ) )
{
char * p = params [ i ] + 6 ;
for ( re = 0 ; NIGHTSGRADE_LIST [ re ] ; re + + )
if ( * p = = NIGHTSGRADE_LIST [ re ] )
break ;
if ( ! NIGHTSGRADE_LIST [ re ] )
{
deh_warning ( " Invalid NiGHTS grade %s \n " , params [ i ] ) ;
return ;
}
}
else
re = atoi ( params [ i ] ) ;
2014-03-15 16:59:03 +00:00
// Convert to map number if it appears to be one
if ( params [ 1 ] [ 0 ] > = ' A ' & & params [ 1 ] [ 0 ] < = ' Z ' )
x1 = ( INT16 ) M_MapNumber ( params [ 1 ] [ 0 ] , params [ 1 ] [ 1 ] ) ;
else
x1 = ( INT16 ) atoi ( params [ 1 ] ) ;
if ( x1 < 0 | | x1 > = NUMMAPS )
{
deh_warning ( " Level number %d out of range (1 - %d) " , re , NUMMAPS ) ;
return ;
}
// Mare number (0 for overall)
if ( params [ 3 ] ) // Only if we actually got 3 params (so the second one == mare and not requirement)
x2 = ( INT16 ) atoi ( params [ 2 ] ) ;
else
x2 = 0 ;
}
else if ( fastcmp ( params [ 0 ] , " TRIGGER " ) )
{
PARAMCHECK ( 1 ) ;
ty = UC_TRIGGER ;
re = atoi ( params [ 1 ] ) ;
// constrained by 32 bits
if ( re < 0 | | re > 31 )
{
deh_warning ( " Trigger ID %d out of range (0 - 31) " , re ) ;
return ;
}
}
else if ( fastcmp ( params [ 0 ] , " TOTALEMBLEMS " ) )
{
PARAMCHECK ( 1 ) ;
ty = UC_TOTALEMBLEMS ;
re = atoi ( params [ 1 ] ) ;
}
else if ( fastcmp ( params [ 0 ] , " EMBLEM " ) )
{
PARAMCHECK ( 1 ) ;
ty = UC_EMBLEM ;
re = atoi ( params [ 1 ] ) ;
if ( re < = 0 | | re > MAXEMBLEMS )
{
deh_warning ( " Emblem %d out of range (1 - %d) " , re , MAXEMBLEMS ) ;
return ;
}
}
else if ( fastcmp ( params [ 0 ] , " EXTRAEMBLEM " ) )
{
PARAMCHECK ( 1 ) ;
ty = UC_EXTRAEMBLEM ;
re = atoi ( params [ 1 ] ) ;
if ( re < = 0 | | re > MAXEXTRAEMBLEMS )
{
deh_warning ( " Extra emblem %d out of range (1 - %d) " , re , MAXEXTRAEMBLEMS ) ;
return ;
}
}
else if ( fastcmp ( params [ 0 ] , " CONDITIONSET " ) )
{
PARAMCHECK ( 1 ) ;
ty = UC_CONDITIONSET ;
re = atoi ( params [ 1 ] ) ;
if ( re < = 0 | | re > MAXCONDITIONSETS )
{
deh_warning ( " Condition set %d out of range (1 - %d) " , re , MAXCONDITIONSETS ) ;
return ;
}
}
else
{
deh_warning ( " Invalid condition name %s " , params [ 0 ] ) ;
return ;
}
M_AddRawCondition ( set , ( UINT8 ) id , ty , re , x1 , x2 ) ;
}
# undef PARAMCHECK
static void readconditionset ( MYFILE * f , UINT8 setnum )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word = s ;
char * word2 ;
char * tmp ;
UINT8 id ;
UINT8 previd = 0 ;
M_ClearConditionSet ( setnum ) ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
// First remove trailing newline, if there is one
tmp = strchr ( s , ' \n ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
// Get the part before the " = "
tmp = strchr ( s , ' = ' ) ;
2018-10-31 19:26:29 +00:00
if ( tmp )
* ( tmp - 1 ) = ' \0 ' ;
else
break ;
2014-03-15 16:59:03 +00:00
strupr ( word ) ;
// Now get the part after
word2 = tmp + = 2 ;
strupr ( word2 ) ;
if ( fastncmp ( word , " CONDITION " , 9 ) )
{
id = ( UINT8 ) atoi ( word + 9 ) ;
if ( id = = 0 )
{
deh_warning ( " Condition set %d: unknown word '%s' " , setnum , word ) ;
continue ;
}
else if ( previd > id )
{
// out of order conditions can cause problems, so enforce proper order
deh_warning ( " Condition set %d: conditions are out of order, ignoring this line " , setnum ) ;
continue ;
}
previd = id ;
readcondition ( setnum , id , word2 ) ;
}
else
deh_warning ( " Condition set %d: unknown word '%s' " , setnum , word ) ;
}
} while ( ! myfeof ( f ) ) ; // finish when the line is empty
Z_Free ( s ) ;
}
static void readmaincfg ( MYFILE * f )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word = s ;
char * word2 ;
char * tmp ;
INT32 value ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
// First remove trailing newline, if there is one
tmp = strchr ( s , ' \n ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
// Get the part before the " = "
tmp = strchr ( s , ' = ' ) ;
2018-10-31 19:26:29 +00:00
if ( tmp )
* ( tmp - 1 ) = ' \0 ' ;
else
break ;
2014-03-15 16:59:03 +00:00
strupr ( word ) ;
// Now get the part after
word2 = tmp + = 2 ;
strupr ( word2 ) ;
value = atoi ( word2 ) ; // used for numerical settings
if ( fastcmp ( word , " EXECCFG " ) )
COM_BufAddText ( va ( " exec %s \n " , word2 ) ) ;
else if ( fastcmp ( word , " SPSTAGE_START " ) )
{
// Support using the actual map name,
// i.e., Level AB, Level FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
value = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
else
value = get_number ( word2 ) ;
spstage_start = ( INT16 ) value ;
}
else if ( fastcmp ( word , " SSTAGE_START " ) )
{
// Support using the actual map name,
// i.e., Level AB, Level FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
value = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
else
value = get_number ( word2 ) ;
sstage_start = ( INT16 ) value ;
2018-06-06 15:07:14 +00:00
sstage_end = ( INT16 ) ( sstage_start + 7 ) ; // 7 special stages total plus one weirdo
2014-03-15 16:59:03 +00:00
}
2018-06-06 15:07:14 +00:00
else if ( fastcmp ( word , " SMPSTAGE_START " ) )
2014-03-15 16:59:03 +00:00
{
2018-06-06 15:07:14 +00:00
// Support using the actual map name,
// i.e., Level AB, Level FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
value = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
else
value = get_number ( word2 ) ;
smpstage_start = ( INT16 ) value ;
smpstage_end = ( INT16 ) ( smpstage_start + 6 ) ; // 7 special stages total
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " REDTEAM " ) )
{
skincolor_redteam = ( UINT8 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " BLUETEAM " ) )
{
skincolor_blueteam = ( UINT8 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " REDRING " ) )
{
skincolor_redring = ( UINT8 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " BLUERING " ) )
{
skincolor_bluering = ( UINT8 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " INVULNTICS " ) )
{
invulntics = ( UINT16 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " SNEAKERTICS " ) )
{
sneakertics = ( UINT16 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " FLASHINGTICS " ) )
{
flashingtics = ( UINT16 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " TAILSFLYTICS " ) )
{
tailsflytics = ( UINT16 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " UNDERWATERTICS " ) )
{
underwatertics = ( UINT16 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " SPACETIMETICS " ) )
{
spacetimetics = ( UINT16 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " EXTRALIFETICS " ) )
{
extralifetics = ( UINT16 ) get_number ( word2 ) ;
}
2018-08-10 03:14:14 +00:00
else if ( fastcmp ( word , " NIGHTSLINKTICS " ) )
{
nightslinktics = ( UINT16 ) get_number ( word2 ) ;
}
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " GAMEOVERTICS " ) )
{
gameovertics = get_number ( word2 ) ;
}
2019-08-26 23:07:17 +00:00
else if ( fastcmp ( word , " AMMOREMOVALTICS " ) )
{
ammoremovaltics = get_number ( word2 ) ;
}
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " INTROTOPLAY " ) )
{
introtoplay = ( UINT8 ) get_number ( word2 ) ;
// range check, you morons.
if ( introtoplay > 128 )
introtoplay = 128 ;
2017-05-14 15:45:08 +00:00
introchanged = true ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " LOOPTITLE " ) )
{
2018-12-24 19:37:52 +00:00
looptitle = ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
2017-04-18 21:36:54 +00:00
else if ( fastcmp ( word , " TITLEMAP " ) )
{
// Support using the actual map name,
// i.e., Level AB, Level FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
value = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
else
value = get_number ( word2 ) ;
titlemap = ( INT16 ) value ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2017-04-18 21:36:54 +00:00
}
else if ( fastcmp ( word , " HIDETITLEPICS " ) )
{
hidetitlepics = ( boolean ) ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
2018-11-16 17:07:47 +00:00
else if ( fastcmp ( word , " TITLESCROLLSPEED " ) | | fastcmp ( word , " TITLESCROLLXSPEED " ) )
2014-03-15 16:59:03 +00:00
{
2018-11-16 19:34:28 +00:00
titlescrollxspeed = get_number ( word2 ) ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
2018-11-16 19:18:35 +00:00
else if ( fastcmp ( word , " TITLESCROLLYSPEED " ) )
2014-03-15 16:59:03 +00:00
{
2018-11-16 19:18:35 +00:00
titlescrollyspeed = get_number ( word2 ) ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " CREDITSCUTSCENE " ) )
{
creditscutscene = ( UINT8 ) get_number ( word2 ) ;
// range check, you morons.
if ( creditscutscene > 128 )
creditscutscene = 128 ;
}
else if ( fastcmp ( word , " DISABLESPEEDADJUST " ) )
{
2018-12-24 19:29:54 +00:00
disableSpeedAdjust = ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " NUMDEMOS " ) )
{
numDemos = ( UINT8 ) get_number ( word2 ) ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " DEMODELAYTIME " ) )
{
demoDelayTime = get_number ( word2 ) ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " DEMOIDLETIME " ) )
{
demoIdleTime = get_number ( word2 ) ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " USE1UPSOUND " ) )
{
use1upSound = ( UINT8 ) ( value | | word2 [ 0 ] = = ' T ' | | word2 [ 0 ] = = ' Y ' ) ;
}
else if ( fastcmp ( word , " MAXXTRALIFE " ) )
{
maxXtraLife = ( UINT8 ) get_number ( word2 ) ;
}
else if ( fastcmp ( word , " GAMEDATA " ) )
{
size_t filenamelen ;
// Check the data filename so that mods
// can't write arbitrary files.
if ( ! GoodDataFileName ( word2 ) )
I_Error ( " Maincfg: bad data file name '%s' \n " , word2 ) ;
G_SaveGameData ( ) ;
strlcpy ( gamedatafilename , word2 , sizeof ( gamedatafilename ) ) ;
strlwr ( gamedatafilename ) ;
savemoddata = true ;
// Also save a time attack folder
filenamelen = strlen ( gamedatafilename ) - 4 ; // Strip off the extension
strncpy ( timeattackfolder , gamedatafilename , min ( filenamelen , sizeof ( timeattackfolder ) ) ) ;
timeattackfolder [ min ( filenamelen , sizeof ( timeattackfolder ) - 1 ) ] = ' \0 ' ;
2018-12-13 17:01:07 +00:00
strcpy ( savegamename , timeattackfolder ) ;
2014-03-15 16:59:03 +00:00
strlcat ( savegamename , " %u.ssg " , sizeof ( savegamename ) ) ;
2017-09-09 20:19:07 +00:00
// can't use sprintf since there is %u in savegamename
strcatbf ( savegamename , srb2home , PATHSEP ) ;
2014-03-15 16:59:03 +00:00
gamedataadded = true ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " RESETDATA " ) )
{
P_ResetData ( value ) ;
2017-05-14 15:45:08 +00:00
titlechanged = true ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( word , " CUSTOMVERSION " ) )
{
strlcpy ( customversionstring , word2 , sizeof ( customversionstring ) ) ;
2017-05-14 15:45:08 +00:00
//titlechanged = true;
2014-03-15 16:59:03 +00:00
}
2017-05-13 00:47:42 +00:00
else if ( fastcmp ( word , " BOOTMAP " ) )
{
// Support using the actual map name,
// i.e., Level AB, Level FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
value = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
else
value = get_number ( word2 ) ;
bootmap = ( INT16 ) value ;
2017-05-14 15:45:08 +00:00
//titlechanged = true;
2017-05-13 00:47:42 +00:00
}
2017-10-03 17:18:18 +00:00
else if ( fastcmp ( word , " STARTCHAR " ) )
{
startchar = ( INT16 ) value ;
char_on = - 1 ;
2014-03-15 16:59:03 +00:00
}
2018-08-12 13:30:49 +00:00
else if ( fastcmp ( word , " TUTORIALMAP " ) )
{
// Support using the actual map name,
// i.e., Level AB, Level FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
value = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
else
value = get_number ( word2 ) ;
tutorialmap = ( INT16 ) value ;
}
2014-03-15 16:59:03 +00:00
else
deh_warning ( " Maincfg: unknown word '%s' " , word ) ;
}
} while ( ! myfeof ( f ) ) ;
Z_Free ( s ) ;
}
static void readwipes ( MYFILE * f )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word = s ;
char * pword = word ;
char * word2 ;
char * tmp ;
INT32 value ;
INT32 wipeoffset ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
// First remove trailing newline, if there is one
tmp = strchr ( s , ' \n ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
tmp = strchr ( s , ' # ' ) ;
if ( tmp )
* tmp = ' \0 ' ;
if ( s = = tmp )
continue ; // Skip comment lines, but don't break.
// Get the part before the " = "
tmp = strchr ( s , ' = ' ) ;
2018-10-31 19:26:29 +00:00
if ( tmp )
* ( tmp - 1 ) = ' \0 ' ;
else
break ;
2014-03-15 16:59:03 +00:00
strupr ( word ) ;
// Now get the part after
word2 = tmp + = 2 ;
value = atoi ( word2 ) ; // used for numerical settings
if ( value < - 1 | | value > 99 )
{
deh_warning ( " Wipes: bad value '%s' " , word2 ) ;
continue ;
}
else if ( value = = - 1 )
value = UINT8_MAX ;
// error catching
wipeoffset = - 1 ;
if ( fastncmp ( word , " LEVEL_ " , 6 ) )
{
pword = word + 6 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_level_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_level_final ;
}
else if ( fastncmp ( word , " INTERMISSION_ " , 13 ) )
{
pword = word + 13 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_intermission_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_intermission_final ;
}
else if ( fastncmp ( word , " SPECINTER_ " , 10 ) )
{
pword = word + 10 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_specinter_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_specinter_final ;
}
else if ( fastncmp ( word , " MULTINTER_ " , 10 ) )
{
pword = word + 10 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_multinter_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_multinter_final ;
}
else if ( fastncmp ( word , " CONTINUING_ " , 11 ) )
{
pword = word + 11 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_continuing_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_continuing_final ;
}
else if ( fastncmp ( word , " TITLESCREEN_ " , 12 ) )
{
pword = word + 12 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_titlescreen_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_titlescreen_final ;
}
else if ( fastncmp ( word , " TIMEATTACK_ " , 11 ) )
{
pword = word + 11 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_timeattack_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_timeattack_final ;
}
else if ( fastncmp ( word , " CREDITS_ " , 8 ) )
{
pword = word + 8 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_credits_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_credits_final ;
else if ( fastcmp ( pword , " INTERMEDIATE " ) )
wipeoffset = wipe_credits_intermediate ;
}
else if ( fastncmp ( word , " EVALUATION_ " , 11 ) )
{
pword = word + 11 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_evaluation_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_evaluation_final ;
}
else if ( fastncmp ( word , " GAMEEND_ " , 8 ) )
{
pword = word + 8 ;
if ( fastcmp ( pword , " TOBLACK " ) )
wipeoffset = wipe_gameend_toblack ;
else if ( fastcmp ( pword , " FINAL " ) )
wipeoffset = wipe_gameend_final ;
}
2016-01-05 13:03:00 +00:00
else if ( fastncmp ( word , " SPECLEVEL_ " , 10 ) )
{
pword = word + 10 ;
if ( fastcmp ( pword , " TOWHITE " ) )
wipeoffset = wipe_speclevel_towhite ;
}
2014-03-15 16:59:03 +00:00
if ( wipeoffset < 0 )
{
deh_warning ( " Wipes: unknown word '%s' " , word ) ;
continue ;
}
2016-01-05 13:03:00 +00:00
if ( value = = UINT8_MAX
& & ( wipeoffset < = wipe_level_toblack | | wipeoffset > = wipe_speclevel_towhite ) )
2014-03-15 16:59:03 +00:00
{
2016-01-05 13:03:00 +00:00
// Cannot disable non-toblack wipes
// (or the level toblack wipe, or the special towhite wipe)
2014-03-15 16:59:03 +00:00
deh_warning ( " Wipes: can't disable wipe of type '%s' " , word ) ;
continue ;
}
wipedefs [ wipeoffset ] = ( UINT8 ) value ;
}
} while ( ! myfeof ( f ) ) ;
Z_Free ( s ) ;
}
// Used when you do something invalid like read a bad item number
// to prevent extra unnecessary errors
static void ignorelines ( MYFILE * f )
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
do
{
if ( myfgets ( s , MAXLINELEN , f ) )
{
if ( s [ 0 ] = = ' \n ' )
break ;
}
} while ( ! myfeof ( f ) ) ;
Z_Free ( s ) ;
}
2019-02-03 10:05:22 +00:00
static void DEH_LoadDehackedFile ( MYFILE * f , boolean mainfile )
2014-03-15 16:59:03 +00:00
{
char * s = Z_Malloc ( MAXLINELEN , PU_STATIC , NULL ) ;
char * word ;
char * word2 ;
INT32 i ;
if ( ! deh_loaded )
initfreeslots ( ) ;
deh_num_warning = 0 ;
2017-05-14 15:45:08 +00:00
gamedataadded = titlechanged = introchanged = false ;
2014-03-15 16:59:03 +00:00
// it doesn't test the version of SRB2 and version of dehacked file
dbg_line = - 1 ; // start at -1 so the first line is 0.
while ( ! myfeof ( f ) )
{
2017-09-29 18:46:23 +00:00
char origpos [ 128 ] ;
2014-03-15 16:59:03 +00:00
INT32 size = 0 ;
char * traverse ;
myfgets ( s , MAXLINELEN , f ) ;
if ( s [ 0 ] = = ' \n ' | | s [ 0 ] = = ' # ' )
continue ;
traverse = s ;
while ( traverse [ 0 ] ! = ' \n ' )
{
traverse + + ;
size + + ;
}
strncpy ( origpos , s , size ) ;
origpos [ size ] = ' \0 ' ;
if ( NULL ! = ( word = strtok ( s , " " ) ) ) {
strupr ( word ) ;
if ( word [ strlen ( word ) - 1 ] = = ' \n ' )
word [ strlen ( word ) - 1 ] = ' \0 ' ;
}
if ( word )
{
if ( fastcmp ( word , " FREESLOT " ) )
{
readfreeslots ( f ) ;
continue ;
}
else if ( fastcmp ( word , " MAINCFG " ) )
{
readmaincfg ( f ) ;
continue ;
}
else if ( fastcmp ( word , " WIPES " ) )
{
readwipes ( f ) ;
continue ;
}
word2 = strtok ( NULL , " " ) ;
2019-02-03 16:03:33 +00:00
if ( word2 ) {
strupr ( word2 ) ;
if ( word2 [ strlen ( word2 ) - 1 ] = = ' \n ' )
word2 [ strlen ( word2 ) - 1 ] = ' \0 ' ;
i = atoi ( word2 ) ;
}
else
i = 0 ;
2014-03-15 16:59:03 +00:00
if ( fastcmp ( word , " CHARACTER " ) )
{
if ( i > = 0 & & i < 32 )
readPlayer ( f , i ) ;
else
{
deh_warning ( " Character %d out of range (0 - 31) " , i ) ;
ignorelines ( f ) ;
}
continue ;
}
2019-02-03 16:03:33 +00:00
else if ( fastcmp ( word , " EMBLEM " ) )
2014-03-15 16:59:03 +00:00
{
2019-02-03 16:03:33 +00:00
if ( ! mainfile & & ! gamedataadded )
{
deh_warning ( " You must define a custom gamedata to use \" %s \" " , word ) ;
ignorelines ( f ) ;
}
else
{
if ( ! word2 )
i = numemblems + 1 ;
if ( i > 0 & & i < = MAXEMBLEMS )
{
if ( numemblems < i )
numemblems = i ;
reademblemdata ( f , i ) ;
}
else
{
deh_warning ( " Emblem number %d out of range (1 - %d) " , i , MAXEMBLEMS ) ;
ignorelines ( f ) ;
}
}
2019-02-03 16:07:13 +00:00
continue ;
2019-02-03 16:03:33 +00:00
}
else if ( fastcmp ( word , " EXTRAEMBLEM " ) )
{
if ( ! mainfile & & ! gamedataadded )
{
deh_warning ( " You must define a custom gamedata to use \" %s \" " , word ) ;
ignorelines ( f ) ;
}
else
{
if ( ! word2 )
i = numextraemblems + 1 ;
2017-08-14 20:34:37 +00:00
2019-02-03 16:03:33 +00:00
if ( i > 0 & & i < = MAXEXTRAEMBLEMS )
{
if ( numextraemblems < i )
numextraemblems = i ;
readextraemblemdata ( f , i ) ;
}
else
{
deh_warning ( " Extra emblem number %d out of range (1 - %d) " , i , MAXEXTRAEMBLEMS ) ;
ignorelines ( f ) ;
}
}
2019-02-03 16:07:13 +00:00
continue ;
2019-02-03 16:03:33 +00:00
}
if ( word2 )
{
2017-06-24 19:33:56 +00:00
if ( fastcmp ( word , " THING " ) | | fastcmp ( word , " MOBJ " ) | | fastcmp ( word , " OBJECT " ) )
2014-03-15 16:59:03 +00:00
{
if ( i = = 0 & & word2 [ 0 ] ! = ' 0 ' ) // If word2 isn't a number
i = get_mobjtype ( word2 ) ; // find a thing by name
2016-12-29 17:02:05 +00:00
if ( i < NUMMOBJTYPES & & i > 0 )
2014-03-15 16:59:03 +00:00
readthing ( f , i ) ;
else
{
2016-12-29 17:02:05 +00:00
deh_warning ( " Thing %d out of range (1 - %d) " , i , NUMMOBJTYPES - 1 ) ;
2014-03-15 16:59:03 +00:00
ignorelines ( f ) ;
}
}
2017-08-25 17:00:20 +00:00
else if ( fastcmp ( word , " SPRITE2 " ) )
2014-03-15 16:59:03 +00:00
{
2017-08-25 17:00:20 +00:00
if ( i = = 0 & & word2 [ 0 ] ! = ' 0 ' ) // If word2 isn't a number
i = get_sprite2 ( word2 ) ; // find a sprite by name
if ( i < ( INT32 ) free_spr2 & & i > = ( INT32 ) SPR2_FIRSTFREESLOT )
readsprite2 ( f , i ) ;
else
{
deh_warning ( " Sprite2 number %d out of range (%d - %d) " , i , SPR2_FIRSTFREESLOT , free_spr2 - 1 ) ;
ignorelines ( f ) ;
}
}
2014-03-15 16:59:03 +00:00
# ifdef HWRENDER
2017-08-25 17:00:20 +00:00
else if ( fastcmp ( word , " LIGHT " ) )
{
2014-03-15 16:59:03 +00:00
// TODO: Read lights by name
if ( i > 0 & & i < NUMLIGHTS )
readlight ( f , i ) ;
else
{
deh_warning ( " Light number %d out of range (1 - %d) " , i , NUMLIGHTS - 1 ) ;
ignorelines ( f ) ;
}
}
else if ( fastcmp ( word , " SPRITE " ) )
{
if ( i = = 0 & & word2 [ 0 ] ! = ' 0 ' ) // If word2 isn't a number
i = get_sprite ( word2 ) ; // find a sprite by name
2017-08-25 17:00:20 +00:00
if ( i < NUMSPRITES & & i > 0 )
2014-03-15 16:59:03 +00:00
readspritelight ( f , i ) ;
else
{
deh_warning ( " Sprite number %d out of range (0 - %d) " , i , NUMSPRITES - 1 ) ;
ignorelines ( f ) ;
}
}
2017-08-25 17:00:20 +00:00
# endif
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " LEVEL " ) )
{
// Support using the actual map name,
// i.e., Level AB, Level FZ, etc.
// Convert to map number
if ( word2 [ 0 ] > = ' A ' & & word2 [ 0 ] < = ' Z ' )
i = M_MapNumber ( word2 [ 0 ] , word2 [ 1 ] ) ;
if ( i > 0 & & i < = NUMMAPS )
readlevelheader ( f , i ) ;
else
{
deh_warning ( " Level number %d out of range (1 - %d) " , i , NUMMAPS ) ;
ignorelines ( f ) ;
}
}
else if ( fastcmp ( word , " CUTSCENE " ) )
{
if ( i > 0 & & i < 129 )
readcutscene ( f , i - 1 ) ;
else
{
deh_warning ( " Cutscene number %d out of range (1 - 128) " , i ) ;
ignorelines ( f ) ;
}
}
2018-11-03 05:27:32 +00:00
else if ( fastcmp ( word , " PROMPT " ) )
{
2018-11-13 04:16:24 +00:00
if ( i > 0 & & i < MAX_PROMPTS )
2018-11-03 05:27:32 +00:00
readtextprompt ( f , i - 1 ) ;
else
{
2018-11-13 04:16:24 +00:00
deh_warning ( " Prompt number %d out of range (1 - %d) " , i , MAX_PROMPTS ) ;
2018-11-03 05:27:32 +00:00
ignorelines ( f ) ;
}
}
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " FRAME " ) | | fastcmp ( word , " STATE " ) )
{
if ( i = = 0 & & word2 [ 0 ] ! = ' 0 ' ) // If word2 isn't a number
i = get_state ( word2 ) ; // find a state by name
if ( i < NUMSTATES & & i > = 0 )
readframe ( f , i ) ;
else
{
deh_warning ( " Frame %d out of range (0 - %d) " , i , NUMSTATES - 1 ) ;
ignorelines ( f ) ;
}
}
else if ( fastcmp ( word , " SOUND " ) )
{
if ( i = = 0 & & word2 [ 0 ] ! = ' 0 ' ) // If word2 isn't a number
i = get_sfx ( word2 ) ; // find a sound by name
2017-04-29 15:27:52 +00:00
if ( i < NUMSFX & & i > 0 )
2017-06-24 19:33:56 +00:00
readsound ( f , i ) ;
2014-03-15 16:59:03 +00:00
else
{
2017-04-29 15:27:52 +00:00
deh_warning ( " Sound %d out of range (1 - %d) " , i , NUMSFX - 1 ) ;
2014-03-15 16:59:03 +00:00
ignorelines ( f ) ;
}
}
else if ( fastcmp ( word , " HUDITEM " ) )
{
if ( i = = 0 & & word2 [ 0 ] ! = ' 0 ' ) // If word2 isn't a number
i = get_huditem ( word2 ) ; // find a huditem by name
if ( i > = 0 & & i < NUMHUDITEMS )
readhuditem ( f , i ) ;
else
{
deh_warning ( " HUD item number %d out of range (0 - %d) " , i , NUMHUDITEMS - 1 ) ;
ignorelines ( f ) ;
}
}
2018-11-16 17:12:11 +00:00
else if ( fastcmp ( word , " MENU " ) )
2014-03-15 16:59:03 +00:00
{
2018-11-16 17:12:11 +00:00
if ( i = = 0 & & word2 [ 0 ] ! = ' 0 ' ) // If word2 isn't a number
i = get_menutype ( word2 ) ; // find a huditem by name
if ( i > = 1 & & i < NUMMENUTYPES )
readmenu ( f , i ) ;
2014-03-15 16:59:03 +00:00
else
{
2018-11-16 17:12:11 +00:00
// zero-based, but let's start at 1
deh_warning ( " Menu number %d out of range (1 - %d) " , i , NUMMENUTYPES - 1 ) ;
2014-03-15 16:59:03 +00:00
ignorelines ( f ) ;
}
}
else if ( fastcmp ( word , " UNLOCKABLE " ) )
{
2019-02-03 10:05:22 +00:00
if ( ! mainfile & & ! gamedataadded )
2014-03-15 16:59:03 +00:00
{
deh_warning ( " You must define a custom gamedata to use \" %s \" " , word ) ;
ignorelines ( f ) ;
}
else if ( i > 0 & & i < = MAXUNLOCKABLES )
readunlockable ( f , i - 1 ) ;
else
{
deh_warning ( " Unlockable number %d out of range (1 - %d) " , i , MAXUNLOCKABLES ) ;
ignorelines ( f ) ;
}
}
else if ( fastcmp ( word , " CONDITIONSET " ) )
{
2019-02-03 10:05:22 +00:00
if ( ! mainfile & & ! gamedataadded )
2014-03-15 16:59:03 +00:00
{
deh_warning ( " You must define a custom gamedata to use \" %s \" " , word ) ;
ignorelines ( f ) ;
}
else if ( i > 0 & & i < = MAXCONDITIONSETS )
readconditionset ( f , ( UINT8 ) i ) ;
else
{
deh_warning ( " Condition set number %d out of range (1 - %d) " , i , MAXCONDITIONSETS ) ;
ignorelines ( f ) ;
}
}
2017-06-24 19:33:56 +00:00
// Last I heard this crashes the game if you try to use it
// so this is disabled for now
// -- Monster Iestyn
/* else if (fastcmp(word, "SRB2"))
2014-03-15 16:59:03 +00:00
{
INT32 ver = searchvalue ( strtok ( NULL , " \n " ) ) ;
if ( ver ! = PATCHVERSION )
deh_warning ( " Patch is for SRB2 version %d, \n only version %d is supported " , ver , PATCHVERSION ) ;
}
// Clear all data in certain locations (mostly for unlocks)
// Unless you REALLY want to piss people off,
// define a custom gamedata /before/ doing this!!
// (then again, modifiedgame will prevent game data saving anyway)
2017-06-24 19:33:56 +00:00
*/
2014-03-15 16:59:03 +00:00
else if ( fastcmp ( word , " CLEAR " ) )
{
boolean clearall = ( fastcmp ( word2 , " ALL " ) ) ;
2019-02-03 10:05:22 +00:00
if ( ! mainfile & & ! gamedataadded )
2014-03-15 16:59:03 +00:00
{
deh_warning ( " You must define a custom gamedata to use \" %s \" " , word ) ;
continue ;
}
if ( clearall | | fastcmp ( word2 , " UNLOCKABLES " ) )
memset ( & unlockables , 0 , sizeof ( unlockables ) ) ;
if ( clearall | | fastcmp ( word2 , " EMBLEMS " ) )
{
memset ( & emblemlocations , 0 , sizeof ( emblemlocations ) ) ;
numemblems = 0 ;
}
if ( clearall | | fastcmp ( word2 , " EXTRAEMBLEMS " ) )
{
memset ( & extraemblems , 0 , sizeof ( extraemblems ) ) ;
numextraemblems = 0 ;
}
if ( clearall | | fastcmp ( word2 , " CONDITIONSETS " ) )
clear_conditionsets ( ) ;
if ( clearall | | fastcmp ( word2 , " LEVELS " ) )
clear_levels ( ) ;
}
else
deh_warning ( " Unknown word: %s " , word ) ;
}
else
deh_warning ( " missing argument for '%s' " , word ) ;
}
else
deh_warning ( " No word in this line: %s " , s ) ;
} // end while
if ( gamedataadded )
G_LoadGameData ( ) ;
2017-05-14 15:45:08 +00:00
if ( gamestate = = GS_TITLESCREEN )
{
if ( introchanged )
2017-10-26 15:58:18 +00:00
{
menuactive = false ;
2017-05-14 15:45:08 +00:00
COM_BufAddText ( " playintro " ) ;
2017-10-26 15:58:18 +00:00
}
2017-05-14 15:45:08 +00:00
else if ( titlechanged )
2017-10-26 15:58:18 +00:00
{
menuactive = false ;
2017-05-14 15:45:08 +00:00
COM_BufAddText ( " exitgame " ) ; // Command_ExitGame_f() but delayed
2017-10-26 15:58:18 +00:00
}
2017-05-14 15:45:08 +00:00
}
2014-03-15 16:59:03 +00:00
dbg_line = - 1 ;
if ( deh_num_warning )
{
CONS_Printf ( M_GetText ( " %d warning%s in the SOC lump \n " ) , deh_num_warning , deh_num_warning = = 1 ? " " : " s " ) ;
if ( devparm ) {
I_Error ( " %s%s " , va ( M_GetText ( " %d warning%s in the SOC lump \n " ) , deh_num_warning , deh_num_warning = = 1 ? " " : " s " ) , M_GetText ( " See log.txt for details. \n " ) ) ;
//while (!I_GetKey())
//I_OsPolling();
}
}
deh_loaded = true ;
Z_Free ( s ) ;
}
// read dehacked lump in a wad (there is special trick for for deh
// file that are converted to wad in w_wad.c)
2019-02-03 10:05:22 +00:00
void DEH_LoadDehackedLumpPwad ( UINT16 wad , UINT16 lump , boolean mainfile )
2014-03-15 16:59:03 +00:00
{
MYFILE f ;
f . wad = wad ;
f . size = W_LumpLengthPwad ( wad , lump ) ;
f . data = Z_Malloc ( f . size + 1 , PU_STATIC , NULL ) ;
W_ReadLumpPwad ( wad , lump , f . data ) ;
f . curpos = f . data ;
f . data [ f . size ] = 0 ;
2019-02-03 10:05:22 +00:00
DEH_LoadDehackedFile ( & f , mainfile ) ;
2014-03-15 16:59:03 +00:00
Z_Free ( f . data ) ;
}
void DEH_LoadDehackedLump ( lumpnum_t lumpnum )
{
2019-02-03 10:05:22 +00:00
DEH_LoadDehackedLumpPwad ( WADFILENUM ( lumpnum ) , LUMPNUM ( lumpnum ) , false ) ;
2014-03-15 16:59:03 +00:00
}
////////////////////////////////////////////////////////////////////////////////
// CRAZY LIST OF STATE NAMES AND ALL FROM HERE DOWN
// TODO: Make this all a seperate file or something, like part of info.c??
// TODO: Read the list from a text lump in a WAD as necessary instead
// or something, don't just keep it all in memory like this.
// TODO: Make the lists public so we can start using actual mobj
// and state names in warning and error messages! :D
// RegEx to generate this from info.h: ^\tS_([^,]+), --> \t"S_\1",
// I am leaving the prefixes solely for clarity to programmers,
// because sadly no one remembers this place while searching for full state names.
static const char * const STATE_LIST [ ] = { // array length left dynamic for sanity testing later.
" S_NULL " ,
" S_UNKNOWN " ,
" S_INVISIBLE " , // state for invisible sprite
" S_SPAWNSTATE " ,
" S_SEESTATE " ,
" S_MELEESTATE " ,
" S_MISSILESTATE " ,
" S_DEATHSTATE " ,
" S_XDEATHSTATE " ,
" S_RAISESTATE " ,
// Thok
" S_THOK " ,
2015-01-22 16:50:01 +00:00
// Player
2014-03-15 16:59:03 +00:00
" S_PLAY_STND " ,
2015-01-22 16:50:01 +00:00
" S_PLAY_WAIT " ,
2015-01-22 15:23:45 +00:00
" S_PLAY_WALK " ,
2017-09-09 21:12:23 +00:00
" S_PLAY_SKID " ,
2015-01-22 16:50:01 +00:00
" S_PLAY_RUN " ,
2017-03-11 02:09:01 +00:00
" S_PLAY_DASH " ,
2015-01-22 16:50:01 +00:00
" S_PLAY_PAIN " ,
2017-03-11 02:09:01 +00:00
" S_PLAY_STUN " ,
2015-01-22 16:50:01 +00:00
" S_PLAY_DEAD " ,
2015-05-29 04:56:02 +00:00
" S_PLAY_DRWN " ,
2017-03-11 02:09:01 +00:00
" S_PLAY_ROLL " ,
2014-03-15 16:59:03 +00:00
" S_PLAY_GASP " ,
2015-01-22 16:50:01 +00:00
" S_PLAY_JUMP " ,
2016-01-14 14:35:10 +00:00
" S_PLAY_SPRING " ,
2015-01-22 16:50:01 +00:00
" S_PLAY_FALL " ,
" S_PLAY_EDGE " ,
" S_PLAY_RIDE " ,
2017-03-21 00:54:47 +00:00
// CA2_SPINDASH
" S_PLAY_SPINDASH " ,
2016-07-13 17:18:18 +00:00
// CA_FLY/SWIM
2015-01-22 16:50:01 +00:00
" S_PLAY_FLY " ,
2016-07-13 17:18:18 +00:00
" S_PLAY_SWIM " ,
2015-01-22 16:50:01 +00:00
" S_PLAY_FLY_TIRED " ,
// CA_GLIDEANDCLIMB
" S_PLAY_GLIDE " ,
2019-09-23 18:17:20 +00:00
" S_PLAY_GLIDE_LANDING " ,
2015-01-22 16:50:01 +00:00
" S_PLAY_CLING " ,
" S_PLAY_CLIMB " ,
2016-12-24 00:11:54 +00:00
// CA_FLOAT/CA_SLOWFALL
" S_PLAY_FLOAT " ,
" S_PLAY_FLOAT_RUN " ,
2016-12-23 17:31:07 +00:00
// CA_BOUNCE
" S_PLAY_BOUNCE " ,
" S_PLAY_BOUNCE_LANDING " ,
2017-03-21 00:54:47 +00:00
// CA2_GUNSLINGER
" S_PLAY_FIRE " ,
2017-03-21 16:04:49 +00:00
" S_PLAY_FIRE_FINISH " ,
2017-03-21 00:54:47 +00:00
2016-07-16 12:55:12 +00:00
// CA_TWINSPIN
" S_PLAY_TWINSPIN " ,
2016-07-17 20:31:15 +00:00
// CA2_MELEE
" S_PLAY_MELEE " ,
" S_PLAY_MELEE_FINISH " ,
2017-03-19 16:48:35 +00:00
" S_PLAY_MELEE_LANDING " ,
2016-07-17 20:31:15 +00:00
2015-01-22 16:50:01 +00:00
// SF_SUPER
2017-10-04 16:45:03 +00:00
" S_PLAY_SUPER_TRANS1 " ,
" S_PLAY_SUPER_TRANS2 " ,
" S_PLAY_SUPER_TRANS3 " ,
" S_PLAY_SUPER_TRANS4 " ,
" S_PLAY_SUPER_TRANS5 " ,
" S_PLAY_SUPER_TRANS6 " , // This has special significance in the code. If you add more frames, search for it and make the appropriate changes.
2014-03-15 16:59:03 +00:00
// technically the player goes here but it's an infinite tic state
" S_OBJPLACE_DUMMY " ,
// 1-Up Box Sprites (uses player sprite)
" S_PLAY_BOX1 " ,
" S_PLAY_BOX2 " ,
" S_PLAY_ICON1 " ,
" S_PLAY_ICON2 " ,
" S_PLAY_ICON3 " ,
// Level end sign (uses player sprite)
" S_PLAY_SIGN " ,
2016-08-12 01:57:37 +00:00
// NiGHTS character (uses player sprite)
2017-10-04 16:45:03 +00:00
" S_PLAY_NIGHTS_TRANS1 " ,
2016-08-12 01:57:37 +00:00
" S_PLAY_NIGHTS_TRANS2 " ,
" S_PLAY_NIGHTS_TRANS3 " ,
" S_PLAY_NIGHTS_TRANS4 " ,
" S_PLAY_NIGHTS_TRANS5 " ,
" S_PLAY_NIGHTS_TRANS6 " ,
" S_PLAY_NIGHTS_STAND " ,
" S_PLAY_NIGHTS_FLOAT " ,
2017-03-11 17:14:39 +00:00
" S_PLAY_NIGHTS_STUN " ,
2016-08-12 01:57:37 +00:00
" S_PLAY_NIGHTS_PULL " ,
" S_PLAY_NIGHTS_ATTACK " ,
" S_PLAY_NIGHTS_FLY0 " ,
" S_PLAY_NIGHTS_DRILL0 " ,
" S_PLAY_NIGHTS_FLY1 " ,
" S_PLAY_NIGHTS_DRILL1 " ,
" S_PLAY_NIGHTS_FLY2 " ,
" S_PLAY_NIGHTS_DRILL2 " ,
" S_PLAY_NIGHTS_FLY3 " ,
" S_PLAY_NIGHTS_DRILL3 " ,
" S_PLAY_NIGHTS_FLY4 " ,
" S_PLAY_NIGHTS_DRILL4 " ,
" S_PLAY_NIGHTS_FLY5 " ,
" S_PLAY_NIGHTS_DRILL5 " ,
" S_PLAY_NIGHTS_FLY6 " ,
" S_PLAY_NIGHTS_DRILL6 " ,
" S_PLAY_NIGHTS_FLY7 " ,
" S_PLAY_NIGHTS_DRILL7 " ,
" S_PLAY_NIGHTS_FLY8 " ,
" S_PLAY_NIGHTS_DRILL8 " ,
" S_PLAY_NIGHTS_FLY9 " ,
" S_PLAY_NIGHTS_DRILL9 " ,
" S_PLAY_NIGHTS_FLYA " ,
" S_PLAY_NIGHTS_DRILLA " ,
" S_PLAY_NIGHTS_FLYB " ,
" S_PLAY_NIGHTS_DRILLB " ,
" S_PLAY_NIGHTS_FLYC " ,
" S_PLAY_NIGHTS_DRILLC " ,
2017-10-03 17:18:18 +00:00
// c:
" S_TAILSOVERLAY_STAND " ,
" S_TAILSOVERLAY_0DEGREES " ,
" S_TAILSOVERLAY_PLUS30DEGREES " ,
" S_TAILSOVERLAY_PLUS60DEGREES " ,
" S_TAILSOVERLAY_MINUS30DEGREES " ,
" S_TAILSOVERLAY_MINUS60DEGREES " ,
" S_TAILSOVERLAY_RUN " ,
" S_TAILSOVERLAY_FLY " ,
" S_TAILSOVERLAY_TIRE " ,
" S_TAILSOVERLAY_PAIN " ,
" S_TAILSOVERLAY_GASP " ,
" S_TAILSOVERLAY_EDGE " ,
2019-10-23 04:35:17 +00:00
// [:
" S_JETFUMEFLASH " ,
2014-03-15 16:59:03 +00:00
// Blue Crawla
" S_POSS_STND " ,
" S_POSS_RUN1 " ,
" S_POSS_RUN2 " ,
" S_POSS_RUN3 " ,
" S_POSS_RUN4 " ,
" S_POSS_RUN5 " ,
" S_POSS_RUN6 " ,
// Red Crawla
" S_SPOS_STND " ,
" S_SPOS_RUN1 " ,
" S_SPOS_RUN2 " ,
" S_SPOS_RUN3 " ,
" S_SPOS_RUN4 " ,
" S_SPOS_RUN5 " ,
" S_SPOS_RUN6 " ,
// Greenflower Fish
" S_FISH1 " ,
" S_FISH2 " ,
" S_FISH3 " ,
" S_FISH4 " ,
// Buzz (Gold)
" S_BUZZLOOK1 " ,
" S_BUZZLOOK2 " ,
" S_BUZZFLY1 " ,
" S_BUZZFLY2 " ,
// Buzz (Red)
" S_RBUZZLOOK1 " ,
" S_RBUZZLOOK2 " ,
" S_RBUZZFLY1 " ,
" S_RBUZZFLY2 " ,
// Jetty-Syn Bomber
" S_JETBLOOK1 " ,
" S_JETBLOOK2 " ,
" S_JETBZOOM1 " ,
" S_JETBZOOM2 " ,
// Jetty-Syn Gunner
" S_JETGLOOK1 " ,
" S_JETGLOOK2 " ,
" S_JETGZOOM1 " ,
" S_JETGZOOM2 " ,
" S_JETGSHOOT1 " ,
" S_JETGSHOOT2 " ,
// Crawla Commander
" S_CCOMMAND1 " ,
" S_CCOMMAND2 " ,
" S_CCOMMAND3 " ,
" S_CCOMMAND4 " ,
// Deton
" S_DETON1 " ,
" S_DETON2 " ,
" S_DETON3 " ,
" S_DETON4 " ,
" S_DETON5 " ,
" S_DETON6 " ,
" S_DETON7 " ,
" S_DETON8 " ,
" S_DETON9 " ,
" S_DETON10 " ,
" S_DETON11 " ,
" S_DETON12 " ,
" S_DETON13 " ,
" S_DETON14 " ,
" S_DETON15 " ,
// Skim Mine Dropper
" S_SKIM1 " ,
" S_SKIM2 " ,
" S_SKIM3 " ,
" S_SKIM4 " ,
// THZ Turret
" S_TURRET " ,
" S_TURRETFIRE " ,
" S_TURRETSHOCK1 " ,
" S_TURRETSHOCK2 " ,
" S_TURRETSHOCK3 " ,
" S_TURRETSHOCK4 " ,
" S_TURRETSHOCK5 " ,
" S_TURRETSHOCK6 " ,
" S_TURRETSHOCK7 " ,
" S_TURRETSHOCK8 " ,
" S_TURRETSHOCK9 " ,
// Popup Turret
" S_TURRETLOOK " ,
" S_TURRETSEE " ,
" S_TURRETPOPUP1 " ,
" S_TURRETPOPUP2 " ,
" S_TURRETPOPUP3 " ,
" S_TURRETPOPUP4 " ,
" S_TURRETPOPUP5 " ,
" S_TURRETPOPUP6 " ,
" S_TURRETPOPUP7 " ,
" S_TURRETPOPUP8 " ,
" S_TURRETSHOOT " ,
" S_TURRETPOPDOWN1 " ,
" S_TURRETPOPDOWN2 " ,
" S_TURRETPOPDOWN3 " ,
" S_TURRETPOPDOWN4 " ,
" S_TURRETPOPDOWN5 " ,
" S_TURRETPOPDOWN6 " ,
" S_TURRETPOPDOWN7 " ,
" S_TURRETPOPDOWN8 " ,
2018-05-13 13:09:20 +00:00
// Spincushion
" S_SPINCUSHION_LOOK " ,
" S_SPINCUSHION_CHASE1 " ,
" S_SPINCUSHION_CHASE2 " ,
" S_SPINCUSHION_CHASE3 " ,
" S_SPINCUSHION_CHASE4 " ,
" S_SPINCUSHION_AIM1 " ,
" S_SPINCUSHION_AIM2 " ,
" S_SPINCUSHION_AIM3 " ,
" S_SPINCUSHION_AIM4 " ,
" S_SPINCUSHION_AIM5 " ,
" S_SPINCUSHION_SPIN1 " ,
" S_SPINCUSHION_SPIN2 " ,
" S_SPINCUSHION_SPIN3 " ,
" S_SPINCUSHION_SPIN4 " ,
" S_SPINCUSHION_STOP1 " ,
" S_SPINCUSHION_STOP2 " ,
" S_SPINCUSHION_STOP3 " ,
" S_SPINCUSHION_STOP4 " ,
2014-03-15 16:59:03 +00:00
2018-05-14 00:19:24 +00:00
// Crushstacean
" S_CRUSHSTACEAN_ROAM1 " ,
" S_CRUSHSTACEAN_ROAM2 " ,
" S_CRUSHSTACEAN_ROAM3 " ,
" S_CRUSHSTACEAN_ROAM4 " ,
" S_CRUSHSTACEAN_ROAMPAUSE " ,
" S_CRUSHSTACEAN_PUNCH1 " ,
" S_CRUSHSTACEAN_PUNCH2 " ,
" S_CRUSHCLAW_AIM " ,
" S_CRUSHCLAW_OUT " ,
" S_CRUSHCLAW_STAY " ,
" S_CRUSHCLAW_IN " ,
" S_CRUSHCLAW_WAIT " ,
" S_CRUSHCHAIN " ,
2014-03-15 16:59:03 +00:00
* New object types!
* Red and yellow Boost panels!
* Added because SUBARASHII and KIMOKAWAIII had several levels using them, and I wanted to make them look better.
* https://cdn.discordapp.com/attachments/359091121789468672/634486669202161674/srb20015.gif
* Uses the mapthingnums of Glaber's SOC resource boosters, but absolutely nothing else - not even the magnitudes.
* Apply MF_AMBUSH to force the player into a spin - even if they don't have a spin ability!
* Banpyura!
* A Crushstacean with a spring instead of a crushclaw.
* https://cdn.discordapp.com/attachments/428262628893261828/634432099306176512/srb20019.gif
* Wanted this for a while, finally added it.
* Improved springs.
* Add pw_noautobrake to disable autobrake for half a second when touching yellow horizontal springs, and a second when touching red ones, even on the ground.
* Add pw_justsprung to disable directionchar for a few tics while touching any springs with a horizontal component to their velocity.
* Add the diagonal spring flag options Red and Yellow Diagonal Springs have to the Blue Diagonal Spring as well.
* Started but decided against a tip of the hat to the CD spring spin, hidden behind #define SPRINGSPIN.
* Make directionchar "lag behind" a little bit in waterslides.
* Improved flame jets.
* They now use new sprites for having their flames move upwards and sideways, instead of having them always face downwards like in 2.1!
* Fixed a mixed declaration and code error in A_RolloutRock. (Sorry Lach!)
* Make the Amy Cameo only spawn in SP, Record Attack, or Co-op unless it's the Clone Mode.
* Improved ZB config.
* Add above new types.
* Add Blue Diagonal Spring, which existed in the source but not the config.
* Re-order enemies in ZB config by zone (but keep them in the Enemies section only).
2019-10-17 20:50:26 +00:00
// Banpyura
" S_BANPYURA_ROAM1 " ,
" S_BANPYURA_ROAM2 " ,
" S_BANPYURA_ROAM3 " ,
" S_BANPYURA_ROAM4 " ,
" S_BANPYURA_ROAMPAUSE " ,
" S_CDIAG1 " ,
" S_CDIAG2 " ,
" S_CDIAG3 " ,
" S_CDIAG4 " ,
" S_CDIAG5 " ,
" S_CDIAG6 " ,
" S_CDIAG7 " ,
" S_CDIAG8 " ,
2014-03-15 16:59:03 +00:00
// Jet Jaw
" S_JETJAW_ROAM1 " ,
" S_JETJAW_ROAM2 " ,
" S_JETJAW_ROAM3 " ,
" S_JETJAW_ROAM4 " ,
" S_JETJAW_ROAM5 " ,
" S_JETJAW_ROAM6 " ,
" S_JETJAW_ROAM7 " ,
" S_JETJAW_ROAM8 " ,
" S_JETJAW_CHOMP1 " ,
" S_JETJAW_CHOMP2 " ,
" S_JETJAW_CHOMP3 " ,
" S_JETJAW_CHOMP4 " ,
" S_JETJAW_CHOMP5 " ,
" S_JETJAW_CHOMP6 " ,
" S_JETJAW_CHOMP7 " ,
" S_JETJAW_CHOMP8 " ,
" S_JETJAW_CHOMP9 " ,
" S_JETJAW_CHOMP10 " ,
" S_JETJAW_CHOMP11 " ,
" S_JETJAW_CHOMP12 " ,
" S_JETJAW_CHOMP13 " ,
" S_JETJAW_CHOMP14 " ,
" S_JETJAW_CHOMP15 " ,
" S_JETJAW_CHOMP16 " ,
// Snailer
" S_SNAILER1 " ,
// Vulture
" S_VULTURE_STND " ,
2019-06-10 14:09:15 +00:00
" S_VULTURE_DRIFT " ,
2014-03-15 16:59:03 +00:00
" S_VULTURE_ZOOM1 " ,
" S_VULTURE_ZOOM2 " ,
2019-06-10 14:09:15 +00:00
" S_VULTURE_STUNNED " ,
2014-03-15 16:59:03 +00:00
// Pointy
" S_POINTY1 " ,
" S_POINTYBALL1 " ,
// Robo-Hood
" S_ROBOHOOD_LOOK " ,
2018-05-30 22:16:57 +00:00
" S_ROBOHOOD_STAND " ,
" S_ROBOHOOD_FIRE1 " ,
" S_ROBOHOOD_FIRE2 " ,
" S_ROBOHOOD_JUMP1 " ,
2014-03-15 16:59:03 +00:00
" S_ROBOHOOD_JUMP2 " ,
2018-05-30 22:16:57 +00:00
" S_ROBOHOOD_JUMP3 " ,
2014-03-15 16:59:03 +00:00
// CastleBot FaceStabber
" S_FACESTABBER_STND1 " ,
" S_FACESTABBER_STND2 " ,
" S_FACESTABBER_STND3 " ,
" S_FACESTABBER_STND4 " ,
" S_FACESTABBER_STND5 " ,
" S_FACESTABBER_STND6 " ,
" S_FACESTABBER_CHARGE1 " ,
" S_FACESTABBER_CHARGE2 " ,
" S_FACESTABBER_CHARGE3 " ,
" S_FACESTABBER_CHARGE4 " ,
2018-05-04 20:30:15 +00:00
" S_FACESTABBER_PAIN " ,
" S_FACESTABBER_DIE1 " ,
" S_FACESTABBER_DIE2 " ,
" S_FACESTABBER_DIE3 " ,
2018-05-24 00:40:57 +00:00
" S_FACESTABBERSPEAR " ,
2014-03-15 16:59:03 +00:00
// Egg Guard
" S_EGGGUARD_STND " ,
" S_EGGGUARD_WALK1 " ,
" S_EGGGUARD_WALK2 " ,
" S_EGGGUARD_WALK3 " ,
" S_EGGGUARD_WALK4 " ,
" S_EGGGUARD_MAD1 " ,
" S_EGGGUARD_MAD2 " ,
" S_EGGGUARD_MAD3 " ,
" S_EGGGUARD_RUN1 " ,
" S_EGGGUARD_RUN2 " ,
" S_EGGGUARD_RUN3 " ,
" S_EGGGUARD_RUN4 " ,
// Egg Shield for Egg Guard
" S_EGGSHIELD " ,
2018-06-03 21:41:54 +00:00
" S_EGGSHIELDBREAK " ,
2014-03-15 16:59:03 +00:00
// Green Snapper
2019-06-10 18:32:50 +00:00
" S_SNAPPER_SPAWN " ,
" S_SNAPPER_SPAWN2 " ,
2014-03-15 16:59:03 +00:00
" S_GSNAPPER_STND " ,
" S_GSNAPPER1 " ,
" S_GSNAPPER2 " ,
" S_GSNAPPER3 " ,
" S_GSNAPPER4 " ,
2019-06-10 18:32:50 +00:00
" S_SNAPPER_XPLD " ,
" S_SNAPPER_LEG " ,
" S_SNAPPER_LEGRAISE " ,
" S_SNAPPER_HEAD " ,
2014-03-15 16:59:03 +00:00
// Minus
2019-06-10 15:42:37 +00:00
" S_MINUS_INIT " ,
2014-03-15 16:59:03 +00:00
" S_MINUS_STND " ,
2019-06-10 15:42:37 +00:00
" S_MINUS_DIGGING1 " ,
" S_MINUS_DIGGING2 " ,
" S_MINUS_DIGGING3 " ,
" S_MINUS_DIGGING4 " ,
" S_MINUS_BURST0 " ,
" S_MINUS_BURST1 " ,
" S_MINUS_BURST2 " ,
" S_MINUS_BURST3 " ,
" S_MINUS_BURST4 " ,
" S_MINUS_BURST5 " ,
2014-03-15 16:59:03 +00:00
" S_MINUS_POPUP " ,
" S_MINUS_UPWARD1 " ,
" S_MINUS_UPWARD2 " ,
" S_MINUS_UPWARD3 " ,
" S_MINUS_UPWARD4 " ,
" S_MINUS_UPWARD5 " ,
" S_MINUS_UPWARD6 " ,
" S_MINUS_UPWARD7 " ,
" S_MINUS_UPWARD8 " ,
" S_MINUS_DOWNWARD1 " ,
" S_MINUS_DOWNWARD2 " ,
" S_MINUS_DOWNWARD3 " ,
" S_MINUS_DOWNWARD4 " ,
" S_MINUS_DOWNWARD5 " ,
" S_MINUS_DOWNWARD6 " ,
" S_MINUS_DOWNWARD7 " ,
" S_MINUS_DOWNWARD8 " ,
2019-06-10 15:42:37 +00:00
// Minus dirt
" S_MINUSDIRT1 " ,
" S_MINUSDIRT2 " ,
" S_MINUSDIRT3 " ,
" S_MINUSDIRT4 " ,
" S_MINUSDIRT5 " ,
" S_MINUSDIRT6 " ,
" S_MINUSDIRT7 " ,
2014-03-15 16:59:03 +00:00
// Spring Shell
" S_SSHELL_STND " ,
" S_SSHELL_RUN1 " ,
" S_SSHELL_RUN2 " ,
" S_SSHELL_RUN3 " ,
" S_SSHELL_RUN4 " ,
" S_SSHELL_SPRING1 " ,
" S_SSHELL_SPRING2 " ,
" S_SSHELL_SPRING3 " ,
" S_SSHELL_SPRING4 " ,
// Spring Shell (yellow)
" S_YSHELL_STND " ,
" S_YSHELL_RUN1 " ,
" S_YSHELL_RUN2 " ,
" S_YSHELL_RUN3 " ,
" S_YSHELL_RUN4 " ,
" S_YSHELL_SPRING1 " ,
" S_YSHELL_SPRING2 " ,
" S_YSHELL_SPRING3 " ,
" S_YSHELL_SPRING4 " ,
// Unidus
" S_UNIDUS_STND " ,
" S_UNIDUS_RUN " ,
" S_UNIDUS_BALL " ,
2019-06-10 11:58:16 +00:00
// Canarivore
" S_CANARIVORE_LOOK " ,
" S_CANARIVORE_AWAKEN1 " ,
" S_CANARIVORE_AWAKEN2 " ,
" S_CANARIVORE_AWAKEN3 " ,
" S_CANARIVORE_GAS1 " ,
" S_CANARIVORE_GAS2 " ,
" S_CANARIVORE_GAS3 " ,
" S_CANARIVORE_GAS4 " ,
" S_CANARIVORE_GAS5 " ,
" S_CANARIVORE_GASREPEAT " ,
" S_CANARIVORE_CLOSE1 " ,
" S_CANARIVORE_CLOSE2 " ,
" S_CANARIVOREGAS_1 " ,
" S_CANARIVOREGAS_2 " ,
" S_CANARIVOREGAS_3 " ,
" S_CANARIVOREGAS_4 " ,
" S_CANARIVOREGAS_5 " ,
" S_CANARIVOREGAS_6 " ,
" S_CANARIVOREGAS_7 " ,
" S_CANARIVOREGAS_8 " ,
2019-08-30 06:17:25 +00:00
// Pyre Fly
" S_PYREFLY_FLY " ,
2019-10-07 20:23:52 +00:00
" S_PYREFLY_BURN " ,
2019-08-30 06:17:25 +00:00
" S_PYREFIRE1 " ,
" S_PYREFIRE2 " ,
2019-09-29 08:39:09 +00:00
// Pterabyte
" S_PTERABYTESPAWNER " ,
" S_PTERABYTEWAYPOINT " ,
" S_PTERABYTE_FLY1 " ,
" S_PTERABYTE_FLY2 " ,
" S_PTERABYTE_FLY3 " ,
" S_PTERABYTE_FLY4 " ,
" S_PTERABYTE_SWOOPDOWN " ,
" S_PTERABYTE_SWOOPUP " ,
2014-03-15 16:59:03 +00:00
// Boss Explosion
2018-06-05 16:22:28 +00:00
" S_BOSSEXPLODE " ,
2014-03-15 16:59:03 +00:00
// S3&K Boss Explosion
" S_SONIC3KBOSSEXPLOSION1 " ,
" S_SONIC3KBOSSEXPLOSION2 " ,
" S_SONIC3KBOSSEXPLOSION3 " ,
" S_SONIC3KBOSSEXPLOSION4 " ,
" S_SONIC3KBOSSEXPLOSION5 " ,
" S_SONIC3KBOSSEXPLOSION6 " ,
" S_JETFUME1 " ,
// Boss 1
" S_EGGMOBILE_STND " ,
2019-08-30 18:19:54 +00:00
" S_EGGMOBILE_ROFL " ,
2014-03-15 16:59:03 +00:00
" S_EGGMOBILE_LATK1 " ,
" S_EGGMOBILE_LATK2 " ,
" S_EGGMOBILE_LATK3 " ,
" S_EGGMOBILE_LATK4 " ,
" S_EGGMOBILE_LATK5 " ,
" S_EGGMOBILE_LATK6 " ,
" S_EGGMOBILE_LATK7 " ,
" S_EGGMOBILE_LATK8 " ,
" S_EGGMOBILE_LATK9 " ,
" S_EGGMOBILE_RATK1 " ,
" S_EGGMOBILE_RATK2 " ,
" S_EGGMOBILE_RATK3 " ,
" S_EGGMOBILE_RATK4 " ,
" S_EGGMOBILE_RATK5 " ,
" S_EGGMOBILE_RATK6 " ,
" S_EGGMOBILE_RATK7 " ,
" S_EGGMOBILE_RATK8 " ,
" S_EGGMOBILE_RATK9 " ,
" S_EGGMOBILE_PANIC1 " ,
" S_EGGMOBILE_PANIC2 " ,
" S_EGGMOBILE_PANIC3 " ,
" S_EGGMOBILE_PANIC4 " ,
" S_EGGMOBILE_PANIC5 " ,
" S_EGGMOBILE_PANIC6 " ,
" S_EGGMOBILE_PANIC7 " ,
2019-08-30 18:19:54 +00:00
" S_EGGMOBILE_PANIC8 " ,
" S_EGGMOBILE_PANIC9 " ,
" S_EGGMOBILE_PANIC10 " ,
" S_EGGMOBILE_PANIC11 " ,
" S_EGGMOBILE_PANIC12 " ,
" S_EGGMOBILE_PANIC13 " ,
" S_EGGMOBILE_PANIC14 " ,
" S_EGGMOBILE_PANIC15 " ,
2014-03-15 16:59:03 +00:00
" S_EGGMOBILE_PAIN " ,
" S_EGGMOBILE_PAIN2 " ,
" S_EGGMOBILE_DIE1 " ,
" S_EGGMOBILE_DIE2 " ,
" S_EGGMOBILE_DIE3 " ,
" S_EGGMOBILE_DIE4 " ,
" S_EGGMOBILE_FLEE1 " ,
" S_EGGMOBILE_FLEE2 " ,
" S_EGGMOBILE_BALL " ,
" S_EGGMOBILE_TARGET " ,
2019-08-30 18:19:54 +00:00
" S_BOSSEGLZ1 " ,
" S_BOSSEGLZ2 " ,
2014-03-15 16:59:03 +00:00
// Boss 2
" S_EGGMOBILE2_STND " ,
" S_EGGMOBILE2_POGO1 " ,
" S_EGGMOBILE2_POGO2 " ,
" S_EGGMOBILE2_POGO3 " ,
" S_EGGMOBILE2_POGO4 " ,
" S_EGGMOBILE2_POGO5 " ,
" S_EGGMOBILE2_POGO6 " ,
" S_EGGMOBILE2_POGO7 " ,
" S_EGGMOBILE2_PAIN " ,
" S_EGGMOBILE2_PAIN2 " ,
" S_EGGMOBILE2_DIE1 " ,
" S_EGGMOBILE2_DIE2 " ,
" S_EGGMOBILE2_DIE3 " ,
" S_EGGMOBILE2_DIE4 " ,
" S_EGGMOBILE2_FLEE1 " ,
" S_EGGMOBILE2_FLEE2 " ,
" S_BOSSTANK1 " ,
" S_BOSSTANK2 " ,
" S_BOSSSPIGOT " ,
// Boss 2 Goop
" S_GOOP1 " ,
" S_GOOP2 " ,
" S_GOOP3 " ,
2017-01-21 01:09:39 +00:00
" S_GOOPTRAIL " ,
2014-03-15 16:59:03 +00:00
// Boss 3
" S_EGGMOBILE3_STND " ,
2019-08-30 18:19:54 +00:00
" S_EGGMOBILE3_SHOCK " ,
2014-03-15 16:59:03 +00:00
" S_EGGMOBILE3_ATK1 " ,
" S_EGGMOBILE3_ATK2 " ,
" S_EGGMOBILE3_ATK3A " ,
" S_EGGMOBILE3_ATK3B " ,
" S_EGGMOBILE3_ATK3C " ,
" S_EGGMOBILE3_ATK3D " ,
" S_EGGMOBILE3_ATK4 " ,
" S_EGGMOBILE3_ATK5 " ,
2019-08-30 18:19:54 +00:00
" S_EGGMOBILE3_ROFL " ,
2014-03-15 16:59:03 +00:00
" S_EGGMOBILE3_PAIN " ,
" S_EGGMOBILE3_PAIN2 " ,
" S_EGGMOBILE3_DIE1 " ,
" S_EGGMOBILE3_DIE2 " ,
" S_EGGMOBILE3_DIE3 " ,
" S_EGGMOBILE3_DIE4 " ,
" S_EGGMOBILE3_FLEE1 " ,
" S_EGGMOBILE3_FLEE2 " ,
// Boss 3 pinch
" S_FAKEMOBILE_INIT " ,
" S_FAKEMOBILE " ,
" S_FAKEMOBILE_ATK1 " ,
" S_FAKEMOBILE_ATK2 " ,
" S_FAKEMOBILE_ATK3A " ,
" S_FAKEMOBILE_ATK3B " ,
" S_FAKEMOBILE_ATK3C " ,
" S_FAKEMOBILE_ATK3D " ,
2019-06-29 13:10:32 +00:00
" S_FAKEMOBILE_DIE1 " ,
" S_FAKEMOBILE_DIE2 " ,
2014-03-15 16:59:03 +00:00
2019-08-30 18:19:54 +00:00
" S_BOSSSEBH1 " ,
" S_BOSSSEBH2 " ,
2019-09-25 21:27:51 +00:00
// Boss 3 Shockwave
" S_SHOCKWAVE1 " ,
" S_SHOCKWAVE2 " ,
2014-03-15 16:59:03 +00:00
// Boss 4
" S_EGGMOBILE4_STND " ,
" S_EGGMOBILE4_LATK1 " ,
" S_EGGMOBILE4_LATK2 " ,
" S_EGGMOBILE4_LATK3 " ,
" S_EGGMOBILE4_LATK4 " ,
" S_EGGMOBILE4_LATK5 " ,
" S_EGGMOBILE4_LATK6 " ,
" S_EGGMOBILE4_RATK1 " ,
" S_EGGMOBILE4_RATK2 " ,
" S_EGGMOBILE4_RATK3 " ,
" S_EGGMOBILE4_RATK4 " ,
" S_EGGMOBILE4_RATK5 " ,
" S_EGGMOBILE4_RATK6 " ,
" S_EGGMOBILE4_RAISE1 " ,
" S_EGGMOBILE4_RAISE2 " ,
2019-07-08 12:26:40 +00:00
" S_EGGMOBILE4_PAIN1 " ,
" S_EGGMOBILE4_PAIN2 " ,
2014-03-15 16:59:03 +00:00
" S_EGGMOBILE4_DIE1 " ,
" S_EGGMOBILE4_DIE2 " ,
" S_EGGMOBILE4_DIE3 " ,
" S_EGGMOBILE4_DIE4 " ,
" S_EGGMOBILE4_FLEE1 " ,
" S_EGGMOBILE4_FLEE2 " ,
" S_EGGMOBILE4_MACE " ,
2019-07-08 12:26:40 +00:00
" S_EGGMOBILE4_MACE_DIE1 " ,
" S_EGGMOBILE4_MACE_DIE2 " ,
" S_EGGMOBILE4_MACE_DIE3 " ,
2014-03-15 16:59:03 +00:00
// Boss 4 jet flame
2019-07-08 12:26:40 +00:00
" S_JETFLAME " ,
// Boss 4 Spectator Eggrobo
" S_EGGROBO1_IDLE " ,
" S_EGGROBO1_BSLAP1 " ,
" S_EGGROBO2_BSLAP2 " ,
" S_EGGROBO1_PISSED " ,
// Boss 4 Spectator Eggrobo jet flame
" S_EGGROBOJET " ,
2014-03-15 16:59:03 +00:00
2019-05-02 17:01:18 +00:00
// Boss 5
2019-09-25 13:36:20 +00:00
" S_FANG_SETUP " ,
2019-09-26 16:06:29 +00:00
" S_FANG_INTRO0 " ,
2019-09-25 13:36:20 +00:00
" S_FANG_INTRO1 " ,
" S_FANG_INTRO2 " ,
" S_FANG_INTRO3 " ,
" S_FANG_INTRO4 " ,
" S_FANG_INTRO5 " ,
" S_FANG_INTRO6 " ,
" S_FANG_INTRO7 " ,
" S_FANG_INTRO8 " ,
" S_FANG_INTRO9 " ,
" S_FANG_INTRO10 " ,
" S_FANG_INTRO11 " ,
" S_FANG_INTRO12 " ,
2019-09-26 16:06:29 +00:00
" S_FANG_CLONE1 " ,
" S_FANG_CLONE2 " ,
" S_FANG_CLONE3 " ,
" S_FANG_CLONE4 " ,
2019-09-25 13:36:20 +00:00
" S_FANG_IDLE0 " ,
2019-05-02 17:01:18 +00:00
" S_FANG_IDLE1 " ,
" S_FANG_IDLE2 " ,
" S_FANG_IDLE3 " ,
" S_FANG_IDLE4 " ,
" S_FANG_IDLE5 " ,
" S_FANG_IDLE6 " ,
" S_FANG_IDLE7 " ,
" S_FANG_IDLE8 " ,
" S_FANG_PAIN1 " ,
" S_FANG_PAIN2 " ,
" S_FANG_PATHINGSTART1 " ,
" S_FANG_PATHINGSTART2 " ,
" S_FANG_PATHING " ,
" S_FANG_BOUNCE1 " ,
" S_FANG_BOUNCE2 " ,
" S_FANG_BOUNCE3 " ,
" S_FANG_BOUNCE4 " ,
" S_FANG_FALL1 " ,
" S_FANG_FALL2 " ,
" S_FANG_CHECKPATH1 " ,
" S_FANG_CHECKPATH2 " ,
" S_FANG_PATHINGCONT1 " ,
" S_FANG_PATHINGCONT2 " ,
" S_FANG_PATHINGCONT3 " ,
" S_FANG_SKID1 " ,
" S_FANG_SKID2 " ,
" S_FANG_SKID3 " ,
" S_FANG_CHOOSEATTACK " ,
" S_FANG_FIRESTART1 " ,
" S_FANG_FIRESTART2 " ,
" S_FANG_FIRE1 " ,
" S_FANG_FIRE2 " ,
" S_FANG_FIRE3 " ,
" S_FANG_FIRE4 " ,
" S_FANG_FIREREPEAT " ,
2019-08-13 18:41:04 +00:00
" S_FANG_LOBSHOT0 " ,
2019-05-02 17:01:18 +00:00
" S_FANG_LOBSHOT1 " ,
" S_FANG_LOBSHOT2 " ,
" S_FANG_WAIT1 " ,
" S_FANG_WAIT2 " ,
" S_FANG_WALLHIT " ,
" S_FANG_PINCHPATHINGSTART1 " ,
" S_FANG_PINCHPATHINGSTART2 " ,
" S_FANG_PINCHPATHING " ,
" S_FANG_PINCHBOUNCE1 " ,
" S_FANG_PINCHBOUNCE2 " ,
" S_FANG_PINCHBOUNCE3 " ,
" S_FANG_PINCHBOUNCE4 " ,
" S_FANG_PINCHFALL1 " ,
" S_FANG_PINCHFALL2 " ,
" S_FANG_PINCHSKID1 " ,
" S_FANG_PINCHSKID2 " ,
2019-08-13 18:41:04 +00:00
" S_FANG_PINCHLOBSHOT0 " ,
2019-05-02 17:01:18 +00:00
" S_FANG_PINCHLOBSHOT1 " ,
" S_FANG_PINCHLOBSHOT2 " ,
" S_FANG_PINCHLOBSHOT3 " ,
" S_FANG_PINCHLOBSHOT4 " ,
" S_FANG_DIE1 " ,
" S_FANG_DIE2 " ,
" S_FANG_DIE3 " ,
" S_FANG_DIE4 " ,
" S_FANG_DIE5 " ,
" S_FANG_DIE6 " ,
" S_FANG_DIE7 " ,
" S_FANG_DIE8 " ,
" S_FANG_FLEEPATHING1 " ,
" S_FANG_FLEEPATHING2 " ,
" S_FANG_FLEEBOUNCE1 " ,
" S_FANG_FLEEBOUNCE2 " ,
" S_FANG_KO " ,
2019-09-25 13:36:20 +00:00
" S_BROKENROBOTRANDOM " ,
" S_BROKENROBOTA " ,
" S_BROKENROBOTB " ,
" S_BROKENROBOTC " ,
" S_BROKENROBOTD " ,
" S_BROKENROBOTE " ,
" S_BROKENROBOTF " ,
" S_ALART1 " ,
" S_ALART2 " ,
2019-09-26 16:06:29 +00:00
" S_VWREF " ,
" S_VWREB " ,
" S_PROJECTORLIGHT1 " ,
" S_PROJECTORLIGHT2 " ,
" S_PROJECTORLIGHT3 " ,
" S_PROJECTORLIGHT4 " ,
" S_PROJECTORLIGHT5 " ,
2019-05-02 17:01:18 +00:00
" S_FBOMB1 " ,
" S_FBOMB2 " ,
2019-05-23 20:51:58 +00:00
" S_FBOMB_EXPL1 " ,
" S_FBOMB_EXPL2 " ,
" S_FBOMB_EXPL3 " ,
" S_FBOMB_EXPL4 " ,
" S_FBOMB_EXPL5 " ,
" S_FBOMB_EXPL6 " ,
" S_TNTDUST_1 " ,
" S_TNTDUST_2 " ,
" S_TNTDUST_3 " ,
" S_TNTDUST_4 " ,
" S_TNTDUST_5 " ,
" S_TNTDUST_6 " ,
" S_TNTDUST_7 " ,
" S_TNTDUST_8 " ,
2019-05-02 17:01:18 +00:00
" S_FSGNA " ,
" S_FSGNB " ,
" S_FSGNC " ,
2014-03-15 16:59:03 +00:00
// Black Eggman (Boss 7)
" S_BLACKEGG_STND " ,
" S_BLACKEGG_STND2 " ,
" S_BLACKEGG_WALK1 " ,
" S_BLACKEGG_WALK2 " ,
" S_BLACKEGG_WALK3 " ,
" S_BLACKEGG_WALK4 " ,
" S_BLACKEGG_WALK5 " ,
" S_BLACKEGG_WALK6 " ,
" S_BLACKEGG_SHOOT1 " ,
" S_BLACKEGG_SHOOT2 " ,
" S_BLACKEGG_PAIN1 " ,
" S_BLACKEGG_PAIN2 " ,
" S_BLACKEGG_PAIN3 " ,
" S_BLACKEGG_PAIN4 " ,
" S_BLACKEGG_PAIN5 " ,
" S_BLACKEGG_PAIN6 " ,
" S_BLACKEGG_PAIN7 " ,
" S_BLACKEGG_PAIN8 " ,
" S_BLACKEGG_PAIN9 " ,
" S_BLACKEGG_PAIN10 " ,
" S_BLACKEGG_PAIN11 " ,
" S_BLACKEGG_PAIN12 " ,
" S_BLACKEGG_PAIN13 " ,
" S_BLACKEGG_PAIN14 " ,
" S_BLACKEGG_PAIN15 " ,
" S_BLACKEGG_PAIN16 " ,
" S_BLACKEGG_PAIN17 " ,
" S_BLACKEGG_PAIN18 " ,
" S_BLACKEGG_PAIN19 " ,
" S_BLACKEGG_PAIN20 " ,
" S_BLACKEGG_PAIN21 " ,
" S_BLACKEGG_PAIN22 " ,
" S_BLACKEGG_PAIN23 " ,
" S_BLACKEGG_PAIN24 " ,
" S_BLACKEGG_PAIN25 " ,
" S_BLACKEGG_PAIN26 " ,
" S_BLACKEGG_PAIN27 " ,
" S_BLACKEGG_PAIN28 " ,
" S_BLACKEGG_PAIN29 " ,
" S_BLACKEGG_PAIN30 " ,
" S_BLACKEGG_PAIN31 " ,
" S_BLACKEGG_PAIN32 " ,
" S_BLACKEGG_PAIN33 " ,
" S_BLACKEGG_PAIN34 " ,
" S_BLACKEGG_PAIN35 " ,
" S_BLACKEGG_HITFACE1 " ,
" S_BLACKEGG_HITFACE2 " ,
" S_BLACKEGG_HITFACE3 " ,
" S_BLACKEGG_HITFACE4 " ,
" S_BLACKEGG_DIE1 " ,
" S_BLACKEGG_DIE2 " ,
" S_BLACKEGG_DIE3 " ,
" S_BLACKEGG_DIE4 " ,
" S_BLACKEGG_DIE5 " ,
" S_BLACKEGG_MISSILE1 " ,
" S_BLACKEGG_MISSILE2 " ,
" S_BLACKEGG_MISSILE3 " ,
" S_BLACKEGG_GOOP " ,
" S_BLACKEGG_JUMP1 " ,
" S_BLACKEGG_JUMP2 " ,
" S_BLACKEGG_DESTROYPLAT1 " ,
" S_BLACKEGG_DESTROYPLAT2 " ,
" S_BLACKEGG_DESTROYPLAT3 " ,
" S_BLACKEGG_HELPER " , // Collision helper
" S_BLACKEGG_GOOP1 " ,
" S_BLACKEGG_GOOP2 " ,
" S_BLACKEGG_GOOP3 " ,
" S_BLACKEGG_GOOP4 " ,
" S_BLACKEGG_GOOP5 " ,
" S_BLACKEGG_GOOP6 " ,
" S_BLACKEGG_GOOP7 " ,
" S_BLACKEGG_MISSILE " ,
// New Very-Last-Minute 2.1 Brak Eggman (Cy-Brak-demon)
" S_CYBRAKDEMON_IDLE " ,
" S_CYBRAKDEMON_WALK1 " ,
" S_CYBRAKDEMON_WALK2 " ,
" S_CYBRAKDEMON_WALK3 " ,
" S_CYBRAKDEMON_WALK4 " ,
" S_CYBRAKDEMON_WALK5 " ,
" S_CYBRAKDEMON_WALK6 " ,
" S_CYBRAKDEMON_CHOOSE_ATTACK1 " ,
" S_CYBRAKDEMON_MISSILE_ATTACK1 " , // Aim
" S_CYBRAKDEMON_MISSILE_ATTACK2 " , // Fire
" S_CYBRAKDEMON_MISSILE_ATTACK3 " , // Aim
" S_CYBRAKDEMON_MISSILE_ATTACK4 " , // Fire
" S_CYBRAKDEMON_MISSILE_ATTACK5 " , // Aim
" S_CYBRAKDEMON_MISSILE_ATTACK6 " , // Fire
" S_CYBRAKDEMON_FLAME_ATTACK1 " , // Reset
" S_CYBRAKDEMON_FLAME_ATTACK2 " , // Aim
" S_CYBRAKDEMON_FLAME_ATTACK3 " , // Fire
" S_CYBRAKDEMON_FLAME_ATTACK4 " , // Loop
" S_CYBRAKDEMON_CHOOSE_ATTACK2 " ,
" S_CYBRAKDEMON_VILE_ATTACK1 " ,
" S_CYBRAKDEMON_VILE_ATTACK2 " ,
" S_CYBRAKDEMON_VILE_ATTACK3 " ,
" S_CYBRAKDEMON_VILE_ATTACK4 " ,
" S_CYBRAKDEMON_VILE_ATTACK5 " ,
" S_CYBRAKDEMON_VILE_ATTACK6 " ,
" S_CYBRAKDEMON_NAPALM_ATTACK1 " ,
" S_CYBRAKDEMON_NAPALM_ATTACK2 " ,
" S_CYBRAKDEMON_NAPALM_ATTACK3 " ,
" S_CYBRAKDEMON_FINISH_ATTACK " , // If just attacked, remove MF2_FRET w/out going back to spawnstate
" S_CYBRAKDEMON_FINISH_ATTACK2 " , // Force a delay between attacks so you don't get bombarded with them back-to-back
" S_CYBRAKDEMON_PAIN1 " ,
" S_CYBRAKDEMON_PAIN2 " ,
" S_CYBRAKDEMON_PAIN3 " ,
" S_CYBRAKDEMON_DIE1 " ,
" S_CYBRAKDEMON_DIE2 " ,
" S_CYBRAKDEMON_DIE3 " ,
" S_CYBRAKDEMON_DIE4 " ,
" S_CYBRAKDEMON_DIE5 " ,
" S_CYBRAKDEMON_DIE6 " ,
" S_CYBRAKDEMON_DIE7 " ,
" S_CYBRAKDEMON_DIE8 " ,
" S_CYBRAKDEMON_DEINVINCIBLERIZE " ,
" S_CYBRAKDEMON_INVINCIBLERIZE " ,
" S_CYBRAKDEMONMISSILE " ,
" S_CYBRAKDEMONMISSILE_EXPLODE1 " ,
" S_CYBRAKDEMONMISSILE_EXPLODE2 " ,
" S_CYBRAKDEMONMISSILE_EXPLODE3 " ,
" S_CYBRAKDEMONFLAMESHOT_FLY1 " ,
" S_CYBRAKDEMONFLAMESHOT_FLY2 " ,
" S_CYBRAKDEMONFLAMESHOT_FLY3 " ,
" S_CYBRAKDEMONFLAMESHOT_DIE " ,
" S_CYBRAKDEMONFLAMEREST " ,
" S_CYBRAKDEMONELECTRICBARRIER_INIT1 " ,
" S_CYBRAKDEMONELECTRICBARRIER_INIT2 " ,
" S_CYBRAKDEMONELECTRICBARRIER_PLAYSOUND " ,
" S_CYBRAKDEMONELECTRICBARRIER1 " ,
" S_CYBRAKDEMONELECTRICBARRIER2 " ,
" S_CYBRAKDEMONELECTRICBARRIER3 " ,
" S_CYBRAKDEMONELECTRICBARRIER4 " ,
" S_CYBRAKDEMONELECTRICBARRIER5 " ,
" S_CYBRAKDEMONELECTRICBARRIER6 " ,
" S_CYBRAKDEMONELECTRICBARRIER7 " ,
" S_CYBRAKDEMONELECTRICBARRIER8 " ,
" S_CYBRAKDEMONELECTRICBARRIER9 " ,
" S_CYBRAKDEMONELECTRICBARRIER10 " ,
" S_CYBRAKDEMONELECTRICBARRIER11 " ,
" S_CYBRAKDEMONELECTRICBARRIER12 " ,
" S_CYBRAKDEMONELECTRICBARRIER13 " ,
" S_CYBRAKDEMONELECTRICBARRIER14 " ,
" S_CYBRAKDEMONELECTRICBARRIER15 " ,
" S_CYBRAKDEMONELECTRICBARRIER16 " ,
" S_CYBRAKDEMONELECTRICBARRIER17 " ,
" S_CYBRAKDEMONELECTRICBARRIER18 " ,
" S_CYBRAKDEMONELECTRICBARRIER19 " ,
" S_CYBRAKDEMONELECTRICBARRIER20 " ,
" S_CYBRAKDEMONELECTRICBARRIER21 " ,
" S_CYBRAKDEMONELECTRICBARRIER22 " ,
" S_CYBRAKDEMONELECTRICBARRIER23 " ,
" S_CYBRAKDEMONELECTRICBARRIER24 " ,
" S_CYBRAKDEMONELECTRICBARRIER_DIE1 " ,
" S_CYBRAKDEMONELECTRICBARRIER_DIE2 " ,
" S_CYBRAKDEMONELECTRICBARRIER_DIE3 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOMCHECK " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOMSUCCESS " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOMCHOOSE " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM1 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM2 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM3 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM4 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM5 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM6 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM7 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM8 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM9 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM10 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM11 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOM12 " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOMFAIL " ,
" S_CYBRAKDEMONELECTRICBARRIER_SPARK_RANDOMLOOP " ,
" S_CYBRAKDEMONELECTRICBARRIER_REVIVE1 " ,
" S_CYBRAKDEMONELECTRICBARRIER_REVIVE2 " ,
" S_CYBRAKDEMONELECTRICBARRIER_REVIVE3 " ,
" S_CYBRAKDEMONTARGETRETICULE1 " ,
" S_CYBRAKDEMONTARGETRETICULE2 " ,
" S_CYBRAKDEMONTARGETRETICULE3 " ,
" S_CYBRAKDEMONTARGETRETICULE4 " ,
" S_CYBRAKDEMONTARGETRETICULE5 " ,
" S_CYBRAKDEMONTARGETRETICULE6 " ,
" S_CYBRAKDEMONTARGETRETICULE7 " ,
" S_CYBRAKDEMONTARGETRETICULE8 " ,
" S_CYBRAKDEMONTARGETRETICULE9 " ,
" S_CYBRAKDEMONTARGETRETICULE10 " ,
" S_CYBRAKDEMONTARGETRETICULE11 " ,
" S_CYBRAKDEMONTARGETRETICULE12 " ,
" S_CYBRAKDEMONTARGETRETICULE13 " ,
" S_CYBRAKDEMONTARGETRETICULE14 " ,
2014-04-14 05:14:58 +00:00
" S_CYBRAKDEMONTARGETDOT " ,
2014-03-15 16:59:03 +00:00
" S_CYBRAKDEMONNAPALMBOMBLARGE_FLY1 " ,
" S_CYBRAKDEMONNAPALMBOMBLARGE_FLY2 " ,
" S_CYBRAKDEMONNAPALMBOMBLARGE_FLY3 " ,
" S_CYBRAKDEMONNAPALMBOMBLARGE_FLY4 " ,
" S_CYBRAKDEMONNAPALMBOMBLARGE_DIE1 " , // Explode
" S_CYBRAKDEMONNAPALMBOMBLARGE_DIE2 " , // Outer ring
" S_CYBRAKDEMONNAPALMBOMBLARGE_DIE3 " , // Center
" S_CYBRAKDEMONNAPALMBOMBLARGE_DIE4 " , // Sound
" S_CYBRAKDEMONNAPALMBOMBSMALL " ,
" S_CYBRAKDEMONNAPALMBOMBSMALL_DIE1 " , // Explode
" S_CYBRAKDEMONNAPALMBOMBSMALL_DIE2 " , // Outer ring
" S_CYBRAKDEMONNAPALMBOMBSMALL_DIE3 " , // Inner ring
" S_CYBRAKDEMONNAPALMBOMBSMALL_DIE4 " , // Center
" S_CYBRAKDEMONNAPALMBOMBSMALL_DIE5 " , // Sound
" S_CYBRAKDEMONNAPALMFLAME_FLY1 " ,
" S_CYBRAKDEMONNAPALMFLAME_FLY2 " ,
" S_CYBRAKDEMONNAPALMFLAME_FLY3 " ,
" S_CYBRAKDEMONNAPALMFLAME_FLY4 " ,
" S_CYBRAKDEMONNAPALMFLAME_FLY5 " ,
" S_CYBRAKDEMONNAPALMFLAME_FLY6 " ,
" S_CYBRAKDEMONNAPALMFLAME_DIE " ,
" S_CYBRAKDEMONVILEEXPLOSION1 " ,
" S_CYBRAKDEMONVILEEXPLOSION2 " ,
" S_CYBRAKDEMONVILEEXPLOSION3 " ,
// Metal Sonic (Race)
// S_PLAY_STND
" S_METALSONIC_STAND " ,
// S_PLAY_TAP1
" S_METALSONIC_WAIT1 " ,
" S_METALSONIC_WAIT2 " ,
2015-01-22 15:23:45 +00:00
// S_PLAY_WALK
2014-03-15 16:59:03 +00:00
" S_METALSONIC_WALK1 " ,
" S_METALSONIC_WALK2 " ,
" S_METALSONIC_WALK3 " ,
" S_METALSONIC_WALK4 " ,
" S_METALSONIC_WALK5 " ,
" S_METALSONIC_WALK6 " ,
" S_METALSONIC_WALK7 " ,
" S_METALSONIC_WALK8 " ,
// S_PLAY_SPD1
" S_METALSONIC_RUN1 " ,
" S_METALSONIC_RUN2 " ,
" S_METALSONIC_RUN3 " ,
" S_METALSONIC_RUN4 " ,
// Metal Sonic (Battle)
" S_METALSONIC_FLOAT " ,
" S_METALSONIC_VECTOR " ,
" S_METALSONIC_STUN " ,
" S_METALSONIC_RAISE " ,
" S_METALSONIC_GATHER " ,
" S_METALSONIC_DASH " ,
" S_METALSONIC_BOUNCE " ,
2017-02-13 18:04:08 +00:00
" S_METALSONIC_BADBOUNCE " ,
2014-03-15 16:59:03 +00:00
" S_METALSONIC_SHOOT " ,
" S_METALSONIC_PAIN " ,
2019-07-02 23:58:02 +00:00
" S_METALSONIC_DEATH1 " ,
" S_METALSONIC_DEATH2 " ,
" S_METALSONIC_DEATH3 " ,
" S_METALSONIC_DEATH4 " ,
2014-03-15 16:59:03 +00:00
" S_METALSONIC_FLEE1 " ,
" S_METALSONIC_FLEE2 " ,
" S_MSSHIELD_F1 " ,
" S_MSSHIELD_F2 " ,
// Ring
2016-02-09 10:39:16 +00:00
" S_RING " ,
2014-03-15 16:59:03 +00:00
// Blue Sphere for special stages
2018-06-03 21:41:54 +00:00
" S_BLUESPHERE " ,
" S_BLUESPHEREBONUS " ,
" S_BLUESPHERESPARK " ,
2018-06-05 16:22:28 +00:00
// Bomb Sphere
" S_BOMBSPHERE1 " ,
" S_BOMBSPHERE2 " ,
" S_BOMBSPHERE3 " ,
" S_BOMBSPHERE4 " ,
2018-06-03 21:41:54 +00:00
// NiGHTS Chip
" S_NIGHTSCHIP " ,
" S_NIGHTSCHIPBONUS " ,
// NiGHTS Star
" S_NIGHTSSTAR " ,
" S_NIGHTSSTARXMAS " ,
2014-03-15 16:59:03 +00:00
// Gravity Wells for special stages
" S_GRAVWELLGREEN " ,
" S_GRAVWELLRED " ,
// Individual Team Rings
2016-02-09 10:39:16 +00:00
" S_TEAMRING " ,
2014-03-15 16:59:03 +00:00
// Special Stage Token
" S_TOKEN " ,
// CTF Flags
" S_REDFLAG " ,
" S_BLUEFLAG " ,
// Emblem
" S_EMBLEM1 " ,
" S_EMBLEM2 " ,
" S_EMBLEM3 " ,
" S_EMBLEM4 " ,
" S_EMBLEM5 " ,
" S_EMBLEM6 " ,
" S_EMBLEM7 " ,
" S_EMBLEM8 " ,
" S_EMBLEM9 " ,
" S_EMBLEM10 " ,
" S_EMBLEM11 " ,
" S_EMBLEM12 " ,
" S_EMBLEM13 " ,
" S_EMBLEM14 " ,
" S_EMBLEM15 " ,
" S_EMBLEM16 " ,
" S_EMBLEM17 " ,
" S_EMBLEM18 " ,
" S_EMBLEM19 " ,
" S_EMBLEM20 " ,
" S_EMBLEM21 " ,
" S_EMBLEM22 " ,
" S_EMBLEM23 " ,
" S_EMBLEM24 " ,
" S_EMBLEM25 " ,
" S_EMBLEM26 " ,
// Chaos Emeralds
" S_CEMG1 " ,
" S_CEMG2 " ,
" S_CEMG3 " ,
" S_CEMG4 " ,
" S_CEMG5 " ,
" S_CEMG6 " ,
" S_CEMG7 " ,
2018-06-03 21:41:54 +00:00
// Emerald hunt shards
" S_SHRD1 " ,
" S_SHRD2 " ,
" S_SHRD3 " ,
2014-03-15 16:59:03 +00:00
// Bubble Source
" S_BUBBLES1 " ,
" S_BUBBLES2 " ,
2016-09-24 16:15:42 +00:00
" S_BUBBLES3 " ,
" S_BUBBLES4 " ,
2014-03-15 16:59:03 +00:00
// Level End Sign
" S_SIGN1 " ,
" S_SIGN2 " ,
" S_SIGN3 " ,
" S_SIGN4 " ,
" S_SIGN5 " ,
" S_SIGN6 " ,
" S_SIGN7 " ,
" S_SIGN8 " ,
" S_SIGN9 " ,
" S_SIGN10 " ,
" S_SIGN11 " ,
" S_SIGN12 " ,
" S_SIGN13 " ,
" S_SIGN14 " ,
" S_SIGN15 " ,
" S_SIGN16 " ,
" S_SIGN17 " ,
" S_SIGN18 " ,
" S_SIGN19 " ,
" S_SIGN20 " ,
" S_SIGN21 " ,
" S_SIGN22 " ,
" S_SIGN23 " ,
" S_SIGN24 " ,
" S_SIGN25 " ,
" S_SIGN26 " ,
" S_SIGN27 " ,
" S_SIGN28 " ,
" S_SIGN29 " ,
" S_SIGN30 " ,
" S_SIGN31 " ,
" S_SIGN32 " ,
" S_SIGN33 " ,
" S_SIGN34 " ,
" S_SIGN35 " ,
" S_SIGN36 " ,
" S_SIGN37 " ,
" S_SIGN38 " ,
" S_SIGN39 " ,
" S_SIGN40 " ,
" S_SIGN41 " ,
" S_SIGN42 " ,
" S_SIGN43 " ,
" S_SIGN44 " ,
" S_SIGN45 " ,
" S_SIGN46 " ,
" S_SIGN47 " ,
" S_SIGN48 " ,
" S_SIGN49 " ,
" S_SIGN50 " ,
" S_SIGN51 " ,
" S_SIGN52 " , // Eggman
" S_SIGN53 " ,
// Spike Ball
" S_SPIKEBALL1 " ,
" S_SPIKEBALL2 " ,
" S_SPIKEBALL3 " ,
" S_SPIKEBALL4 " ,
" S_SPIKEBALL5 " ,
" S_SPIKEBALL6 " ,
" S_SPIKEBALL7 " ,
" S_SPIKEBALL8 " ,
2016-07-08 20:55:17 +00:00
// Elemental Shield's Spawn
2014-03-15 16:59:03 +00:00
" S_SPINFIRE1 " ,
" S_SPINFIRE2 " ,
" S_SPINFIRE3 " ,
" S_SPINFIRE4 " ,
" S_SPINFIRE5 " ,
" S_SPINFIRE6 " ,
// Spikes
" S_SPIKE1 " ,
" S_SPIKE2 " ,
" S_SPIKE3 " ,
" S_SPIKE4 " ,
" S_SPIKE5 " ,
" S_SPIKE6 " ,
" S_SPIKED1 " ,
" S_SPIKED2 " ,
2017-07-13 21:42:08 +00:00
// Wall spikes
" S_WALLSPIKE1 " ,
" S_WALLSPIKE2 " ,
" S_WALLSPIKE3 " ,
" S_WALLSPIKE4 " ,
" S_WALLSPIKE5 " ,
" S_WALLSPIKE6 " ,
" S_WALLSPIKEBASE " ,
2017-07-18 13:17:10 +00:00
" S_WALLSPIKED1 " ,
" S_WALLSPIKED2 " ,
2017-07-13 21:42:08 +00:00
2014-03-15 16:59:03 +00:00
// Starpost
2016-02-09 10:39:16 +00:00
" S_STARPOST_IDLE " ,
" S_STARPOST_FLASH " ,
2017-01-21 01:09:39 +00:00
" S_STARPOST_STARTSPIN " ,
2016-02-09 10:39:16 +00:00
" S_STARPOST_SPIN " ,
2017-01-21 01:09:39 +00:00
" S_STARPOST_ENDSPIN " ,
2014-03-15 16:59:03 +00:00
// Big floating mine
2018-04-26 19:18:51 +00:00
" S_BIGMINE_IDLE " ,
" S_BIGMINE_ALERT1 " ,
" S_BIGMINE_ALERT2 " ,
" S_BIGMINE_ALERT3 " ,
" S_BIGMINE_SET1 " ,
" S_BIGMINE_SET2 " ,
" S_BIGMINE_SET3 " ,
" S_BIGMINE_BLAST1 " ,
" S_BIGMINE_BLAST2 " ,
" S_BIGMINE_BLAST3 " ,
" S_BIGMINE_BLAST4 " ,
" S_BIGMINE_BLAST5 " ,
2014-03-15 16:59:03 +00:00
// Cannon Launcher
" S_CANNONLAUNCHER1 " ,
" S_CANNONLAUNCHER2 " ,
" S_CANNONLAUNCHER3 " ,
2015-12-31 16:38:23 +00:00
// Monitor Miscellany
" S_BOXSPARKLE1 " ,
" S_BOXSPARKLE2 " ,
" S_BOXSPARKLE3 " ,
2018-03-26 22:53:09 +00:00
" S_BOXSPARKLE4 " ,
2015-12-31 16:38:23 +00:00
" S_BOX_FLICKER " ,
" S_BOX_POP1 " ,
" S_BOX_POP2 " ,
2015-12-31 23:29:08 +00:00
" S_GOLDBOX_FLICKER " ,
" S_GOLDBOX_OFF1 " ,
" S_GOLDBOX_OFF2 " ,
" S_GOLDBOX_OFF3 " ,
" S_GOLDBOX_OFF4 " ,
" S_GOLDBOX_OFF5 " ,
" S_GOLDBOX_OFF6 " ,
" S_GOLDBOX_OFF7 " ,
2015-12-31 16:38:23 +00:00
// Monitor States (one per box)
" S_MYSTERY_BOX " ,
" S_RING_BOX " ,
" S_PITY_BOX " ,
" S_ATTRACT_BOX " ,
" S_FORCE_BOX " ,
" S_ARMAGEDDON_BOX " ,
" S_WHIRLWIND_BOX " ,
" S_ELEMENTAL_BOX " ,
" S_SNEAKERS_BOX " ,
" S_INVULN_BOX " ,
" S_1UP_BOX " ,
" S_EGGMAN_BOX " ,
" S_MIXUP_BOX " ,
" S_GRAVITY_BOX " ,
" S_RECYCLER_BOX " ,
" S_SCORE1K_BOX " ,
" S_SCORE10K_BOX " ,
2016-10-13 14:13:33 +00:00
" S_FLAMEAURA_BOX " ,
" S_BUBBLEWRAP_BOX " ,
" S_THUNDERCOIN_BOX " ,
2015-12-31 16:38:23 +00:00
2015-12-31 23:29:08 +00:00
// Gold Repeat Monitor States (one per box)
" S_PITY_GOLDBOX " ,
" S_ATTRACT_GOLDBOX " ,
" S_FORCE_GOLDBOX " ,
" S_ARMAGEDDON_GOLDBOX " ,
" S_WHIRLWIND_GOLDBOX " ,
" S_ELEMENTAL_GOLDBOX " ,
" S_SNEAKERS_GOLDBOX " ,
" S_INVULN_GOLDBOX " ,
2016-09-30 02:32:21 +00:00
" S_EGGMAN_GOLDBOX " ,
2015-12-31 23:29:08 +00:00
" S_GRAVITY_GOLDBOX " ,
2016-10-13 14:13:33 +00:00
" S_FLAMEAURA_GOLDBOX " ,
" S_BUBBLEWRAP_GOLDBOX " ,
" S_THUNDERCOIN_GOLDBOX " ,
2015-12-31 16:38:23 +00:00
// Team Ring Boxes (these are special)
" S_RING_REDBOX1 " ,
" S_RING_REDBOX2 " ,
" S_REDBOX_POP1 " ,
" S_REDBOX_POP2 " ,
" S_RING_BLUEBOX1 " ,
" S_RING_BLUEBOX2 " ,
" S_BLUEBOX_POP1 " ,
" S_BLUEBOX_POP2 " ,
2016-09-26 03:55:08 +00:00
// Box Icons -- 2 states each, animation and action
2015-12-31 16:38:23 +00:00
" S_RING_ICON1 " ,
" S_RING_ICON2 " ,
" S_PITY_ICON1 " ,
" S_PITY_ICON2 " ,
" S_ATTRACT_ICON1 " ,
" S_ATTRACT_ICON2 " ,
" S_FORCE_ICON1 " ,
" S_FORCE_ICON2 " ,
" S_ARMAGEDDON_ICON1 " ,
" S_ARMAGEDDON_ICON2 " ,
" S_WHIRLWIND_ICON1 " ,
" S_WHIRLWIND_ICON2 " ,
" S_ELEMENTAL_ICON1 " ,
" S_ELEMENTAL_ICON2 " ,
" S_SNEAKERS_ICON1 " ,
" S_SNEAKERS_ICON2 " ,
" S_INVULN_ICON1 " ,
" S_INVULN_ICON2 " ,
" S_1UP_ICON1 " ,
" S_1UP_ICON2 " ,
" S_EGGMAN_ICON1 " ,
" S_EGGMAN_ICON2 " ,
" S_MIXUP_ICON1 " ,
" S_MIXUP_ICON2 " ,
" S_GRAVITY_ICON1 " ,
" S_GRAVITY_ICON2 " ,
" S_RECYCLER_ICON1 " ,
" S_RECYCLER_ICON2 " ,
" S_SCORE1K_ICON1 " ,
" S_SCORE1K_ICON2 " ,
" S_SCORE10K_ICON1 " ,
" S_SCORE10K_ICON2 " ,
2014-03-15 16:59:03 +00:00
2016-10-13 14:13:33 +00:00
" S_FLAMEAURA_ICON1 " ,
" S_FLAMEAURA_ICON2 " ,
" S_BUBBLEWRAP_ICON1 " ,
" S_BUBBLEWRAP_ICON2 " ,
" S_THUNDERCOIN_ICON1 " ,
" S_THUNDERCOIN_ICON2 " ,
2018-06-13 17:10:32 +00:00
// ---
2014-03-15 16:59:03 +00:00
" S_ROCKET " ,
" S_LASER " ,
" S_TORPEDO " ,
" S_ENERGYBALL1 " ,
" S_ENERGYBALL2 " ,
// Skim Mine, also used by Jetty-Syn bomber
" S_MINE1 " ,
" S_MINE_BOOM1 " ,
" S_MINE_BOOM2 " ,
" S_MINE_BOOM3 " ,
" S_MINE_BOOM4 " ,
// Jetty-Syn Bullet
" S_JETBULLET1 " ,
" S_JETBULLET2 " ,
" S_TURRETLASER " ,
" S_TURRETLASEREXPLODE1 " ,
" S_TURRETLASEREXPLODE2 " ,
// Cannonball
" S_CANNONBALL1 " ,
// Arrow
" S_ARROW " ,
2018-05-31 20:00:12 +00:00
" S_ARROWBONK " ,
2014-03-15 16:59:03 +00:00
// Trapgoyle Demon fire
2018-06-05 16:22:28 +00:00
" S_DEMONFIRE " ,
2014-03-15 16:59:03 +00:00
2017-07-13 16:29:15 +00:00
// GFZ flowers
2014-03-15 16:59:03 +00:00
" S_GFZFLOWERA " ,
2017-01-21 01:09:39 +00:00
" S_GFZFLOWERB " ,
" S_GFZFLOWERC " ,
2014-03-15 16:59:03 +00:00
2018-06-05 16:22:28 +00:00
" S_BLUEBERRYBUSH " ,
2014-03-15 16:59:03 +00:00
" S_BERRYBUSH " ,
" S_BUSH " ,
2017-07-13 16:29:15 +00:00
// Trees (both GFZ and misc)
" S_GFZTREE " ,
" S_GFZBERRYTREE " ,
" S_GFZCHERRYTREE " ,
" S_CHECKERTREE " ,
" S_CHECKERSUNSETTREE " ,
" S_FHZTREE " , // Frozen Hillside
" S_FHZPINKTREE " ,
" S_POLYGONTREE " ,
" S_BUSHTREE " ,
" S_BUSHREDTREE " ,
2018-06-03 21:41:54 +00:00
" S_SPRINGTREE " ,
2017-07-13 16:29:15 +00:00
2018-01-19 17:56:18 +00:00
// THZ flowers
" S_THZFLOWERA " , // THZ1 Steam flower
" S_THZFLOWERB " , // THZ1 Spin flower (red)
" S_THZFLOWERC " , // THZ1 Spin flower (yellow)
2014-03-15 16:59:03 +00:00
2018-01-22 18:41:14 +00:00
// THZ Steam Whistle tree/bush
" S_THZTREE " ,
" S_THZTREEBRANCH1 " ,
" S_THZTREEBRANCH2 " ,
" S_THZTREEBRANCH3 " ,
" S_THZTREEBRANCH4 " ,
" S_THZTREEBRANCH5 " ,
" S_THZTREEBRANCH6 " ,
" S_THZTREEBRANCH7 " ,
" S_THZTREEBRANCH8 " ,
" S_THZTREEBRANCH9 " ,
" S_THZTREEBRANCH10 " ,
" S_THZTREEBRANCH11 " ,
" S_THZTREEBRANCH12 " ,
" S_THZTREEBRANCH13 " ,
2014-03-15 16:59:03 +00:00
// THZ Alarm
" S_ALARM1 " ,
// Deep Sea Gargoyle
" S_GARGOYLE " ,
2017-04-18 19:38:13 +00:00
" S_BIGGARGOYLE " ,
2014-03-15 16:59:03 +00:00
// DSZ Seaweed
" S_SEAWEED1 " ,
" S_SEAWEED2 " ,
" S_SEAWEED3 " ,
" S_SEAWEED4 " ,
" S_SEAWEED5 " ,
" S_SEAWEED6 " ,
// Dripping Water
" S_DRIPA1 " ,
" S_DRIPA2 " ,
" S_DRIPA3 " ,
" S_DRIPA4 " ,
" S_DRIPB1 " ,
" S_DRIPC1 " ,
" S_DRIPC2 " ,
2019-09-19 22:51:44 +00:00
// Coral
2014-03-15 16:59:03 +00:00
" S_CORAL1 " ,
" S_CORAL2 " ,
" S_CORAL3 " ,
2019-09-19 22:51:44 +00:00
" S_CORAL4 " ,
" S_CORAL5 " ,
2014-03-15 16:59:03 +00:00
// Blue Crystal
" S_BLUECRYSTAL1 " ,
2017-12-08 18:26:32 +00:00
// Kelp,
" S_KELP " ,
2019-09-18 00:05:19 +00:00
// Animated algae
" S_ANIMALGAETOP1 " ,
" S_ANIMALGAETOP2 " ,
" S_ANIMALGAESEG " ,
2017-12-08 18:26:32 +00:00
// DSZ Stalagmites
" S_DSZSTALAGMITE " ,
" S_DSZ2STALAGMITE " ,
// DSZ Light beam
" S_LIGHTBEAM1 " ,
" S_LIGHTBEAM2 " ,
" S_LIGHTBEAM3 " ,
" S_LIGHTBEAM4 " ,
" S_LIGHTBEAM5 " ,
" S_LIGHTBEAM6 " ,
" S_LIGHTBEAM7 " ,
" S_LIGHTBEAM8 " ,
" S_LIGHTBEAM9 " ,
" S_LIGHTBEAM10 " ,
" S_LIGHTBEAM11 " ,
" S_LIGHTBEAM12 " ,
2014-03-15 16:59:03 +00:00
// CEZ Chain
" S_CEZCHAIN " ,
// Flame
2018-05-22 10:04:28 +00:00
" S_FLAME " ,
2017-01-21 12:39:41 +00:00
" S_FLAMEPARTICLE " ,
" S_FLAMEREST " ,
2014-03-15 16:59:03 +00:00
// Eggman Statue
" S_EGGSTATUE1 " ,
// CEZ hidden sling
" S_SLING1 " ,
" S_SLING2 " ,
Hooh boy.
****
* MF2_MACEROTATE. Apply to any object. Replaces the indiscriminate spamming of A_MaceRotate each tic.
****
* Mace point mapthings have been slightly modified.
- MTF_AMBUSH: bigger luke theory (has no effect on custom mace, different effect on spring mace)
- MTF_OBJECTFLIP: flips the objects, but nothing else - just so it doesn't look out of place in gravflip sections
- MTF_OBJECTSPECIAL: keeps it from attempting to play swinging sounds
- angle: tag of controlling linedef
- parameter: number of "spokes" minus one - for example, a parameter of 2 results in 3 equidistant maces rotating around the same point.
****
* Mace linedefs have been significantly revamped.
- line dx: number of chain links
- line dy: speed (in FU)
- frontside floor height: Pitch (in degrees; how much it "tilts" over - Yaw influences the axis it's tilting on)
- frontside ceiling height: Yaw (in degrees; rotation of entire thing on xy plane)
- frontside x offset: Phase (in degrees; how far it is through the rotation cycle)
- frontside y offset: Max speed (in FU; if less than speed, set to speed*2)
- backside floor height: Pinch (in degrees; 0 if no backside; essentially makes rotation conical instead of wheel-like)
- backside ceiling height: Roll (in degrees; 0 if no backside; rotates on the axis of the spinning - identical to Phase for spinning maces, but useful for rotating swinging maces as opposed to just offsetting them)
- backside x offset: Number of "antispokes" (0 if no backside; makes that many spokes not exist so you can put another mace/chain type in there instead; for combo mace/chain instead turns them into chains directly)
- backside y offset: Width (in number of extra chains per side; 0 if no backside; creates a "skiprope" arrangement)
----
- ML_NOCLIMB: for chains and chain-mace combos, allow for player control of yaw through strafe keys
- ML_EFFECT1: replacing the seperate mapthings, this makes a mace type swing instead of spin.
- ML_EFFECT2: for all spokes of the mace wheel ending in maces, make the chains out of the mace type (inverted for firebars)
- ML_EFFECT3: spawn a bonus mace type at the center(s) of rotation
- ML_EFFECT4: don't clip inside ground
****
* Mapthing 1104 represents both spinning and swinging maces from prior versions of SRB2.
* Mapthing 1105 has gone from being a swinging mace variant to a combination of chains and maces in a single unit, provided the number of "spokes" is greater than one.
* Mapthing 1105 has gone from being a swinging chain variant to a vertical spring-on-a-ball-on-a-chain. Yellow by default, apply MTF_AMBUSH to turn into a red spring.
* Mapthing 1107 represents both spinning and swinging chains from prior versions of SRB2.
* Mapthing 1108 is completely untouched except to port over 2.1's functionality to the new backend.
* Mapthing 1109 is a Mario castle-level style firebar. This inverts the functionality of ML_EFFECT2 on the tagged linedef.
* Mapthing 1110 is a free slot should we want to implement another type of base-game mace.
* Mapthing 1111 is a custom mace. Use the linedef's frontside texture slots to identify a macetype mobjtype, then use the backside texture slots to identify a linktype mobjtype (defaults to MT_NULL if no backside).
****
Whooh. Requires new patch.dta for sprites.
2017-07-02 14:11:09 +00:00
// CEZ maces and chains
2014-03-15 16:59:03 +00:00
" S_SMALLMACECHAIN " ,
" S_BIGMACECHAIN " ,
" S_SMALLMACE " ,
" S_BIGMACE " ,
2018-05-24 00:40:57 +00:00
" S_SMALLGRABCHAIN " ,
" S_BIGGRABCHAIN " ,
2014-03-15 16:59:03 +00:00
Hooh boy.
****
* MF2_MACEROTATE. Apply to any object. Replaces the indiscriminate spamming of A_MaceRotate each tic.
****
* Mace point mapthings have been slightly modified.
- MTF_AMBUSH: bigger luke theory (has no effect on custom mace, different effect on spring mace)
- MTF_OBJECTFLIP: flips the objects, but nothing else - just so it doesn't look out of place in gravflip sections
- MTF_OBJECTSPECIAL: keeps it from attempting to play swinging sounds
- angle: tag of controlling linedef
- parameter: number of "spokes" minus one - for example, a parameter of 2 results in 3 equidistant maces rotating around the same point.
****
* Mace linedefs have been significantly revamped.
- line dx: number of chain links
- line dy: speed (in FU)
- frontside floor height: Pitch (in degrees; how much it "tilts" over - Yaw influences the axis it's tilting on)
- frontside ceiling height: Yaw (in degrees; rotation of entire thing on xy plane)
- frontside x offset: Phase (in degrees; how far it is through the rotation cycle)
- frontside y offset: Max speed (in FU; if less than speed, set to speed*2)
- backside floor height: Pinch (in degrees; 0 if no backside; essentially makes rotation conical instead of wheel-like)
- backside ceiling height: Roll (in degrees; 0 if no backside; rotates on the axis of the spinning - identical to Phase for spinning maces, but useful for rotating swinging maces as opposed to just offsetting them)
- backside x offset: Number of "antispokes" (0 if no backside; makes that many spokes not exist so you can put another mace/chain type in there instead; for combo mace/chain instead turns them into chains directly)
- backside y offset: Width (in number of extra chains per side; 0 if no backside; creates a "skiprope" arrangement)
----
- ML_NOCLIMB: for chains and chain-mace combos, allow for player control of yaw through strafe keys
- ML_EFFECT1: replacing the seperate mapthings, this makes a mace type swing instead of spin.
- ML_EFFECT2: for all spokes of the mace wheel ending in maces, make the chains out of the mace type (inverted for firebars)
- ML_EFFECT3: spawn a bonus mace type at the center(s) of rotation
- ML_EFFECT4: don't clip inside ground
****
* Mapthing 1104 represents both spinning and swinging maces from prior versions of SRB2.
* Mapthing 1105 has gone from being a swinging mace variant to a combination of chains and maces in a single unit, provided the number of "spokes" is greater than one.
* Mapthing 1105 has gone from being a swinging chain variant to a vertical spring-on-a-ball-on-a-chain. Yellow by default, apply MTF_AMBUSH to turn into a red spring.
* Mapthing 1107 represents both spinning and swinging chains from prior versions of SRB2.
* Mapthing 1108 is completely untouched except to port over 2.1's functionality to the new backend.
* Mapthing 1109 is a Mario castle-level style firebar. This inverts the functionality of ML_EFFECT2 on the tagged linedef.
* Mapthing 1110 is a free slot should we want to implement another type of base-game mace.
* Mapthing 1111 is a custom mace. Use the linedef's frontside texture slots to identify a macetype mobjtype, then use the backside texture slots to identify a linktype mobjtype (defaults to MT_NULL if no backside).
****
Whooh. Requires new patch.dta for sprites.
2017-07-02 14:11:09 +00:00
// Yellow spring on a ball
" S_YELLOWSPRINGBALL " ,
" S_YELLOWSPRINGBALL2 " ,
" S_YELLOWSPRINGBALL3 " ,
" S_YELLOWSPRINGBALL4 " ,
" S_YELLOWSPRINGBALL5 " ,
// Red spring on a ball
" S_REDSPRINGBALL " ,
" S_REDSPRINGBALL2 " ,
" S_REDSPRINGBALL3 " ,
" S_REDSPRINGBALL4 " ,
" S_REDSPRINGBALL5 " ,
// Small Firebar
" S_SMALLFIREBAR1 " ,
" S_SMALLFIREBAR2 " ,
" S_SMALLFIREBAR3 " ,
" S_SMALLFIREBAR4 " ,
" S_SMALLFIREBAR5 " ,
" S_SMALLFIREBAR6 " ,
" S_SMALLFIREBAR7 " ,
" S_SMALLFIREBAR8 " ,
" S_SMALLFIREBAR9 " ,
" S_SMALLFIREBAR10 " ,
" S_SMALLFIREBAR11 " ,
" S_SMALLFIREBAR12 " ,
" S_SMALLFIREBAR13 " ,
" S_SMALLFIREBAR14 " ,
" S_SMALLFIREBAR15 " ,
" S_SMALLFIREBAR16 " ,
// Big Firebar
" S_BIGFIREBAR1 " ,
" S_BIGFIREBAR2 " ,
" S_BIGFIREBAR3 " ,
" S_BIGFIREBAR4 " ,
" S_BIGFIREBAR5 " ,
" S_BIGFIREBAR6 " ,
" S_BIGFIREBAR7 " ,
" S_BIGFIREBAR8 " ,
" S_BIGFIREBAR9 " ,
" S_BIGFIREBAR10 " ,
" S_BIGFIREBAR11 " ,
" S_BIGFIREBAR12 " ,
" S_BIGFIREBAR13 " ,
" S_BIGFIREBAR14 " ,
" S_BIGFIREBAR15 " ,
" S_BIGFIREBAR16 " ,
2018-05-22 10:04:28 +00:00
" S_CEZFLOWER " ,
" S_CEZPOLE " ,
2019-07-14 15:30:33 +00:00
" S_CEZBANNER1 " ,
" S_CEZBANNER2 " ,
2018-05-22 10:04:28 +00:00
" S_PINETREE " ,
" S_CEZBUSH1 " ,
" S_CEZBUSH2 " ,
" S_CANDLE " ,
" S_CANDLEPRICKET " ,
" S_FLAMEHOLDER " ,
" S_FIRETORCH " ,
" S_WAVINGFLAG " ,
2019-07-14 14:50:45 +00:00
" S_WAVINGFLAGSEG1 " ,
" S_WAVINGFLAGSEG2 " ,
2018-05-22 10:04:28 +00:00
" S_CRAWLASTATUE " ,
2018-05-24 00:40:57 +00:00
" S_FACESTABBERSTATUE " ,
" S_SUSPICIOUSFACESTABBERSTATUE_WAIT " ,
" S_SUSPICIOUSFACESTABBERSTATUE_BURST1 " ,
" S_SUSPICIOUSFACESTABBERSTATUE_BURST2 " ,
2018-08-22 16:16:11 +00:00
" S_BRAMBLES " ,
2014-03-15 16:59:03 +00:00
// Big Tumbleweed
" S_BIGTUMBLEWEED " ,
" S_BIGTUMBLEWEED_ROLL1 " ,
" S_BIGTUMBLEWEED_ROLL2 " ,
" S_BIGTUMBLEWEED_ROLL3 " ,
" S_BIGTUMBLEWEED_ROLL4 " ,
" S_BIGTUMBLEWEED_ROLL5 " ,
" S_BIGTUMBLEWEED_ROLL6 " ,
" S_BIGTUMBLEWEED_ROLL7 " ,
" S_BIGTUMBLEWEED_ROLL8 " ,
// Little Tumbleweed
" S_LITTLETUMBLEWEED " ,
" S_LITTLETUMBLEWEED_ROLL1 " ,
" S_LITTLETUMBLEWEED_ROLL2 " ,
" S_LITTLETUMBLEWEED_ROLL3 " ,
" S_LITTLETUMBLEWEED_ROLL4 " ,
" S_LITTLETUMBLEWEED_ROLL5 " ,
" S_LITTLETUMBLEWEED_ROLL6 " ,
" S_LITTLETUMBLEWEED_ROLL7 " ,
" S_LITTLETUMBLEWEED_ROLL8 " ,
// Cacti Sprites
" S_CACTI1 " ,
" S_CACTI2 " ,
" S_CACTI3 " ,
" S_CACTI4 " ,
2019-05-12 02:56:23 +00:00
" S_CACTI5 " ,
" S_CACTI6 " ,
" S_CACTI7 " ,
" S_CACTI8 " ,
" S_CACTI9 " ,
2019-09-13 01:36:13 +00:00
" S_CACTI10 " ,
" S_CACTI11 " ,
2019-09-18 19:40:33 +00:00
" S_CACTITINYSEG " ,
" S_CACTISMALLSEG " ,
2019-05-12 02:56:23 +00:00
// Warning signs sprites
" S_ARIDSIGN_CAUTION " ,
" S_ARIDSIGN_CACTI " ,
" S_ARIDSIGN_SHARPTURN " ,
2014-03-15 16:59:03 +00:00
2019-06-08 13:50:01 +00:00
// Oil lamp
" S_OILLAMP " ,
" S_OILLAMPFLARE " ,
2019-06-09 08:51:33 +00:00
// TNT barrel
" S_TNTBARREL_STND1 " ,
" S_TNTBARREL_EXPL1 " ,
" S_TNTBARREL_EXPL2 " ,
" S_TNTBARREL_EXPL3 " ,
" S_TNTBARREL_EXPL4 " ,
" S_TNTBARREL_EXPL5 " ,
" S_TNTBARREL_EXPL6 " ,
" S_TNTBARREL_FLYING " ,
// TNT proximity shell
" S_PROXIMITY_TNT " ,
" S_PROXIMITY_TNT_TRIGGER1 " ,
" S_PROXIMITY_TNT_TRIGGER2 " ,
" S_PROXIMITY_TNT_TRIGGER3 " ,
" S_PROXIMITY_TNT_TRIGGER4 " ,
" S_PROXIMITY_TNT_TRIGGER5 " ,
" S_PROXIMITY_TNT_TRIGGER6 " ,
" S_PROXIMITY_TNT_TRIGGER7 " ,
" S_PROXIMITY_TNT_TRIGGER8 " ,
" S_PROXIMITY_TNT_TRIGGER9 " ,
" S_PROXIMITY_TNT_TRIGGER10 " ,
" S_PROXIMITY_TNT_TRIGGER11 " ,
" S_PROXIMITY_TNT_TRIGGER12 " ,
" S_PROXIMITY_TNT_TRIGGER13 " ,
" S_PROXIMITY_TNT_TRIGGER14 " ,
" S_PROXIMITY_TNT_TRIGGER15 " ,
" S_PROXIMITY_TNT_TRIGGER16 " ,
" S_PROXIMITY_TNT_TRIGGER17 " ,
" S_PROXIMITY_TNT_TRIGGER18 " ,
" S_PROXIMITY_TNT_TRIGGER19 " ,
" S_PROXIMITY_TNT_TRIGGER20 " ,
" S_PROXIMITY_TNT_TRIGGER21 " ,
" S_PROXIMITY_TNT_TRIGGER22 " ,
" S_PROXIMITY_TNT_TRIGGER23 " ,
2019-06-08 13:50:01 +00:00
// Dust devil
2019-06-08 07:51:46 +00:00
" S_DUSTDEVIL " ,
" S_DUSTLAYER1 " ,
" S_DUSTLAYER2 " ,
" S_DUSTLAYER3 " ,
" S_DUSTLAYER4 " ,
" S_DUSTLAYER5 " ,
" S_ARIDDUST1 " ,
" S_ARIDDUST2 " ,
" S_ARIDDUST3 " ,
2019-06-13 19:45:30 +00:00
// Minecart
" S_MINECART_IDLE " ,
" S_MINECART_DTH1 " ,
" S_MINECARTEND " ,
" S_MINECARTSEG_FRONT " ,
" S_MINECARTSEG_BACK " ,
" S_MINECARTSEG_LEFT " ,
" S_MINECARTSEG_RIGHT " ,
" S_MINECARTSIDEMARK1 " ,
" S_MINECARTSIDEMARK2 " ,
" S_MINECARTSPARK " ,
2019-06-12 19:20:14 +00:00
// Saloon door
" S_SALOONDOOR " ,
2019-10-05 12:21:35 +00:00
" S_SALOONDOORCENTER " ,
2019-06-12 19:20:14 +00:00
2019-06-09 11:48:07 +00:00
// Train cameo
" S_TRAINCAMEOSPAWNER_1 " ,
" S_TRAINCAMEOSPAWNER_2 " ,
" S_TRAINCAMEOSPAWNER_3 " ,
" S_TRAINCAMEOSPAWNER_4 " ,
" S_TRAINCAMEOSPAWNER_5 " ,
" S_TRAINPUFFMAKER " ,
2019-06-09 15:16:07 +00:00
// Train
" S_TRAINDUST " ,
" S_TRAINSTEAM " ,
2014-03-15 16:59:03 +00:00
// Flame jet
" S_FLAMEJETSTND " ,
" S_FLAMEJETSTART " ,
" S_FLAMEJETSTOP " ,
" S_FLAMEJETFLAME1 " ,
" S_FLAMEJETFLAME2 " ,
" S_FLAMEJETFLAME3 " ,
* New object types!
* Red and yellow Boost panels!
* Added because SUBARASHII and KIMOKAWAIII had several levels using them, and I wanted to make them look better.
* https://cdn.discordapp.com/attachments/359091121789468672/634486669202161674/srb20015.gif
* Uses the mapthingnums of Glaber's SOC resource boosters, but absolutely nothing else - not even the magnitudes.
* Apply MF_AMBUSH to force the player into a spin - even if they don't have a spin ability!
* Banpyura!
* A Crushstacean with a spring instead of a crushclaw.
* https://cdn.discordapp.com/attachments/428262628893261828/634432099306176512/srb20019.gif
* Wanted this for a while, finally added it.
* Improved springs.
* Add pw_noautobrake to disable autobrake for half a second when touching yellow horizontal springs, and a second when touching red ones, even on the ground.
* Add pw_justsprung to disable directionchar for a few tics while touching any springs with a horizontal component to their velocity.
* Add the diagonal spring flag options Red and Yellow Diagonal Springs have to the Blue Diagonal Spring as well.
* Started but decided against a tip of the hat to the CD spring spin, hidden behind #define SPRINGSPIN.
* Make directionchar "lag behind" a little bit in waterslides.
* Improved flame jets.
* They now use new sprites for having their flames move upwards and sideways, instead of having them always face downwards like in 2.1!
* Fixed a mixed declaration and code error in A_RolloutRock. (Sorry Lach!)
* Make the Amy Cameo only spawn in SP, Record Attack, or Co-op unless it's the Clone Mode.
* Improved ZB config.
* Add above new types.
* Add Blue Diagonal Spring, which existed in the source but not the config.
* Re-order enemies in ZB config by zone (but keep them in the Enemies section only).
2019-10-17 20:50:26 +00:00
" S_FLAMEJETFLAME4 " ,
" S_FLAMEJETFLAME5 " ,
" S_FLAMEJETFLAME6 " ,
" S_FLAMEJETFLAME7 " ,
" S_FLAMEJETFLAME8 " ,
" S_FLAMEJETFLAME9 " ,
2014-03-15 16:59:03 +00:00
// Spinning flame jets
" S_FJSPINAXISA1 " , // Counter-clockwise
" S_FJSPINAXISA2 " ,
" S_FJSPINAXISB1 " , // Clockwise
" S_FJSPINAXISB2 " ,
// Blade's flame
" S_FLAMEJETFLAMEB1 " ,
" S_FLAMEJETFLAMEB2 " ,
" S_FLAMEJETFLAMEB3 " ,
2019-08-25 21:05:38 +00:00
// Lavafall
" S_LAVAFALL_DORMANT " ,
" S_LAVAFALL_TELL " ,
" S_LAVAFALL_SHOOT " ,
" S_LAVAFALL_LAVA1 " ,
" S_LAVAFALL_LAVA2 " ,
" S_LAVAFALL_LAVA3 " ,
2019-08-27 17:33:54 +00:00
" S_LAVAFALLROCK " ,
2019-08-25 21:05:38 +00:00
2019-09-29 12:18:40 +00:00
// Rollout Rock
" S_ROLLOUTSPAWN " ,
" S_ROLLOUTROCK " ,
2019-08-25 10:40:32 +00:00
// RVZ scenery
" S_BIGFERNLEAF " ,
" S_BIGFERN1 " ,
" S_BIGFERN2 " ,
" S_JUNGLEPALM " ,
" S_TORCHFLOWER " ,
" S_WALLVINE_LONG " ,
" S_WALLVINE_SHORT " ,
2014-03-15 16:59:03 +00:00
// Trapgoyles
" S_TRAPGOYLE " ,
" S_TRAPGOYLE_CHECK " ,
" S_TRAPGOYLE_FIRE1 " ,
" S_TRAPGOYLE_FIRE2 " ,
" S_TRAPGOYLE_FIRE3 " ,
" S_TRAPGOYLEUP " ,
" S_TRAPGOYLEUP_CHECK " ,
" S_TRAPGOYLEUP_FIRE1 " ,
" S_TRAPGOYLEUP_FIRE2 " ,
" S_TRAPGOYLEUP_FIRE3 " ,
" S_TRAPGOYLEDOWN " ,
" S_TRAPGOYLEDOWN_CHECK " ,
" S_TRAPGOYLEDOWN_FIRE1 " ,
" S_TRAPGOYLEDOWN_FIRE2 " ,
" S_TRAPGOYLEDOWN_FIRE3 " ,
" S_TRAPGOYLELONG " ,
" S_TRAPGOYLELONG_CHECK " ,
" S_TRAPGOYLELONG_FIRE1 " ,
" S_TRAPGOYLELONG_FIRE2 " ,
" S_TRAPGOYLELONG_FIRE3 " ,
" S_TRAPGOYLELONG_FIRE4 " ,
" S_TRAPGOYLELONG_FIRE5 " ,
// ATZ's Red Crystal/Target
" S_TARGET_IDLE " ,
" S_TARGET_HIT1 " ,
" S_TARGET_HIT2 " ,
" S_TARGET_RESPAWN " ,
" S_TARGET_ALLDONE " ,
2019-10-21 08:22:20 +00:00
// ATZ's green flame
" S_GREENFLAME " ,
2014-03-15 16:59:03 +00:00
// Stalagmites
" S_STG0 " ,
" S_STG1 " ,
" S_STG2 " ,
" S_STG3 " ,
" S_STG4 " ,
" S_STG5 " ,
" S_STG6 " ,
" S_STG7 " ,
" S_STG8 " ,
" S_STG9 " ,
// Xmas-specific stuff
" S_XMASPOLE " ,
" S_CANDYCANE " ,
2017-04-18 17:32:52 +00:00
" S_SNOWMAN " , // normal
" S_SNOWMANHAT " , // with hat + scarf
" S_LAMPPOST1 " , // normal
" S_LAMPPOST2 " , // with snow
" S_HANGSTAR " ,
2019-10-01 17:19:37 +00:00
" S_MISTLETOE " ,
2017-04-18 17:32:52 +00:00
// Xmas GFZ bushes
2018-06-05 16:22:28 +00:00
" S_XMASBLUEBERRYBUSH " ,
2017-04-18 17:32:52 +00:00
" S_XMASBERRYBUSH " ,
" S_XMASBUSH " ,
2018-06-05 16:22:28 +00:00
// FHZ
" S_FHZICE1 " ,
" S_FHZICE2 " ,
2019-10-01 17:19:37 +00:00
" S_ROSY_IDLE1 " ,
" S_ROSY_IDLE2 " ,
" S_ROSY_IDLE3 " ,
" S_ROSY_IDLE4 " ,
" S_ROSY_JUMP " ,
" S_ROSY_WALK " ,
" S_ROSY_HUG " ,
" S_ROSY_PAIN " ,
" S_ROSY_STND " ,
" S_ROSY_UNHAPPY " ,
2014-03-15 16:59:03 +00:00
2018-04-28 14:13:44 +00:00
// Halloween Scenery
// Pumpkins
" S_JACKO1 " ,
" S_JACKO1OVERLAY_1 " ,
" S_JACKO1OVERLAY_2 " ,
" S_JACKO1OVERLAY_3 " ,
" S_JACKO1OVERLAY_4 " ,
" S_JACKO2 " ,
" S_JACKO2OVERLAY_1 " ,
" S_JACKO2OVERLAY_2 " ,
" S_JACKO2OVERLAY_3 " ,
" S_JACKO2OVERLAY_4 " ,
" S_JACKO3 " ,
" S_JACKO3OVERLAY_1 " ,
" S_JACKO3OVERLAY_2 " ,
" S_JACKO3OVERLAY_3 " ,
" S_JACKO3OVERLAY_4 " ,
// Dr Seuss Trees
" S_HHZTREE_TOP " ,
" S_HHZTREE_TRUNK " ,
" S_HHZTREE_LEAF " ,
// Mushroom
" S_HHZSHROOM_1 " ,
" S_HHZSHROOM_2 " ,
" S_HHZSHROOM_3 " ,
" S_HHZSHROOM_4 " ,
" S_HHZSHROOM_5 " ,
" S_HHZSHROOM_6 " ,
" S_HHZSHROOM_7 " ,
" S_HHZSHROOM_8 " ,
" S_HHZSHROOM_9 " ,
" S_HHZSHROOM_10 " ,
" S_HHZSHROOM_11 " ,
" S_HHZSHROOM_12 " ,
" S_HHZSHROOM_13 " ,
" S_HHZSHROOM_14 " ,
" S_HHZSHROOM_15 " ,
" S_HHZSHROOM_16 " ,
// Misc
" S_HHZGRASS " ,
" S_HHZTENT1 " ,
" S_HHZTENT2 " ,
" S_HHZSTALAGMITE_TALL " ,
" S_HHZSTALAGMITE_SHORT " ,
2014-03-15 16:59:03 +00:00
// Botanic Serenity's loads of scenery states
" S_BSZTALLFLOWER_RED " ,
" S_BSZTALLFLOWER_PURPLE " ,
" S_BSZTALLFLOWER_BLUE " ,
" S_BSZTALLFLOWER_CYAN " ,
" S_BSZTALLFLOWER_YELLOW " ,
" S_BSZTALLFLOWER_ORANGE " ,
" S_BSZFLOWER_RED " ,
" S_BSZFLOWER_PURPLE " ,
" S_BSZFLOWER_BLUE " ,
" S_BSZFLOWER_CYAN " ,
" S_BSZFLOWER_YELLOW " ,
" S_BSZFLOWER_ORANGE " ,
" S_BSZSHORTFLOWER_RED " ,
" S_BSZSHORTFLOWER_PURPLE " ,
" S_BSZSHORTFLOWER_BLUE " ,
" S_BSZSHORTFLOWER_CYAN " ,
" S_BSZSHORTFLOWER_YELLOW " ,
" S_BSZSHORTFLOWER_ORANGE " ,
" S_BSZTULIP_RED " ,
" S_BSZTULIP_PURPLE " ,
" S_BSZTULIP_BLUE " ,
" S_BSZTULIP_CYAN " ,
" S_BSZTULIP_YELLOW " ,
" S_BSZTULIP_ORANGE " ,
" S_BSZCLUSTER_RED " ,
" S_BSZCLUSTER_PURPLE " ,
" S_BSZCLUSTER_BLUE " ,
" S_BSZCLUSTER_CYAN " ,
" S_BSZCLUSTER_YELLOW " ,
" S_BSZCLUSTER_ORANGE " ,
" S_BSZBUSH_RED " ,
" S_BSZBUSH_PURPLE " ,
" S_BSZBUSH_BLUE " ,
" S_BSZBUSH_CYAN " ,
" S_BSZBUSH_YELLOW " ,
" S_BSZBUSH_ORANGE " ,
" S_BSZVINE_RED " ,
" S_BSZVINE_PURPLE " ,
" S_BSZVINE_BLUE " ,
" S_BSZVINE_CYAN " ,
" S_BSZVINE_YELLOW " ,
" S_BSZVINE_ORANGE " ,
" S_BSZSHRUB " ,
" S_BSZCLOVER " ,
2017-01-25 14:52:36 +00:00
" S_BIG_PALMTREE_TRUNK " ,
" S_BIG_PALMTREE_TOP " ,
" S_PALMTREE_TRUNK " ,
" S_PALMTREE_TOP " ,
2014-03-15 16:59:03 +00:00
" S_DBALL1 " ,
" S_DBALL2 " ,
" S_DBALL3 " ,
" S_DBALL4 " ,
" S_DBALL5 " ,
" S_DBALL6 " ,
" S_EGGSTATUE2 " ,
// Shield Orb
" S_ARMA1 " ,
" S_ARMA2 " ,
" S_ARMA3 " ,
" S_ARMA4 " ,
" S_ARMA5 " ,
" S_ARMA6 " ,
" S_ARMA7 " ,
" S_ARMA8 " ,
" S_ARMA9 " ,
" S_ARMA10 " ,
" S_ARMA11 " ,
" S_ARMA12 " ,
" S_ARMA13 " ,
" S_ARMA14 " ,
" S_ARMA15 " ,
" S_ARMA16 " ,
" S_ARMF1 " ,
" S_ARMF2 " ,
" S_ARMF3 " ,
" S_ARMF4 " ,
" S_ARMF5 " ,
" S_ARMF6 " ,
" S_ARMF7 " ,
" S_ARMF8 " ,
" S_ARMF9 " ,
" S_ARMF10 " ,
" S_ARMF11 " ,
" S_ARMF12 " ,
" S_ARMF13 " ,
" S_ARMF14 " ,
" S_ARMF15 " ,
" S_ARMF16 " ,
2018-03-30 20:49:15 +00:00
" S_ARMF17 " ,
" S_ARMF18 " ,
" S_ARMF19 " ,
" S_ARMF20 " ,
" S_ARMF21 " ,
" S_ARMF22 " ,
" S_ARMF23 " ,
" S_ARMF24 " ,
" S_ARMF25 " ,
" S_ARMF26 " ,
" S_ARMF27 " ,
" S_ARMF28 " ,
" S_ARMF29 " ,
" S_ARMF30 " ,
" S_ARMF31 " ,
" S_ARMF32 " ,
2014-03-15 16:59:03 +00:00
" S_ARMB1 " ,
" S_ARMB2 " ,
" S_ARMB3 " ,
" S_ARMB4 " ,
" S_ARMB5 " ,
" S_ARMB6 " ,
" S_ARMB7 " ,
" S_ARMB8 " ,
" S_ARMB9 " ,
" S_ARMB10 " ,
" S_ARMB11 " ,
" S_ARMB12 " ,
" S_ARMB13 " ,
" S_ARMB14 " ,
" S_ARMB15 " ,
" S_ARMB16 " ,
2018-03-30 20:49:15 +00:00
" S_ARMB17 " ,
" S_ARMB18 " ,
" S_ARMB19 " ,
" S_ARMB20 " ,
" S_ARMB21 " ,
" S_ARMB22 " ,
" S_ARMB23 " ,
" S_ARMB24 " ,
" S_ARMB25 " ,
" S_ARMB26 " ,
" S_ARMB27 " ,
" S_ARMB28 " ,
" S_ARMB29 " ,
" S_ARMB30 " ,
" S_ARMB31 " ,
" S_ARMB32 " ,
2014-03-15 16:59:03 +00:00
" S_WIND1 " ,
" S_WIND2 " ,
" S_WIND3 " ,
" S_WIND4 " ,
" S_WIND5 " ,
" S_WIND6 " ,
" S_WIND7 " ,
" S_WIND8 " ,
" S_MAGN1 " ,
" S_MAGN2 " ,
" S_MAGN3 " ,
" S_MAGN4 " ,
" S_MAGN5 " ,
" S_MAGN6 " ,
" S_MAGN7 " ,
" S_MAGN8 " ,
" S_MAGN9 " ,
" S_MAGN10 " ,
" S_MAGN11 " ,
" S_MAGN12 " ,
2015-05-27 09:24:31 +00:00
" S_MAGN13 " ,
2014-03-15 16:59:03 +00:00
" S_FORC1 " ,
" S_FORC2 " ,
" S_FORC3 " ,
" S_FORC4 " ,
" S_FORC5 " ,
" S_FORC6 " ,
" S_FORC7 " ,
" S_FORC8 " ,
" S_FORC9 " ,
" S_FORC10 " ,
" S_FORC11 " ,
" S_FORC12 " ,
" S_FORC13 " ,
" S_FORC14 " ,
" S_FORC15 " ,
" S_FORC16 " ,
" S_FORC17 " ,
" S_FORC18 " ,
" S_FORC19 " ,
" S_FORC20 " ,
2016-10-20 12:44:03 +00:00
" S_FORC21 " ,
2014-03-15 16:59:03 +00:00
" S_ELEM1 " ,
" S_ELEM2 " ,
" S_ELEM3 " ,
" S_ELEM4 " ,
" S_ELEM5 " ,
" S_ELEM6 " ,
" S_ELEM7 " ,
" S_ELEM8 " ,
" S_ELEM9 " ,
" S_ELEM10 " ,
" S_ELEM11 " ,
" S_ELEM12 " ,
2016-10-23 19:34:43 +00:00
" S_ELEM13 " ,
" S_ELEM14 " ,
2014-03-15 16:59:03 +00:00
" S_ELEMF1 " ,
" S_ELEMF2 " ,
" S_ELEMF3 " ,
" S_ELEMF4 " ,
" S_ELEMF5 " ,
" S_ELEMF6 " ,
" S_ELEMF7 " ,
" S_ELEMF8 " ,
2016-07-08 20:55:17 +00:00
" S_ELEMF9 " ,
" S_ELEMF10 " ,
2014-03-15 16:59:03 +00:00
" S_PITY1 " ,
" S_PITY2 " ,
" S_PITY3 " ,
" S_PITY4 " ,
" S_PITY5 " ,
" S_PITY6 " ,
2019-06-19 22:20:24 +00:00
" S_PITY7 " ,
" S_PITY8 " ,
" S_PITY9 " ,
" S_PITY10 " ,
" S_PITY11 " ,
" S_PITY12 " ,
2014-03-15 16:59:03 +00:00
2016-10-13 14:13:33 +00:00
" S_FIRS1 " ,
" S_FIRS2 " ,
" S_FIRS3 " ,
" S_FIRS4 " ,
" S_FIRS5 " ,
" S_FIRS6 " ,
" S_FIRS7 " ,
" S_FIRS8 " ,
" S_FIRS9 " ,
2016-10-23 19:34:43 +00:00
" S_FIRS10 " ,
" S_FIRS11 " ,
2016-10-13 14:13:33 +00:00
" S_FIRSB1 " ,
" S_FIRSB2 " ,
" S_FIRSB3 " ,
" S_FIRSB4 " ,
" S_FIRSB5 " ,
" S_FIRSB6 " ,
" S_FIRSB7 " ,
" S_FIRSB8 " ,
" S_FIRSB9 " ,
2016-10-23 19:34:43 +00:00
" S_FIRSB10 " ,
2016-10-13 14:13:33 +00:00
" S_BUBS1 " ,
" S_BUBS2 " ,
" S_BUBS3 " ,
" S_BUBS4 " ,
" S_BUBS5 " ,
" S_BUBS6 " ,
" S_BUBS7 " ,
" S_BUBS8 " ,
" S_BUBS9 " ,
2016-10-17 19:39:22 +00:00
" S_BUBS10 " ,
" S_BUBS11 " ,
2016-10-13 14:13:33 +00:00
" S_BUBSB1 " ,
" S_BUBSB2 " ,
2016-10-13 14:13:33 +00:00
" S_BUBSB3 " ,
" S_BUBSB4 " ,
2016-10-13 14:13:33 +00:00
2016-10-17 19:39:22 +00:00
" S_BUBSB5 " ,
" S_BUBSB6 " ,
2016-10-13 14:13:33 +00:00
" S_ZAPS1 " ,
" S_ZAPS2 " ,
" S_ZAPS3 " ,
" S_ZAPS4 " ,
" S_ZAPS5 " ,
" S_ZAPS6 " ,
" S_ZAPS7 " ,
" S_ZAPS8 " ,
" S_ZAPS9 " ,
" S_ZAPS10 " ,
" S_ZAPS11 " ,
" S_ZAPS12 " ,
" S_ZAPS13 " , // blank frame
" S_ZAPS14 " ,
" S_ZAPS15 " ,
" S_ZAPS16 " ,
" S_ZAPSB1 " , // blank frame
" S_ZAPSB2 " ,
" S_ZAPSB3 " ,
" S_ZAPSB4 " ,
" S_ZAPSB5 " ,
" S_ZAPSB6 " ,
" S_ZAPSB7 " ,
" S_ZAPSB8 " ,
" S_ZAPSB9 " ,
" S_ZAPSB10 " ,
" S_ZAPSB11 " , // blank frame
2016-10-17 22:22:04 +00:00
// Thunder spark
" S_THUNDERCOIN_SPARK " ,
2014-03-15 16:59:03 +00:00
// Invincibility Sparkles
2016-02-09 10:39:16 +00:00
" S_IVSP " ,
2014-03-15 16:59:03 +00:00
// Super Sonic Spark
" S_SSPK1 " ,
" S_SSPK2 " ,
" S_SSPK3 " ,
" S_SSPK4 " ,
" S_SSPK5 " ,
2016-12-31 16:55:06 +00:00
// Flicky-sized bubble
" S_FLICKY_BUBBLE " ,
// Bluebird
" S_FLICKY_01_OUT " ,
" S_FLICKY_01_FLAP1 " ,
" S_FLICKY_01_FLAP2 " ,
" S_FLICKY_01_FLAP3 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_01_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_01_CENTER " ,
2016-12-31 16:55:06 +00:00
// Rabbit
" S_FLICKY_02_OUT " ,
" S_FLICKY_02_AIM " ,
" S_FLICKY_02_HOP " ,
" S_FLICKY_02_UP " ,
" S_FLICKY_02_DOWN " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_02_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_02_CENTER " ,
2016-12-31 16:55:06 +00:00
// Chicken
" S_FLICKY_03_OUT " ,
" S_FLICKY_03_AIM " ,
" S_FLICKY_03_HOP " ,
" S_FLICKY_03_UP " ,
" S_FLICKY_03_FLAP1 " ,
" S_FLICKY_03_FLAP2 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_03_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_03_CENTER " ,
2016-12-31 16:55:06 +00:00
// Seal
" S_FLICKY_04_OUT " ,
" S_FLICKY_04_AIM " ,
" S_FLICKY_04_HOP " ,
" S_FLICKY_04_UP " ,
" S_FLICKY_04_DOWN " ,
" S_FLICKY_04_SWIM1 " ,
" S_FLICKY_04_SWIM2 " ,
" S_FLICKY_04_SWIM3 " ,
" S_FLICKY_04_SWIM4 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_04_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_04_CENTER " ,
2016-12-31 16:55:06 +00:00
// Pig
" S_FLICKY_05_OUT " ,
" S_FLICKY_05_AIM " ,
" S_FLICKY_05_HOP " ,
" S_FLICKY_05_UP " ,
" S_FLICKY_05_DOWN " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_05_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_05_CENTER " ,
2016-12-31 16:55:06 +00:00
// Chipmunk
" S_FLICKY_06_OUT " ,
" S_FLICKY_06_AIM " ,
" S_FLICKY_06_HOP " ,
" S_FLICKY_06_UP " ,
" S_FLICKY_06_DOWN " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_06_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_06_CENTER " ,
2016-12-31 16:55:06 +00:00
// Penguin
" S_FLICKY_07_OUT " ,
" S_FLICKY_07_AIML " ,
" S_FLICKY_07_HOPL " ,
" S_FLICKY_07_UPL " ,
" S_FLICKY_07_DOWNL " ,
" S_FLICKY_07_AIMR " ,
" S_FLICKY_07_HOPR " ,
" S_FLICKY_07_UPR " ,
" S_FLICKY_07_DOWNR " ,
" S_FLICKY_07_SWIM1 " ,
" S_FLICKY_07_SWIM2 " ,
" S_FLICKY_07_SWIM3 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_07_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_07_CENTER " ,
2016-12-31 16:55:06 +00:00
// Fish
" S_FLICKY_08_OUT " ,
" S_FLICKY_08_AIM " ,
" S_FLICKY_08_HOP " ,
" S_FLICKY_08_FLAP1 " ,
" S_FLICKY_08_FLAP2 " ,
" S_FLICKY_08_FLAP3 " ,
" S_FLICKY_08_FLAP4 " ,
" S_FLICKY_08_SWIM1 " ,
" S_FLICKY_08_SWIM2 " ,
" S_FLICKY_08_SWIM3 " ,
" S_FLICKY_08_SWIM4 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_08_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_08_CENTER " ,
2016-12-31 16:55:06 +00:00
// Ram
" S_FLICKY_09_OUT " ,
" S_FLICKY_09_AIM " ,
" S_FLICKY_09_HOP " ,
" S_FLICKY_09_UP " ,
" S_FLICKY_09_DOWN " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_09_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_09_CENTER " ,
2016-12-31 16:55:06 +00:00
// Puffin
" S_FLICKY_10_OUT " ,
" S_FLICKY_10_FLAP1 " ,
" S_FLICKY_10_FLAP2 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_10_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_10_CENTER " ,
2016-12-31 16:55:06 +00:00
// Cow
" S_FLICKY_11_OUT " ,
" S_FLICKY_11_AIM " ,
" S_FLICKY_11_RUN1 " ,
" S_FLICKY_11_RUN2 " ,
" S_FLICKY_11_RUN3 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_11_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_11_CENTER " ,
2016-12-31 16:55:06 +00:00
// Rat
" S_FLICKY_12_OUT " ,
" S_FLICKY_12_AIM " ,
" S_FLICKY_12_RUN1 " ,
" S_FLICKY_12_RUN2 " ,
" S_FLICKY_12_RUN3 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_12_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_12_CENTER " ,
2016-12-31 16:55:06 +00:00
// Bear
" S_FLICKY_13_OUT " ,
" S_FLICKY_13_AIM " ,
" S_FLICKY_13_HOP " ,
" S_FLICKY_13_UP " ,
" S_FLICKY_13_DOWN " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_13_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_13_CENTER " ,
2016-12-31 16:55:06 +00:00
// Dove
" S_FLICKY_14_OUT " ,
" S_FLICKY_14_FLAP1 " ,
" S_FLICKY_14_FLAP2 " ,
" S_FLICKY_14_FLAP3 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_14_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_14_CENTER " ,
2016-12-31 16:55:06 +00:00
// Cat
" S_FLICKY_15_OUT " ,
" S_FLICKY_15_AIM " ,
" S_FLICKY_15_HOP " ,
" S_FLICKY_15_UP " ,
" S_FLICKY_15_DOWN " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_15_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_15_CENTER " ,
2016-12-31 16:55:06 +00:00
// Canary
" S_FLICKY_16_OUT " ,
" S_FLICKY_16_FLAP1 " ,
" S_FLICKY_16_FLAP2 " ,
" S_FLICKY_16_FLAP3 " ,
2018-08-09 05:44:08 +00:00
" S_FLICKY_16_STAND " ,
2018-08-09 16:08:06 +00:00
" S_FLICKY_16_CENTER " ,
2014-03-15 16:59:03 +00:00
2018-04-28 14:13:44 +00:00
// Spider
" S_SECRETFLICKY_01_OUT " ,
" S_SECRETFLICKY_01_AIM " ,
" S_SECRETFLICKY_01_HOP " ,
" S_SECRETFLICKY_01_UP " ,
" S_SECRETFLICKY_01_DOWN " ,
2018-08-09 05:44:08 +00:00
" S_SECRETFLICKY_01_STAND " ,
2018-08-09 16:08:06 +00:00
" S_SECRETFLICKY_01_CENTER " ,
2018-04-28 14:13:44 +00:00
// Bat
" S_SECRETFLICKY_02_OUT " ,
" S_SECRETFLICKY_02_FLAP1 " ,
" S_SECRETFLICKY_02_FLAP2 " ,
" S_SECRETFLICKY_02_FLAP3 " ,
2018-08-09 05:44:08 +00:00
" S_SECRETFLICKY_02_STAND " ,
2018-08-09 16:08:06 +00:00
" S_SECRETFLICKY_02_CENTER " ,
2018-04-28 14:13:44 +00:00
2018-05-19 23:04:39 +00:00
// Fan
" S_FAN " ,
" S_FAN2 " ,
" S_FAN3 " ,
" S_FAN4 " ,
" S_FAN5 " ,
// Steam Riser
" S_STEAM1 " ,
" S_STEAM2 " ,
" S_STEAM3 " ,
" S_STEAM4 " ,
" S_STEAM5 " ,
" S_STEAM6 " ,
" S_STEAM7 " ,
" S_STEAM8 " ,
// Bumpers
" S_BUMPER " ,
" S_BUMPERHIT " ,
2014-03-15 16:59:03 +00:00
2018-05-19 23:04:39 +00:00
// Balloons
" S_BALLOON " ,
" S_BALLOONPOP1 " ,
" S_BALLOONPOP2 " ,
" S_BALLOONPOP3 " ,
" S_BALLOONPOP4 " ,
" S_BALLOONPOP5 " ,
" S_BALLOONPOP6 " ,
// Yellow Spring
2014-03-15 16:59:03 +00:00
" S_YELLOWSPRING " ,
" S_YELLOWSPRING2 " ,
" S_YELLOWSPRING3 " ,
" S_YELLOWSPRING4 " ,
" S_YELLOWSPRING5 " ,
2018-05-19 23:04:39 +00:00
// Red Spring
2014-03-15 16:59:03 +00:00
" S_REDSPRING " ,
" S_REDSPRING2 " ,
" S_REDSPRING3 " ,
" S_REDSPRING4 " ,
" S_REDSPRING5 " ,
2018-05-19 23:04:39 +00:00
// Blue Spring
2014-03-15 16:59:03 +00:00
" S_BLUESPRING " ,
" S_BLUESPRING2 " ,
" S_BLUESPRING3 " ,
" S_BLUESPRING4 " ,
" S_BLUESPRING5 " ,
// Yellow Diagonal Spring
" S_YDIAG1 " ,
" S_YDIAG2 " ,
" S_YDIAG3 " ,
" S_YDIAG4 " ,
" S_YDIAG5 " ,
" S_YDIAG6 " ,
" S_YDIAG7 " ,
" S_YDIAG8 " ,
// Red Diagonal Spring
" S_RDIAG1 " ,
" S_RDIAG2 " ,
" S_RDIAG3 " ,
" S_RDIAG4 " ,
" S_RDIAG5 " ,
" S_RDIAG6 " ,
" S_RDIAG7 " ,
" S_RDIAG8 " ,
2018-05-19 23:04:39 +00:00
// Blue Diagonal Spring
" S_BDIAG1 " ,
" S_BDIAG2 " ,
" S_BDIAG3 " ,
" S_BDIAG4 " ,
" S_BDIAG5 " ,
" S_BDIAG6 " ,
" S_BDIAG7 " ,
" S_BDIAG8 " ,
2016-03-03 22:38:06 +00:00
// Yellow Side Spring
" S_YHORIZ1 " ,
" S_YHORIZ2 " ,
" S_YHORIZ3 " ,
" S_YHORIZ4 " ,
" S_YHORIZ5 " ,
" S_YHORIZ6 " ,
" S_YHORIZ7 " ,
" S_YHORIZ8 " ,
// Red Side Spring
" S_RHORIZ1 " ,
" S_RHORIZ2 " ,
" S_RHORIZ3 " ,
" S_RHORIZ4 " ,
" S_RHORIZ5 " ,
" S_RHORIZ6 " ,
" S_RHORIZ7 " ,
" S_RHORIZ8 " ,
// Blue Side Spring
" S_BHORIZ1 " ,
" S_BHORIZ2 " ,
" S_BHORIZ3 " ,
" S_BHORIZ4 " ,
" S_BHORIZ5 " ,
" S_BHORIZ6 " ,
" S_BHORIZ7 " ,
" S_BHORIZ8 " ,
* New object types!
* Red and yellow Boost panels!
* Added because SUBARASHII and KIMOKAWAIII had several levels using them, and I wanted to make them look better.
* https://cdn.discordapp.com/attachments/359091121789468672/634486669202161674/srb20015.gif
* Uses the mapthingnums of Glaber's SOC resource boosters, but absolutely nothing else - not even the magnitudes.
* Apply MF_AMBUSH to force the player into a spin - even if they don't have a spin ability!
* Banpyura!
* A Crushstacean with a spring instead of a crushclaw.
* https://cdn.discordapp.com/attachments/428262628893261828/634432099306176512/srb20019.gif
* Wanted this for a while, finally added it.
* Improved springs.
* Add pw_noautobrake to disable autobrake for half a second when touching yellow horizontal springs, and a second when touching red ones, even on the ground.
* Add pw_justsprung to disable directionchar for a few tics while touching any springs with a horizontal component to their velocity.
* Add the diagonal spring flag options Red and Yellow Diagonal Springs have to the Blue Diagonal Spring as well.
* Started but decided against a tip of the hat to the CD spring spin, hidden behind #define SPRINGSPIN.
* Make directionchar "lag behind" a little bit in waterslides.
* Improved flame jets.
* They now use new sprites for having their flames move upwards and sideways, instead of having them always face downwards like in 2.1!
* Fixed a mixed declaration and code error in A_RolloutRock. (Sorry Lach!)
* Make the Amy Cameo only spawn in SP, Record Attack, or Co-op unless it's the Clone Mode.
* Improved ZB config.
* Add above new types.
* Add Blue Diagonal Spring, which existed in the source but not the config.
* Re-order enemies in ZB config by zone (but keep them in the Enemies section only).
2019-10-17 20:50:26 +00:00
" S_BOOSTERSOUND " ,
" S_YELLOWBOOSTERROLLER " ,
" S_YELLOWBOOSTERSEG_LEFT " ,
" S_YELLOWBOOSTERSEG_RIGHT " ,
" S_YELLOWBOOSTERSEG_FACE " ,
" S_REDBOOSTERROLLER " ,
" S_REDBOOSTERSEG_LEFT " ,
" S_REDBOOSTERSEG_RIGHT " ,
" S_REDBOOSTERSEG_FACE " ,
2014-03-15 16:59:03 +00:00
// Rain
" S_RAIN1 " ,
" S_RAINRETURN " ,
// Snowflake
" S_SNOW1 " ,
" S_SNOW2 " ,
" S_SNOW3 " ,
// Water Splish
" S_SPLISH1 " ,
" S_SPLISH2 " ,
" S_SPLISH3 " ,
" S_SPLISH4 " ,
" S_SPLISH5 " ,
" S_SPLISH6 " ,
" S_SPLISH7 " ,
" S_SPLISH8 " ,
" S_SPLISH9 " ,
2019-10-05 08:00:59 +00:00
// Lava splish
" S_LAVASPLISH " ,
2014-03-15 16:59:03 +00:00
// added water splash
" S_SPLASH1 " ,
" S_SPLASH2 " ,
" S_SPLASH3 " ,
// lava/slime damage burn smoke
" S_SMOKE1 " ,
" S_SMOKE2 " ,
" S_SMOKE3 " ,
" S_SMOKE4 " ,
" S_SMOKE5 " ,
// Bubbles
" S_SMALLBUBBLE " ,
" S_MEDIUMBUBBLE " ,
2016-09-24 16:15:42 +00:00
" S_LARGEBUBBLE1 " ,
" S_LARGEBUBBLE2 " ,
2014-03-15 16:59:03 +00:00
" S_EXTRALARGEBUBBLE " , // breathable
" S_POP1 " , // Extra Large bubble goes POP!
2016-07-16 21:43:49 +00:00
" S_WATERZAP " ,
2016-11-10 17:51:10 +00:00
// Spindash dust
" S_SPINDUST1 " ,
" S_SPINDUST2 " ,
" S_SPINDUST3 " ,
" S_SPINDUST4 " ,
2016-11-10 21:09:05 +00:00
" S_SPINDUST_BUBBLE1 " ,
" S_SPINDUST_BUBBLE2 " ,
" S_SPINDUST_BUBBLE3 " ,
" S_SPINDUST_BUBBLE4 " ,
2016-11-13 22:02:29 +00:00
" S_SPINDUST_FIRE1 " ,
" S_SPINDUST_FIRE2 " ,
" S_SPINDUST_FIRE3 " ,
" S_SPINDUST_FIRE4 " ,
2016-11-10 17:51:10 +00:00
2014-03-15 16:59:03 +00:00
" S_FOG1 " ,
" S_FOG2 " ,
" S_FOG3 " ,
" S_FOG4 " ,
" S_FOG5 " ,
" S_FOG6 " ,
" S_FOG7 " ,
" S_FOG8 " ,
" S_FOG9 " ,
" S_FOG10 " ,
" S_FOG11 " ,
" S_FOG12 " ,
" S_FOG13 " ,
" S_FOG14 " ,
" S_SEED " ,
" S_PARTICLE " ,
// Score Logos
" S_SCRA " , // 100
" S_SCRB " , // 200
" S_SCRC " , // 500
" S_SCRD " , // 1000
" S_SCRE " , // 10000
" S_SCRF " , // 400 (mario)
" S_SCRG " , // 800 (mario)
" S_SCRH " , // 2000 (mario)
" S_SCRI " , // 4000 (mario)
" S_SCRJ " , // 8000 (mario)
" S_SCRK " , // 1UP (mario)
2018-05-19 23:04:39 +00:00
" S_SCRL " , // 10
2014-03-15 16:59:03 +00:00
// Drowning Timer Numbers
" S_ZERO1 " ,
" S_ONE1 " ,
" S_TWO1 " ,
" S_THREE1 " ,
" S_FOUR1 " ,
" S_FIVE1 " ,
2016-07-16 21:43:49 +00:00
" S_ZERO2 " ,
" S_ONE2 " ,
" S_TWO2 " ,
" S_THREE2 " ,
" S_FOUR2 " ,
" S_FIVE2 " ,
2017-03-23 19:11:22 +00:00
" S_LOCKON1 " ,
" S_LOCKON2 " ,
2019-07-02 23:50:12 +00:00
" S_LOCKON3 " ,
" S_LOCKON4 " ,
" S_LOCKONINF1 " ,
" S_LOCKONINF2 " ,
" S_LOCKONINF3 " ,
" S_LOCKONINF4 " ,
2017-03-22 18:51:30 +00:00
2014-03-15 16:59:03 +00:00
// Tag Sign
2017-03-22 18:51:30 +00:00
" S_TTAG " ,
2014-03-15 16:59:03 +00:00
// Got Flag Sign
2017-03-23 19:11:22 +00:00
" S_GOTFLAG " ,
2017-03-22 18:51:30 +00:00
" S_CORK " ,
2019-06-19 22:20:24 +00:00
" S_LHRT " ,
2014-03-15 16:59:03 +00:00
// Red Ring
" S_RRNG1 " ,
" S_RRNG2 " ,
" S_RRNG3 " ,
" S_RRNG4 " ,
" S_RRNG5 " ,
" S_RRNG6 " ,
" S_RRNG7 " ,
2016-02-09 10:39:16 +00:00
// Weapon Ring Ammo
" S_BOUNCERINGAMMO " ,
" S_RAILRINGAMMO " ,
" S_INFINITYRINGAMMO " ,
" S_AUTOMATICRINGAMMO " ,
" S_EXPLOSIONRINGAMMO " ,
" S_SCATTERRINGAMMO " ,
" S_GRENADERINGAMMO " ,
2014-03-15 16:59:03 +00:00
// Weapon pickup
2016-02-09 10:39:16 +00:00
" S_BOUNCEPICKUP " ,
2014-03-15 16:59:03 +00:00
" S_BOUNCEPICKUPFADE1 " ,
" S_BOUNCEPICKUPFADE2 " ,
" S_BOUNCEPICKUPFADE3 " ,
" S_BOUNCEPICKUPFADE4 " ,
" S_BOUNCEPICKUPFADE5 " ,
" S_BOUNCEPICKUPFADE6 " ,
" S_BOUNCEPICKUPFADE7 " ,
" S_BOUNCEPICKUPFADE8 " ,
2016-02-09 10:39:16 +00:00
" S_RAILPICKUP " ,
2014-03-15 16:59:03 +00:00
" S_RAILPICKUPFADE1 " ,
" S_RAILPICKUPFADE2 " ,
" S_RAILPICKUPFADE3 " ,
" S_RAILPICKUPFADE4 " ,
" S_RAILPICKUPFADE5 " ,
" S_RAILPICKUPFADE6 " ,
" S_RAILPICKUPFADE7 " ,
" S_RAILPICKUPFADE8 " ,
2016-02-09 10:39:16 +00:00
" S_AUTOPICKUP " ,
2014-03-15 16:59:03 +00:00
" S_AUTOPICKUPFADE1 " ,
" S_AUTOPICKUPFADE2 " ,
" S_AUTOPICKUPFADE3 " ,
" S_AUTOPICKUPFADE4 " ,
" S_AUTOPICKUPFADE5 " ,
" S_AUTOPICKUPFADE6 " ,
" S_AUTOPICKUPFADE7 " ,
" S_AUTOPICKUPFADE8 " ,
2016-02-09 10:39:16 +00:00
" S_EXPLODEPICKUP " ,
2014-03-15 16:59:03 +00:00
" S_EXPLODEPICKUPFADE1 " ,
" S_EXPLODEPICKUPFADE2 " ,
" S_EXPLODEPICKUPFADE3 " ,
" S_EXPLODEPICKUPFADE4 " ,
" S_EXPLODEPICKUPFADE5 " ,
" S_EXPLODEPICKUPFADE6 " ,
" S_EXPLODEPICKUPFADE7 " ,
" S_EXPLODEPICKUPFADE8 " ,
2016-02-09 10:39:16 +00:00
" S_SCATTERPICKUP " ,
2014-03-15 16:59:03 +00:00
" S_SCATTERPICKUPFADE1 " ,
" S_SCATTERPICKUPFADE2 " ,
" S_SCATTERPICKUPFADE3 " ,
" S_SCATTERPICKUPFADE4 " ,
" S_SCATTERPICKUPFADE5 " ,
" S_SCATTERPICKUPFADE6 " ,
" S_SCATTERPICKUPFADE7 " ,
" S_SCATTERPICKUPFADE8 " ,
2016-02-09 10:39:16 +00:00
" S_GRENADEPICKUP " ,
2014-03-15 16:59:03 +00:00
" S_GRENADEPICKUPFADE1 " ,
" S_GRENADEPICKUPFADE2 " ,
" S_GRENADEPICKUPFADE3 " ,
" S_GRENADEPICKUPFADE4 " ,
" S_GRENADEPICKUPFADE5 " ,
" S_GRENADEPICKUPFADE6 " ,
" S_GRENADEPICKUPFADE7 " ,
" S_GRENADEPICKUPFADE8 " ,
// Thrown Weapon Rings
" S_THROWNBOUNCE1 " ,
" S_THROWNBOUNCE2 " ,
" S_THROWNBOUNCE3 " ,
" S_THROWNBOUNCE4 " ,
" S_THROWNBOUNCE5 " ,
" S_THROWNBOUNCE6 " ,
" S_THROWNBOUNCE7 " ,
" S_THROWNINFINITY1 " ,
" S_THROWNINFINITY2 " ,
" S_THROWNINFINITY3 " ,
" S_THROWNINFINITY4 " ,
" S_THROWNINFINITY5 " ,
" S_THROWNINFINITY6 " ,
" S_THROWNINFINITY7 " ,
" S_THROWNAUTOMATIC1 " ,
" S_THROWNAUTOMATIC2 " ,
" S_THROWNAUTOMATIC3 " ,
" S_THROWNAUTOMATIC4 " ,
" S_THROWNAUTOMATIC5 " ,
" S_THROWNAUTOMATIC6 " ,
" S_THROWNAUTOMATIC7 " ,
" S_THROWNEXPLOSION1 " ,
" S_THROWNEXPLOSION2 " ,
" S_THROWNEXPLOSION3 " ,
" S_THROWNEXPLOSION4 " ,
" S_THROWNEXPLOSION5 " ,
" S_THROWNEXPLOSION6 " ,
" S_THROWNEXPLOSION7 " ,
" S_THROWNGRENADE1 " ,
" S_THROWNGRENADE2 " ,
" S_THROWNGRENADE3 " ,
" S_THROWNGRENADE4 " ,
" S_THROWNGRENADE5 " ,
" S_THROWNGRENADE6 " ,
" S_THROWNGRENADE7 " ,
" S_THROWNGRENADE8 " ,
" S_THROWNGRENADE9 " ,
" S_THROWNGRENADE10 " ,
" S_THROWNGRENADE11 " ,
" S_THROWNGRENADE12 " ,
" S_THROWNGRENADE13 " ,
" S_THROWNGRENADE14 " ,
" S_THROWNGRENADE15 " ,
" S_THROWNGRENADE16 " ,
" S_THROWNGRENADE17 " ,
" S_THROWNGRENADE18 " ,
" S_THROWNSCATTER " ,
" S_RINGEXPLODE " ,
" S_COIN1 " ,
" S_COIN2 " ,
" S_COIN3 " ,
" S_COINSPARKLE1 " ,
" S_COINSPARKLE2 " ,
" S_COINSPARKLE3 " ,
" S_COINSPARKLE4 " ,
" S_GOOMBA1 " ,
" S_GOOMBA1B " ,
" S_GOOMBA2 " ,
" S_GOOMBA3 " ,
" S_GOOMBA4 " ,
" S_GOOMBA5 " ,
" S_GOOMBA6 " ,
" S_GOOMBA7 " ,
" S_GOOMBA8 " ,
" S_GOOMBA9 " ,
" S_GOOMBA_DEAD " ,
" S_BLUEGOOMBA1 " ,
" S_BLUEGOOMBA1B " ,
" S_BLUEGOOMBA2 " ,
" S_BLUEGOOMBA3 " ,
" S_BLUEGOOMBA4 " ,
" S_BLUEGOOMBA5 " ,
" S_BLUEGOOMBA6 " ,
" S_BLUEGOOMBA7 " ,
" S_BLUEGOOMBA8 " ,
" S_BLUEGOOMBA9 " ,
" S_BLUEGOOMBA_DEAD " ,
// Mario-specific stuff
" S_FIREFLOWER1 " ,
" S_FIREFLOWER2 " ,
" S_FIREFLOWER3 " ,
" S_FIREFLOWER4 " ,
" S_FIREBALL1 " ,
" S_FIREBALL2 " ,
" S_FIREBALL3 " ,
" S_FIREBALL4 " ,
" S_FIREBALLEXP1 " ,
" S_FIREBALLEXP2 " ,
" S_FIREBALLEXP3 " ,
" S_SHELL " ,
2017-01-25 14:52:36 +00:00
" S_PUMA_START1 " ,
" S_PUMA_START2 " ,
2017-01-21 01:09:39 +00:00
" S_PUMA_UP1 " ,
" S_PUMA_UP2 " ,
" S_PUMA_UP3 " ,
" S_PUMA_DOWN1 " ,
" S_PUMA_DOWN2 " ,
" S_PUMA_DOWN3 " ,
" S_PUMATRAIL1 " ,
" S_PUMATRAIL2 " ,
" S_PUMATRAIL3 " ,
" S_PUMATRAIL4 " ,
" S_HAMMER " ,
2014-03-15 16:59:03 +00:00
" S_KOOPA1 " ,
" S_KOOPA2 " ,
" S_KOOPAFLAME1 " ,
" S_KOOPAFLAME2 " ,
" S_KOOPAFLAME3 " ,
" S_AXE1 " ,
" S_AXE2 " ,
" S_AXE3 " ,
" S_MARIOBUSH1 " ,
" S_MARIOBUSH2 " ,
" S_TOAD " ,
// Nights-specific stuff
2018-08-10 22:24:31 +00:00
" S_NIGHTSDRONE_MAN1 " ,
" S_NIGHTSDRONE_MAN2 " ,
2014-03-15 16:59:03 +00:00
" S_NIGHTSDRONE_SPARKLING1 " ,
" S_NIGHTSDRONE_SPARKLING2 " ,
" S_NIGHTSDRONE_SPARKLING3 " ,
" S_NIGHTSDRONE_SPARKLING4 " ,
" S_NIGHTSDRONE_SPARKLING5 " ,
" S_NIGHTSDRONE_SPARKLING6 " ,
" S_NIGHTSDRONE_SPARKLING7 " ,
" S_NIGHTSDRONE_SPARKLING8 " ,
" S_NIGHTSDRONE_SPARKLING9 " ,
" S_NIGHTSDRONE_SPARKLING10 " ,
" S_NIGHTSDRONE_SPARKLING11 " ,
" S_NIGHTSDRONE_SPARKLING12 " ,
" S_NIGHTSDRONE_SPARKLING13 " ,
" S_NIGHTSDRONE_SPARKLING14 " ,
" S_NIGHTSDRONE_SPARKLING15 " ,
" S_NIGHTSDRONE_SPARKLING16 " ,
2018-08-10 22:24:31 +00:00
" S_NIGHTSDRONE_GOAL1 " ,
" S_NIGHTSDRONE_GOAL2 " ,
" S_NIGHTSDRONE_GOAL3 " ,
" S_NIGHTSDRONE_GOAL4 " ,
2014-03-15 16:59:03 +00:00
" S_NIGHTSPARKLE1 " ,
" S_NIGHTSPARKLE2 " ,
" S_NIGHTSPARKLE3 " ,
" S_NIGHTSPARKLE4 " ,
" S_NIGHTSPARKLESUPER1 " ,
" S_NIGHTSPARKLESUPER2 " ,
" S_NIGHTSPARKLESUPER3 " ,
" S_NIGHTSPARKLESUPER4 " ,
" S_NIGHTSLOOPHELPER " ,
// NiGHTS bumper
" S_NIGHTSBUMPER1 " ,
" S_NIGHTSBUMPER2 " ,
" S_NIGHTSBUMPER3 " ,
" S_NIGHTSBUMPER4 " ,
" S_NIGHTSBUMPER5 " ,
" S_NIGHTSBUMPER6 " ,
" S_NIGHTSBUMPER7 " ,
" S_NIGHTSBUMPER8 " ,
" S_NIGHTSBUMPER9 " ,
" S_NIGHTSBUMPER10 " ,
" S_NIGHTSBUMPER11 " ,
" S_NIGHTSBUMPER12 " ,
" S_HOOP " ,
" S_HOOP_XMASA " ,
" S_HOOP_XMASB " ,
" S_NIGHTSCORE10 " ,
" S_NIGHTSCORE20 " ,
" S_NIGHTSCORE30 " ,
" S_NIGHTSCORE40 " ,
" S_NIGHTSCORE50 " ,
" S_NIGHTSCORE60 " ,
" S_NIGHTSCORE70 " ,
" S_NIGHTSCORE80 " ,
" S_NIGHTSCORE90 " ,
" S_NIGHTSCORE100 " ,
" S_NIGHTSCORE10_2 " ,
" S_NIGHTSCORE20_2 " ,
" S_NIGHTSCORE30_2 " ,
" S_NIGHTSCORE40_2 " ,
" S_NIGHTSCORE50_2 " ,
" S_NIGHTSCORE60_2 " ,
" S_NIGHTSCORE70_2 " ,
" S_NIGHTSCORE80_2 " ,
" S_NIGHTSCORE90_2 " ,
" S_NIGHTSCORE100_2 " ,
// NiGHTS Paraloop Powerups
2017-05-09 15:20:26 +00:00
" S_NIGHTSSUPERLOOP " ,
" S_NIGHTSDRILLREFILL " ,
" S_NIGHTSHELPER " ,
" S_NIGHTSEXTRATIME " ,
" S_NIGHTSLINKFREEZE " ,
2014-03-15 16:59:03 +00:00
" S_EGGCAPSULE " ,
// Orbiting Chaos Emeralds
" S_ORBITEM1 " ,
" S_ORBITEM2 " ,
" S_ORBITEM3 " ,
" S_ORBITEM4 " ,
" S_ORBITEM5 " ,
" S_ORBITEM6 " ,
" S_ORBITEM7 " ,
2014-03-17 12:13:16 +00:00
" S_ORBITEM8 " ,
2018-06-03 21:41:54 +00:00
" S_ORBIDYA1 " ,
" S_ORBIDYA2 " ,
" S_ORBIDYA3 " ,
" S_ORBIDYA4 " ,
" S_ORBIDYA5 " ,
2014-03-15 16:59:03 +00:00
// "Flicky" helper
" S_NIGHTOPIANHELPER1 " ,
" S_NIGHTOPIANHELPER2 " ,
" S_NIGHTOPIANHELPER3 " ,
" S_NIGHTOPIANHELPER4 " ,
" S_NIGHTOPIANHELPER5 " ,
" S_NIGHTOPIANHELPER6 " ,
" S_NIGHTOPIANHELPER7 " ,
" S_NIGHTOPIANHELPER8 " ,
2016-12-31 16:55:06 +00:00
" S_NIGHTOPIANHELPER9 " ,
2014-03-15 16:59:03 +00:00
2018-06-03 21:41:54 +00:00
// Nightopian
" S_PIAN0 " ,
" S_PIAN1 " ,
" S_PIAN2 " ,
" S_PIAN3 " ,
" S_PIAN4 " ,
" S_PIAN5 " ,
" S_PIAN6 " ,
" S_PIANSING " ,
// Shleep
" S_SHLEEP1 " ,
" S_SHLEEP2 " ,
" S_SHLEEP3 " ,
" S_SHLEEP4 " ,
" S_SHLEEPBOUNCE1 " ,
" S_SHLEEPBOUNCE2 " ,
" S_SHLEEPBOUNCE3 " ,
2018-04-28 14:13:44 +00:00
// Secret badniks and hazards, shhhh
2018-06-05 16:22:28 +00:00
" S_PENGUINATOR_LOOK " ,
" S_PENGUINATOR_WADDLE1 " ,
" S_PENGUINATOR_WADDLE2 " ,
" S_PENGUINATOR_WADDLE3 " ,
" S_PENGUINATOR_WADDLE4 " ,
" S_PENGUINATOR_SLIDE1 " ,
" S_PENGUINATOR_SLIDE2 " ,
" S_PENGUINATOR_SLIDE3 " ,
" S_PENGUINATOR_SLIDE4 " ,
" S_PENGUINATOR_SLIDE5 " ,
" S_POPHAT_LOOK " ,
" S_POPHAT_SHOOT1 " ,
" S_POPHAT_SHOOT2 " ,
" S_POPHAT_SHOOT3 " ,
2018-05-04 20:30:15 +00:00
" S_HIVEELEMENTAL_LOOK " ,
" S_HIVEELEMENTAL_PREPARE1 " ,
" S_HIVEELEMENTAL_PREPARE2 " ,
" S_HIVEELEMENTAL_SHOOT1 " ,
" S_HIVEELEMENTAL_SHOOT2 " ,
" S_HIVEELEMENTAL_DORMANT " ,
" S_HIVEELEMENTAL_PAIN " ,
" S_HIVEELEMENTAL_DIE1 " ,
" S_HIVEELEMENTAL_DIE2 " ,
" S_HIVEELEMENTAL_DIE3 " ,
" S_BUMBLEBORE_SPAWN " ,
" S_BUMBLEBORE_LOOK1 " ,
" S_BUMBLEBORE_LOOK2 " ,
" S_BUMBLEBORE_FLY1 " ,
" S_BUMBLEBORE_FLY2 " ,
" S_BUMBLEBORE_RAISE " ,
" S_BUMBLEBORE_FALL1 " ,
" S_BUMBLEBORE_FALL2 " ,
" S_BUMBLEBORE_STUCK1 " ,
" S_BUMBLEBORE_STUCK2 " ,
" S_BUMBLEBORE_DIE " ,
" S_BBUZZFLY1 " ,
" S_BBUZZFLY2 " ,
2018-04-28 14:13:44 +00:00
" S_SMASHSPIKE_FLOAT " ,
" S_SMASHSPIKE_EASE1 " ,
" S_SMASHSPIKE_EASE2 " ,
" S_SMASHSPIKE_FALL " ,
" S_SMASHSPIKE_STOMP1 " ,
" S_SMASHSPIKE_STOMP2 " ,
" S_SMASHSPIKE_RISE1 " ,
" S_SMASHSPIKE_RISE2 " ,
" S_CACO_LOOK " ,
" S_CACO_WAKE1 " ,
" S_CACO_WAKE2 " ,
" S_CACO_WAKE3 " ,
" S_CACO_WAKE4 " ,
" S_CACO_ROAR " ,
" S_CACO_CHASE " ,
" S_CACO_CHASE_REPEAT " ,
" S_CACO_RANDOM " ,
" S_CACO_PREPARE_SOUND " ,
" S_CACO_PREPARE1 " ,
" S_CACO_PREPARE2 " ,
" S_CACO_PREPARE3 " ,
" S_CACO_SHOOT_SOUND " ,
" S_CACO_SHOOT1 " ,
" S_CACO_SHOOT2 " ,
" S_CACO_CLOSE " ,
" S_CACO_DIE_FLAGS " ,
" S_CACO_DIE_GIB1 " ,
" S_CACO_DIE_GIB2 " ,
" S_CACO_DIE_SCREAM " ,
" S_CACO_DIE_SHATTER " ,
" S_CACO_DIE_FALL " ,
" S_CACOSHARD_RANDOMIZE " ,
" S_CACOSHARD1_1 " ,
" S_CACOSHARD1_2 " ,
" S_CACOSHARD2_1 " ,
" S_CACOSHARD2_2 " ,
" S_CACOFIRE1 " ,
" S_CACOFIRE2 " ,
" S_CACOFIRE3 " ,
" S_CACOFIRE_EXPLODE1 " ,
" S_CACOFIRE_EXPLODE2 " ,
" S_CACOFIRE_EXPLODE3 " ,
" S_CACOFIRE_EXPLODE4 " ,
" S_SPINBOBERT_MOVE_FLIPUP " ,
" S_SPINBOBERT_MOVE_UP " ,
" S_SPINBOBERT_MOVE_FLIPDOWN " ,
" S_SPINBOBERT_MOVE_DOWN " ,
" S_SPINBOBERT_FIRE_MOVE " ,
" S_SPINBOBERT_FIRE_GHOST " ,
" S_SPINBOBERT_FIRE_TRAIL1 " ,
" S_SPINBOBERT_FIRE_TRAIL2 " ,
" S_SPINBOBERT_FIRE_TRAIL3 " ,
" S_HANGSTER_LOOK " ,
" S_HANGSTER_SWOOP1 " ,
" S_HANGSTER_SWOOP2 " ,
" S_HANGSTER_ARC1 " ,
" S_HANGSTER_ARC2 " ,
" S_HANGSTER_ARC3 " ,
" S_HANGSTER_FLY1 " ,
" S_HANGSTER_FLY2 " ,
" S_HANGSTER_FLY3 " ,
" S_HANGSTER_FLY4 " ,
" S_HANGSTER_FLYREPEAT " ,
" S_HANGSTER_ARCUP1 " ,
" S_HANGSTER_ARCUP2 " ,
" S_HANGSTER_ARCUP3 " ,
" S_HANGSTER_RETURN1 " ,
" S_HANGSTER_RETURN2 " ,
" S_HANGSTER_RETURN3 " ,
2014-03-15 16:59:03 +00:00
" S_CRUMBLE1 " ,
" S_CRUMBLE2 " ,
// Spark
" S_SPRK1 " ,
" S_SPRK2 " ,
" S_SPRK3 " ,
// Robot Explosion
2016-12-29 17:02:05 +00:00
" S_XPLD_FLICKY " ,
2014-03-15 16:59:03 +00:00
" S_XPLD1 " ,
" S_XPLD2 " ,
2018-03-26 22:53:09 +00:00
" S_XPLD3 " ,
" S_XPLD4 " ,
" S_XPLD5 " ,
" S_XPLD6 " ,
2016-12-30 14:04:04 +00:00
" S_XPLD_EGGTRAP " ,
2014-03-15 16:59:03 +00:00
// Underwater Explosion
" S_WPLD1 " ,
" S_WPLD2 " ,
" S_WPLD3 " ,
" S_WPLD4 " ,
" S_WPLD5 " ,
" S_WPLD6 " ,
2018-05-04 20:30:15 +00:00
" S_DUST1 " ,
" S_DUST2 " ,
" S_DUST3 " ,
" S_DUST4 " ,
2019-06-09 10:27:09 +00:00
" S_WOODDEBRIS " ,
2014-03-15 16:59:03 +00:00
" S_ROCKSPAWN " ,
2016-02-09 10:39:16 +00:00
" S_ROCKCRUMBLEA " ,
" S_ROCKCRUMBLEB " ,
" S_ROCKCRUMBLEC " ,
" S_ROCKCRUMBLED " ,
" S_ROCKCRUMBLEE " ,
" S_ROCKCRUMBLEF " ,
" S_ROCKCRUMBLEG " ,
" S_ROCKCRUMBLEH " ,
" S_ROCKCRUMBLEI " ,
" S_ROCKCRUMBLEJ " ,
" S_ROCKCRUMBLEK " ,
" S_ROCKCRUMBLEL " ,
" S_ROCKCRUMBLEM " ,
" S_ROCKCRUMBLEN " ,
" S_ROCKCRUMBLEO " ,
" S_ROCKCRUMBLEP " ,
2019-07-06 04:31:02 +00:00
" S_BRICKDEBRIS " ,
2014-03-15 16:59:03 +00:00
# ifdef SEENAMES
" S_NAMECHECK " ,
# endif
} ;
// RegEx to generate this from info.h: ^\tMT_([^,]+), --> \t"MT_\1",
// I am leaving the prefixes solely for clarity to programmers,
// because sadly no one remembers this place while searching for full state names.
static const char * const MOBJTYPE_LIST [ ] = { // array length left dynamic for sanity testing later.
" MT_NULL " ,
" MT_UNKNOWN " ,
" MT_THOK " , // Thok! mobj
" MT_PLAYER " ,
2017-10-03 17:18:18 +00:00
" MT_TAILSOVERLAY " , // c:
2019-10-23 04:35:17 +00:00
" MT_METALJETFUME " , // [:
2014-03-15 16:59:03 +00:00
// Enemies
2018-05-14 00:19:24 +00:00
" MT_BLUECRAWLA " , // Crawla (Blue)
" MT_REDCRAWLA " , // Crawla (Red)
" MT_GFZFISH " , // SDURF
" MT_GOLDBUZZ " , // Buzz (Gold)
" MT_REDBUZZ " , // Buzz (Red)
2014-03-15 16:59:03 +00:00
" MT_JETTBOMBER " , // Jetty-Syn Bomber
" MT_JETTGUNNER " , // Jetty-Syn Gunner
" MT_CRAWLACOMMANDER " , // Crawla Commander
" MT_DETON " , // Deton
" MT_SKIM " , // Skim mine dropper
2018-05-14 00:19:24 +00:00
" MT_TURRET " , // Industrial Turret
" MT_POPUPTURRET " , // Pop-Up Turret
2018-05-13 13:09:20 +00:00
" MT_SPINCUSHION " , // Spincushion
2018-05-14 00:19:24 +00:00
" MT_CRUSHSTACEAN " , // Crushstacean
" MT_CRUSHCLAW " , // Big meaty claw
" MT_CRUSHCHAIN " , // Chain
2019-10-18 19:32:35 +00:00
" MT_BANPYURA " , // Banpyura
" MT_BANPSPRING " , // Banpyura spring
2014-03-15 16:59:03 +00:00
" MT_JETJAW " , // Jet Jaw
" MT_SNAILER " , // Snailer
2018-05-14 00:19:24 +00:00
" MT_VULTURE " , // BASH
2014-03-15 16:59:03 +00:00
" MT_POINTY " , // Pointy
" MT_POINTYBALL " , // Pointy Ball
" MT_ROBOHOOD " , // Robo-Hood
2018-05-24 00:40:57 +00:00
" MT_FACESTABBER " , // Castlebot Facestabber
" MT_FACESTABBERSPEAR " , // Castlebot Facestabber spear aura
2014-03-15 16:59:03 +00:00
" MT_EGGGUARD " , // Egg Guard
2018-05-14 00:19:24 +00:00
" MT_EGGSHIELD " , // Egg Guard's shield
2014-03-15 16:59:03 +00:00
" MT_GSNAPPER " , // Green Snapper
2019-06-10 18:32:50 +00:00
" MT_SNAPPER_LEG " , // Green Snapper leg
" MT_SNAPPER_HEAD " , // Green Snapper head
2014-03-15 16:59:03 +00:00
" MT_MINUS " , // Minus
2019-06-10 15:42:37 +00:00
" MT_MINUSDIRT " , // Minus dirt
2018-05-14 00:19:24 +00:00
" MT_SPRINGSHELL " , // Spring Shell
2014-03-15 16:59:03 +00:00
" MT_YELLOWSHELL " , // Spring Shell (yellow)
" MT_UNIDUS " , // Unidus
" MT_UNIBALL " , // Unidus Ball
2019-06-10 11:58:16 +00:00
" MT_CANARIVORE " , // Canarivore
" MT_CANARIVORE_GAS " , // Canarivore gas
2019-08-30 06:17:25 +00:00
" MT_PYREFLY " , // Pyre Fly
" MT_PYREFLY_FIRE " , // Pyre Fly fire
2019-09-29 08:39:09 +00:00
" MT_PTERABYTESPAWNER " , // Pterabyte spawner
" MT_PTERABYTEWAYPOINT " , // Pterabyte waypoint
" MT_PTERABYTE " , // Pterabyte
2014-03-15 16:59:03 +00:00
// Generic Boss Items
" MT_BOSSEXPLODE " ,
" MT_SONIC3KBOSSEXPLODE " ,
" MT_BOSSFLYPOINT " ,
" MT_EGGTRAP " ,
" MT_BOSS3WAYPOINT " ,
" MT_BOSS9GATHERPOINT " ,
2019-08-30 18:19:54 +00:00
" MT_BOSSJUNK " ,
2014-03-15 16:59:03 +00:00
// Boss 1
" MT_EGGMOBILE " ,
" MT_JETFUME1 " ,
" MT_EGGMOBILE_BALL " ,
" MT_EGGMOBILE_TARGET " ,
" MT_EGGMOBILE_FIRE " ,
// Boss 2
" MT_EGGMOBILE2 " ,
" MT_EGGMOBILE2_POGO " ,
" MT_GOOP " ,
2017-01-21 01:09:39 +00:00
" MT_GOOPTRAIL " ,
2014-03-15 16:59:03 +00:00
// Boss 3
" MT_EGGMOBILE3 " ,
" MT_FAKEMOBILE " ,
2019-09-25 21:27:51 +00:00
" MT_SHOCKWAVE " ,
2014-03-15 16:59:03 +00:00
// Boss 4
" MT_EGGMOBILE4 " ,
" MT_EGGMOBILE4_MACE " ,
" MT_JETFLAME " ,
2019-07-08 12:26:40 +00:00
" MT_EGGROBO1 " ,
" MT_EGGROBO1JET " ,
2014-03-15 16:59:03 +00:00
2019-05-02 17:01:18 +00:00
// Boss 5
" MT_FANG " ,
2019-09-25 13:36:20 +00:00
" MT_BROKENROBOT " ,
2019-09-26 16:06:29 +00:00
" MT_VWREF " ,
" MT_VWREB " ,
" MT_PROJECTORLIGHT " ,
2019-05-02 17:01:18 +00:00
" MT_FBOMB " ,
2019-05-23 20:51:58 +00:00
" MT_TNTDUST " , // also used by barrel
2019-05-02 17:01:18 +00:00
" MT_FSGNA " ,
" MT_FSGNB " ,
2019-05-02 17:11:44 +00:00
" MT_FANGWAYPOINT " ,
2014-03-15 16:59:03 +00:00
// Black Eggman (Boss 7)
" MT_BLACKEGGMAN " ,
" MT_BLACKEGGMAN_HELPER " ,
" MT_BLACKEGGMAN_GOOPFIRE " ,
" MT_BLACKEGGMAN_MISSILE " ,
// New Very-Last-Minute 2.1 Brak Eggman (Cy-Brak-demon)
" MT_CYBRAKDEMON " ,
" MT_CYBRAKDEMON_ELECTRIC_BARRIER " ,
" MT_CYBRAKDEMON_MISSILE " ,
" MT_CYBRAKDEMON_FLAMESHOT " ,
" MT_CYBRAKDEMON_FLAMEREST " ,
" MT_CYBRAKDEMON_TARGET_RETICULE " ,
2014-04-14 05:14:58 +00:00
" MT_CYBRAKDEMON_TARGET_DOT " ,
2014-03-15 16:59:03 +00:00
" MT_CYBRAKDEMON_NAPALM_BOMB_LARGE " ,
" MT_CYBRAKDEMON_NAPALM_BOMB_SMALL " ,
" MT_CYBRAKDEMON_NAPALM_FLAMES " ,
" MT_CYBRAKDEMON_VILE_EXPLOSION " ,
// Metal Sonic
" MT_METALSONIC_RACE " ,
" MT_METALSONIC_BATTLE " ,
" MT_MSSHIELD_FRONT " ,
" MT_MSGATHER " ,
// Collectible Items
" MT_RING " ,
" MT_FLINGRING " , // Lost ring
2018-06-05 16:22:28 +00:00
" MT_BLUESPHERE " , // Blue sphere for special stages
2018-08-10 04:19:56 +00:00
" MT_FLINGBLUESPHERE " , // Lost blue sphere
2018-06-05 16:22:28 +00:00
" MT_BOMBSPHERE " ,
2014-03-15 16:59:03 +00:00
" MT_REDTEAMRING " , //Rings collectable by red team.
" MT_BLUETEAMRING " , //Rings collectable by blue team.
2017-07-15 19:15:34 +00:00
" MT_TOKEN " , // Special Stage Token
2014-03-15 16:59:03 +00:00
" MT_REDFLAG " , // Red CTF Flag
" MT_BLUEFLAG " , // Blue CTF Flag
" MT_EMBLEM " ,
" MT_EMERALD1 " ,
" MT_EMERALD2 " ,
" MT_EMERALD3 " ,
" MT_EMERALD4 " ,
" MT_EMERALD5 " ,
" MT_EMERALD6 " ,
" MT_EMERALD7 " ,
" MT_EMERHUNT " , // Emerald Hunt
" MT_EMERALDSPAWN " , // Emerald spawner w/ delay
" MT_FLINGEMERALD " , // Lost emerald
// Springs and others
" MT_FAN " ,
2018-05-19 23:04:39 +00:00
" MT_STEAM " ,
" MT_BUMPER " ,
" MT_BALLOON " ,
2014-03-15 16:59:03 +00:00
" MT_YELLOWSPRING " ,
" MT_REDSPRING " ,
2018-05-19 23:04:39 +00:00
" MT_BLUESPRING " ,
" MT_YELLOWDIAG " ,
" MT_REDDIAG " ,
" MT_BLUEDIAG " ,
" MT_YELLOWHORIZ " ,
" MT_REDHORIZ " ,
" MT_BLUEHORIZ " ,
2014-03-15 16:59:03 +00:00
* New object types!
* Red and yellow Boost panels!
* Added because SUBARASHII and KIMOKAWAIII had several levels using them, and I wanted to make them look better.
* https://cdn.discordapp.com/attachments/359091121789468672/634486669202161674/srb20015.gif
* Uses the mapthingnums of Glaber's SOC resource boosters, but absolutely nothing else - not even the magnitudes.
* Apply MF_AMBUSH to force the player into a spin - even if they don't have a spin ability!
* Banpyura!
* A Crushstacean with a spring instead of a crushclaw.
* https://cdn.discordapp.com/attachments/428262628893261828/634432099306176512/srb20019.gif
* Wanted this for a while, finally added it.
* Improved springs.
* Add pw_noautobrake to disable autobrake for half a second when touching yellow horizontal springs, and a second when touching red ones, even on the ground.
* Add pw_justsprung to disable directionchar for a few tics while touching any springs with a horizontal component to their velocity.
* Add the diagonal spring flag options Red and Yellow Diagonal Springs have to the Blue Diagonal Spring as well.
* Started but decided against a tip of the hat to the CD spring spin, hidden behind #define SPRINGSPIN.
* Make directionchar "lag behind" a little bit in waterslides.
* Improved flame jets.
* They now use new sprites for having their flames move upwards and sideways, instead of having them always face downwards like in 2.1!
* Fixed a mixed declaration and code error in A_RolloutRock. (Sorry Lach!)
* Make the Amy Cameo only spawn in SP, Record Attack, or Co-op unless it's the Clone Mode.
* Improved ZB config.
* Add above new types.
* Add Blue Diagonal Spring, which existed in the source but not the config.
* Re-order enemies in ZB config by zone (but keep them in the Enemies section only).
2019-10-17 20:50:26 +00:00
" MT_BOOSTERSEG " ,
" MT_BOOSTERROLLER " ,
" MT_YELLOWBOOSTER " ,
" MT_REDBOOSTER " ,
2014-03-15 16:59:03 +00:00
// Interactive Objects
" MT_BUBBLES " , // Bubble source
" MT_SIGN " , // Level end sign
" MT_SPIKEBALL " , // Spike Ball
" MT_SPINFIRE " ,
" MT_SPIKE " ,
2017-07-13 21:42:08 +00:00
" MT_WALLSPIKE " ,
" MT_WALLSPIKEBASE " ,
2014-03-15 16:59:03 +00:00
" MT_STARPOST " ,
" MT_BIGMINE " ,
2018-04-26 19:18:51 +00:00
" MT_BLASTEXECUTOR " ,
2014-03-15 16:59:03 +00:00
" MT_CANNONLAUNCHER " ,
// Monitor miscellany
2015-12-31 16:38:23 +00:00
" MT_BOXSPARKLE " ,
// Monitor boxes -- regular
" MT_RING_BOX " ,
" MT_PITY_BOX " ,
" MT_ATTRACT_BOX " ,
" MT_FORCE_BOX " ,
" MT_ARMAGEDDON_BOX " ,
" MT_WHIRLWIND_BOX " ,
" MT_ELEMENTAL_BOX " ,
" MT_SNEAKERS_BOX " ,
" MT_INVULN_BOX " ,
" MT_1UP_BOX " ,
" MT_EGGMAN_BOX " ,
" MT_MIXUP_BOX " ,
" MT_MYSTERY_BOX " ,
" MT_GRAVITY_BOX " ,
" MT_RECYCLER_BOX " ,
" MT_SCORE1K_BOX " ,
" MT_SCORE10K_BOX " ,
2016-10-13 14:13:33 +00:00
" MT_FLAMEAURA_BOX " ,
" MT_BUBBLEWRAP_BOX " ,
" MT_THUNDERCOIN_BOX " ,
2015-12-31 16:38:23 +00:00
// Monitor boxes -- repeating (big) boxes
2015-12-31 23:29:08 +00:00
" MT_PITY_GOLDBOX " ,
" MT_ATTRACT_GOLDBOX " ,
" MT_FORCE_GOLDBOX " ,
" MT_ARMAGEDDON_GOLDBOX " ,
" MT_WHIRLWIND_GOLDBOX " ,
" MT_ELEMENTAL_GOLDBOX " ,
" MT_SNEAKERS_GOLDBOX " ,
" MT_INVULN_GOLDBOX " ,
2016-09-30 02:32:21 +00:00
" MT_EGGMAN_GOLDBOX " ,
2015-12-31 23:29:08 +00:00
" MT_GRAVITY_GOLDBOX " ,
2016-10-13 14:13:33 +00:00
" MT_FLAMEAURA_GOLDBOX " ,
" MT_BUBBLEWRAP_GOLDBOX " ,
" MT_THUNDERCOIN_GOLDBOX " ,
2015-12-31 16:38:23 +00:00
// Monitor boxes -- special
" MT_RING_REDBOX " ,
" MT_RING_BLUEBOX " ,
// Monitor icons
" MT_RING_ICON " ,
" MT_PITY_ICON " ,
" MT_ATTRACT_ICON " ,
" MT_FORCE_ICON " ,
" MT_ARMAGEDDON_ICON " ,
" MT_WHIRLWIND_ICON " ,
" MT_ELEMENTAL_ICON " ,
" MT_SNEAKERS_ICON " ,
" MT_INVULN_ICON " ,
" MT_1UP_ICON " ,
" MT_EGGMAN_ICON " ,
" MT_MIXUP_ICON " ,
" MT_GRAVITY_ICON " ,
" MT_RECYCLER_ICON " ,
" MT_SCORE1K_ICON " ,
" MT_SCORE10K_ICON " ,
2016-10-13 14:13:33 +00:00
" MT_FLAMEAURA_ICON " ,
" MT_BUBBLEWRAP_ICON " ,
" MT_THUNDERCOIN_ICON " ,
2014-03-15 16:59:03 +00:00
// Projectiles
" MT_ROCKET " ,
" MT_LASER " ,
" MT_TORPEDO " ,
" MT_TORPEDO2 " , // silent
" MT_ENERGYBALL " ,
" MT_MINE " , // Skim/Jetty-Syn mine
" MT_JETTBULLET " , // Jetty-Syn Bullet
" MT_TURRETLASER " ,
" MT_CANNONBALL " , // Cannonball
" MT_CANNONBALLDECOR " , // Decorative/still cannonball
" MT_ARROW " , // Arrow
" MT_DEMONFIRE " , // Trapgoyle fire
// Greenflower Scenery
" MT_GFZFLOWER1 " ,
" MT_GFZFLOWER2 " ,
" MT_GFZFLOWER3 " ,
2018-06-05 16:22:28 +00:00
" MT_BLUEBERRYBUSH " ,
2014-03-15 16:59:03 +00:00
" MT_BERRYBUSH " ,
" MT_BUSH " ,
2018-06-05 16:22:28 +00:00
2017-07-13 16:29:15 +00:00
// Trees (both GFZ and misc)
" MT_GFZTREE " ,
" MT_GFZBERRYTREE " ,
" MT_GFZCHERRYTREE " ,
" MT_CHECKERTREE " ,
" MT_CHECKERSUNSETTREE " ,
" MT_FHZTREE " , // Frozen Hillside
" MT_FHZPINKTREE " ,
" MT_POLYGONTREE " ,
" MT_BUSHTREE " ,
" MT_BUSHREDTREE " ,
2018-06-03 21:41:54 +00:00
" MT_SPRINGTREE " ,
2014-03-15 16:59:03 +00:00
// Techno Hill Scenery
2017-01-21 01:09:39 +00:00
" MT_THZFLOWER1 " ,
" MT_THZFLOWER2 " ,
2018-01-19 17:56:18 +00:00
" MT_THZFLOWER3 " ,
2018-01-22 18:41:14 +00:00
" MT_THZTREE " , // Steam whistle tree/bush
" MT_THZTREEBRANCH " , // branch of said tree
2014-03-15 16:59:03 +00:00
" MT_ALARM " ,
// Deep Sea Scenery
" MT_GARGOYLE " , // Deep Sea Gargoyle
2017-04-18 19:38:13 +00:00
" MT_BIGGARGOYLE " , // Deep Sea Gargoyle (Big)
2014-03-15 16:59:03 +00:00
" MT_SEAWEED " , // DSZ Seaweed
" MT_WATERDRIP " , // Dripping Water source
" MT_WATERDROP " , // Water drop from dripping water
2019-09-19 22:51:44 +00:00
" MT_CORAL1 " , // Coral
" MT_CORAL2 " ,
" MT_CORAL3 " ,
" MT_CORAL4 " ,
" MT_CORAL5 " ,
2014-03-15 16:59:03 +00:00
" MT_BLUECRYSTAL " , // Blue Crystal
2017-12-08 18:26:32 +00:00
" MT_KELP " , // Kelp
2019-09-18 00:05:19 +00:00
" MT_ANIMALGAETOP " , // Animated algae top
" MT_ANIMALGAESEG " , // Animated algae segment
2017-12-08 18:26:32 +00:00
" MT_DSZSTALAGMITE " , // Deep Sea 1 Stalagmite
" MT_DSZ2STALAGMITE " , // Deep Sea 2 Stalagmite
" MT_LIGHTBEAM " , // DSZ Light beam
2014-03-15 16:59:03 +00:00
// Castle Eggman Scenery
" MT_CHAIN " , // CEZ Chain
" MT_FLAME " , // Flame (has corona)
2017-01-21 12:39:41 +00:00
" MT_FLAMEPARTICLE " ,
2014-03-15 16:59:03 +00:00
" MT_EGGSTATUE " , // Eggman Statue
" MT_MACEPOINT " , // Mace rotation point
Hooh boy.
****
* MF2_MACEROTATE. Apply to any object. Replaces the indiscriminate spamming of A_MaceRotate each tic.
****
* Mace point mapthings have been slightly modified.
- MTF_AMBUSH: bigger luke theory (has no effect on custom mace, different effect on spring mace)
- MTF_OBJECTFLIP: flips the objects, but nothing else - just so it doesn't look out of place in gravflip sections
- MTF_OBJECTSPECIAL: keeps it from attempting to play swinging sounds
- angle: tag of controlling linedef
- parameter: number of "spokes" minus one - for example, a parameter of 2 results in 3 equidistant maces rotating around the same point.
****
* Mace linedefs have been significantly revamped.
- line dx: number of chain links
- line dy: speed (in FU)
- frontside floor height: Pitch (in degrees; how much it "tilts" over - Yaw influences the axis it's tilting on)
- frontside ceiling height: Yaw (in degrees; rotation of entire thing on xy plane)
- frontside x offset: Phase (in degrees; how far it is through the rotation cycle)
- frontside y offset: Max speed (in FU; if less than speed, set to speed*2)
- backside floor height: Pinch (in degrees; 0 if no backside; essentially makes rotation conical instead of wheel-like)
- backside ceiling height: Roll (in degrees; 0 if no backside; rotates on the axis of the spinning - identical to Phase for spinning maces, but useful for rotating swinging maces as opposed to just offsetting them)
- backside x offset: Number of "antispokes" (0 if no backside; makes that many spokes not exist so you can put another mace/chain type in there instead; for combo mace/chain instead turns them into chains directly)
- backside y offset: Width (in number of extra chains per side; 0 if no backside; creates a "skiprope" arrangement)
----
- ML_NOCLIMB: for chains and chain-mace combos, allow for player control of yaw through strafe keys
- ML_EFFECT1: replacing the seperate mapthings, this makes a mace type swing instead of spin.
- ML_EFFECT2: for all spokes of the mace wheel ending in maces, make the chains out of the mace type (inverted for firebars)
- ML_EFFECT3: spawn a bonus mace type at the center(s) of rotation
- ML_EFFECT4: don't clip inside ground
****
* Mapthing 1104 represents both spinning and swinging maces from prior versions of SRB2.
* Mapthing 1105 has gone from being a swinging mace variant to a combination of chains and maces in a single unit, provided the number of "spokes" is greater than one.
* Mapthing 1105 has gone from being a swinging chain variant to a vertical spring-on-a-ball-on-a-chain. Yellow by default, apply MTF_AMBUSH to turn into a red spring.
* Mapthing 1107 represents both spinning and swinging chains from prior versions of SRB2.
* Mapthing 1108 is completely untouched except to port over 2.1's functionality to the new backend.
* Mapthing 1109 is a Mario castle-level style firebar. This inverts the functionality of ML_EFFECT2 on the tagged linedef.
* Mapthing 1110 is a free slot should we want to implement another type of base-game mace.
* Mapthing 1111 is a custom mace. Use the linedef's frontside texture slots to identify a macetype mobjtype, then use the backside texture slots to identify a linktype mobjtype (defaults to MT_NULL if no backside).
****
Whooh. Requires new patch.dta for sprites.
2017-07-02 14:11:09 +00:00
" MT_CHAINMACEPOINT " , // Combination of chains and maces point
" MT_SPRINGBALLPOINT " , // Spring ball point
" MT_CHAINPOINT " , // Mace chain
2014-03-15 16:59:03 +00:00
" MT_HIDDEN_SLING " , // Spin mace chain (activatable)
Hooh boy.
****
* MF2_MACEROTATE. Apply to any object. Replaces the indiscriminate spamming of A_MaceRotate each tic.
****
* Mace point mapthings have been slightly modified.
- MTF_AMBUSH: bigger luke theory (has no effect on custom mace, different effect on spring mace)
- MTF_OBJECTFLIP: flips the objects, but nothing else - just so it doesn't look out of place in gravflip sections
- MTF_OBJECTSPECIAL: keeps it from attempting to play swinging sounds
- angle: tag of controlling linedef
- parameter: number of "spokes" minus one - for example, a parameter of 2 results in 3 equidistant maces rotating around the same point.
****
* Mace linedefs have been significantly revamped.
- line dx: number of chain links
- line dy: speed (in FU)
- frontside floor height: Pitch (in degrees; how much it "tilts" over - Yaw influences the axis it's tilting on)
- frontside ceiling height: Yaw (in degrees; rotation of entire thing on xy plane)
- frontside x offset: Phase (in degrees; how far it is through the rotation cycle)
- frontside y offset: Max speed (in FU; if less than speed, set to speed*2)
- backside floor height: Pinch (in degrees; 0 if no backside; essentially makes rotation conical instead of wheel-like)
- backside ceiling height: Roll (in degrees; 0 if no backside; rotates on the axis of the spinning - identical to Phase for spinning maces, but useful for rotating swinging maces as opposed to just offsetting them)
- backside x offset: Number of "antispokes" (0 if no backside; makes that many spokes not exist so you can put another mace/chain type in there instead; for combo mace/chain instead turns them into chains directly)
- backside y offset: Width (in number of extra chains per side; 0 if no backside; creates a "skiprope" arrangement)
----
- ML_NOCLIMB: for chains and chain-mace combos, allow for player control of yaw through strafe keys
- ML_EFFECT1: replacing the seperate mapthings, this makes a mace type swing instead of spin.
- ML_EFFECT2: for all spokes of the mace wheel ending in maces, make the chains out of the mace type (inverted for firebars)
- ML_EFFECT3: spawn a bonus mace type at the center(s) of rotation
- ML_EFFECT4: don't clip inside ground
****
* Mapthing 1104 represents both spinning and swinging maces from prior versions of SRB2.
* Mapthing 1105 has gone from being a swinging mace variant to a combination of chains and maces in a single unit, provided the number of "spokes" is greater than one.
* Mapthing 1105 has gone from being a swinging chain variant to a vertical spring-on-a-ball-on-a-chain. Yellow by default, apply MTF_AMBUSH to turn into a red spring.
* Mapthing 1107 represents both spinning and swinging chains from prior versions of SRB2.
* Mapthing 1108 is completely untouched except to port over 2.1's functionality to the new backend.
* Mapthing 1109 is a Mario castle-level style firebar. This inverts the functionality of ML_EFFECT2 on the tagged linedef.
* Mapthing 1110 is a free slot should we want to implement another type of base-game mace.
* Mapthing 1111 is a custom mace. Use the linedef's frontside texture slots to identify a macetype mobjtype, then use the backside texture slots to identify a linktype mobjtype (defaults to MT_NULL if no backside).
****
Whooh. Requires new patch.dta for sprites.
2017-07-02 14:11:09 +00:00
" MT_FIREBARPOINT " , // Firebar
" MT_CUSTOMMACEPOINT " , // Custom mace
2014-03-15 16:59:03 +00:00
" MT_SMALLMACECHAIN " , // Small Mace Chain
" MT_BIGMACECHAIN " , // Big Mace Chain
" MT_SMALLMACE " , // Small Mace
" MT_BIGMACE " , // Big Mace
2018-05-24 00:40:57 +00:00
" MT_SMALLGRABCHAIN " , // Small Grab Chain
" MT_BIGGRABCHAIN " , // Big Grab Chain
Hooh boy.
****
* MF2_MACEROTATE. Apply to any object. Replaces the indiscriminate spamming of A_MaceRotate each tic.
****
* Mace point mapthings have been slightly modified.
- MTF_AMBUSH: bigger luke theory (has no effect on custom mace, different effect on spring mace)
- MTF_OBJECTFLIP: flips the objects, but nothing else - just so it doesn't look out of place in gravflip sections
- MTF_OBJECTSPECIAL: keeps it from attempting to play swinging sounds
- angle: tag of controlling linedef
- parameter: number of "spokes" minus one - for example, a parameter of 2 results in 3 equidistant maces rotating around the same point.
****
* Mace linedefs have been significantly revamped.
- line dx: number of chain links
- line dy: speed (in FU)
- frontside floor height: Pitch (in degrees; how much it "tilts" over - Yaw influences the axis it's tilting on)
- frontside ceiling height: Yaw (in degrees; rotation of entire thing on xy plane)
- frontside x offset: Phase (in degrees; how far it is through the rotation cycle)
- frontside y offset: Max speed (in FU; if less than speed, set to speed*2)
- backside floor height: Pinch (in degrees; 0 if no backside; essentially makes rotation conical instead of wheel-like)
- backside ceiling height: Roll (in degrees; 0 if no backside; rotates on the axis of the spinning - identical to Phase for spinning maces, but useful for rotating swinging maces as opposed to just offsetting them)
- backside x offset: Number of "antispokes" (0 if no backside; makes that many spokes not exist so you can put another mace/chain type in there instead; for combo mace/chain instead turns them into chains directly)
- backside y offset: Width (in number of extra chains per side; 0 if no backside; creates a "skiprope" arrangement)
----
- ML_NOCLIMB: for chains and chain-mace combos, allow for player control of yaw through strafe keys
- ML_EFFECT1: replacing the seperate mapthings, this makes a mace type swing instead of spin.
- ML_EFFECT2: for all spokes of the mace wheel ending in maces, make the chains out of the mace type (inverted for firebars)
- ML_EFFECT3: spawn a bonus mace type at the center(s) of rotation
- ML_EFFECT4: don't clip inside ground
****
* Mapthing 1104 represents both spinning and swinging maces from prior versions of SRB2.
* Mapthing 1105 has gone from being a swinging mace variant to a combination of chains and maces in a single unit, provided the number of "spokes" is greater than one.
* Mapthing 1105 has gone from being a swinging chain variant to a vertical spring-on-a-ball-on-a-chain. Yellow by default, apply MTF_AMBUSH to turn into a red spring.
* Mapthing 1107 represents both spinning and swinging chains from prior versions of SRB2.
* Mapthing 1108 is completely untouched except to port over 2.1's functionality to the new backend.
* Mapthing 1109 is a Mario castle-level style firebar. This inverts the functionality of ML_EFFECT2 on the tagged linedef.
* Mapthing 1110 is a free slot should we want to implement another type of base-game mace.
* Mapthing 1111 is a custom mace. Use the linedef's frontside texture slots to identify a macetype mobjtype, then use the backside texture slots to identify a linktype mobjtype (defaults to MT_NULL if no backside).
****
Whooh. Requires new patch.dta for sprites.
2017-07-02 14:11:09 +00:00
" MT_YELLOWSPRINGBALL " , // Yellow spring on a ball
" MT_REDSPRINGBALL " , // Red spring on a ball
" MT_SMALLFIREBAR " , // Small Firebar
" MT_BIGFIREBAR " , // Big Firebar
2018-05-22 10:04:28 +00:00
" MT_CEZFLOWER " , // Flower
2019-07-14 15:30:33 +00:00
" MT_CEZPOLE1 " , // Pole (with red banner)
" MT_CEZPOLE2 " , // Pole (with blue banner)
" MT_CEZBANNER1 " , // Banner (red)
" MT_CEZBANNER2 " , // Banner (blue)
2018-05-22 10:04:28 +00:00
" MT_PINETREE " , // Pine Tree
" MT_CEZBUSH1 " , // Bush 1
" MT_CEZBUSH2 " , // Bush 2
" MT_CANDLE " , // Candle
" MT_CANDLEPRICKET " , // Candle pricket
" MT_FLAMEHOLDER " , // Flame holder
" MT_FIRETORCH " , // Fire torch
2019-07-14 14:50:45 +00:00
" MT_WAVINGFLAG1 " , // Waving flag (red)
" MT_WAVINGFLAG2 " , // Waving flag (blue)
" MT_WAVINGFLAGSEG1 " , // Waving flag segment (red)
" MT_WAVINGFLAGSEG2 " , // Waving flag segment (blue)
2018-05-22 10:04:28 +00:00
" MT_CRAWLASTATUE " , // Crawla statue
2018-05-24 00:40:57 +00:00
" MT_FACESTABBERSTATUE " , // Facestabber statue
" MT_SUSPICIOUSFACESTABBERSTATUE " , // :eggthinking:
2018-08-22 16:16:11 +00:00
" MT_BRAMBLES " , // Brambles
2014-03-15 16:59:03 +00:00
// Arid Canyon Scenery
" MT_BIGTUMBLEWEED " ,
" MT_LITTLETUMBLEWEED " ,
" MT_CACTI1 " ,
" MT_CACTI2 " ,
" MT_CACTI3 " ,
" MT_CACTI4 " ,
2019-05-12 02:56:23 +00:00
" MT_CACTI5 " ,
" MT_CACTI6 " ,
" MT_CACTI7 " ,
" MT_CACTI8 " ,
" MT_CACTI9 " ,
2019-09-13 01:36:13 +00:00
" MT_CACTI10 " ,
" MT_CACTI11 " ,
2019-09-18 19:40:33 +00:00
" MT_CACTITINYSEG " ,
" MT_CACTISMALLSEG " ,
2019-05-12 02:56:23 +00:00
" MT_ARIDSIGN_CAUTION " ,
" MT_ARIDSIGN_CACTI " ,
" MT_ARIDSIGN_SHARPTURN " ,
2019-06-08 13:50:01 +00:00
" MT_OILLAMP " ,
2019-06-09 08:51:33 +00:00
" MT_TNTBARREL " ,
" MT_PROXIMITYTNT " ,
2019-06-08 07:51:46 +00:00
" MT_DUSTDEVIL " ,
" MT_DUSTLAYER " ,
" MT_ARIDDUST " ,
2019-06-13 19:45:30 +00:00
" MT_MINECART " ,
2019-06-16 13:35:32 +00:00
" MT_MINECARTSEG " ,
2019-06-13 19:45:30 +00:00
" MT_MINECARTSPAWNER " ,
" MT_MINECARTEND " ,
" MT_MINECARTENDSOLID " ,
" MT_MINECARTSIDEMARK " ,
" MT_MINECARTSPARK " ,
2019-06-12 19:20:14 +00:00
" MT_SALOONDOOR " ,
2019-10-05 12:21:35 +00:00
" MT_SALOONDOORCENTER " ,
2019-06-09 11:48:07 +00:00
" MT_TRAINCAMEOSPAWNER " ,
" MT_TRAINSEG " ,
2019-06-09 15:16:07 +00:00
" MT_TRAINDUSTSPAWNER " ,
" MT_TRAINSTEAMSPAWNER " ,
2019-06-13 19:45:30 +00:00
" MT_MINECARTSWITCHPOINT " ,
2014-03-15 16:59:03 +00:00
// Red Volcano Scenery
" MT_FLAMEJET " ,
" MT_VERTICALFLAMEJET " ,
" MT_FLAMEJETFLAME " ,
" MT_FJSPINAXISA " , // Counter-clockwise
" MT_FJSPINAXISB " , // Clockwise
" MT_FLAMEJETFLAMEB " , // Blade's flame
2019-08-25 21:05:38 +00:00
" MT_LAVAFALL " ,
" MT_LAVAFALL_LAVA " ,
" MT_LAVAFALLROCK " ,
2019-09-29 12:18:40 +00:00
" MT_ROLLOUTSPAWN " ,
" MT_ROLLOUTROCK " ,
2019-08-25 10:40:32 +00:00
" MT_BIGFERNLEAF " ,
" MT_BIGFERN " ,
" MT_JUNGLEPALM " ,
" MT_TORCHFLOWER " ,
" MT_WALLVINE_LONG " ,
" MT_WALLVINE_SHORT " ,
2014-03-15 16:59:03 +00:00
// Dark City Scenery
// Egg Rock Scenery
// Azure Temple Scenery
" MT_TRAPGOYLE " ,
" MT_TRAPGOYLEUP " ,
" MT_TRAPGOYLEDOWN " ,
" MT_TRAPGOYLELONG " ,
" MT_TARGET " ,
2019-10-21 08:22:20 +00:00
" MT_GREENFLAME " ,
2014-03-15 16:59:03 +00:00
// Stalagmites
" MT_STALAGMITE0 " ,
" MT_STALAGMITE1 " ,
" MT_STALAGMITE2 " ,
" MT_STALAGMITE3 " ,
" MT_STALAGMITE4 " ,
" MT_STALAGMITE5 " ,
" MT_STALAGMITE6 " ,
" MT_STALAGMITE7 " ,
" MT_STALAGMITE8 " ,
" MT_STALAGMITE9 " ,
// Christmas Scenery
" MT_XMASPOLE " ,
" MT_CANDYCANE " ,
2017-04-18 17:32:52 +00:00
" MT_SNOWMAN " , // normal
" MT_SNOWMANHAT " , // with hat + scarf
" MT_LAMPPOST1 " , // normal
" MT_LAMPPOST2 " , // with snow
" MT_HANGSTAR " ,
2019-10-01 17:19:37 +00:00
" MT_MISTLETOE " ,
2017-04-18 17:32:52 +00:00
// Xmas GFZ bushes
2018-06-05 16:22:28 +00:00
" MT_XMASBLUEBERRYBUSH " ,
2017-04-18 17:32:52 +00:00
" MT_XMASBERRYBUSH " ,
" MT_XMASBUSH " ,
2018-06-05 16:22:28 +00:00
// FHZ
" MT_FHZICE1 " ,
" MT_FHZICE2 " ,
2019-10-01 17:19:37 +00:00
" MT_ROSY " ,
" MT_CDLHRT " ,
2014-03-15 16:59:03 +00:00
2018-04-28 14:13:44 +00:00
// Halloween Scenery
// Pumpkins
" MT_JACKO1 " ,
" MT_JACKO2 " ,
" MT_JACKO3 " ,
// Dr Seuss Trees
" MT_HHZTREE_TOP " ,
" MT_HHZTREE_PART " ,
// Misc
" MT_HHZSHROOM " ,
" MT_HHZGRASS " ,
" MT_HHZTENTACLE1 " ,
" MT_HHZTENTACLE2 " ,
" MT_HHZSTALAGMITE_TALL " ,
" MT_HHZSTALAGMITE_SHORT " ,
2014-03-15 16:59:03 +00:00
// Botanic Serenity
" MT_BSZTALLFLOWER_RED " ,
" MT_BSZTALLFLOWER_PURPLE " ,
" MT_BSZTALLFLOWER_BLUE " ,
" MT_BSZTALLFLOWER_CYAN " ,
" MT_BSZTALLFLOWER_YELLOW " ,
" MT_BSZTALLFLOWER_ORANGE " ,
" MT_BSZFLOWER_RED " ,
" MT_BSZFLOWER_PURPLE " ,
" MT_BSZFLOWER_BLUE " ,
" MT_BSZFLOWER_CYAN " ,
" MT_BSZFLOWER_YELLOW " ,
" MT_BSZFLOWER_ORANGE " ,
" MT_BSZSHORTFLOWER_RED " ,
" MT_BSZSHORTFLOWER_PURPLE " ,
" MT_BSZSHORTFLOWER_BLUE " ,
" MT_BSZSHORTFLOWER_CYAN " ,
" MT_BSZSHORTFLOWER_YELLOW " ,
" MT_BSZSHORTFLOWER_ORANGE " ,
" MT_BSZTULIP_RED " ,
" MT_BSZTULIP_PURPLE " ,
" MT_BSZTULIP_BLUE " ,
" MT_BSZTULIP_CYAN " ,
" MT_BSZTULIP_YELLOW " ,
" MT_BSZTULIP_ORANGE " ,
" MT_BSZCLUSTER_RED " ,
" MT_BSZCLUSTER_PURPLE " ,
" MT_BSZCLUSTER_BLUE " ,
" MT_BSZCLUSTER_CYAN " ,
" MT_BSZCLUSTER_YELLOW " ,
" MT_BSZCLUSTER_ORANGE " ,
" MT_BSZBUSH_RED " ,
" MT_BSZBUSH_PURPLE " ,
" MT_BSZBUSH_BLUE " ,
" MT_BSZBUSH_CYAN " ,
" MT_BSZBUSH_YELLOW " ,
" MT_BSZBUSH_ORANGE " ,
" MT_BSZVINE_RED " ,
" MT_BSZVINE_PURPLE " ,
" MT_BSZVINE_BLUE " ,
" MT_BSZVINE_CYAN " ,
" MT_BSZVINE_YELLOW " ,
" MT_BSZVINE_ORANGE " ,
" MT_BSZSHRUB " ,
" MT_BSZCLOVER " ,
2017-01-25 14:52:36 +00:00
" MT_BIG_PALMTREE_TRUNK " ,
" MT_BIG_PALMTREE_TOP " ,
" MT_PALMTREE_TRUNK " ,
" MT_PALMTREE_TOP " ,
2014-03-15 16:59:03 +00:00
// Misc scenery
" MT_DBALL " ,
" MT_EGGSTATUE2 " ,
// Powerup Indicators
2016-10-13 14:13:33 +00:00
" MT_ELEMENTAL_ORB " , // Elemental shield mobj
" MT_ATTRACT_ORB " , // Attract shield mobj
" MT_FORCE_ORB " , // Force shield mobj
2016-10-13 14:13:33 +00:00
" MT_ARMAGEDDON_ORB " , // Armageddon shield mobj
" MT_WHIRLWIND_ORB " , // Whirlwind shield mobj
2016-10-13 14:13:33 +00:00
" MT_PITY_ORB " , // Pity shield mobj
" MT_FLAMEAURA_ORB " , // Flame shield mobj
" MT_BUBBLEWRAP_ORB " , // Bubble shield mobj
" MT_THUNDERCOIN_ORB " , // Thunder shield mobj
2016-10-17 22:22:04 +00:00
" MT_THUNDERCOIN_SPARK " , // Thunder spark
" MT_IVSP " , // Invincibility sparkles
2014-03-15 16:59:03 +00:00
" MT_SUPERSPARK " , // Super Sonic Spark
2016-12-31 16:55:06 +00:00
// Flickies
" MT_FLICKY_01 " , // Bluebird
2018-08-09 16:08:06 +00:00
" MT_FLICKY_01_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_02 " , // Rabbit
2018-08-09 16:08:06 +00:00
" MT_FLICKY_02_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_03 " , // Chicken
2018-08-09 16:08:06 +00:00
" MT_FLICKY_03_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_04 " , // Seal
2018-08-09 16:08:06 +00:00
" MT_FLICKY_04_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_05 " , // Pig
2018-08-09 16:08:06 +00:00
" MT_FLICKY_05_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_06 " , // Chipmunk
2018-08-09 16:08:06 +00:00
" MT_FLICKY_06_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_07 " , // Penguin
2018-08-09 16:08:06 +00:00
" MT_FLICKY_07_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_08 " , // Fish
2018-08-09 16:08:06 +00:00
" MT_FLICKY_08_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_09 " , // Ram
2018-08-09 16:08:06 +00:00
" MT_FLICKY_09_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_10 " , // Puffin
2018-08-09 16:08:06 +00:00
" MT_FLICKY_10_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_11 " , // Cow
2018-08-09 16:08:06 +00:00
" MT_FLICKY_11_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_12 " , // Rat
2018-08-09 16:08:06 +00:00
" MT_FLICKY_12_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_13 " , // Bear
2018-08-09 16:08:06 +00:00
" MT_FLICKY_13_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_14 " , // Dove
2018-08-09 16:08:06 +00:00
" MT_FLICKY_14_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_15 " , // Cat
2018-08-09 16:08:06 +00:00
" MT_FLICKY_15_CENTER " ,
2016-12-31 16:55:06 +00:00
" MT_FLICKY_16 " , // Canary
2018-08-09 16:08:06 +00:00
" MT_FLICKY_16_CENTER " ,
2018-04-28 14:13:44 +00:00
" MT_SECRETFLICKY_01 " , // Spider
2018-08-09 16:08:06 +00:00
" MT_SECRETFLICKY_01_CENTER " ,
2018-04-28 14:13:44 +00:00
" MT_SECRETFLICKY_02 " , // Bat
2018-08-09 16:08:06 +00:00
" MT_SECRETFLICKY_02_CENTER " ,
2018-04-28 14:13:44 +00:00
" MT_SEED " ,
2014-03-15 16:59:03 +00:00
// Environmental Effects
" MT_RAIN " , // Rain
" MT_SNOWFLAKE " , // Snowflake
" MT_SPLISH " , // Water splish!
2019-10-05 08:00:59 +00:00
" MT_LAVASPLISH " , // Lava splish!
2014-03-15 16:59:03 +00:00
" MT_SMOKE " ,
" MT_SMALLBUBBLE " , // small bubble
" MT_MEDIUMBUBBLE " , // medium bubble
" MT_EXTRALARGEBUBBLE " , // extra large bubble
2016-07-16 21:43:49 +00:00
" MT_WATERZAP " ,
2016-11-10 17:51:10 +00:00
" MT_SPINDUST " , // Spindash dust
2014-03-15 16:59:03 +00:00
" MT_TFOG " ,
" MT_PARTICLE " ,
" MT_PARTICLEGEN " , // For fans, etc.
// Game Indicators
" MT_SCORE " , // score logo
" MT_DROWNNUMBERS " , // Drowning Timer
" MT_GOTEMERALD " , // Chaos Emerald (intangible)
2017-03-22 18:51:30 +00:00
" MT_LOCKON " , // Target
2019-07-02 23:50:12 +00:00
" MT_LOCKONINF " , // In-level Target
2014-03-15 16:59:03 +00:00
" MT_TAG " , // Tag Sign
2017-03-23 19:11:22 +00:00
" MT_GOTFLAG " , // Got Flag sign
2014-03-15 16:59:03 +00:00
// Ambient Sounds
" MT_AWATERA " , // Ambient Water Sound 1
" MT_AWATERB " , // Ambient Water Sound 2
" MT_AWATERC " , // Ambient Water Sound 3
" MT_AWATERD " , // Ambient Water Sound 4
" MT_AWATERE " , // Ambient Water Sound 5
" MT_AWATERF " , // Ambient Water Sound 6
" MT_AWATERG " , // Ambient Water Sound 7
" MT_AWATERH " , // Ambient Water Sound 8
" MT_RANDOMAMBIENT " ,
" MT_RANDOMAMBIENT2 " ,
2018-04-28 14:13:44 +00:00
" MT_MACHINEAMBIENCE " ,
2014-03-15 16:59:03 +00:00
2017-03-22 18:51:30 +00:00
" MT_CORK " ,
2019-06-19 22:20:24 +00:00
" MT_LHRT " ,
2017-03-22 18:51:30 +00:00
2014-03-15 16:59:03 +00:00
// Ring Weapons
" MT_REDRING " ,
" MT_BOUNCERING " ,
" MT_RAILRING " ,
" MT_INFINITYRING " ,
" MT_AUTOMATICRING " ,
" MT_EXPLOSIONRING " ,
" MT_SCATTERRING " ,
" MT_GRENADERING " ,
" MT_BOUNCEPICKUP " ,
" MT_RAILPICKUP " ,
" MT_AUTOPICKUP " ,
" MT_EXPLODEPICKUP " ,
" MT_SCATTERPICKUP " ,
" MT_GRENADEPICKUP " ,
" MT_THROWNBOUNCE " ,
" MT_THROWNINFINITY " ,
" MT_THROWNAUTOMATIC " ,
" MT_THROWNSCATTER " ,
" MT_THROWNEXPLOSION " ,
" MT_THROWNGRENADE " ,
// Mario-specific stuff
" MT_COIN " ,
" MT_FLINGCOIN " ,
" MT_GOOMBA " ,
" MT_BLUEGOOMBA " ,
" MT_FIREFLOWER " ,
" MT_FIREBALL " ,
" MT_SHELL " ,
" MT_PUMA " ,
2017-01-21 01:09:39 +00:00
" MT_PUMATRAIL " ,
2014-03-15 16:59:03 +00:00
" MT_HAMMER " ,
" MT_KOOPA " ,
" MT_KOOPAFLAME " ,
" MT_AXE " ,
" MT_MARIOBUSH1 " ,
" MT_MARIOBUSH2 " ,
" MT_TOAD " ,
// NiGHTS Stuff
" MT_AXIS " ,
" MT_AXISTRANSFER " ,
" MT_AXISTRANSFERLINE " ,
" MT_NIGHTSDRONE " ,
2018-08-10 22:24:31 +00:00
" MT_NIGHTSDRONE_MAN " ,
" MT_NIGHTSDRONE_SPARKLING " ,
" MT_NIGHTSDRONE_GOAL " ,
2014-03-15 16:59:03 +00:00
" MT_NIGHTSPARKLE " ,
" MT_NIGHTSLOOPHELPER " ,
" MT_NIGHTSBUMPER " , // NiGHTS Bumper
" MT_HOOP " ,
" MT_HOOPCOLLIDE " , // Collision detection for NiGHTS hoops
" MT_HOOPCENTER " , // Center of a hoop
" MT_NIGHTSCORE " ,
2018-06-03 21:41:54 +00:00
" MT_NIGHTSCHIP " , // NiGHTS Chip
2018-08-10 04:19:56 +00:00
" MT_FLINGNIGHTSCHIP " , // Lost NiGHTS Chip
2018-06-03 21:41:54 +00:00
" MT_NIGHTSSTAR " , // NiGHTS Star
2014-03-15 16:59:03 +00:00
" MT_NIGHTSSUPERLOOP " ,
" MT_NIGHTSDRILLREFILL " ,
" MT_NIGHTSHELPER " ,
" MT_NIGHTSEXTRATIME " ,
" MT_NIGHTSLINKFREEZE " ,
" MT_EGGCAPSULE " ,
2018-08-13 02:11:18 +00:00
" MT_IDEYAANCHOR " ,
2014-03-15 16:59:03 +00:00
" MT_NIGHTOPIANHELPER " , // the actual helper object that orbits you
2018-06-03 21:41:54 +00:00
" MT_PIAN " , // decorative singing friend
" MT_SHLEEP " , // almost-decorative sleeping enemy
2014-03-15 16:59:03 +00:00
2018-04-28 14:13:44 +00:00
// Secret badniks and hazards, shhhh
2018-06-05 16:22:28 +00:00
" MT_PENGUINATOR " ,
" MT_POPHAT " ,
" MT_POPSHOT " ,
2018-05-04 20:30:15 +00:00
" MT_HIVEELEMENTAL " ,
" MT_BUMBLEBORE " ,
" MT_BUBBLEBUZZ " ,
2018-04-28 14:13:44 +00:00
" MT_SMASHINGSPIKEBALL " ,
" MT_CACOLANTERN " ,
" MT_CACOSHARD " ,
" MT_CACOFIRE " ,
" MT_SPINBOBERT " ,
" MT_SPINBOBERT_FIRE1 " ,
" MT_SPINBOBERT_FIRE2 " ,
" MT_HANGSTER " ,
2014-03-15 16:59:03 +00:00
// Utility Objects
" MT_TELEPORTMAN " ,
" MT_ALTVIEWMAN " ,
" MT_CRUMBLEOBJ " , // Sound generator for crumbling platform
" MT_TUBEWAYPOINT " ,
" MT_PUSH " ,
" MT_PULL " ,
" MT_GHOST " ,
" MT_OVERLAY " ,
2018-11-04 21:28:25 +00:00
" MT_ANGLEMAN " ,
2014-03-15 16:59:03 +00:00
" MT_POLYANCHOR " ,
" MT_POLYSPAWN " ,
" MT_POLYSPAWNCRUSH " ,
// Skybox objects
" MT_SKYBOX " ,
// Debris
" MT_SPARK " , //spark
" MT_EXPLODE " , // Robot Explosion
" MT_UWEXPLODE " , // Underwater Explosion
2018-05-04 20:30:15 +00:00
" MT_DUST " ,
2019-06-09 10:27:09 +00:00
" MT_WOODDEBRIS " ,
2014-03-15 16:59:03 +00:00
" MT_ROCKSPAWNER " ,
" MT_FALLINGROCK " ,
" MT_ROCKCRUMBLE1 " ,
" MT_ROCKCRUMBLE2 " ,
" MT_ROCKCRUMBLE3 " ,
" MT_ROCKCRUMBLE4 " ,
" MT_ROCKCRUMBLE5 " ,
" MT_ROCKCRUMBLE6 " ,
" MT_ROCKCRUMBLE7 " ,
" MT_ROCKCRUMBLE8 " ,
" MT_ROCKCRUMBLE9 " ,
" MT_ROCKCRUMBLE10 " ,
" MT_ROCKCRUMBLE11 " ,
" MT_ROCKCRUMBLE12 " ,
" MT_ROCKCRUMBLE13 " ,
" MT_ROCKCRUMBLE14 " ,
" MT_ROCKCRUMBLE15 " ,
" MT_ROCKCRUMBLE16 " ,
2019-07-06 04:31:02 +00:00
" MT_BRICKDEBRIS " ,
2014-03-15 16:59:03 +00:00
# ifdef SEENAMES
" MT_NAMECHECK " ,
# endif
} ;
static const char * const MOBJFLAG_LIST [ ] = {
" SPECIAL " ,
" SOLID " ,
" SHOOTABLE " ,
" NOSECTOR " ,
" NOBLOCKMAP " ,
2016-08-20 16:34:59 +00:00
" PAPERCOLLISION " ,
2014-03-15 16:59:03 +00:00
" PUSHABLE " ,
" BOSS " ,
" SPAWNCEILING " ,
" NOGRAVITY " ,
" AMBIENT " ,
" SLIDEME " ,
" NOCLIP " ,
" FLOAT " ,
" BOXICON " ,
" MISSILE " ,
" SPRING " ,
" BOUNCE " ,
" MONITOR " ,
" NOTHINK " ,
" FIRE " ,
" NOCLIPHEIGHT " ,
" ENEMY " ,
" SCENERY " ,
" PAIN " ,
" STICKY " ,
" NIGHTSITEM " ,
" NOCLIPTHING " ,
2014-03-23 16:00:29 +00:00
" GRENADEBOUNCE " ,
2014-03-15 16:59:03 +00:00
" RUNSPAWNFUNC " ,
NULL
} ;
// \tMF2_(\S+).*// (.+) --> \t"\1", // \2
static const char * const MOBJFLAG2_LIST [ ] = {
2016-10-23 19:34:43 +00:00
" AXIS " , // It's a NiGHTS axis! (For faster checking)
" TWOD " , // Moves like it's in a 2D level
" DONTRESPAWN " , // Don't respawn this object!
" DONTDRAW " , // Don't generate a vissprite
" AUTOMATIC " , // Thrown ring has automatic properties
" RAILRING " , // Thrown ring has rail properties
" BOUNCERING " , // Thrown ring has bounce properties
" EXPLOSION " , // Thrown ring has explosive properties
" SCATTER " , // Thrown ring has scatter properties
" BEYONDTHEGRAVE " , // Source of this missile has died and has since respawned.
" SLIDEPUSH " , // MF_PUSHABLE that pushes continuously.
2018-05-04 20:30:15 +00:00
" CLASSICPUSH " , // Drops straight down when object has negative momz.
" INVERTAIMABLE " , // Flips whether it's targetable by A_LookForEnemies (enemies no, decoys yes)
2016-10-23 19:34:43 +00:00
" INFLOAT " , // Floating to a height for a move, don't auto float to target's height.
" DEBRIS " , // Splash ring from explosion ring
" NIGHTSPULL " , // Attracted from a paraloop
" JUSTATTACKED " , // can be pushed by other moving mobjs
" FIRING " , // turret fire
" SUPERFIRE " , // Firing something with Super Sonic-stopping properties. Or, if mobj has MF_MISSILE, this is the actual fire from it.
" SHADOW " , // Fuzzy draw, makes targeting harder.
" STRONGBOX " , // Flag used for "strong" random monitors.
" OBJECTFLIP " , // Flag for objects that always have flipped gravity.
" SKULLFLY " , // Special handling: skull in flight.
" FRET " , // Flashing from a previous hit
" BOSSNOTRAP " , // No Egg Trap after boss
" BOSSFLEE " , // Boss is fleeing!
" BOSSDEAD " , // Boss is dead! (Not necessarily fleeing, if a fleeing point doesn't exist.)
" AMBUSH " , // Alternate behaviour typically set by MTF_AMBUSH
" LINKDRAW " , // Draw vissprite of mobj immediately before/after tracer's vissprite (dependent on dispoffset and position)
" SHIELD " , // Thinker calls P_AddShield/P_ShieldLook (must be partnered with MF_SCENERY to use)
2014-03-15 16:59:03 +00:00
NULL
} ;
static const char * const MOBJEFLAG_LIST [ ] = {
" ONGROUND " , // The mobj stands on solid floor (not on another mobj or in air)
" JUSTHITFLOOR " , // The mobj just hit the floor while falling, this is cleared on next frame
" TOUCHWATER " , // The mobj stands in a sector with water, and touches the surface
" UNDERWATER " , // The mobj stands in a sector with water, and his waist is BELOW the water surface
" JUSTSTEPPEDDOWN " , // used for ramp sectors
" VERTICALFLIP " , // Vertically flip sprite/allow upside-down physics
" GOOWATER " , // Goo water
2015-01-31 17:35:51 +00:00
" PUSHED " , // Mobj was already pushed this tic
2015-02-11 20:54:11 +00:00
" SPRUNG " , // Mobj was already sprung this tic
2015-06-09 23:51:33 +00:00
" APPLYPMOMZ " , // Platform movement
2014-03-15 16:59:03 +00:00
NULL
} ;
2016-06-12 19:55:06 +00:00
# ifdef HAVE_BLUA
2014-08-04 03:49:33 +00:00
static const char * const MAPTHINGFLAG_LIST [ 4 ] = {
2014-03-15 16:59:03 +00:00
NULL ,
" OBJECTFLIP " , // Reverse gravity flag for objects.
" OBJECTSPECIAL " , // Special flag used with certain objects.
2014-08-04 03:49:33 +00:00
" AMBUSH " // Deaf monsters/do not react to sound.
2014-03-15 16:59:03 +00:00
} ;
2016-06-12 19:55:06 +00:00
# endif
2014-03-15 16:59:03 +00:00
static const char * const PLAYERFLAG_LIST [ ] = {
2017-09-15 19:34:46 +00:00
// Cvars
" FLIPCAM " , // Flip camera angle with gravity flip prefrence.
" ANALOGMODE " , // Analog mode?
" DIRECTIONCHAR " , // Directional character sprites?
" AUTOBRAKE " , // Autobrake?
2014-03-15 16:59:03 +00:00
// Cheats
" GODMODE " ,
" NOCLIP " ,
" INVIS " ,
// True if button down last tic.
" ATTACKDOWN " ,
" USEDOWN " ,
" JUMPDOWN " ,
" WPNDOWN " ,
// Unmoving states
" STASIS " , // Player is not allowed to move
" JUMPSTASIS " , // and that includes jumping.
// (we don't include FULLSTASIS here I guess because it's just those two together...?)
2017-09-15 19:34:46 +00:00
// Applying autobrake?
" APPLYAUTOBRAKE " ,
2014-03-15 16:59:03 +00:00
// Character action status
2017-03-22 18:51:30 +00:00
" STARTJUMP " ,
2014-03-15 16:59:03 +00:00
" JUMPED " ,
2017-09-15 19:34:46 +00:00
" NOJUMPDAMAGE " ,
2014-03-15 16:59:03 +00:00
" SPINNING " ,
" STARTDASH " ,
2017-09-15 19:34:46 +00:00
" THOKKED " ,
" SHIELDABILITY " ,
2014-03-15 16:59:03 +00:00
" GLIDING " ,
2017-09-15 19:34:46 +00:00
" BOUNCING " ,
2014-03-15 16:59:03 +00:00
// Sliding (usually in water) like Labyrinth/Oil Ocean
" SLIDING " ,
2017-09-15 19:34:46 +00:00
// NiGHTS stuff
2014-03-15 16:59:03 +00:00
" TRANSFERTOCLOSEST " ,
" DRILLING " ,
2017-09-15 19:34:46 +00:00
// Gametype-specific stuff
" GAMETYPEOVER " , // Race time over, or H&S out-of-game
2014-03-15 16:59:03 +00:00
" TAGIT " , // The player is it! For Tag Mode
2014-08-04 03:49:33 +00:00
/*** misc ***/
" FORCESTRAFE " , // Translate turn inputs into strafe inputs
2016-10-24 12:52:36 +00:00
" CANCARRY " , // Can carry?
2014-08-04 03:49:33 +00:00
2014-03-15 16:59:03 +00:00
NULL // stop loop here.
} ;
2016-06-12 19:55:06 +00:00
# ifdef HAVE_BLUA
2014-03-15 16:59:03 +00:00
// Linedef flags
static const char * const ML_LIST [ 16 ] = {
" IMPASSIBLE " ,
" BLOCKMONSTERS " ,
" TWOSIDED " ,
" DONTPEGTOP " ,
" DONTPEGBOTTOM " ,
" EFFECT1 " ,
" NOCLIMB " ,
" EFFECT2 " ,
" EFFECT3 " ,
" EFFECT4 " ,
" EFFECT5 " ,
" NOSONIC " ,
" NOTAILS " ,
" NOKNUX " ,
" BOUNCY " ,
" TFERLINE "
} ;
2016-06-12 19:55:06 +00:00
# endif
2014-03-15 16:59:03 +00:00
// This DOES differ from r_draw's Color_Names, unfortunately.
2015-02-16 21:06:51 +00:00
// Also includes Super colors
2014-03-15 16:59:03 +00:00
static const char * COLOR_ENUMS [ ] = {
2017-07-22 22:24:12 +00:00
" NONE " , // SKINCOLOR_NONE,
// Greyscale ranges
" WHITE " , // SKINCOLOR_WHITE,
" BONE " , // SKINCOLOR_BONE,
" CLOUDY " , // SKINCOLOR_CLOUDY,
2017-08-02 12:11:21 +00:00
" GREY " , // SKINCOLOR_GREY,
" SILVER " , // SKINCOLOR_SILVER,
2017-07-22 22:24:12 +00:00
" CARBON " , // SKINCOLOR_CARBON,
" JET " , // SKINCOLOR_JET,
" BLACK " , // SKINCOLOR_BLACK,
// Desaturated
" AETHER " , // SKINCOLOR_AETHER,
" SLATE " , // SKINCOLOR_SLATE,
" PINK " , // SKINCOLOR_PINK,
" YOGURT " , // SKINCOLOR_YOGURT,
" BROWN " , // SKINCOLOR_BROWN,
" TAN " , // SKINCOLOR_TAN,
" BEIGE " , // SKINCOLOR_BEIGE,
" MOSS " , // SKINCOLOR_MOSS,
" AZURE " , // SKINCOLOR_AZURE,
" LAVENDER " , // SKINCOLOR_LAVENDER,
// Viv's vivid colours (toast 21/07/17)
" RUBY " , // SKINCOLOR_RUBY,
" SALMON " , // SKINCOLOR_SALMON,
" RED " , // SKINCOLOR_RED,
" CRIMSON " , // SKINCOLOR_CRIMSON,
" FLAME " , // SKINCOLOR_FLAME,
" PEACHY " , // SKINCOLOR_PEACHY,
" QUAIL " , // SKINCOLOR_QUAIL,
" SUNSET " , // SKINCOLOR_SUNSET,
" APRICOT " , // SKINCOLOR_APRICOT,
" ORANGE " , // SKINCOLOR_ORANGE,
" RUST " , // SKINCOLOR_RUST,
" GOLD " , // SKINCOLOR_GOLD,
" SANDY " , // SKINCOLOR_SANDY,
" YELLOW " , // SKINCOLOR_YELLOW,
" OLIVE " , // SKINCOLOR_OLIVE,
" LIME " , // SKINCOLOR_LIME,
" PERIDOT " , // SKINCOLOR_PERIDOT,
" GREEN " , // SKINCOLOR_GREEN,
" FOREST " , // SKINCOLOR_FOREST,
" EMERALD " , // SKINCOLOR_EMERALD,
" MINT " , // SKINCOLOR_MINT,
" SEAFOAM " , // SKINCOLOR_SEAFOAM,
" AQUA " , // SKINCOLOR_AQUA,
" TEAL " , // SKINCOLOR_TEAL,
" WAVE " , // SKINCOLOR_WAVE,
" CYAN " , // SKINCOLOR_CYAN,
" SKY " , // SKINCOLOR_SKY,
" CERULEAN " , // SKINCOLOR_CERULEAN,
" ICY " , // SKINCOLOR_ICY,
" SAPPHIRE " , // SKINCOLOR_SAPPHIRE,
" CORNFLOWER " , // SKINCOLOR_CORNFLOWER,
" BLUE " , // SKINCOLOR_BLUE,
" COBALT " , // SKINCOLOR_COBALT,
" VAPOR " , // SKINCOLOR_VAPOR,
" DUSK " , // SKINCOLOR_DUSK,
" PASTEL " , // SKINCOLOR_PASTEL,
" PURPLE " , // SKINCOLOR_PURPLE,
" BUBBLEGUM " , // SKINCOLOR_BUBBLEGUM,
" MAGENTA " , // SKINCOLOR_MAGENTA,
" NEON " , // SKINCOLOR_NEON,
" VIOLET " , // SKINCOLOR_VIOLET,
" LILAC " , // SKINCOLOR_LILAC,
" PLUM " , // SKINCOLOR_PLUM,
" ROSY " , // SKINCOLOR_ROSY,
2016-08-10 18:48:20 +00:00
2015-02-16 21:06:51 +00:00
// Super special awesome Super flashing colors!
2017-07-22 22:24:12 +00:00
" SUPERSILVER1 " , // SKINCOLOR_SUPERSILVER1
" SUPERSILVER2 " , // SKINCOLOR_SUPERSILVER2,
" SUPERSILVER3 " , // SKINCOLOR_SUPERSILVER3,
" SUPERSILVER4 " , // SKINCOLOR_SUPERSILVER4,
" SUPERSILVER5 " , // SKINCOLOR_SUPERSILVER5,
" SUPERRED1 " , // SKINCOLOR_SUPERRED1
" SUPERRED2 " , // SKINCOLOR_SUPERRED2,
" SUPERRED3 " , // SKINCOLOR_SUPERRED3,
" SUPERRED4 " , // SKINCOLOR_SUPERRED4,
" SUPERRED5 " , // SKINCOLOR_SUPERRED5,
" SUPERORANGE1 " , // SKINCOLOR_SUPERORANGE1
" SUPERORANGE2 " , // SKINCOLOR_SUPERORANGE2,
" SUPERORANGE3 " , // SKINCOLOR_SUPERORANGE3,
" SUPERORANGE4 " , // SKINCOLOR_SUPERORANGE4,
" SUPERORANGE5 " , // SKINCOLOR_SUPERORANGE5,
" SUPERGOLD1 " , // SKINCOLOR_SUPERGOLD1
" SUPERGOLD2 " , // SKINCOLOR_SUPERGOLD2,
" SUPERGOLD3 " , // SKINCOLOR_SUPERGOLD3,
" SUPERGOLD4 " , // SKINCOLOR_SUPERGOLD4,
" SUPERGOLD5 " , // SKINCOLOR_SUPERGOLD5,
" SUPERPERIDOT1 " , // SKINCOLOR_SUPERPERIDOT1
" SUPERPERIDOT2 " , // SKINCOLOR_SUPERPERIDOT2,
" SUPERPERIDOT3 " , // SKINCOLOR_SUPERPERIDOT3,
" SUPERPERIDOT4 " , // SKINCOLOR_SUPERPERIDOT4,
" SUPERPERIDOT5 " , // SKINCOLOR_SUPERPERIDOT5,
2017-08-02 12:11:21 +00:00
" SUPERSKY1 " , // SKINCOLOR_SUPERSKY1
" SUPERSKY2 " , // SKINCOLOR_SUPERSKY2,
" SUPERSKY3 " , // SKINCOLOR_SUPERSKY3,
" SUPERSKY4 " , // SKINCOLOR_SUPERSKY4,
" SUPERSKY5 " , // SKINCOLOR_SUPERSKY5,
2017-07-22 22:24:12 +00:00
" SUPERPURPLE1 " , // SKINCOLOR_SUPERPURPLE1,
" SUPERPURPLE2 " , // SKINCOLOR_SUPERPURPLE2,
" SUPERPURPLE3 " , // SKINCOLOR_SUPERPURPLE3,
" SUPERPURPLE4 " , // SKINCOLOR_SUPERPURPLE4,
" SUPERPURPLE5 " , // SKINCOLOR_SUPERPURPLE5,
" SUPERRUST1 " , // SKINCOLOR_SUPERRUST1
" SUPERRUST2 " , // SKINCOLOR_SUPERRUST2,
" SUPERRUST3 " , // SKINCOLOR_SUPERRUST3,
" SUPERRUST4 " , // SKINCOLOR_SUPERRUST4,
" SUPERRUST5 " , // SKINCOLOR_SUPERRUST5,
" SUPERTAN1 " , // SKINCOLOR_SUPERTAN1
" SUPERTAN2 " , // SKINCOLOR_SUPERTAN2,
" SUPERTAN3 " , // SKINCOLOR_SUPERTAN3,
" SUPERTAN4 " , // SKINCOLOR_SUPERTAN4,
" SUPERTAN5 " // SKINCOLOR_SUPERTAN5,
2014-03-15 16:59:03 +00:00
} ;
static const char * const POWERS_LIST [ ] = {
" INVULNERABILITY " ,
" SNEAKERS " ,
" FLASHING " ,
" SHIELD " ,
2016-09-23 22:48:48 +00:00
" CARRY " ,
2014-03-15 16:59:03 +00:00
" TAILSFLY " , // tails flying
" UNDERWATER " , // underwater timer
" SPACETIME " , // In space, no one can hear you spin!
" EXTRALIFE " , // Extra Life timer
2017-02-06 20:36:21 +00:00
" PUSHING " ,
* New object types!
* Red and yellow Boost panels!
* Added because SUBARASHII and KIMOKAWAIII had several levels using them, and I wanted to make them look better.
* https://cdn.discordapp.com/attachments/359091121789468672/634486669202161674/srb20015.gif
* Uses the mapthingnums of Glaber's SOC resource boosters, but absolutely nothing else - not even the magnitudes.
* Apply MF_AMBUSH to force the player into a spin - even if they don't have a spin ability!
* Banpyura!
* A Crushstacean with a spring instead of a crushclaw.
* https://cdn.discordapp.com/attachments/428262628893261828/634432099306176512/srb20019.gif
* Wanted this for a while, finally added it.
* Improved springs.
* Add pw_noautobrake to disable autobrake for half a second when touching yellow horizontal springs, and a second when touching red ones, even on the ground.
* Add pw_justsprung to disable directionchar for a few tics while touching any springs with a horizontal component to their velocity.
* Add the diagonal spring flag options Red and Yellow Diagonal Springs have to the Blue Diagonal Spring as well.
* Started but decided against a tip of the hat to the CD spring spin, hidden behind #define SPRINGSPIN.
* Make directionchar "lag behind" a little bit in waterslides.
* Improved flame jets.
* They now use new sprites for having their flames move upwards and sideways, instead of having them always face downwards like in 2.1!
* Fixed a mixed declaration and code error in A_RolloutRock. (Sorry Lach!)
* Make the Amy Cameo only spawn in SP, Record Attack, or Co-op unless it's the Clone Mode.
* Improved ZB config.
* Add above new types.
* Add Blue Diagonal Spring, which existed in the source but not the config.
* Re-order enemies in ZB config by zone (but keep them in the Enemies section only).
2019-10-17 20:50:26 +00:00
" JUSTSPRUNG " ,
" NOAUTOBRAKE " ,
2014-03-15 16:59:03 +00:00
" SUPER " , // Are you super?
" GRAVITYBOOTS " , // gravity boots
// Weapon ammunition
" INFINITYRING " ,
" AUTOMATICRING " ,
2014-04-14 05:14:58 +00:00
" BOUNCERING " ,
2014-03-15 16:59:03 +00:00
" SCATTERRING " ,
" GRENADERING " ,
2014-04-14 05:14:58 +00:00
" EXPLOSIONRING " ,
" RAILRING " ,
2014-03-15 16:59:03 +00:00
// Power Stones
" EMERALDS " , // stored like global 'emeralds' variable
// NiGHTS powerups
" NIGHTS_SUPERLOOP " ,
" NIGHTS_HELPER " ,
" NIGHTS_LINKFREEZE " ,
//for linedef exec 427
2017-03-15 21:51:35 +00:00
" NOCONTROL "
2014-03-15 16:59:03 +00:00
} ;
static const char * const HUDITEMS_LIST [ ] = {
2018-01-20 22:14:24 +00:00
" LIVES " ,
2014-03-21 18:42:55 +00:00
2014-03-15 16:59:03 +00:00
" RINGS " ,
" RINGSNUM " ,
2014-03-21 18:42:55 +00:00
2014-03-15 16:59:03 +00:00
" SCORE " ,
" SCORENUM " ,
2014-03-21 18:42:55 +00:00
" TIME " ,
" MINUTES " ,
" TIMECOLON " ,
2014-03-15 16:59:03 +00:00
" SECONDS " ,
" TIMETICCOLON " ,
2014-03-21 18:42:55 +00:00
" TICS " ,
2014-03-15 16:59:03 +00:00
" SS_TOTALRINGS " ,
2014-03-21 18:42:55 +00:00
2014-03-15 16:59:03 +00:00
" GETRINGS " ,
" GETRINGSNUM " ,
" TIMELEFT " ,
" TIMELEFTNUM " ,
" TIMEUP " ,
" HUNTPICS " ,
2018-03-26 22:53:09 +00:00
" POWERUPS " ,
2014-03-15 16:59:03 +00:00
" LAP "
} ;
2018-11-16 14:46:32 +00:00
static const char * const MENUTYPES_LIST [ ] = {
" NONE " ,
" MAIN " ,
// Single Player
" SP_MAIN " ,
" SP_LOAD " ,
" SP_PLAYER " ,
" SP_LEVELSELECT " ,
" SP_LEVELSTATS " ,
" SP_TIMEATTACK " ,
" SP_TIMEATTACK_LEVELSELECT " ,
" SP_GUESTREPLAY " ,
" SP_REPLAY " ,
" SP_GHOST " ,
" SP_NIGHTSATTACK " ,
" SP_NIGHTS_LEVELSELECT " ,
" SP_NIGHTS_GUESTREPLAY " ,
" SP_NIGHTS_REPLAY " ,
" SP_NIGHTS_GHOST " ,
// Multiplayer
" MP_MAIN " ,
" MP_SPLITSCREEN " , // SplitServer
" MP_SERVER " ,
" MP_CONNECT " ,
" MP_ROOM " ,
" MP_PLAYERSETUP " , // MP_PlayerSetupDef shared with SPLITSCREEN if #defined NONET
// Options
" OP_MAIN " ,
" OP_P1CONTROLS " ,
" OP_CHANGECONTROLS " , // OP_ChangeControlsDef shared with P2
" OP_P1MOUSE " ,
" OP_P1JOYSTICK " ,
" OP_JOYSTICKSET " , // OP_JoystickSetDef shared with P2
" OP_P2CONTROLS " ,
" OP_P2MOUSE " ,
" OP_P2JOYSTICK " ,
" OP_VIDEO " ,
" OP_VIDEOMODE " ,
" OP_COLOR " ,
" OP_OPENGL " ,
" OP_OPENGL_LIGHTING " ,
" OP_OPENGL_FOG " ,
" OP_OPENGL_COLOR " ,
" OP_SOUND " ,
" OP_SERVER " ,
" OP_MONITORTOGGLE " ,
" OP_DATA " ,
" OP_ADDONS " ,
" OP_SCREENSHOTS " ,
" OP_ERASEDATA " ,
// Secrets
" SR_MAIN " ,
" SR_PANDORA " ,
" SR_LEVELSELECT " ,
" SR_UNLOCKCHECKLIST " ,
" SR_EMBLEMHINT " ,
// Addons (Part of MISC, but let's make it our own)
" AD_MAIN " ,
// MISC
// "MESSAGE",
// "SPAUSE",
// "MPAUSE",
// "SCRAMBLETEAM",
// "CHANGETEAM",
// "CHANGELEVEL",
// "MAPAUSE",
// "HELP",
" SPECIAL "
} ;
2014-03-15 16:59:03 +00:00
struct {
const char * n ;
// has to be able to hold both fixed_t and angle_t, so drastic measure!!
# ifdef HAVE_BLUA
lua_Integer v ;
# else
INT64 v ;
# endif
} const INT_CONST [ ] = {
// If a mod removes some variables here,
// please leave the names in-tact and just set
// the value to 0 or something.
// integer type limits, from doomtype.h
// INT64 and UINT64 limits not included, they're too big for most purposes anyway
// signed
{ " INT8_MIN " , INT8_MIN } ,
{ " INT16_MIN " , INT16_MIN } ,
{ " INT32_MIN " , INT32_MIN } ,
{ " INT8_MAX " , INT8_MAX } ,
{ " INT16_MAX " , INT16_MAX } ,
{ " INT32_MAX " , INT32_MAX } ,
// unsigned
{ " UINT8_MAX " , UINT8_MAX } ,
{ " UINT16_MAX " , UINT16_MAX } ,
{ " UINT32_MAX " , UINT32_MAX } ,
// fixed_t constants, from m_fixed.h
{ " FRACUNIT " , FRACUNIT } ,
{ " FRACBITS " , FRACBITS } ,
// doomdef.h constants
{ " TICRATE " , TICRATE } ,
2018-09-18 14:22:17 +00:00
{ " MUSICRATE " , MUSICRATE } ,
2014-03-15 16:59:03 +00:00
{ " RING_DIST " , RING_DIST } ,
{ " PUSHACCEL " , PUSHACCEL } ,
{ " MODID " , MODID } , // I don't know, I just thought it would be cool for a wad to potentially know what mod it was loaded into.
{ " CODEBASE " , CODEBASE } , // or what release of SRB2 this is.
2016-03-01 23:48:10 +00:00
{ " VERSION " , VERSION } , // Grab the game's version!
{ " SUBVERSION " , SUBVERSION } , // more precise version number
2018-08-25 08:40:43 +00:00
{ " NEWTICRATE " , NEWTICRATE } , // TICRATE*NEWTICRATERATIO
{ " NEWTICRATERATIO " , NEWTICRATERATIO } ,
2014-03-15 16:59:03 +00:00
// Special linedef executor tag numbers!
{ " LE_PINCHPHASE " , LE_PINCHPHASE } , // A boss entered pinch phase (and, in most cases, is preparing their pinch phase attack!)
{ " LE_ALLBOSSESDEAD " , LE_ALLBOSSESDEAD } , // All bosses in the map are dead (Egg capsule raise)
{ " LE_BOSSDEAD " , LE_BOSSDEAD } , // A boss in the map died (Chaos mode boss tally)
{ " LE_BOSS4DROP " , LE_BOSS4DROP } , // CEZ boss dropped its cage
{ " LE_BRAKVILEATACK " , LE_BRAKVILEATACK } , // Brak's doing his LOS attack, oh noes
2019-06-19 23:24:13 +00:00
{ " LE_TURRET " , LE_TURRET } , // THZ turret
{ " LE_BRAKPLATFORM " , LE_BRAKPLATFORM } , // v2.0 Black Eggman destroys platform
{ " LE_CAPSULE2 " , LE_CAPSULE2 } , // Egg Capsule
{ " LE_CAPSULE1 " , LE_CAPSULE1 } , // Egg Capsule
{ " LE_CAPSULE0 " , LE_CAPSULE0 } , // Egg Capsule
{ " LE_KOOPA " , LE_KOOPA } , // Distant cousin to Gay Bowser
{ " LE_AXE " , LE_AXE } , // MKB Axe object
{ " LE_PARAMWIDTH " , LE_PARAMWIDTH } , // If an object that calls LinedefExecute has a nonzero parameter value, this times the parameter will be subtracted. (Mostly for the purpose of coexisting bosses...)
2014-03-15 16:59:03 +00:00
/// \todo Get all this stuff into its own sections, maybe. Maybe.
// Frame settings
{ " FF_FRAMEMASK " , FF_FRAMEMASK } ,
2017-03-11 02:09:01 +00:00
{ " FF_SPR2SUPER " , FF_SPR2SUPER } ,
2016-07-15 15:48:30 +00:00
{ " FF_SPR2ENDSTATE " , FF_SPR2ENDSTATE } ,
2016-09-30 10:20:57 +00:00
{ " FF_SPR2MIDSTART " , FF_SPR2MIDSTART } ,
2016-02-09 10:39:16 +00:00
{ " FF_ANIMATE " , FF_ANIMATE } ,
2016-09-30 10:20:57 +00:00
{ " FF_RANDOMANIM " , FF_RANDOMANIM } ,
{ " FF_GLOBALANIM " , FF_GLOBALANIM } ,
2014-03-15 16:59:03 +00:00
{ " FF_FULLBRIGHT " , FF_FULLBRIGHT } ,
2017-03-11 17:14:39 +00:00
{ " FF_VERTICALFLIP " , FF_VERTICALFLIP } ,
{ " FF_PAPERSPRITE " , FF_PAPERSPRITE } ,
2014-03-15 16:59:03 +00:00
{ " FF_TRANSMASK " , FF_TRANSMASK } ,
{ " FF_TRANSSHIFT " , FF_TRANSSHIFT } ,
2015-01-01 19:50:31 +00:00
// new preshifted translucency (used in source)
{ " FF_TRANS10 " , FF_TRANS10 } ,
{ " FF_TRANS20 " , FF_TRANS20 } ,
{ " FF_TRANS30 " , FF_TRANS30 } ,
{ " FF_TRANS40 " , FF_TRANS40 } ,
{ " FF_TRANS50 " , FF_TRANS50 } ,
{ " FF_TRANS60 " , FF_TRANS60 } ,
{ " FF_TRANS70 " , FF_TRANS70 } ,
{ " FF_TRANS80 " , FF_TRANS80 } ,
{ " FF_TRANS90 " , FF_TRANS90 } ,
// compatibility
2014-03-15 16:59:03 +00:00
// Transparency for SOCs is pre-shifted
{ " TR_TRANS10 " , tr_trans10 < < FF_TRANSSHIFT } ,
{ " TR_TRANS20 " , tr_trans20 < < FF_TRANSSHIFT } ,
{ " TR_TRANS30 " , tr_trans30 < < FF_TRANSSHIFT } ,
{ " TR_TRANS40 " , tr_trans40 < < FF_TRANSSHIFT } ,
{ " TR_TRANS50 " , tr_trans50 < < FF_TRANSSHIFT } ,
{ " TR_TRANS60 " , tr_trans60 < < FF_TRANSSHIFT } ,
{ " TR_TRANS70 " , tr_trans70 < < FF_TRANSSHIFT } ,
{ " TR_TRANS80 " , tr_trans80 < < FF_TRANSSHIFT } ,
{ " TR_TRANS90 " , tr_trans90 < < FF_TRANSSHIFT } ,
// Transparency for Lua is not, unless capitalized as above.
{ " tr_trans10 " , tr_trans10 } ,
{ " tr_trans20 " , tr_trans20 } ,
{ " tr_trans30 " , tr_trans30 } ,
{ " tr_trans40 " , tr_trans40 } ,
{ " tr_trans50 " , tr_trans50 } ,
{ " tr_trans60 " , tr_trans60 } ,
{ " tr_trans70 " , tr_trans70 } ,
{ " tr_trans80 " , tr_trans80 } ,
{ " tr_trans90 " , tr_trans90 } ,
{ " NUMTRANSMAPS " , NUMTRANSMAPS } ,
// Type of levels
{ " TOL_SP " , TOL_SP } ,
{ " TOL_COOP " , TOL_COOP } ,
{ " TOL_COMPETITION " , TOL_COMPETITION } ,
{ " TOL_RACE " , TOL_RACE } ,
{ " TOL_MATCH " , TOL_MATCH } ,
{ " TOL_TAG " , TOL_TAG } ,
{ " TOL_CTF " , TOL_CTF } ,
2014-04-14 05:14:58 +00:00
{ " TOL_CUSTOM " , TOL_CUSTOM } ,
2014-03-15 16:59:03 +00:00
{ " TOL_2D " , TOL_2D } ,
{ " TOL_MARIO " , TOL_MARIO } ,
{ " TOL_NIGHTS " , TOL_NIGHTS } ,
{ " TOL_ERZ3 " , TOL_ERZ3 } ,
{ " TOL_XMAS " , TOL_XMAS } ,
2014-08-04 03:49:33 +00:00
// Level flags
{ " LF_SCRIPTISFILE " , LF_SCRIPTISFILE } ,
{ " LF_SPEEDMUSIC " , LF_SPEEDMUSIC } ,
{ " LF_NOSSMUSIC " , LF_NOSSMUSIC } ,
{ " LF_NORELOAD " , LF_NORELOAD } ,
{ " LF_NOZONE " , LF_NOZONE } ,
2017-08-06 21:09:25 +00:00
{ " LF_SAVEGAME " , LF_SAVEGAME } ,
2019-03-15 03:10:14 +00:00
{ " LF_MIXNIGHTSCOUNTDOWN " , LF_MIXNIGHTSCOUNTDOWN } ,
2014-08-04 03:49:33 +00:00
// And map flags
{ " LF2_HIDEINMENU " , LF2_HIDEINMENU } ,
{ " LF2_HIDEINSTATS " , LF2_HIDEINSTATS } ,
{ " LF2_RECORDATTACK " , LF2_RECORDATTACK } ,
{ " LF2_NIGHTSATTACK " , LF2_NIGHTSATTACK } ,
{ " LF2_NOVISITNEEDED " , LF2_NOVISITNEEDED } ,
2017-02-17 01:45:21 +00:00
{ " LF2_WIDEICON " , LF2_WIDEICON } ,
2014-08-04 03:49:33 +00:00
2014-03-15 16:59:03 +00:00
// Emeralds
{ " EMERALD1 " , EMERALD1 } ,
{ " EMERALD2 " , EMERALD2 } ,
{ " EMERALD3 " , EMERALD3 } ,
{ " EMERALD4 " , EMERALD4 } ,
{ " EMERALD5 " , EMERALD5 } ,
{ " EMERALD6 " , EMERALD6 } ,
{ " EMERALD7 " , EMERALD7 } ,
2015-02-16 21:06:51 +00:00
// SKINCOLOR_ doesn't include these..!
2014-03-15 16:59:03 +00:00
{ " MAXSKINCOLORS " , MAXSKINCOLORS } ,
2015-02-16 21:06:51 +00:00
{ " MAXTRANSLATIONS " , MAXTRANSLATIONS } ,
2014-03-15 16:59:03 +00:00
// Precipitation
{ " PRECIP_NONE " , PRECIP_NONE } ,
{ " PRECIP_STORM " , PRECIP_STORM } ,
{ " PRECIP_SNOW " , PRECIP_SNOW } ,
{ " PRECIP_RAIN " , PRECIP_RAIN } ,
{ " PRECIP_BLANK " , PRECIP_BLANK } ,
{ " PRECIP_STORM_NORAIN " , PRECIP_STORM_NORAIN } ,
{ " PRECIP_STORM_NOSTRIKES " , PRECIP_STORM_NOSTRIKES } ,
// Shields
{ " SH_NONE " , SH_NONE } ,
2016-10-13 14:13:33 +00:00
// Shield flags
{ " SH_PROTECTFIRE " , SH_PROTECTFIRE } ,
{ " SH_PROTECTWATER " , SH_PROTECTWATER } ,
2016-10-13 14:13:33 +00:00
{ " SH_PROTECTELECTRIC " , SH_PROTECTELECTRIC } ,
2017-08-09 19:56:31 +00:00
{ " SH_PROTECTSPIKE " , SH_PROTECTSPIKE } ,
2016-10-13 14:13:33 +00:00
// Indivisible shields
{ " SH_PITY " , SH_PITY } ,
2016-10-13 14:13:33 +00:00
{ " SH_WHIRLWIND " , SH_WHIRLWIND } ,
{ " SH_ARMAGEDDON " , SH_ARMAGEDDON } ,
2019-06-19 22:20:24 +00:00
{ " SH_PINK " , SH_PINK } ,
2016-10-13 14:13:33 +00:00
// normal shields that use flags
2014-03-15 16:59:03 +00:00
{ " SH_ATTRACT " , SH_ATTRACT } ,
{ " SH_ELEMENTAL " , SH_ELEMENTAL } ,
2016-10-13 14:13:33 +00:00
// Sonic 3 shields
{ " SH_FLAMEAURA " , SH_FLAMEAURA } ,
2014-03-15 16:59:03 +00:00
{ " SH_BUBBLEWRAP " , SH_BUBBLEWRAP } ,
{ " SH_THUNDERCOIN " , SH_THUNDERCOIN } ,
2016-10-13 14:13:33 +00:00
// The force shield uses the lower 8 bits to count how many extra hits are left.
{ " SH_FORCE " , SH_FORCE } ,
{ " SH_FORCEHP " , SH_FORCEHP } , // to be used as a bitmask only
// Mostly for use with Mario mode.
2016-10-24 11:35:40 +00:00
{ " SH_FIREFLOWER " , SH_FIREFLOWER } ,
2014-03-15 16:59:03 +00:00
{ " SH_STACK " , SH_STACK } ,
{ " SH_NOSTACK " , SH_NOSTACK } ,
2016-09-23 22:48:48 +00:00
// Carrying
{ " CR_NONE " , CR_NONE } ,
{ " CR_GENERIC " , CR_GENERIC } ,
{ " CR_PLAYER " , CR_PLAYER } ,
2017-03-14 18:11:17 +00:00
{ " CR_NIGHTSMODE " , CR_NIGHTSMODE } ,
2017-09-15 19:34:46 +00:00
{ " CR_NIGHTSFALL " , CR_NIGHTSFALL } ,
2017-03-15 21:51:35 +00:00
{ " CR_BRAKGOOP " , CR_BRAKGOOP } ,
2016-09-23 22:48:48 +00:00
{ " CR_ZOOMTUBE " , CR_ZOOMTUBE } ,
{ " CR_ROPEHANG " , CR_ROPEHANG } ,
{ " CR_MACESPIN " , CR_MACESPIN } ,
2019-06-12 19:20:14 +00:00
{ " CR_MINECART " , CR_MINECART } ,
2019-09-29 12:18:40 +00:00
{ " CR_ROLLOUT " , CR_ROLLOUT } ,
2019-09-29 16:42:17 +00:00
{ " CR_PTERABYTE " , CR_PTERABYTE } ,
2016-09-23 22:48:48 +00:00
2014-03-15 16:59:03 +00:00
// Ring weapons (ringweapons_t)
// Useful for A_GiveWeapon
{ " RW_AUTO " , RW_AUTO } ,
{ " RW_BOUNCE " , RW_BOUNCE } ,
{ " RW_SCATTER " , RW_SCATTER } ,
{ " RW_GRENADE " , RW_GRENADE } ,
{ " RW_EXPLODE " , RW_EXPLODE } ,
{ " RW_RAIL " , RW_RAIL } ,
// Character flags (skinflags_t)
{ " SF_SUPER " , SF_SUPER } ,
2017-03-11 02:09:01 +00:00
{ " SF_NOSUPERSPIN " , SF_NOSUPERSPIN } ,
{ " SF_NOSPINDASHDUST " , SF_NOSPINDASHDUST } ,
2014-03-15 16:59:03 +00:00
{ " SF_HIRES " , SF_HIRES } ,
{ " SF_NOSKID " , SF_NOSKID } ,
{ " SF_NOSPEEDADJUST " , SF_NOSPEEDADJUST } ,
2014-07-05 08:15:35 +00:00
{ " SF_RUNONWATER " , SF_RUNONWATER } ,
A thorough reimplementation of Nojumpspin for the SPR2_ age.
* SF_NOJUMPSPIN - Player's height is full whilst jumping, SPR2_JUMP defaults to SPR2_SPNG instead of SPR2_SPIN, and the player goes into fall frames if they start moving downwards or use their ability.
* PA_JUMP - for jumping (upwards in the case of SF_NOJUMPSPIN.
* SF_NOJUMPDAMAGE - Ala rosy.wad, don't damage enemies, etc when jumping into them.
* SF_STOMPDAMAGE - Just for fun. Ala in Mario, always damage enemies when you land on top of them (your gravity reference, not theirs).
* SF_MARIODAMAGE - SF_NOJUMPDAMAGE|SF_STOMPDAMAGE is reasonably accurate to the Mario games, and might as well be surfaced as such.
Also, a minor change:
* Instead of not spawning the revitem if your SPR2_ is SPR2_DASH, don't spawn it if it's set to 0. This requires the player.dta I uploaded a couple days ago to behave as it was previously.
* Don't get stuck in spindash frames if your maxdash is 0, and don't flash rolling frames if you're on goop.
2016-07-10 17:41:38 +00:00
{ " SF_NOJUMPSPIN " , SF_NOJUMPSPIN } ,
{ " SF_NOJUMPDAMAGE " , SF_NOJUMPDAMAGE } ,
{ " SF_STOMPDAMAGE " , SF_STOMPDAMAGE } ,
{ " SF_MARIODAMAGE " , SF_MARIODAMAGE } ,
2016-07-16 21:43:49 +00:00
{ " SF_MACHINE " , SF_MACHINE } ,
2016-12-24 00:11:54 +00:00
{ " SF_DASHMODE " , SF_DASHMODE } ,
2017-03-22 18:51:30 +00:00
{ " SF_FASTEDGE " , SF_FASTEDGE } ,
2017-03-27 14:03:21 +00:00
{ " SF_MULTIABILITY " , SF_MULTIABILITY } ,
2014-03-15 16:59:03 +00:00
// Character abilities!
// Primary
{ " CA_NONE " , CA_NONE } , // now slot 0!
{ " CA_THOK " , CA_THOK } ,
{ " CA_FLY " , CA_FLY } ,
{ " CA_GLIDEANDCLIMB " , CA_GLIDEANDCLIMB } ,
{ " CA_HOMINGTHOK " , CA_HOMINGTHOK } ,
{ " CA_DOUBLEJUMP " , CA_DOUBLEJUMP } ,
{ " CA_FLOAT " , CA_FLOAT } ,
{ " CA_SLOWFALL " , CA_SLOWFALL } ,
{ " CA_SWIM " , CA_SWIM } ,
{ " CA_TELEKINESIS " , CA_TELEKINESIS } ,
{ " CA_FALLSWITCH " , CA_FALLSWITCH } ,
{ " CA_JUMPBOOST " , CA_JUMPBOOST } ,
{ " CA_AIRDRILL " , CA_AIRDRILL } ,
2014-07-05 07:08:39 +00:00
{ " CA_JUMPTHOK " , CA_JUMPTHOK } ,
2016-12-23 17:31:07 +00:00
{ " CA_BOUNCE " , CA_BOUNCE } ,
2016-07-16 12:55:12 +00:00
{ " CA_TWINSPIN " , CA_TWINSPIN } ,
2014-03-15 16:59:03 +00:00
// Secondary
{ " CA2_NONE " , CA2_NONE } , // now slot 0!
{ " CA2_SPINDASH " , CA2_SPINDASH } ,
2017-03-21 00:54:47 +00:00
{ " CA2_GUNSLINGER " , CA2_GUNSLINGER } ,
2016-07-17 20:31:15 +00:00
{ " CA2_MELEE " , CA2_MELEE } ,
2014-03-15 16:59:03 +00:00
// Sound flags
{ " SF_TOTALLYSINGLE " , SF_TOTALLYSINGLE } ,
{ " SF_NOMULTIPLESOUND " , SF_NOMULTIPLESOUND } ,
{ " SF_OUTSIDESOUND " , SF_OUTSIDESOUND } ,
{ " SF_X4AWAYSOUND " , SF_X4AWAYSOUND } ,
{ " SF_X8AWAYSOUND " , SF_X8AWAYSOUND } ,
{ " SF_NOINTERRUPT " , SF_NOINTERRUPT } ,
{ " SF_X2AWAYSOUND " , SF_X2AWAYSOUND } ,
2017-05-09 15:20:26 +00:00
// Global emblem var flags
{ " GE_NIGHTSPULL " , GE_NIGHTSPULL } ,
{ " GE_NIGHTSITEM " , GE_NIGHTSITEM } ,
2017-03-22 18:45:26 +00:00
// Map emblem var flags
{ " ME_ALLEMERALDS " , ME_ALLEMERALDS } ,
{ " ME_ULTIMATE " , ME_ULTIMATE } ,
{ " ME_PERFECT " , ME_PERFECT } ,
2017-09-28 15:10:24 +00:00
2014-03-15 16:59:03 +00:00
# ifdef HAVE_BLUA
// p_local.h constants
{ " FLOATSPEED " , FLOATSPEED } ,
{ " MAXSTEPMOVE " , MAXSTEPMOVE } ,
{ " USERANGE " , USERANGE } ,
{ " MELEERANGE " , MELEERANGE } ,
{ " MISSILERANGE " , MISSILERANGE } ,
{ " ONFLOORZ " , ONFLOORZ } , // INT32_MIN
{ " ONCEILINGZ " , ONCEILINGZ } , //INT32_MAX
// for P_FlashPal
{ " PAL_WHITE " , PAL_WHITE } ,
{ " PAL_MIXUP " , PAL_MIXUP } ,
{ " PAL_RECYCLE " , PAL_RECYCLE } ,
{ " PAL_NUKE " , PAL_NUKE } ,
2016-07-20 20:21:14 +00:00
// for P_DamageMobj
//// Damage types
{ " DMG_WATER " , DMG_WATER } ,
{ " DMG_FIRE " , DMG_FIRE } ,
{ " DMG_ELECTRIC " , DMG_ELECTRIC } ,
{ " DMG_SPIKE " , DMG_SPIKE } ,
{ " DMG_NUKE " , DMG_NUKE } ,
//// Death types
{ " DMG_INSTAKILL " , DMG_INSTAKILL } ,
{ " DMG_DROWNED " , DMG_DROWNED } ,
{ " DMG_SPACEDROWN " , DMG_SPACEDROWN } ,
{ " DMG_DEATHPIT " , DMG_DEATHPIT } ,
{ " DMG_CRUSHED " , DMG_CRUSHED } ,
{ " DMG_SPECTATOR " , DMG_SPECTATOR } ,
//// Masks
2018-05-08 22:26:36 +00:00
{ " DMG_CANHURTSELF " , DMG_CANHURTSELF } ,
2016-07-20 20:21:14 +00:00
{ " DMG_DEATHMASK " , DMG_DEATHMASK } ,
2014-03-15 16:59:03 +00:00
// Gametypes, for use with global var "gametype"
{ " GT_COOP " , GT_COOP } ,
{ " GT_COMPETITION " , GT_COMPETITION } ,
{ " GT_RACE " , GT_RACE } ,
{ " GT_MATCH " , GT_MATCH } ,
{ " GT_TEAMMATCH " , GT_TEAMMATCH } ,
{ " GT_TAG " , GT_TAG } ,
{ " GT_HIDEANDSEEK " , GT_HIDEANDSEEK } ,
{ " GT_CTF " , GT_CTF } ,
2019-08-04 11:03:57 +00:00
// Jingles (jingletype_t)
{ " JT_NONE " , JT_NONE } ,
{ " JT_OTHER " , JT_OTHER } ,
{ " JT_MASTER " , JT_MASTER } ,
{ " JT_1UP " , JT_1UP } ,
{ " JT_SHOES " , JT_SHOES } ,
{ " JT_INV " , JT_INV } ,
{ " JT_MINV " , JT_MINV } ,
{ " JT_DROWN " , JT_DROWN } ,
{ " JT_SUPER " , JT_SUPER } ,
{ " JT_GOVER " , JT_GOVER } ,
{ " JT_NIGHTSTIMEOUT " , JT_NIGHTSTIMEOUT } ,
{ " JT_SSTIMEOUT " , JT_SSTIMEOUT } ,
// {"JT_LCLEAR",JT_LCLEAR},
// {"JT_RACENT",JT_RACENT},
// {"JT_CONTSC",JT_CONTSC},
2014-03-15 16:59:03 +00:00
// Player state (playerstate_t)
{ " PST_LIVE " , PST_LIVE } , // Playing or camping.
{ " PST_DEAD " , PST_DEAD } , // Dead on the ground, view follows killer.
{ " PST_REBORN " , PST_REBORN } , // Ready to restart/respawn???
// Player animation (panim_t)
{ " PA_ETC " , PA_ETC } ,
{ " PA_IDLE " , PA_IDLE } ,
2015-06-18 15:36:08 +00:00
{ " PA_EDGE " , PA_EDGE } ,
2014-03-15 16:59:03 +00:00
{ " PA_WALK " , PA_WALK } ,
{ " PA_RUN " , PA_RUN } ,
2017-03-11 02:09:01 +00:00
{ " PA_DASH " , PA_DASH } ,
2015-05-29 19:52:38 +00:00
{ " PA_PAIN " , PA_PAIN } ,
2014-03-15 16:59:03 +00:00
{ " PA_ROLL " , PA_ROLL } ,
A thorough reimplementation of Nojumpspin for the SPR2_ age.
* SF_NOJUMPSPIN - Player's height is full whilst jumping, SPR2_JUMP defaults to SPR2_SPNG instead of SPR2_SPIN, and the player goes into fall frames if they start moving downwards or use their ability.
* PA_JUMP - for jumping (upwards in the case of SF_NOJUMPSPIN.
* SF_NOJUMPDAMAGE - Ala rosy.wad, don't damage enemies, etc when jumping into them.
* SF_STOMPDAMAGE - Just for fun. Ala in Mario, always damage enemies when you land on top of them (your gravity reference, not theirs).
* SF_MARIODAMAGE - SF_NOJUMPDAMAGE|SF_STOMPDAMAGE is reasonably accurate to the Mario games, and might as well be surfaced as such.
Also, a minor change:
* Instead of not spawning the revitem if your SPR2_ is SPR2_DASH, don't spawn it if it's set to 0. This requires the player.dta I uploaded a couple days ago to behave as it was previously.
* Don't get stuck in spindash frames if your maxdash is 0, and don't flash rolling frames if you're on goop.
2016-07-10 17:41:38 +00:00
{ " PA_JUMP " , PA_JUMP } ,
2016-01-14 14:35:10 +00:00
{ " PA_SPRING " , PA_SPRING } ,
2014-03-15 16:59:03 +00:00
{ " PA_FALL " , PA_FALL } ,
{ " PA_ABILITY " , PA_ABILITY } ,
2016-07-17 20:31:15 +00:00
{ " PA_ABILITY2 " , PA_ABILITY2 } ,
2015-05-29 19:52:38 +00:00
{ " PA_RIDE " , PA_RIDE } ,
2014-03-15 16:59:03 +00:00
// Current weapon
{ " WEP_AUTO " , WEP_AUTO } ,
{ " WEP_BOUNCE " , WEP_BOUNCE } ,
{ " WEP_SCATTER " , WEP_SCATTER } ,
{ " WEP_GRENADE " , WEP_GRENADE } ,
{ " WEP_EXPLODE " , WEP_EXPLODE } ,
{ " WEP_RAIL " , WEP_RAIL } ,
{ " NUM_WEAPONS " , NUM_WEAPONS } ,
2018-08-23 21:18:52 +00:00
// Value for infinite lives
{ " INFLIVES " , INFLIVES } ,
2014-03-15 16:59:03 +00:00
// Got Flags, for player->gotflag!
// Used to be MF_ for some stupid reason, now they're GF_ to stop them looking like mobjflags
{ " GF_REDFLAG " , GF_REDFLAG } ,
{ " GF_BLUEFLAG " , GF_BLUEFLAG } ,
2014-08-04 03:49:33 +00:00
// Customisable sounds for Skins, from sounds.h
{ " SKSSPIN " , SKSSPIN } ,
{ " SKSPUTPUT " , SKSPUTPUT } ,
{ " SKSPUDPUD " , SKSPUDPUD } ,
{ " SKSPLPAN1 " , SKSPLPAN1 } , // Ouchies
{ " SKSPLPAN2 " , SKSPLPAN2 } ,
{ " SKSPLPAN3 " , SKSPLPAN3 } ,
{ " SKSPLPAN4 " , SKSPLPAN4 } ,
{ " SKSPLDET1 " , SKSPLDET1 } , // Deaths
{ " SKSPLDET2 " , SKSPLDET2 } ,
{ " SKSPLDET3 " , SKSPLDET3 } ,
{ " SKSPLDET4 " , SKSPLDET4 } ,
{ " SKSPLVCT1 " , SKSPLVCT1 } , // Victories
{ " SKSPLVCT2 " , SKSPLVCT2 } ,
{ " SKSPLVCT3 " , SKSPLVCT3 } ,
{ " SKSPLVCT4 " , SKSPLVCT4 } ,
{ " SKSTHOK " , SKSTHOK } ,
{ " SKSSPNDSH " , SKSSPNDSH } ,
{ " SKSZOOM " , SKSZOOM } ,
{ " SKSSKID " , SKSSKID } ,
{ " SKSGASP " , SKSGASP } ,
{ " SKSJUMP " , SKSJUMP } ,
// 3D Floor/Fake Floor/FOF/whatever flags
{ " FF_EXISTS " , FF_EXISTS } , ///< Always set, to check for validity.
{ " FF_BLOCKPLAYER " , FF_BLOCKPLAYER } , ///< Solid to player, but nothing else
{ " FF_BLOCKOTHERS " , FF_BLOCKOTHERS } , ///< Solid to everything but player
{ " FF_SOLID " , FF_SOLID } , ///< Clips things.
{ " FF_RENDERSIDES " , FF_RENDERSIDES } , ///< Renders the sides.
{ " FF_RENDERPLANES " , FF_RENDERPLANES } , ///< Renders the floor/ceiling.
{ " FF_RENDERALL " , FF_RENDERALL } , ///< Renders everything.
{ " FF_SWIMMABLE " , FF_SWIMMABLE } , ///< Is a water block.
{ " FF_NOSHADE " , FF_NOSHADE } , ///< Messes with the lighting?
{ " FF_CUTSOLIDS " , FF_CUTSOLIDS } , ///< Cuts out hidden solid pixels.
{ " FF_CUTEXTRA " , FF_CUTEXTRA } , ///< Cuts out hidden translucent pixels.
{ " FF_CUTLEVEL " , FF_CUTLEVEL } , ///< Cuts out all hidden pixels.
{ " FF_CUTSPRITES " , FF_CUTSPRITES } , ///< Final step in making 3D water.
{ " FF_BOTHPLANES " , FF_BOTHPLANES } , ///< Renders both planes all the time.
{ " FF_EXTRA " , FF_EXTRA } , ///< Gets cut by ::FF_CUTEXTRA.
{ " FF_TRANSLUCENT " , FF_TRANSLUCENT } , ///< See through!
{ " FF_FOG " , FF_FOG } , ///< Fog "brush."
{ " FF_INVERTPLANES " , FF_INVERTPLANES } , ///< Reverse the plane visibility rules.
{ " FF_ALLSIDES " , FF_ALLSIDES } , ///< Render inside and outside sides.
{ " FF_INVERTSIDES " , FF_INVERTSIDES } , ///< Only render inside sides.
{ " FF_DOUBLESHADOW " , FF_DOUBLESHADOW } , ///< Make two lightlist entries to reset light?
{ " FF_FLOATBOB " , FF_FLOATBOB } , ///< Floats on water and bobs if you step on it.
{ " FF_NORETURN " , FF_NORETURN } , ///< Used with ::FF_CRUMBLE. Will not return to its original position after falling.
{ " FF_CRUMBLE " , FF_CRUMBLE } , ///< Falls 2 seconds after being stepped on, and randomly brings all touching crumbling 3dfloors down with it, providing their master sectors share the same tag (allows crumble platforms above or below, to also exist).
{ " FF_SHATTERBOTTOM " , FF_SHATTERBOTTOM } , ///< Used with ::FF_BUSTUP. Like FF_SHATTER, but only breaks from the bottom. Good for springing up through rubble.
{ " FF_MARIO " , FF_MARIO } , ///< Acts like a question block when hit from underneath. Goodie spawned at top is determined by master sector.
{ " FF_BUSTUP " , FF_BUSTUP } , ///< You can spin through/punch this block and it will crumble!
{ " FF_QUICKSAND " , FF_QUICKSAND } , ///< Quicksand!
{ " FF_PLATFORM " , FF_PLATFORM } , ///< You can jump up through this to the top.
{ " FF_REVERSEPLATFORM " , FF_REVERSEPLATFORM } , ///< A fall-through floor in normal gravity, a platform in reverse gravity.
{ " FF_INTANGABLEFLATS " , FF_INTANGABLEFLATS } , ///< Both flats are intangable, but the sides are still solid.
2019-10-19 20:20:48 +00:00
{ " FF_SHATTER " , FF_SHATTER } , ///< Used with ::FF_BUSTUP. Bustable on mere touch.
{ " FF_SPINBUST " , FF_SPINBUST } , ///< Used with ::FF_BUSTUP. Also bustable if you're in your spinning frames.
{ " FF_STRONGBUST " , FF_STRONGBUST } , ///< Used with ::FF_BUSTUP. Only bustable by "strong" characters (Knuckles) and abilities (bouncing, twinspin, melee).
2014-08-04 03:49:33 +00:00
{ " FF_RIPPLE " , FF_RIPPLE } , ///< Ripple the flats
{ " FF_COLORMAPONLY " , FF_COLORMAPONLY } , ///< Only copy the colormap, not the lightlevel
{ " FF_GOOWATER " , FF_GOOWATER } , ///< Used with ::FF_SWIMMABLE. Makes thick bouncey goop.
2016-12-18 15:36:19 +00:00
# ifdef HAVE_LUA_SEGS
2016-07-08 21:58:09 +00:00
// Node flags
{ " NF_SUBSECTOR " , NF_SUBSECTOR } , // Indicate a leaf.
2016-12-18 15:36:19 +00:00
# endif
2018-10-21 15:27:54 +00:00
# ifdef ESLOPE
2016-03-03 05:47:06 +00:00
// Slope flags
2019-04-19 18:21:29 +00:00
{ " SL_NOPHYSICS " , SL_NOPHYSICS } ,
{ " SL_DYNAMIC " , SL_DYNAMIC } ,
2018-10-21 15:27:54 +00:00
# endif
2016-07-08 21:58:09 +00:00
2014-03-15 16:59:03 +00:00
// Angles
{ " ANG1 " , ANG1 } ,
{ " ANG2 " , ANG2 } ,
{ " ANG10 " , ANG10 } ,
{ " ANG15 " , ANG15 } ,
{ " ANG20 " , ANG20 } ,
{ " ANG30 " , ANG30 } ,
{ " ANG60 " , ANG60 } ,
{ " ANG64h " , ANG64h } ,
{ " ANG105 " , ANG105 } ,
{ " ANG210 " , ANG210 } ,
{ " ANG255 " , ANG255 } ,
{ " ANG340 " , ANG340 } ,
{ " ANG350 " , ANG350 } ,
{ " ANGLE_11hh " , ANGLE_11hh } ,
{ " ANGLE_22h " , ANGLE_22h } ,
{ " ANGLE_45 " , ANGLE_45 } ,
{ " ANGLE_67h " , ANGLE_67h } ,
{ " ANGLE_90 " , ANGLE_90 } ,
{ " ANGLE_112h " , ANGLE_112h } ,
{ " ANGLE_135 " , ANGLE_135 } ,
{ " ANGLE_157h " , ANGLE_157h } ,
{ " ANGLE_180 " , ANGLE_180 } ,
{ " ANGLE_202h " , ANGLE_202h } ,
{ " ANGLE_225 " , ANGLE_225 } ,
{ " ANGLE_247h " , ANGLE_247h } ,
{ " ANGLE_270 " , ANGLE_270 } ,
{ " ANGLE_292h " , ANGLE_292h } ,
{ " ANGLE_315 " , ANGLE_315 } ,
{ " ANGLE_337h " , ANGLE_337h } ,
{ " ANGLE_MAX " , ANGLE_MAX } ,
// P_Chase directions (dirtype_t)
{ " DI_NODIR " , DI_NODIR } ,
{ " DI_EAST " , DI_EAST } ,
{ " DI_NORTHEAST " , DI_NORTHEAST } ,
{ " DI_NORTH " , DI_NORTH } ,
{ " DI_NORTHWEST " , DI_NORTHWEST } ,
{ " DI_WEST " , DI_WEST } ,
{ " DI_SOUTHWEST " , DI_SOUTHWEST } ,
{ " DI_SOUTH " , DI_SOUTH } ,
{ " DI_SOUTHEAST " , DI_SOUTHEAST } ,
{ " NUMDIRS " , NUMDIRS } ,
// Buttons (ticcmd_t)
{ " BT_WEAPONMASK " , BT_WEAPONMASK } , //our first four bits.
{ " BT_WEAPONNEXT " , BT_WEAPONNEXT } ,
{ " BT_WEAPONPREV " , BT_WEAPONPREV } ,
{ " BT_ATTACK " , BT_ATTACK } , // shoot rings
{ " BT_USE " , BT_USE } , // spin
{ " BT_CAMLEFT " , BT_CAMLEFT } , // turn camera left
{ " BT_CAMRIGHT " , BT_CAMRIGHT } , // turn camera right
{ " BT_TOSSFLAG " , BT_TOSSFLAG } ,
{ " BT_JUMP " , BT_JUMP } ,
{ " BT_FIRENORMAL " , BT_FIRENORMAL } , // Fire a normal ring no matter what
2014-03-23 16:00:29 +00:00
{ " BT_CUSTOM1 " , BT_CUSTOM1 } , // Lua customizable
{ " BT_CUSTOM2 " , BT_CUSTOM2 } , // Lua customizable
{ " BT_CUSTOM3 " , BT_CUSTOM3 } , // Lua customizable
2014-03-15 16:59:03 +00:00
// cvflags_t
{ " CV_SAVE " , CV_SAVE } ,
{ " CV_CALL " , CV_CALL } ,
{ " CV_NETVAR " , CV_NETVAR } ,
{ " CV_NOINIT " , CV_NOINIT } ,
{ " CV_FLOAT " , CV_FLOAT } ,
{ " CV_NOTINNET " , CV_NOTINNET } ,
{ " CV_MODIFIED " , CV_MODIFIED } ,
{ " CV_SHOWMODIF " , CV_SHOWMODIF } ,
{ " CV_SHOWMODIFONETIME " , CV_SHOWMODIFONETIME } ,
{ " CV_NOSHOWHELP " , CV_NOSHOWHELP } ,
{ " CV_HIDEN " , CV_HIDEN } ,
{ " CV_HIDDEN " , CV_HIDEN } ,
{ " CV_CHEAT " , CV_CHEAT } ,
// v_video flags
{ " V_NOSCALEPATCH " , V_NOSCALEPATCH } ,
{ " V_SMALLSCALEPATCH " , V_SMALLSCALEPATCH } ,
{ " V_MEDSCALEPATCH " , V_MEDSCALEPATCH } ,
{ " V_6WIDTHSPACE " , V_6WIDTHSPACE } ,
{ " V_OLDSPACING " , V_OLDSPACING } ,
{ " V_MONOSPACE " , V_MONOSPACE } ,
2019-06-20 14:34:27 +00:00
2018-03-02 13:32:55 +00:00
{ " V_MAGENTAMAP " , V_MAGENTAMAP } ,
2014-03-15 16:59:03 +00:00
{ " V_YELLOWMAP " , V_YELLOWMAP } ,
{ " V_GREENMAP " , V_GREENMAP } ,
{ " V_BLUEMAP " , V_BLUEMAP } ,
{ " V_REDMAP " , V_REDMAP } ,
{ " V_GRAYMAP " , V_GRAYMAP } ,
{ " V_ORANGEMAP " , V_ORANGEMAP } ,
2018-03-02 13:32:55 +00:00
{ " V_SKYMAP " , V_SKYMAP } ,
{ " V_PURPLEMAP " , V_PURPLEMAP } ,
{ " V_AQUAMAP " , V_AQUAMAP } ,
{ " V_PERIDOTMAP " , V_PERIDOTMAP } ,
{ " V_AZUREMAP " , V_AZUREMAP } ,
{ " V_BROWNMAP " , V_BROWNMAP } ,
{ " V_ROSYMAP " , V_ROSYMAP } ,
{ " V_INVERTMAP " , V_INVERTMAP } ,
2019-06-20 14:34:27 +00:00
2014-03-15 16:59:03 +00:00
{ " V_TRANSLUCENT " , V_TRANSLUCENT } ,
{ " V_10TRANS " , V_10TRANS } ,
{ " V_20TRANS " , V_20TRANS } ,
{ " V_30TRANS " , V_30TRANS } ,
{ " V_40TRANS " , V_40TRANS } ,
{ " V_50TRANS " , V_TRANSLUCENT } , // alias
{ " V_60TRANS " , V_60TRANS } ,
{ " V_70TRANS " , V_70TRANS } ,
{ " V_80TRANS " , V_80TRANS } ,
{ " V_90TRANS " , V_90TRANS } ,
2014-03-21 18:42:55 +00:00
{ " V_HUDTRANSHALF " , V_HUDTRANSHALF } ,
{ " V_HUDTRANS " , V_HUDTRANS } ,
{ " V_HUDTRANSDOUBLE " , V_HUDTRANSDOUBLE } ,
2014-03-15 16:59:03 +00:00
{ " V_AUTOFADEOUT " , V_AUTOFADEOUT } ,
{ " V_RETURN8 " , V_RETURN8 } ,
{ " V_OFFSET " , V_OFFSET } ,
{ " V_ALLOWLOWERCASE " , V_ALLOWLOWERCASE } ,
{ " V_FLIP " , V_FLIP } ,
2019-10-14 05:24:44 +00:00
{ " V_CENTERNAMETAG " , V_CENTERNAMETAG } ,
2014-03-15 16:59:03 +00:00
{ " V_SNAPTOTOP " , V_SNAPTOTOP } ,
{ " V_SNAPTOBOTTOM " , V_SNAPTOBOTTOM } ,
{ " V_SNAPTOLEFT " , V_SNAPTOLEFT } ,
{ " V_SNAPTORIGHT " , V_SNAPTORIGHT } ,
{ " V_WRAPX " , V_WRAPX } ,
{ " V_WRAPY " , V_WRAPY } ,
{ " V_NOSCALESTART " , V_NOSCALESTART } ,
2018-01-20 22:14:24 +00:00
{ " V_PERPLAYER " , V_PERPLAYER } ,
2014-03-15 16:59:03 +00:00
{ " V_PARAMMASK " , V_PARAMMASK } ,
{ " V_SCALEPATCHMASK " , V_SCALEPATCHMASK } ,
{ " V_SPACINGMASK " , V_SPACINGMASK } ,
{ " V_CHARCOLORMASK " , V_CHARCOLORMASK } ,
{ " V_ALPHAMASK " , V_ALPHAMASK } ,
{ " V_CHARCOLORSHIFT " , V_CHARCOLORSHIFT } ,
{ " V_ALPHASHIFT " , V_ALPHASHIFT } ,
2018-11-13 04:16:24 +00:00
2016-10-21 20:27:15 +00:00
//Kick Reasons
{ " KR_KICK " , KR_KICK } ,
{ " KR_PINGLIMIT " , KR_PINGLIMIT } ,
{ " KR_SYNCH " , KR_SYNCH } ,
{ " KR_TIMEOUT " , KR_TIMEOUT } ,
{ " KR_BAN " , KR_BAN } ,
{ " KR_LEAVE " , KR_LEAVE } ,
2019-06-18 16:55:57 +00:00
// translation colormaps
{ " TC_DEFAULT " , TC_DEFAULT } ,
{ " TC_BOSS " , TC_BOSS } ,
{ " TC_METALSONIC " , TC_METALSONIC } ,
{ " TC_ALLWHITE " , TC_ALLWHITE } ,
{ " TC_RAINBOW " , TC_RAINBOW } ,
{ " TC_BLINK " , TC_BLINK } ,
2019-10-20 20:37:56 +00:00
{ " TC_DASHMODE " , TC_DASHMODE } ,
2014-03-15 16:59:03 +00:00
# endif
{ NULL , 0 }
} ;
static mobjtype_t get_mobjtype ( const char * word )
{ // Returns the vlaue of MT_ enumerations
mobjtype_t i ;
if ( * word > = ' 0 ' & & * word < = ' 9 ' )
return atoi ( word ) ;
if ( fastncmp ( " MT_ " , word , 3 ) )
word + = 3 ; // take off the MT_
for ( i = 0 ; i < NUMMOBJFREESLOTS ; i + + ) {
if ( ! FREE_MOBJS [ i ] )
break ;
if ( fastcmp ( word , FREE_MOBJS [ i ] ) )
return MT_FIRSTFREESLOT + i ;
}
for ( i = 0 ; i < MT_FIRSTFREESLOT ; i + + )
if ( fastcmp ( word , MOBJTYPE_LIST [ i ] + 3 ) )
return i ;
deh_warning ( " Couldn't find mobjtype named 'MT_%s' " , word ) ;
2016-12-29 17:02:05 +00:00
return MT_NULL ;
2014-03-15 16:59:03 +00:00
}
static statenum_t get_state ( const char * word )
{ // Returns the value of S_ enumerations
statenum_t i ;
if ( * word > = ' 0 ' & & * word < = ' 9 ' )
return atoi ( word ) ;
if ( fastncmp ( " S_ " , word , 2 ) )
word + = 2 ; // take off the S_
for ( i = 0 ; i < NUMSTATEFREESLOTS ; i + + ) {
if ( ! FREE_STATES [ i ] )
break ;
if ( fastcmp ( word , FREE_STATES [ i ] ) )
return S_FIRSTFREESLOT + i ;
}
for ( i = 0 ; i < S_FIRSTFREESLOT ; i + + )
if ( fastcmp ( word , STATE_LIST [ i ] + 2 ) )
return i ;
deh_warning ( " Couldn't find state named 'S_%s' " , word ) ;
return S_NULL ;
}
static spritenum_t get_sprite ( const char * word )
{ // Returns the value of SPR_ enumerations
spritenum_t i ;
if ( * word > = ' 0 ' & & * word < = ' 9 ' )
return atoi ( word ) ;
if ( fastncmp ( " SPR_ " , word , 4 ) )
word + = 4 ; // take off the SPR_
for ( i = 0 ; i < NUMSPRITES ; i + + )
if ( ! sprnames [ i ] [ 4 ] & & memcmp ( word , sprnames [ i ] , 4 ) = = 0 )
return i ;
deh_warning ( " Couldn't find sprite named 'SPR_%s' " , word ) ;
return SPR_NULL ;
}
2017-08-25 17:00:20 +00:00
static playersprite_t get_sprite2 ( const char * word )
{ // Returns the value of SPR2_ enumerations
playersprite_t i ;
if ( * word > = ' 0 ' & & * word < = ' 9 ' )
return atoi ( word ) ;
if ( fastncmp ( " SPR2_ " , word , 5 ) )
word + = 5 ; // take off the SPR2_
for ( i = 0 ; i < NUMPLAYERSPRITES ; i + + )
if ( ! spr2names [ i ] [ 4 ] & & memcmp ( word , spr2names [ i ] , 4 ) = = 0 )
return i ;
deh_warning ( " Couldn't find sprite named 'SPR2_%s' " , word ) ;
return SPR2_STND ;
}
2014-03-15 16:59:03 +00:00
static sfxenum_t get_sfx ( const char * word )
{ // Returns the value of SFX_ enumerations
sfxenum_t i ;
if ( * word > = ' 0 ' & & * word < = ' 9 ' )
return atoi ( word ) ;
if ( fastncmp ( " SFX_ " , word , 4 ) )
word + = 4 ; // take off the SFX_
else if ( fastncmp ( " DS " , word , 2 ) )
word + = 2 ; // take off the DS
for ( i = 0 ; i < NUMSFX ; i + + )
if ( S_sfx [ i ] . name & & fasticmp ( word , S_sfx [ i ] . name ) )
return i ;
deh_warning ( " Couldn't find sfx named 'SFX_%s' " , word ) ;
return sfx_None ;
}
2016-03-03 10:54:07 +00:00
# ifdef MUSICSLOT_COMPATIBILITY
static UINT16 get_mus ( const char * word , UINT8 dehacked_mode )
{ // Returns the value of MUS_ enumerations
2014-03-15 16:59:03 +00:00
UINT16 i ;
2016-03-03 10:54:07 +00:00
char lumptmp [ 4 ] ;
2014-03-15 16:59:03 +00:00
if ( * word > = ' 0 ' & & * word < = ' 9 ' )
return atoi ( word ) ;
2016-03-03 10:54:07 +00:00
if ( ! word [ 2 ] & & toupper ( word [ 0 ] ) > = ' A ' & & toupper ( word [ 0 ] ) < = ' Z ' )
return ( UINT16 ) M_MapNumber ( word [ 0 ] , word [ 1 ] ) ;
2014-03-15 16:59:03 +00:00
if ( fastncmp ( " MUS_ " , word , 4 ) )
word + = 4 ; // take off the MUS_
else if ( fastncmp ( " O_ " , word , 2 ) | | fastncmp ( " D_ " , word , 2 ) )
word + = 2 ; // take off the O_ or D_
2016-03-03 10:54:07 +00:00
strncpy ( lumptmp , word , 4 ) ;
lumptmp [ 3 ] = 0 ;
if ( fasticmp ( " MAP " , lumptmp ) )
{
word + = 3 ;
if ( toupper ( word [ 0 ] ) > = ' A ' & & toupper ( word [ 0 ] ) < = ' Z ' )
return ( UINT16 ) M_MapNumber ( word [ 0 ] , word [ 1 ] ) ;
else if ( ( i = atoi ( word ) ) )
2014-03-15 16:59:03 +00:00
return i ;
2016-03-03 10:54:07 +00:00
word - = 3 ;
if ( dehacked_mode )
deh_warning ( " Couldn't find music named 'MUS_%s' " , word ) ;
return 0 ;
}
for ( i = 0 ; compat_special_music_slots [ i ] [ 0 ] ; + + i )
if ( fasticmp ( word , compat_special_music_slots [ i ] ) )
return i + 1036 ;
if ( dehacked_mode )
deh_warning ( " Couldn't find music named 'MUS_%s' " , word ) ;
return 0 ;
2014-03-15 16:59:03 +00:00
}
2016-03-03 10:54:07 +00:00
# endif
2014-03-15 16:59:03 +00:00
static hudnum_t get_huditem ( const char * word )
{ // Returns the value of HUD_ enumerations
hudnum_t i ;
if ( * word > = ' 0 ' & & * word < = ' 9 ' )
return atoi ( word ) ;
if ( fastncmp ( " HUD_ " , word , 4 ) )
word + = 4 ; // take off the HUD_
for ( i = 0 ; i < NUMHUDITEMS ; i + + )
if ( fastcmp ( word , HUDITEMS_LIST [ i ] ) )
return i ;
deh_warning ( " Couldn't find huditem named 'HUD_%s' " , word ) ;
2018-01-20 22:14:24 +00:00
return HUD_LIVES ;
2014-03-15 16:59:03 +00:00
}
2018-11-16 14:46:32 +00:00
static menutype_t get_menutype ( const char * word )
2018-11-16 14:56:22 +00:00
{ // Returns the value of MN_ enumerations
2018-11-16 14:46:32 +00:00
menutype_t i ;
if ( * word > = ' 0 ' & & * word < = ' 9 ' )
return atoi ( word ) ;
2018-11-16 14:56:22 +00:00
if ( fastncmp ( " MN_ " , word , 3 ) )
word + = 3 ; // take off the MN_
2018-11-16 14:46:32 +00:00
for ( i = 0 ; i < NUMMENUTYPES ; i + + )
if ( fastcmp ( word , MENUTYPES_LIST [ i ] ) )
return i ;
2018-11-16 14:56:22 +00:00
deh_warning ( " Couldn't find menutype named 'MN_%s' " , word ) ;
return MN_NONE ;
2014-03-15 16:59:03 +00:00
}
# ifndef HAVE_BLUA
static powertype_t get_power ( const char * word )
{ // Returns the vlaue of pw_ enumerations
powertype_t i ;
if ( * word > = ' 0 ' & & * word < = ' 9 ' )
return atoi ( word ) ;
if ( fastncmp ( " PW_ " , word , 3 ) )
word + = 3 ; // take off the pw_
for ( i = 0 ; i < NUMPOWERS ; i + + )
if ( fastcmp ( word , POWERS_LIST [ i ] ) )
return i ;
deh_warning ( " Couldn't find power named 'pw_%s' " , word ) ;
return pw_invulnerability ;
}
/// \todo Make ANY of this completely over-the-top math craziness obey the order of operations.
static fixed_t op_mul ( fixed_t a , fixed_t b ) { return a * b ; }
static fixed_t op_div ( fixed_t a , fixed_t b ) { return a / b ; }
static fixed_t op_add ( fixed_t a , fixed_t b ) { return a + b ; }
static fixed_t op_sub ( fixed_t a , fixed_t b ) { return a - b ; }
static fixed_t op_or ( fixed_t a , fixed_t b ) { return a | b ; }
static fixed_t op_and ( fixed_t a , fixed_t b ) { return a & b ; }
static fixed_t op_lshift ( fixed_t a , fixed_t b ) { return a < < b ; }
static fixed_t op_rshift ( fixed_t a , fixed_t b ) { return a > > b ; }
struct {
const char c ;
fixed_t ( * v ) ( fixed_t , fixed_t ) ;
} OPERATIONS [ ] = {
{ ' * ' , op_mul } ,
{ ' / ' , op_div } ,
{ ' + ' , op_add } ,
{ ' - ' , op_sub } ,
{ ' | ' , op_or } ,
{ ' & ' , op_and } ,
{ ' < ' , op_lshift } ,
{ ' > ' , op_rshift } ,
{ 0 , NULL }
} ;
// Returns the full word, cut at the first symbol or whitespace
static char * read_word ( const char * line )
{
// Part 1: You got the start of the word, now find the end.
const char * p ;
INT32 i ;
for ( p = line + 1 ; * p ; p + + ) {
if ( * p = = ' ' | | * p = = ' \t ' )
break ;
for ( i = 0 ; OPERATIONS [ i ] . c ; i + + )
if ( * p = = OPERATIONS [ i ] . c ) {
i = - 1 ;
break ;
}
if ( i = = - 1 )
break ;
}
// Part 2: Make a copy of the word and return it.
{
size_t len = ( p - line ) ;
char * word = malloc ( len + 1 ) ;
M_Memcpy ( word , line , len ) ;
word [ len ] = ' \0 ' ;
return word ;
}
}
static INT32 operation_pad ( const char * * word )
{ // Brings word the next operation and returns the operation number.
INT32 i ;
for ( ; * * word ; ( * word ) + + ) {
if ( * * word = = ' ' | | * * word = = ' \t ' )
continue ;
for ( i = 0 ; OPERATIONS [ i ] . c ; i + + )
if ( * * word = = OPERATIONS [ i ] . c )
{
if ( ( * * word = = ' < ' & & * ( * word + 1 ) = = ' < ' ) | | ( * * word = = ' > ' & & * ( * word + 1 ) = = ' > ' ) ) ( * word ) + + ; // These operations are two characters long.
else if ( * * word = = ' < ' | | * * word = = ' > ' ) continue ; // ... do not accept one character long.
( * word ) + + ;
return i ;
}
deh_warning ( " Unknown operation '%c' " , * * word ) ;
return - 1 ;
}
return - 1 ;
}
static void const_warning ( const char * type , const char * word )
{
deh_warning ( " Couldn't find %s named '%s' " , type , word ) ;
}
static fixed_t find_const ( const char * * rword )
{ // Finds the value of constants and returns it, bringing word to the next operation.
INT32 i ;
fixed_t r ;
char * word = read_word ( * rword ) ;
* rword + = strlen ( word ) ;
if ( ( * word > = ' 0 ' & & * word < = ' 9 ' ) | | * word = = ' - ' ) { // Parse a number
r = atoi ( word ) ;
free ( word ) ;
return r ;
}
2014-04-14 05:14:58 +00:00
if ( ! * ( word + 1 ) & & // Turn a single A-z symbol into numbers, like sprite frames.
2015-01-01 19:50:31 +00:00
( ( * word > = ' A ' & & * word < = ' Z ' ) | | ( * word > = ' a ' & & * word < = ' z ' ) ) ) {
2014-04-14 05:14:58 +00:00
r = R_Char2Frame ( * word ) ;
2014-03-15 16:59:03 +00:00
free ( word ) ;
return r ;
}
if ( fastncmp ( " MF_ " , word , 3 ) ) {
char * p = word + 3 ;
for ( i = 0 ; MOBJFLAG_LIST [ i ] ; i + + )
if ( fastcmp ( p , MOBJFLAG_LIST [ i ] ) ) {
free ( word ) ;
return ( 1 < < i ) ;
}
// Not found error
const_warning ( " mobj flag " , word ) ;
free ( word ) ;
return 0 ;
}
else if ( fastncmp ( " MF2_ " , word , 4 ) ) {
char * p = word + 4 ;
for ( i = 0 ; MOBJFLAG2_LIST [ i ] ; i + + )
if ( fastcmp ( p , MOBJFLAG2_LIST [ i ] ) ) {
free ( word ) ;
return ( 1 < < i ) ;
}
// Not found error
const_warning ( " mobj flag2 " , word ) ;
free ( word ) ;
return 0 ;
}
else if ( fastncmp ( " MFE_ " , word , 4 ) ) {
char * p = word + 4 ;
for ( i = 0 ; MOBJEFLAG_LIST [ i ] ; i + + )
if ( fastcmp ( p , MOBJEFLAG_LIST [ i ] ) ) {
free ( word ) ;
return ( 1 < < i ) ;
}
// Not found error
const_warning ( " mobj eflag " , word ) ;
free ( word ) ;
return 0 ;
}
else if ( fastncmp ( " PF_ " , word , 3 ) ) {
char * p = word + 3 ;
for ( i = 0 ; PLAYERFLAG_LIST [ i ] ; i + + )
if ( fastcmp ( p , PLAYERFLAG_LIST [ i ] ) ) {
free ( word ) ;
return ( 1 < < i ) ;
}
if ( fastcmp ( p , " FULLSTASIS " ) )
return PF_FULLSTASIS ;
// Not found error
const_warning ( " player flag " , word ) ;
free ( word ) ;
return 0 ;
}
else if ( fastncmp ( " S_ " , word , 2 ) ) {
r = get_state ( word ) ;
free ( word ) ;
return r ;
}
else if ( fastncmp ( " MT_ " , word , 3 ) ) {
r = get_mobjtype ( word ) ;
free ( word ) ;
return r ;
}
else if ( fastncmp ( " SPR_ " , word , 4 ) ) {
r = get_sprite ( word ) ;
free ( word ) ;
return r ;
}
else if ( fastncmp ( " SFX_ " , word , 4 ) | | fastncmp ( " DS " , word , 2 ) ) {
r = get_sfx ( word ) ;
free ( word ) ;
return r ;
}
2016-03-03 10:54:07 +00:00
# ifdef MUSICSLOT_COMPATIBILITY
2014-03-15 16:59:03 +00:00
else if ( fastncmp ( " MUS_ " , word , 4 ) | | fastncmp ( " O_ " , word , 2 ) ) {
2016-03-03 10:54:07 +00:00
r = get_mus ( word , true ) ;
2014-03-15 16:59:03 +00:00
free ( word ) ;
return r ;
}
2016-03-03 10:54:07 +00:00
# endif
2014-03-15 16:59:03 +00:00
else if ( fastncmp ( " PW_ " , word , 3 ) ) {
r = get_power ( word ) ;
free ( word ) ;
return r ;
}
2018-11-16 17:07:47 +00:00
else if ( fastncmp ( " MN_ " , word , 4 ) ) {
r = get_menutype ( word ) ;
free ( word ) ;
return r ;
}
2014-03-15 16:59:03 +00:00
else if ( fastncmp ( " HUD_ " , word , 4 ) ) {
r = get_huditem ( word ) ;
free ( word ) ;
return r ;
}
else if ( fastncmp ( " SKINCOLOR_ " , word , 10 ) ) {
char * p = word + 10 ;
2015-02-16 21:06:51 +00:00
for ( i = 0 ; i < MAXTRANSLATIONS ; i + + )
2014-03-15 16:59:03 +00:00
if ( fastcmp ( p , COLOR_ENUMS [ i ] ) ) {
free ( word ) ;
return i ;
}
const_warning ( " color " , word ) ;
free ( word ) ;
return 0 ;
}
2019-09-07 19:08:05 +00:00
else if ( fastncmp ( " GRADE_ " , word , 6 ) )
{
char * p = word + 6 ;
for ( i = 0 ; NIGHTSGRADE_LIST [ i ] ; i + + )
if ( * p = = NIGHTSGRADE_LIST [ i ] )
{
free ( word ) ;
return i ;
}
const_warning ( " NiGHTS grade " , word ) ;
free ( word ) ;
return 0 ;
}
2014-03-15 16:59:03 +00:00
for ( i = 0 ; INT_CONST [ i ] . n ; i + + )
if ( fastcmp ( word , INT_CONST [ i ] . n ) ) {
free ( word ) ;
return INT_CONST [ i ] . v ;
}
// Not found error.
const_warning ( " constant " , word ) ;
free ( word ) ;
return 0 ;
}
# endif
// Loops through every constant and operation in word and performs its calculations, returning the final value.
fixed_t get_number ( const char * word )
{
# ifdef HAVE_BLUA
return LUA_EvalMath ( word ) ;
# else
// DESPERATELY NEEDED: Order of operations support! :x
fixed_t i = find_const ( & word ) ;
INT32 o ;
while ( * word ) {
o = operation_pad ( & word ) ;
if ( o ! = - 1 )
i = OPERATIONS [ o ] . v ( i , find_const ( & word ) ) ;
else
break ;
}
return i ;
# endif
}
2018-11-08 16:26:55 +00:00
void DEH_Check ( void )
2014-03-15 16:59:03 +00:00
{
# if defined(_DEBUG) || defined(PARANOIA)
const size_t dehstates = sizeof ( STATE_LIST ) / sizeof ( const char * ) ;
const size_t dehmobjs = sizeof ( MOBJTYPE_LIST ) / sizeof ( const char * ) ;
const size_t dehpowers = sizeof ( POWERS_LIST ) / sizeof ( const char * ) ;
const size_t dehcolors = sizeof ( COLOR_ENUMS ) / sizeof ( const char * ) ;
if ( dehstates ! = S_FIRSTFREESLOT )
I_Error ( " You forgot to update the Dehacked states list, you dolt! \n (%d states defined, versus %s in the Dehacked list) \n " , S_FIRSTFREESLOT , sizeu1 ( dehstates ) ) ;
if ( dehmobjs ! = MT_FIRSTFREESLOT )
I_Error ( " You forgot to update the Dehacked mobjtype list, you dolt! \n (%d mobj types defined, versus %s in the Dehacked list) \n " , MT_FIRSTFREESLOT , sizeu1 ( dehmobjs ) ) ;
if ( dehpowers ! = NUMPOWERS )
I_Error ( " You forgot to update the Dehacked powers list, you dolt! \n (%d powers defined, versus %s in the Dehacked list) \n " , NUMPOWERS , sizeu1 ( dehpowers ) ) ;
2015-02-16 21:06:51 +00:00
if ( dehcolors ! = MAXTRANSLATIONS )
I_Error ( " You forgot to update the Dehacked colors list, you dolt! \n (%d colors defined, versus %s in the Dehacked list) \n " , MAXTRANSLATIONS , sizeu1 ( dehcolors ) ) ;
2014-03-15 16:59:03 +00:00
# endif
}
# ifdef HAVE_BLUA
# include "lua_script.h"
# include "lua_libs.h"
// freeslot takes a name (string only!)
// and allocates it to the appropriate free slot.
// Returns the slot number allocated for it or nil if failed.
// ex. freeslot("MT_MYTHING","S_MYSTATE1","S_MYSTATE2")
// TODO: Error checking! @.@; There's currently no way to know which ones failed and why!
//
static inline int lib_freeslot ( lua_State * L )
{
int n = lua_gettop ( L ) ;
2017-04-25 20:45:53 +00:00
int r = 0 ; // args returned
2014-03-15 16:59:03 +00:00
char * s , * type , * word ;
2017-04-25 20:45:53 +00:00
if ( ! lua_lumploading )
return luaL_error ( L , " This function cannot be called from within a hook or coroutine! " ) ;
while ( n - - > 0 )
2017-05-13 19:51:10 +00:00
{
2014-03-15 16:59:03 +00:00
s = Z_StrDup ( luaL_checkstring ( L , 1 ) ) ;
type = strtok ( s , " _ " ) ;
if ( type )
strupr ( type ) ;
else {
Z_Free ( s ) ;
return luaL_error ( L , " Unknown enum type in '%s' \n " , luaL_checkstring ( L , 1 ) ) ;
}
word = strtok ( NULL , " \n " ) ;
if ( word )
strupr ( word ) ;
else {
Z_Free ( s ) ;
return luaL_error ( L , " Missing enum name in '%s' \n " , luaL_checkstring ( L , 1 ) ) ;
}
if ( fastcmp ( type , " SFX " ) ) {
sfxenum_t sfx ;
strlwr ( word ) ;
CONS_Printf ( " Sound sfx_%s allocated. \n " , word ) ;
2014-03-18 17:56:54 +00:00
sfx = S_AddSoundFx ( word , false , 0 , false ) ;
2014-03-15 16:59:03 +00:00
if ( sfx ! = sfx_None ) {
lua_pushinteger ( L , sfx ) ;
r + + ;
} else
2015-10-31 18:45:42 +00:00
CONS_Alert ( CONS_WARNING , " Ran out of free SFX slots! \n " ) ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( type , " SPR " ) )
{
char wad ;
spritenum_t j ;
lua_getfield ( L , LUA_REGISTRYINDEX , " WAD " ) ;
wad = ( char ) lua_tointeger ( L , - 1 ) ;
lua_pop ( L , 1 ) ;
for ( j = SPR_FIRSTFREESLOT ; j < = SPR_LASTFREESLOT ; j + + )
{
if ( used_spr [ ( j - SPR_FIRSTFREESLOT ) / 8 ] & ( 1 < < ( j % 8 ) ) )
{
if ( ! sprnames [ j ] [ 4 ] & & memcmp ( sprnames [ j ] , word , 4 ) = = 0 )
sprnames [ j ] [ 4 ] = wad ;
continue ; // Already allocated, next.
}
// Found a free slot!
CONS_Printf ( " Sprite SPR_%s allocated. \n " , word ) ;
strncpy ( sprnames [ j ] , word , 4 ) ;
//sprnames[j][4] = 0;
used_spr [ ( j - SPR_FIRSTFREESLOT ) / 8 ] | = 1 < < ( j % 8 ) ; // Okay, this sprite slot has been named now.
lua_pushinteger ( L , j ) ;
r + + ;
break ;
}
if ( j > SPR_LASTFREESLOT )
2015-10-31 18:45:42 +00:00
CONS_Alert ( CONS_WARNING , " Ran out of free sprite slots! \n " ) ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( type , " S " ) )
{
statenum_t i ;
for ( i = 0 ; i < NUMSTATEFREESLOTS ; i + + )
if ( ! FREE_STATES [ i ] ) {
CONS_Printf ( " State S_%s allocated. \n " , word ) ;
FREE_STATES [ i ] = Z_Malloc ( strlen ( word ) + 1 , PU_STATIC , NULL ) ;
strcpy ( FREE_STATES [ i ] , word ) ;
lua_pushinteger ( L , i ) ;
r + + ;
break ;
}
if ( i = = NUMSTATEFREESLOTS )
2015-10-31 18:45:42 +00:00
CONS_Alert ( CONS_WARNING , " Ran out of free State slots! \n " ) ;
2014-03-15 16:59:03 +00:00
}
else if ( fastcmp ( type , " MT " ) )
{
mobjtype_t i ;
for ( i = 0 ; i < NUMMOBJFREESLOTS ; i + + )
if ( ! FREE_MOBJS [ i ] ) {
CONS_Printf ( " MobjType MT_%s allocated. \n " , word ) ;
FREE_MOBJS [ i ] = Z_Malloc ( strlen ( word ) + 1 , PU_STATIC , NULL ) ;
strcpy ( FREE_MOBJS [ i ] , word ) ;
lua_pushinteger ( L , i ) ;
r + + ;
break ;
}
if ( i = = NUMMOBJFREESLOTS )
2015-10-31 18:45:42 +00:00
CONS_Alert ( CONS_WARNING , " Ran out of free MobjType slots! \n " ) ;
}
else if ( fastcmp ( type , " SPR2 " ) )
{
// Search if we already have an SPR2 by that name...
2017-08-25 17:00:20 +00:00
playersprite_t i ;
2015-11-11 01:45:53 +00:00
for ( i = SPR2_FIRSTFREESLOT ; i < free_spr2 ; i + + )
2015-10-31 18:45:42 +00:00
if ( memcmp ( spr2names [ i ] , word , 4 ) = = 0 )
break ;
// We don't, so allocate a new one.
2015-11-11 01:45:53 +00:00
if ( i > = free_spr2 ) {
2015-10-31 18:45:42 +00:00
if ( free_spr2 < NUMPLAYERSPRITES )
{
CONS_Printf ( " Sprite SPR2_%s allocated. \n " , word ) ;
strncpy ( spr2names [ free_spr2 ] , word , 4 ) ;
A good and bad ending cutscene now exist.
Also:
* SPR2_XTRA - instead of defining lumpnames in S_SKIN, those kinds of assets can just be bundled into the spriteset. Required for ending cutscene stuff, I guess, but also done for HUD life icon and character select image (aside from Sonic&Tails, still SOC'd in).
* Minor oversights in SPR2 support corrected.
* Better evaluation, featuring ending assets.
* Intro has warping-in blackrock, reusing ending assets.
* Cutscene text now supports lowercase (intro and custom).
* Disable the asset-fucking "gamma correction" I put in over two years ago when implementing colour cube. (This is the only thing I could move into another branch if you MUST, but it's basically invisble in the diff so w/e.)
* Don't blank the screen if the top left pixel of a screen-covering patch is transparent. (Checked via nonzero topdelta for first column)
Bugs:
* OPENGL ONLY: The first ~20 frames of both endings are fucked. A little help here? Might be HWR_DrawFadeFill's fault, which I just created. OR it could be in f_finale, but I doubt it, since it doesn't appear in Software.
2019-07-27 23:32:57 +00:00
spr2defaults [ free_spr2 ] = 0 ;
2015-10-31 18:45:42 +00:00
spr2names [ free_spr2 + + ] [ 4 ] = 0 ;
} else
CONS_Alert ( CONS_WARNING , " Ran out of free SPR2 slots! \n " ) ;
}
r + + ;
2014-03-15 16:59:03 +00:00
}
Z_Free ( s ) ;
lua_remove ( L , 1 ) ;
continue ;
}
return r ;
}
// Wrapper for ALL A_Action functions.
// Arguments: mobj_t actor, int var1, int var2
2017-05-17 19:36:40 +00:00
static int action_call ( lua_State * L )
2014-03-15 16:59:03 +00:00
{
2017-05-17 19:36:40 +00:00
//actionf_t *action = lua_touserdata(L,lua_upvalueindex(1));
actionf_t * action = * ( ( actionf_t * * ) luaL_checkudata ( L , 1 , META_ACTION ) ) ;
2017-11-01 16:52:12 +00:00
mobj_t * actor = * ( ( mobj_t * * ) luaL_checkudata ( L , 2 , META_MOBJ ) ) ;
var1 = ( INT32 ) luaL_optinteger ( L , 3 , 0 ) ;
var2 = ( INT32 ) luaL_optinteger ( L , 4 , 0 ) ;
2014-03-18 17:56:54 +00:00
if ( ! actor )
2014-03-15 16:59:03 +00:00
return LUA_ErrInvalid ( L , " mobj_t " ) ;
2014-03-18 17:56:54 +00:00
action - > acp1 ( actor ) ;
2014-03-15 16:59:03 +00:00
return 0 ;
}
// Hardcoded A_Action name to call for super() or NULL if super() would be invalid.
// Set in lua_infolib.
const char * superactions [ MAXRECURSION ] ;
UINT8 superstack = 0 ;
static int lib_dummysuper ( lua_State * L )
{
return luaL_error ( L , " Can't call super() outside of hardcode - replacing A_Action functions being called by state changes ! " ) ; // convoluted, I know. @_@;;
}
static inline int lib_getenum ( lua_State * L )
{
const char * word , * p ;
fixed_t i ;
boolean mathlib = lua_toboolean ( L , lua_upvalueindex ( 1 ) ) ;
if ( lua_type ( L , 2 ) ! = LUA_TSTRING )
return 0 ;
word = lua_tostring ( L , 2 ) ;
if ( strlen ( word ) = = 1 ) { // Assume sprite frame if length 1.
if ( * word > = ' A ' & & * word < = ' ~ ' )
{
lua_pushinteger ( L , * word - ' A ' ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " constant '%s' could not be parsed. \n " , word ) ;
return 0 ;
}
else if ( fastncmp ( " MF_ " , word , 3 ) ) {
p = word + 3 ;
for ( i = 0 ; MOBJFLAG_LIST [ i ] ; i + + )
if ( fastcmp ( p , MOBJFLAG_LIST [ i ] ) ) {
lua_pushinteger ( L , ( ( lua_Integer ) 1 < < i ) ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " mobjflag '%s' could not be found. \n " , word ) ;
return 0 ;
}
else if ( fastncmp ( " MF2_ " , word , 4 ) ) {
p = word + 4 ;
for ( i = 0 ; MOBJFLAG2_LIST [ i ] ; i + + )
if ( fastcmp ( p , MOBJFLAG2_LIST [ i ] ) ) {
lua_pushinteger ( L , ( ( lua_Integer ) 1 < < i ) ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " mobjflag2 '%s' could not be found. \n " , word ) ;
return 0 ;
}
else if ( fastncmp ( " MFE_ " , word , 4 ) ) {
p = word + 4 ;
for ( i = 0 ; MOBJEFLAG_LIST [ i ] ; i + + )
if ( fastcmp ( p , MOBJEFLAG_LIST [ i ] ) ) {
lua_pushinteger ( L , ( ( lua_Integer ) 1 < < i ) ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " mobjeflag '%s' could not be found. \n " , word ) ;
return 0 ;
}
else if ( fastncmp ( " MTF_ " , word , 4 ) ) {
p = word + 4 ;
2014-08-04 03:49:33 +00:00
for ( i = 0 ; i < 4 ; i + + )
2014-03-15 16:59:03 +00:00
if ( MAPTHINGFLAG_LIST [ i ] & & fastcmp ( p , MAPTHINGFLAG_LIST [ i ] ) ) {
lua_pushinteger ( L , ( ( lua_Integer ) 1 < < i ) ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " mapthingflag '%s' could not be found. \n " , word ) ;
return 0 ;
}
else if ( fastncmp ( " PF_ " , word , 3 ) ) {
p = word + 3 ;
for ( i = 0 ; PLAYERFLAG_LIST [ i ] ; i + + )
if ( fastcmp ( p , PLAYERFLAG_LIST [ i ] ) ) {
lua_pushinteger ( L , ( ( lua_Integer ) 1 < < i ) ) ;
return 1 ;
}
if ( fastcmp ( p , " FULLSTASIS " ) )
{
lua_pushinteger ( L , ( lua_Integer ) PF_FULLSTASIS ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " playerflag '%s' could not be found. \n " , word ) ;
return 0 ;
}
else if ( fastncmp ( " ML_ " , word , 3 ) ) {
p = word + 3 ;
for ( i = 0 ; i < 16 ; i + + )
if ( ML_LIST [ i ] & & fastcmp ( p , ML_LIST [ i ] ) ) {
lua_pushinteger ( L , ( ( lua_Integer ) 1 < < i ) ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " linedef flag '%s' could not be found. \n " , word ) ;
return 0 ;
}
else if ( fastncmp ( " S_ " , word , 2 ) ) {
p = word + 2 ;
for ( i = 0 ; i < NUMSTATEFREESLOTS ; i + + ) {
if ( ! FREE_STATES [ i ] )
break ;
if ( fastcmp ( p , FREE_STATES [ i ] ) ) {
lua_pushinteger ( L , S_FIRSTFREESLOT + i ) ;
return 1 ;
}
}
for ( i = 0 ; i < S_FIRSTFREESLOT ; i + + )
if ( fastcmp ( p , STATE_LIST [ i ] + 2 ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
return luaL_error ( L , " state '%s' does not exist. \n " , word ) ;
}
else if ( fastncmp ( " MT_ " , word , 3 ) ) {
p = word + 3 ;
for ( i = 0 ; i < NUMMOBJFREESLOTS ; i + + ) {
if ( ! FREE_MOBJS [ i ] )
break ;
if ( fastcmp ( p , FREE_MOBJS [ i ] ) ) {
lua_pushinteger ( L , MT_FIRSTFREESLOT + i ) ;
return 1 ;
}
}
for ( i = 0 ; i < MT_FIRSTFREESLOT ; i + + )
if ( fastcmp ( p , MOBJTYPE_LIST [ i ] + 3 ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
return luaL_error ( L , " mobjtype '%s' does not exist. \n " , word ) ;
}
else if ( fastncmp ( " SPR_ " , word , 4 ) ) {
p = word + 4 ;
for ( i = 0 ; i < NUMSPRITES ; i + + )
if ( ! sprnames [ i ] [ 4 ] & & fastncmp ( p , sprnames [ i ] , 4 ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " sprite '%s' could not be found. \n " , word ) ;
return 0 ;
}
2017-08-26 17:56:23 +00:00
else if ( fastncmp ( " SPR2_ " , word , 5 ) ) {
2015-01-28 15:16:50 +00:00
p = word + 5 ;
2016-01-14 17:11:16 +00:00
for ( i = 0 ; i < ( fixed_t ) free_spr2 ; i + + )
2015-01-28 15:16:50 +00:00
if ( ! spr2names [ i ] [ 4 ] )
{
// special 3-char cases, e.g. SPR2_RUN
// the spr2names entry will have "_" on the end, as in "RUN_"
if ( spr2names [ i ] [ 3 ] = = ' _ ' & & ! p [ 3 ] ) {
if ( fastncmp ( p , spr2names [ i ] , 3 ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
}
else if ( fastncmp ( p , spr2names [ i ] , 4 ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
}
if ( mathlib ) return luaL_error ( L , " player sprite '%s' could not be found. \n " , word ) ;
return 0 ;
}
2014-03-15 16:59:03 +00:00
else if ( ! mathlib & & fastncmp ( " sfx_ " , word , 4 ) ) {
p = word + 4 ;
for ( i = 0 ; i < NUMSFX ; i + + )
if ( S_sfx [ i ] . name & & fastcmp ( p , S_sfx [ i ] . name ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
return 0 ;
}
else if ( mathlib & & fastncmp ( " SFX_ " , word , 4 ) ) { // SOCs are ALL CAPS!
p = word + 4 ;
for ( i = 0 ; i < NUMSFX ; i + + )
if ( S_sfx [ i ] . name & & fasticmp ( p , S_sfx [ i ] . name ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
return luaL_error ( L , " sfx '%s' could not be found. \n " , word ) ;
}
else if ( mathlib & & fastncmp ( " DS " , word , 2 ) ) {
p = word + 2 ;
for ( i = 0 ; i < NUMSFX ; i + + )
if ( S_sfx [ i ] . name & & fasticmp ( p , S_sfx [ i ] . name ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " sfx '%s' could not be found. \n " , word ) ;
return 0 ;
}
2016-03-03 10:54:07 +00:00
# ifdef MUSICSLOT_COMPATIBILITY
2014-03-15 16:59:03 +00:00
else if ( ! mathlib & & fastncmp ( " mus_ " , word , 4 ) ) {
p = word + 4 ;
2016-03-03 10:54:07 +00:00
if ( ( i = get_mus ( p , false ) ) = = 0 )
return 0 ;
lua_pushinteger ( L , i ) ;
return 1 ;
2014-03-15 16:59:03 +00:00
}
else if ( mathlib & & fastncmp ( " MUS_ " , word , 4 ) ) { // SOCs are ALL CAPS!
p = word + 4 ;
2016-03-03 10:54:07 +00:00
if ( ( i = get_mus ( p , false ) ) = = 0 )
return luaL_error ( L , " music '%s' could not be found. \n " , word ) ;
lua_pushinteger ( L , i ) ;
return 1 ;
2014-03-15 16:59:03 +00:00
}
else if ( mathlib & & ( fastncmp ( " O_ " , word , 2 ) | | fastncmp ( " D_ " , word , 2 ) ) ) {
p = word + 2 ;
2016-03-03 10:54:07 +00:00
if ( ( i = get_mus ( p , false ) ) = = 0 )
return luaL_error ( L , " music '%s' could not be found. \n " , word ) ;
lua_pushinteger ( L , i ) ;
return 1 ;
2014-03-15 16:59:03 +00:00
}
2016-03-03 10:54:07 +00:00
# endif
2014-03-15 16:59:03 +00:00
else if ( ! mathlib & & fastncmp ( " pw_ " , word , 3 ) ) {
p = word + 3 ;
for ( i = 0 ; i < NUMPOWERS ; i + + )
if ( fasticmp ( p , POWERS_LIST [ i ] ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
return 0 ;
}
else if ( mathlib & & fastncmp ( " PW_ " , word , 3 ) ) { // SOCs are ALL CAPS!
p = word + 3 ;
for ( i = 0 ; i < NUMPOWERS ; i + + )
if ( fastcmp ( p , POWERS_LIST [ i ] ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
return luaL_error ( L , " power '%s' could not be found. \n " , word ) ;
}
else if ( fastncmp ( " HUD_ " , word , 4 ) ) {
p = word + 4 ;
for ( i = 0 ; i < NUMHUDITEMS ; i + + )
if ( fastcmp ( p , HUDITEMS_LIST [ i ] ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " huditem '%s' could not be found. \n " , word ) ;
return 0 ;
}
else if ( fastncmp ( " SKINCOLOR_ " , word , 10 ) ) {
p = word + 10 ;
2015-02-16 21:06:51 +00:00
for ( i = 0 ; i < MAXTRANSLATIONS ; i + + )
2014-03-15 16:59:03 +00:00
if ( fastcmp ( p , COLOR_ENUMS [ i ] ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " skincolor '%s' could not be found. \n " , word ) ;
return 0 ;
}
2019-09-07 19:08:05 +00:00
else if ( fastncmp ( " GRADE_ " , word , 6 ) )
{
p = word + 6 ;
for ( i = 0 ; NIGHTSGRADE_LIST [ i ] ; i + + )
if ( * p = = NIGHTSGRADE_LIST [ i ] )
{
lua_pushinteger ( L , i ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " NiGHTS grade '%s' could not be found. \n " , word ) ;
return 0 ;
}
2018-11-16 14:56:22 +00:00
else if ( fastncmp ( " MN_ " , word , 3 ) ) {
2018-11-16 14:46:32 +00:00
p = word + 3 ;
for ( i = 0 ; i < NUMMENUTYPES ; i + + )
if ( fastcmp ( p , MENUTYPES_LIST [ i ] ) ) {
lua_pushinteger ( L , i ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " menutype '%s' could not be found. \n " , word ) ;
return 0 ;
}
2014-03-15 16:59:03 +00:00
else if ( ! mathlib & & fastncmp ( " A_ " , word , 2 ) ) {
char * caps ;
// Try to get a Lua action first.
/// \todo Push a closure that sets superactions[] and superstack.
lua_getfield ( L , LUA_REGISTRYINDEX , LREG_ACTIONS ) ;
// actions are stored in all uppercase.
caps = Z_StrDup ( word ) ;
strupr ( caps ) ;
lua_getfield ( L , - 1 , caps ) ;
Z_Free ( caps ) ;
if ( ! lua_isnil ( L , - 1 ) )
return 1 ; // Success! :D That was easy.
// Welp, that failed.
lua_pop ( L , 2 ) ; // pop nil and LREG_ACTIONS
// Hardcoded actions as callable Lua functions!
// Retrieving them from this metatable allows them to be case-insensitive!
for ( i = 0 ; actionpointers [ i ] . name ; i + + )
if ( fasticmp ( word , actionpointers [ i ] . name ) ) {
2017-05-17 19:36:40 +00:00
// We push the actionf_t* itself as userdata!
LUA_PushUserdata ( L , & actionpointers [ i ] . action , META_ACTION ) ;
2014-03-15 16:59:03 +00:00
return 1 ;
}
return 0 ;
}
else if ( ! mathlib & & fastcmp ( " super " , word ) )
{
if ( ! superstack )
{
lua_pushcfunction ( L , lib_dummysuper ) ;
return 1 ;
}
for ( i = 0 ; actionpointers [ i ] . name ; i + + )
if ( fasticmp ( superactions [ superstack - 1 ] , actionpointers [ i ] . name ) ) {
2017-05-17 19:36:40 +00:00
LUA_PushUserdata ( L , & actionpointers [ i ] . action , META_ACTION ) ;
2014-03-15 16:59:03 +00:00
return 1 ;
}
return 0 ;
}
for ( i = 0 ; INT_CONST [ i ] . n ; i + + )
if ( fastcmp ( word , INT_CONST [ i ] . n ) ) {
lua_pushinteger ( L , INT_CONST [ i ] . v ) ;
return 1 ;
}
if ( mathlib ) return luaL_error ( L , " constant '%s' could not be parsed. \n " , word ) ;
// DYNAMIC variables too!!
// Try not to add anything that would break netgames or timeattack replays here.
// You know, like consoleplayer, displayplayer, secondarydisplayplayer, or gametime.
2014-04-19 17:41:29 +00:00
if ( fastcmp ( word , " gamemap " ) ) {
lua_pushinteger ( L , gamemap ) ;
return 1 ;
} else if ( fastcmp ( word , " maptol " ) ) {
2014-03-15 16:59:03 +00:00
lua_pushinteger ( L , maptol ) ;
return 1 ;
2018-11-07 00:09:45 +00:00
} else if ( fastcmp ( word , " ultimatemode " ) ) {
lua_pushboolean ( L , ultimatemode ! = 0 ) ;
return 1 ;
2014-03-15 16:59:03 +00:00
} else if ( fastcmp ( word , " mariomode " ) ) {
lua_pushboolean ( L , mariomode ! = 0 ) ;
return 1 ;
} else if ( fastcmp ( word , " twodlevel " ) ) {
lua_pushboolean ( L , twodlevel ! = 0 ) ;
return 1 ;
} else if ( fastcmp ( word , " circuitmap " ) ) {
lua_pushboolean ( L , circuitmap ) ;
return 1 ;
} else if ( fastcmp ( word , " netgame " ) ) {
lua_pushboolean ( L , netgame ) ;
return 1 ;
} else if ( fastcmp ( word , " multiplayer " ) ) {
lua_pushboolean ( L , multiplayer ) ;
return 1 ;
} else if ( fastcmp ( word , " modeattacking " ) ) {
lua_pushboolean ( L , modeattacking ) ;
return 1 ;
} else if ( fastcmp ( word , " splitscreen " ) ) {
lua_pushboolean ( L , splitscreen ) ;
return 1 ;
} else if ( fastcmp ( word , " gamecomplete " ) ) {
lua_pushboolean ( L , gamecomplete ) ;
return 1 ;
} else if ( fastcmp ( word , " devparm " ) ) {
lua_pushboolean ( L , devparm ) ;
return 1 ;
} else if ( fastcmp ( word , " modifiedgame " ) ) {
lua_pushboolean ( L , modifiedgame & & ! savemoddata ) ;
return 1 ;
} else if ( fastcmp ( word , " menuactive " ) ) {
lua_pushboolean ( L , menuactive ) ;
return 1 ;
} else if ( fastcmp ( word , " paused " ) ) {
lua_pushboolean ( L , paused ) ;
return 1 ;
2017-04-20 21:15:57 +00:00
} else if ( fastcmp ( word , " titlemap " ) ) {
lua_pushinteger ( L , titlemap ) ;
return 1 ;
} else if ( fastcmp ( word , " titlemapinaction " ) ) {
2017-05-09 10:09:58 +00:00
lua_pushboolean ( L , ( titlemapinaction ! = TITLEMAP_OFF ) ) ;
2017-04-20 21:15:57 +00:00
return 1 ;
2014-03-15 16:59:03 +00:00
} else if ( fastcmp ( word , " gametype " ) ) {
lua_pushinteger ( L , gametype ) ;
return 1 ;
} else if ( fastcmp ( word , " leveltime " ) ) {
lua_pushinteger ( L , leveltime ) ;
return 1 ;
} else if ( fastcmp ( word , " curWeather " ) ) {
lua_pushinteger ( L , curWeather ) ;
return 1 ;
} else if ( fastcmp ( word , " globalweather " ) ) {
lua_pushinteger ( L , globalweather ) ;
return 1 ;
2014-08-04 03:49:33 +00:00
} else if ( fastcmp ( word , " levelskynum " ) ) {
lua_pushinteger ( L , levelskynum ) ;
return 1 ;
} else if ( fastcmp ( word , " globallevelskynum " ) ) {
lua_pushinteger ( L , globallevelskynum ) ;
return 1 ;
2016-01-08 03:48:20 +00:00
} else if ( fastcmp ( word , " mapmusname " ) ) {
lua_pushstring ( L , mapmusname ) ;
return 1 ;
} else if ( fastcmp ( word , " mapmusflags " ) ) {
lua_pushinteger ( L , mapmusflags ) ;
2014-08-04 03:49:33 +00:00
return 1 ;
2018-09-18 14:22:17 +00:00
} else if ( fastcmp ( word , " mapmusposition " ) ) {
lua_pushinteger ( L , mapmusposition ) ;
return 1 ;
2019-09-27 20:16:11 +00:00
// local player variables, by popular request
} else if ( fastcmp ( word , " consoleplayer " ) ) { // player controlling console (aka local player 1)
2019-09-27 22:15:38 +00:00
if ( consoleplayer < 0 | | ! playeringame [ consoleplayer ] )
2019-09-27 20:16:11 +00:00
return 0 ;
LUA_PushUserdata ( L , & players [ consoleplayer ] , META_PLAYER ) ;
return 1 ;
} else if ( fastcmp ( word , " displayplayer " ) ) { // player visible on screen (aka display player 1)
2019-09-27 22:15:38 +00:00
if ( displayplayer < 0 | | ! playeringame [ displayplayer ] )
2019-09-27 20:16:11 +00:00
return 0 ;
LUA_PushUserdata ( L , & players [ displayplayer ] , META_PLAYER ) ;
return 1 ;
} else if ( fastcmp ( word , " secondarydisplayplayer " ) ) { // local/display player 2, for splitscreen
2019-09-28 19:45:44 +00:00
if ( ! splitscreen | | secondarydisplayplayer < 0 | | ! playeringame [ secondarydisplayplayer ] )
2019-09-27 20:16:11 +00:00
return 0 ;
LUA_PushUserdata ( L , & players [ secondarydisplayplayer ] , META_PLAYER ) ;
return 1 ;
// end local player variables
2014-03-15 16:59:03 +00:00
} else if ( fastcmp ( word , " server " ) ) {
2015-04-08 17:46:30 +00:00
if ( ( ! multiplayer | | ! netgame ) & & ! playeringame [ serverplayer ] )
2014-08-04 03:49:33 +00:00
return 0 ;
LUA_PushUserdata ( L , & players [ serverplayer ] , META_PLAYER ) ;
return 1 ;
2018-11-07 23:07:34 +00:00
} else if ( fastcmp ( word , " admin " ) ) { // BACKWARDS COMPATIBILITY HACK: This was replaced with IsPlayerAdmin(), but some 2.1 Lua scripts still use the admin variable. It now points to the first admin player in the array.
2018-12-16 21:05:18 +00:00
LUA_Deprecated ( L , " admin " , " IsPlayerAdmin(player) " ) ;
2018-11-07 23:07:34 +00:00
if ( ! playeringame [ adminplayers [ 0 ] ] | | IsPlayerAdmin ( serverplayer ) )
2014-03-15 16:59:03 +00:00
return 0 ;
2018-11-07 23:07:34 +00:00
LUA_PushUserdata ( L , & players [ adminplayers [ 0 ] ] , META_PLAYER ) ;
2014-03-15 16:59:03 +00:00
return 1 ;
} else if ( fastcmp ( word , " emeralds " ) ) {
lua_pushinteger ( L , emeralds ) ;
return 1 ;
} else if ( fastcmp ( word , " gravity " ) ) {
lua_pushinteger ( L , gravity ) ;
return 1 ;
2016-03-01 23:48:10 +00:00
} else if ( fastcmp ( word , " VERSIONSTRING " ) ) {
lua_pushstring ( L , VERSIONSTRING ) ;
return 1 ;
2016-06-02 02:06:24 +00:00
} else if ( fastcmp ( word , " token " ) ) {
lua_pushinteger ( L , token ) ;
return 1 ;
2014-03-15 16:59:03 +00:00
}
return 0 ;
}
int LUA_EnumLib ( lua_State * L )
{
if ( lua_gettop ( L ) = = 0 )
lua_pushboolean ( L , 0 ) ;
// Set the global metatable
lua_createtable ( L , 0 , 1 ) ;
lua_pushvalue ( L , 1 ) ; // boolean passed to LUA_EnumLib as first argument.
lua_pushcclosure ( L , lib_getenum , 1 ) ;
lua_setfield ( L , - 2 , " __index " ) ;
lua_setmetatable ( L , LUA_GLOBALSINDEX ) ;
return 0 ;
}
2017-05-17 19:36:40 +00:00
// getActionName(action) -> return action's string name
static int lib_getActionName ( lua_State * L )
{
2017-10-31 16:47:24 +00:00
if ( lua_isuserdata ( L , 1 ) ) // arg 1 is built-in action, expect action userdata
{
actionf_t * action = * ( ( actionf_t * * ) luaL_checkudata ( L , 1 , META_ACTION ) ) ;
const char * name = NULL ;
if ( ! action )
2017-11-01 17:11:10 +00:00
return luaL_error ( L , " not a valid action? " ) ;
2017-10-31 16:47:24 +00:00
name = LUA_GetActionName ( action ) ;
if ( ! name ) // that can't be right?
2017-11-01 17:11:10 +00:00
return luaL_error ( L , " no name string could be found for this action " ) ;
2017-10-31 16:47:24 +00:00
lua_pushstring ( L , name ) ;
return 1 ;
}
else if ( lua_isfunction ( L , 1 ) ) // arg 1 is a function (either C or Lua)
{
lua_settop ( L , 1 ) ; // set top of stack to 1 (removing any extra args, which there shouldn't be)
// get the name for this action, if possible.
2018-10-11 20:44:25 +00:00
lua_getfield ( L , LUA_REGISTRYINDEX , LREG_ACTIONS ) ;
lua_pushnil ( L ) ;
2017-10-31 16:47:24 +00:00
// Lua stack at this point:
// 1 ... -2 -1
// arg ... LREG_ACTIONS nil
2018-10-11 20:44:25 +00:00
while ( lua_next ( L , - 2 ) )
2017-10-31 16:47:24 +00:00
{
// Lua stack at this point:
// 1 ... -3 -2 -1
// arg ... LREG_ACTIONS "A_ACTION" function
2018-10-11 20:44:25 +00:00
if ( lua_rawequal ( L , - 1 , 1 ) ) // is this the same as the arg?
2017-10-31 16:47:24 +00:00
{
// make sure the key (i.e. "A_ACTION") is a string first
// (note: we don't use lua_isstring because it also returns true for numbers)
if ( lua_type ( L , - 2 ) = = LUA_TSTRING )
{
lua_pushvalue ( L , - 2 ) ; // push "A_ACTION" string to top of stack
return 1 ;
}
2018-10-11 20:44:25 +00:00
lua_pop ( L , 2 ) ; // pop the name and function
2017-10-31 16:47:24 +00:00
break ; // probably should have succeeded but we didn't, so end the loop
}
2018-10-11 20:44:25 +00:00
lua_pop ( L , 1 ) ;
2017-10-31 16:47:24 +00:00
}
2018-10-11 20:44:25 +00:00
lua_pop ( L , 1 ) ; // pop LREG_ACTIONS
2017-10-31 16:47:24 +00:00
return 0 ; // return nothing (don't error)
}
return luaL_typerror ( L , 1 , " action userdata or Lua function " ) ;
2017-05-17 19:36:40 +00:00
}
2014-03-15 16:59:03 +00:00
int LUA_SOCLib ( lua_State * L )
{
lua_register ( L , " freeslot " , lib_freeslot ) ;
2017-05-17 19:36:40 +00:00
lua_register ( L , " getActionName " , lib_getActionName ) ;
luaL_newmetatable ( L , META_ACTION ) ;
lua_pushcfunction ( L , action_call ) ;
lua_setfield ( L , - 2 , " __call " ) ;
lua_pop ( L , 1 ) ;
2014-03-15 16:59:03 +00:00
return 0 ;
}
const char * LUA_GetActionName ( void * action )
{
actionf_t * act = ( actionf_t * ) action ;
size_t z ;
for ( z = 0 ; actionpointers [ z ] . name ; z + + )
{
if ( actionpointers [ z ] . action . acv = = act - > acv )
return actionpointers [ z ] . name ;
}
return NULL ;
}
void LUA_SetActionByName ( void * state , const char * actiontocompare )
{
state_t * st = ( state_t * ) state ;
size_t z ;
for ( z = 0 ; actionpointers [ z ] . name ; z + + )
{
if ( fasticmp ( actiontocompare , actionpointers [ z ] . name ) )
{
st - > action = actionpointers [ z ] . action ;
st - > action . acv = actionpointers [ z ] . action . acv ; // assign
st - > action . acp1 = actionpointers [ z ] . action . acp1 ;
return ;
}
}
}
# endif // HAVE_BLUA