mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1080 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2c172dcfb7
commit
ca8f8d21ae
8 changed files with 138 additions and 66 deletions
|
@ -209,6 +209,7 @@ void playanm(const char *fn,char t)
|
|||
int ogltexfiltermode=gltexfiltermode;
|
||||
#endif
|
||||
int32 handle=-1;
|
||||
int frametime = 0;
|
||||
|
||||
// return;
|
||||
|
||||
|
@ -258,8 +259,16 @@ void playanm(const char *fn,char t)
|
|||
|
||||
ototalclock = totalclock + 10;
|
||||
|
||||
frametime = totalclock;
|
||||
|
||||
for (i=1;i<numframes;i++)
|
||||
{
|
||||
if (totalclock > frametime + 45)
|
||||
{
|
||||
OSD_Printf("WARNING: slowdown in %s, skipping playback\n",fn);
|
||||
goto ENDOFANIMLOOP;
|
||||
}
|
||||
frametime = totalclock;
|
||||
while (totalclock < ototalclock)
|
||||
{
|
||||
if (KB_KeyWaiting() || MOUSE_GetButtons()&LEFT_MOUSE)
|
||||
|
|
|
@ -43,7 +43,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#define BUILDDATE " 20080924"
|
||||
#define BUILDDATE " 20080928"
|
||||
#define VERSION " 1.2.0devel"
|
||||
|
||||
static int floor_over_floor;
|
||||
|
|
|
@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#define APPNAME "EDuke32"
|
||||
#define VERSION " 1.5.0devel"
|
||||
// this is checked against http://eduke32.com/VERSION
|
||||
#define BUILDDATE " 20080924"
|
||||
#define BUILDDATE " 20080928"
|
||||
#define HEAD2 APPNAME VERSION BUILDDATE
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -13027,7 +13027,6 @@ FRAGBONUS:
|
|||
}
|
||||
if (playerbest > 0) for (ii=playerbest/(26*60), ij=1; ii>9; ii/=10, ij++) ;
|
||||
clockpad = max(clockpad,ij);
|
||||
clockpad += 2;
|
||||
}
|
||||
|
||||
while (1)
|
||||
|
@ -13139,7 +13138,7 @@ FRAGBONUS:
|
|||
);
|
||||
gametext((320>>2)+71,yy+9,tempbuf,0,2+8+16);
|
||||
if (g_player[myconnectindex].ps->player_par < playerbest)
|
||||
gametext((320>>2)+71+(clockpad*24),yy+9,"New record!",0,2+8+16);
|
||||
gametext((320>>2)+89+(clockpad*24),yy+9,"New record!",0,2+8+16);
|
||||
yy+=10;
|
||||
|
||||
if (!(ud.volume_number == 0 && ud.last_level-1 == 7))
|
||||
|
|
|
@ -5605,6 +5605,9 @@ static void InitProjectiles(void)
|
|||
Bmemcpy(&defaultprojectile, &projectile, sizeof(projectile));
|
||||
}
|
||||
|
||||
extern int g_NumObituaries;
|
||||
extern int g_NumSelfObituaries;
|
||||
|
||||
void loadefs(const char *filenam)
|
||||
{
|
||||
char *mptr;
|
||||
|
@ -5813,6 +5816,7 @@ void loadefs(const char *filenam)
|
|||
}
|
||||
|
||||
{
|
||||
/*
|
||||
const char *ppdeathstrings[] =
|
||||
{
|
||||
"^2%s ^2was kicked to the curb by %s",
|
||||
|
@ -5856,8 +5860,62 @@ void loadefs(const char *filenam)
|
|||
"^2%s ^2got fragged by a monster. It was probably a liztroop.",
|
||||
"^2%s ^2switched to team %d"
|
||||
};
|
||||
*/
|
||||
|
||||
for (i=(sizeof(ppdeathstrings)/sizeof(ppdeathstrings[0]))-1;i>=0;i--)
|
||||
const char *ppdeathstrings[] =
|
||||
{
|
||||
"^02%s^02 beat %s^02 like a cur",
|
||||
"^02%s^02 broke %s",
|
||||
"^02%s^02 body bagged %s",
|
||||
"^02%s^02 boned %s^02 like a fish",
|
||||
"^02%s^02 castrated %s",
|
||||
"^02%s^02 creamed %s",
|
||||
"^02%s^02 crushed %s",
|
||||
"^02%s^02 destroyed %s",
|
||||
"^02%s^02 diced %s",
|
||||
"^02%s^02 disemboweled %s",
|
||||
"^02%s^02 eviscerated %s",
|
||||
"^02%s^02 flattened %s",
|
||||
"^02%s^02 gave AnAl MaDnEsS to %s",
|
||||
"^02%s^02 gave %s^02 Anal Justice",
|
||||
"^02%s^02 hosed %s",
|
||||
"^02%s^02 hurt %s^02 real bad",
|
||||
"^02%s^02 killed %s",
|
||||
"^02%s^02 made dog meat out of %s",
|
||||
"^02%s^02 made mincemeat out of %s",
|
||||
"^02%s^02 massacred %s",
|
||||
"^02%s^02 mutilated %s",
|
||||
"^02%s^02 murdered %s",
|
||||
"^02%s^02 neutered %s",
|
||||
"^02%s^02 reamed %s",
|
||||
"^02%s^02 ripped %s^02 a new orifice",
|
||||
"^02%s^02 rocked %s",
|
||||
"^02%s^02 sent %s^02 to hell",
|
||||
"^02%s^02 slaughtered %s",
|
||||
"^02%s^02 sliced %s",
|
||||
"^02%s^02 smashed %s",
|
||||
"^02%s^02 snuffed %s",
|
||||
"^02%s^02 sodomized %s",
|
||||
"^02%s^02 splattered %s",
|
||||
"^02%s^02 sprayed %s",
|
||||
"^02%s^02 squashed %s",
|
||||
"^02%s^02 throttled %s",
|
||||
"^02%s^02 toasted %s",
|
||||
"^02%s^02 ventilated %s",
|
||||
"^02%s^02 wasted %s",
|
||||
};
|
||||
|
||||
const char *psdeathstrings[] =
|
||||
{
|
||||
"^02%s^02 is excrement",
|
||||
"^02%s^02 is hamburger",
|
||||
"^02%s^02 suffered scrotum separation",
|
||||
"^02%s^02 volunteered for population control",
|
||||
"^02%s^02 has suicided",
|
||||
};
|
||||
|
||||
g_NumObituaries = (sizeof(ppdeathstrings)/sizeof(ppdeathstrings[0]));
|
||||
for (i=g_NumObituaries-1;i>=0;i--)
|
||||
{
|
||||
if (fta_quotes[i+PPDEATHSTRINGS] == NULL)
|
||||
{
|
||||
|
@ -5866,12 +5924,13 @@ void loadefs(const char *filenam)
|
|||
}
|
||||
}
|
||||
|
||||
for (i=(sizeof(podeathstrings)/sizeof(podeathstrings[0]))-1;i>=0;i--)
|
||||
g_NumSelfObituaries = (sizeof(psdeathstrings)/sizeof(psdeathstrings[0]));
|
||||
for (i=g_NumSelfObituaries-1;i>=0;i--)
|
||||
{
|
||||
if (fta_quotes[i+PSDEATHSTRINGS] == NULL)
|
||||
{
|
||||
fta_quotes[i+PSDEATHSTRINGS] = Bcalloc(MAXQUOTELEN,sizeof(char));
|
||||
Bstrcpy(fta_quotes[i+PSDEATHSTRINGS],podeathstrings[i]);
|
||||
Bstrcpy(fta_quotes[i+PSDEATHSTRINGS],psdeathstrings[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2891,7 +2891,7 @@ cheat_for_port_credits:
|
|||
"Show inv & pickup messages",
|
||||
"HUD weapon display",
|
||||
"Use alternate HUD",
|
||||
"Demo playback cameras",
|
||||
"Use camera view in demos",
|
||||
"-",
|
||||
"DM: Ignore map votes",
|
||||
"DM: Use private messages",
|
||||
|
|
|
@ -3291,6 +3291,9 @@ void checkweapons(player_struct *p)
|
|||
}
|
||||
}
|
||||
|
||||
int g_NumObituaries = 0;
|
||||
int g_NumSelfObituaries = 0;
|
||||
|
||||
void processinput(int snum)
|
||||
{
|
||||
int j, i, k, doubvel, fz, cz, hz, lz, truefdist, x, y, shrunk;
|
||||
|
@ -3590,8 +3593,7 @@ void processinput(int snum)
|
|||
|
||||
if (ud.obituaries)
|
||||
{
|
||||
char name1[32],name2[32];
|
||||
|
||||
/*
|
||||
if (GTFLAGS(GAMETYPE_FLAG_PLAYERSFRIENDLY) || (GTFLAGS(GAMETYPE_FLAG_TDM) && g_player[snum].ps->team == g_player[p->frag_ps].ps->team))
|
||||
i = 9;
|
||||
else
|
||||
|
@ -3636,10 +3638,10 @@ void processinput(int snum)
|
|||
break;
|
||||
}
|
||||
}
|
||||
Bstrcpy(name1,&g_player[snum].user_name[0]);
|
||||
Bstrcpy(name2,&g_player[p->frag_ps].user_name[0]);
|
||||
|
||||
Bsprintf(tempbuf,fta_quotes[PPDEATHSTRINGS+i+(mulscale(krand(), 3, 16)*10)],name1,name2);
|
||||
*/
|
||||
Bsprintf(tempbuf,fta_quotes[PPDEATHSTRINGS+(krand()%g_NumObituaries)],
|
||||
&g_player[p->frag_ps].user_name[0],
|
||||
&g_player[snum].user_name[0]);
|
||||
if (ud.config.ScreenWidth >= 800)
|
||||
adduserquote(tempbuf);
|
||||
else OSD_Printf("%s\n",tempbuf);
|
||||
|
@ -3652,13 +3654,16 @@ void processinput(int snum)
|
|||
{
|
||||
p->fraggedself++;
|
||||
if (badguypic(sprite[p->wackedbyactor].picnum))
|
||||
i = 2;
|
||||
Bsprintf(tempbuf,fta_quotes[PPDEATHSTRINGS+(krand()%g_NumObituaries)],"A monster",&g_player[snum].user_name[0]);
|
||||
else if (hittype[p->i].picnum == NUKEBUTTON)
|
||||
i = 1;
|
||||
else i = 0;
|
||||
Bsprintf(tempbuf,fta_quotes[PSDEATHSTRINGS+i],&g_player[snum].user_name[0]);
|
||||
Bsprintf(tempbuf,"^02%s^02 tried to leave",&g_player[snum].user_name[0]);
|
||||
else
|
||||
{
|
||||
// random suicide death string
|
||||
Bsprintf(tempbuf,fta_quotes[PSDEATHSTRINGS+(krand()%g_NumSelfObituaries)],&g_player[snum].user_name[0]);
|
||||
}
|
||||
else Bsprintf(tempbuf,fta_quotes[PSDEATHSTRINGS+3],&g_player[snum].user_name[0],p->team+1);
|
||||
}
|
||||
else Bsprintf(tempbuf,"^02%s^02 switched to team %d",&g_player[snum].user_name[0],p->team+1);
|
||||
|
||||
if (ud.obituaries)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue