mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-29 19:50:37 +00:00
- renamed unprocessed files and added missing WT firefly effect.
This commit is contained in:
parent
8cc273955d
commit
9c3189475a
31 changed files with 131 additions and 44 deletions
|
@ -5,32 +5,32 @@ set( PCH_SOURCES
|
|||
src/actors_d.cpp
|
||||
src/actors_lava.cpp
|
||||
src/bowling.cpp
|
||||
src/e_actors.cpp
|
||||
src/anim.cpp
|
||||
src/cheats.cpp
|
||||
src/cmdline.cpp
|
||||
src/common.cpp
|
||||
src/config.cpp
|
||||
src/d_menu.cpp
|
||||
src/demo.cpp
|
||||
src/game.cpp
|
||||
src/gamedef.cpp
|
||||
src/gameexec.cpp
|
||||
src/gamevars.cpp
|
||||
src/global.cpp
|
||||
src/interpolate.cpp
|
||||
src/namesdyn.cpp
|
||||
src/net.cpp
|
||||
src/osdcmds.cpp
|
||||
src/player.cpp
|
||||
src/premap.cpp
|
||||
src/savegame.cpp
|
||||
src/sbar.cpp
|
||||
src/screens.cpp
|
||||
src/text.cpp
|
||||
src/sector.cpp
|
||||
src/sounds.cpp
|
||||
src/soundsdyn.cpp
|
||||
src/rrdh.cpp)
|
||||
src/zz_actors.cpp
|
||||
src/zz_anim.cpp
|
||||
src/zz_cheats.cpp
|
||||
src/zz_cmdline.cpp
|
||||
src/zz_common.cpp
|
||||
src/zz_config.cpp
|
||||
src/zz_d_menu.cpp
|
||||
src/zz_demo.cpp
|
||||
src/zz_game.cpp
|
||||
src/zz_gamedef.cpp
|
||||
src/zz_gameexec.cpp
|
||||
src/zz_gamevars.cpp
|
||||
src/zz_global.cpp
|
||||
src/zz_interpolate.cpp
|
||||
src/zz_namesdyn.cpp
|
||||
src/zz_net.cpp
|
||||
src/zz_osdcmds.cpp
|
||||
src/zz_player.cpp
|
||||
src/zz_premap.cpp
|
||||
src/zz_savegame.cpp
|
||||
src/zz_sbar.cpp
|
||||
src/zz_screens.cpp
|
||||
src/zz_text.cpp
|
||||
src/zz_sector.cpp
|
||||
src/zz_sounds.cpp
|
||||
src/zz_soundsdyn.cpp
|
||||
src/zz_rrdh.cpp)
|
||||
|
||||
add_game_library2( duke )
|
||||
|
|
|
@ -42,23 +42,26 @@ BEGIN_DUKE_NS
|
|||
#define ACTOR_ONWATER_ADDZ (24<<8)
|
||||
|
||||
// KEEPINSYNC lunatic/con_lang.lua
|
||||
#define STAT_DEFAULT 0
|
||||
#define STAT_ACTOR 1
|
||||
#define STAT_ZOMBIEACTOR 2
|
||||
#define STAT_EFFECTOR 3
|
||||
#define STAT_PROJECTILE 4
|
||||
#define STAT_MISC 5
|
||||
#define STAT_STANDABLE 6
|
||||
#define STAT_LOCATOR 7
|
||||
#define STAT_ACTIVATOR 8
|
||||
#define STAT_TRANSPORT 9
|
||||
#define STAT_PLAYER 10
|
||||
#define STAT_FX 11
|
||||
#define STAT_FALLER 12
|
||||
#define STAT_DUMMYPLAYER 13
|
||||
#define STAT_LIGHT 14
|
||||
#define STAT_RAROR 15
|
||||
#define STAT_NETALLOC MAXSTATUS-1
|
||||
enum
|
||||
{
|
||||
STAT_DEFAULT = 0,
|
||||
STAT_ACTOR = 1,
|
||||
STAT_ZOMBIEACTOR = 2,
|
||||
STAT_EFFECTOR = 3,
|
||||
STAT_PROJECTILE = 4,
|
||||
STAT_MISC = 5,
|
||||
STAT_STANDABLE = 6,
|
||||
STAT_LOCATOR = 7,
|
||||
STAT_ACTIVATOR = 8,
|
||||
STAT_TRANSPORT = 9,
|
||||
STAT_PLAYER = 10,
|
||||
STAT_FX = 11,
|
||||
STAT_FALLER = 12,
|
||||
STAT_DUMMYPLAYER = 13,
|
||||
STAT_LIGHT = 14,
|
||||
STAT_RAROR = 15,
|
||||
STAT_NETALLOC = MAXSTATUS-1
|
||||
};
|
||||
|
||||
|
||||
// Defines the motion characteristics of an actor
|
||||
|
|
|
@ -3160,6 +3160,50 @@ void moveactors_d(void)
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
static void fireflyflyingeffect(int i)
|
||||
{
|
||||
spritetype* s = &sprite[i];
|
||||
auto t = &hittype[i].temp_data[0];
|
||||
int x, p = findplayer(s, &x);
|
||||
execute(i, p, x);
|
||||
|
||||
auto owner = &sprite[s->owner];
|
||||
if (owner->picnum != FIREFLY)
|
||||
{
|
||||
deletesprite(i);
|
||||
return;
|
||||
}
|
||||
|
||||
if (owner->xrepeat >= 24 || owner->pal == 1)
|
||||
s->cstat |= 0x8000;
|
||||
else
|
||||
s->cstat &= ~0x8000;
|
||||
|
||||
double dx = owner->x - sprite[ps[p].i].x;
|
||||
double dy = owner->y - sprite[ps[p].i].y;
|
||||
double dist = sqrt(dx * dx + dy * dy);
|
||||
if (dist != 0.0)
|
||||
{
|
||||
dx /= dist;
|
||||
dy /= dist;
|
||||
}
|
||||
|
||||
s->x = (int) (owner->x - (dx * -10.0));
|
||||
s->y = (int) (owner->y - (dy * -10.0));
|
||||
s->z = owner->z + 2048;
|
||||
|
||||
if (owner->extra <= 0)
|
||||
{
|
||||
deletesprite(i);
|
||||
}
|
||||
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void moveexplosions_d(void) // STATNUM 5
|
||||
{
|
||||
int nexti, sect, p;
|
||||
|
@ -3187,6 +3231,10 @@ void moveexplosions_d(void) // STATNUM 5
|
|||
|
||||
switch (s->picnum)
|
||||
{
|
||||
case FIREFLYFLYINGEFFECT:
|
||||
if (isWorldTour()) fireflyflyingeffect(i);
|
||||
continue;
|
||||
|
||||
case NEON1:
|
||||
case NEON2:
|
||||
case NEON3:
|
||||
|
|
36
source/games/duke/src/sectors_cpp
Normal file
36
source/games/duke/src/sectors_cpp
Normal file
|
@ -0,0 +1,36 @@
|
|||
//-------------------------------------------------------------------------
|
||||
/*
|
||||
Copyright (C) 1996, 2003 - 3D Realms Entertainment
|
||||
Copyright (C) 2000, 2003 - Matt Saettler (EDuke Enhancements)
|
||||
|
||||
This file is part of Enhanced Duke Nukem 3D version 1.5 - Atomic Edition
|
||||
|
||||
Duke Nukem 3D is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
Original Source: 1996 - Todd Replogle
|
||||
Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
|
||||
|
||||
EDuke enhancements integrated: 04/13/2003 - Matt Saettler
|
||||
|
||||
Note: EDuke source was in transition. Changes are in-progress in the
|
||||
source as it is released.
|
||||
|
||||
*/
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
#include "duke3d.h"
|
||||
|
||||
// PRIMITIVE
|
Loading…
Reference in a new issue