Fixed AvP_GameStats_Stored struct finally.
Cleaned up some warnings. (unhandled enum in switch)
This commit is contained in:
parent
0770c95c17
commit
422e7c385b
23 changed files with 144 additions and 169 deletions
2
TODO
2
TODO
|
@ -1,3 +1 @@
|
|||
* ScreenDescriptorBlock: init this somewhere before StartGame, seems to be
|
||||
initialized in the menu code
|
||||
|
||||
|
|
|
@ -5,7 +5,11 @@ win95/awtexld.hpp line 79:
|
|||
========
|
||||
Changed filenames:
|
||||
avp/win95/system.c (avp_load_rif calls)
|
||||
and other places that forgot to be documented
|
||||
========
|
||||
is AvP.CurrentEnv and StartingEnv used?
|
||||
Env_List can be removed
|
||||
========
|
||||
SCREENDESCRIPTORBLOCK.SDB_DiagonalWidth is unused
|
||||
========
|
||||
movement.txt and genparam.txt code is unused
|
||||
|
|
|
@ -40,7 +40,6 @@ static int TypeOfNPCGenerated;
|
|||
|
||||
/* prototypes for this file */
|
||||
static void ResetGeneratorTimer(GENERATOR_BLOCK *genBlock);
|
||||
static void InitGeneratorTimer(GENERATOR_BLOCK *genBlock);
|
||||
static void ResetHiveStateTime(void);
|
||||
int NumNPCsFromThisGenerator(STRATEGYBLOCK* gen_sbptr);
|
||||
|
||||
|
@ -831,7 +830,7 @@ int NumNPCsFromThisGenerator(STRATEGYBLOCK* gen_sbptr)
|
|||
}
|
||||
break;
|
||||
|
||||
//default - do nothing
|
||||
default: // - do nothing
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -533,10 +533,10 @@ void SendRequestToPlacedLight(STRATEGYBLOCK* sbptr,BOOL state,int extended_data)
|
|||
{
|
||||
if(extended_data & (LightRequest_AdjustType_Standard|LightRequest_AdjustType_Flicker))
|
||||
{
|
||||
//changing state , try to preserve strobe timer
|
||||
/* changing state, try to preserve strobe timer */
|
||||
switch(pl_bhv->state)
|
||||
{
|
||||
//lack of break's intended
|
||||
/* lack of break's intended */
|
||||
case Light_State_StrobeUpDelay:
|
||||
pl_bhv->timer+=pl_bhv->fade_up_time;
|
||||
|
||||
|
@ -545,6 +545,8 @@ void SendRequestToPlacedLight(STRATEGYBLOCK* sbptr,BOOL state,int extended_data)
|
|||
|
||||
case Light_State_StrobeDownDelay:
|
||||
pl_bhv->timer+=pl_bhv->fade_down_time;
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -227,7 +227,8 @@ void ParticleGeneratorBehaveFun(STRATEGYBLOCK* sbptr)
|
|||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3826,7 +3826,7 @@ void QueenBehaviour(STRATEGYBLOCK *sbPtr)
|
|||
textprint("Queen climbing out of airlock\n");
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
textprint("Queen Bias - Object %d Player %d\n",queenStatusPointer->QueenObjectBias,queenStatusPointer->QueenPlayerBias);
|
||||
|
|
|
@ -266,6 +266,8 @@ void TrackObjectBehaveFun(STRATEGYBLOCK* sbptr)
|
|||
to_bhv->request=track_no_request;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
|
||||
if(!track->playing) return;
|
||||
|
|
|
@ -2459,9 +2459,7 @@ void RequestState(STRATEGYBLOCK* sbptr, int message, STRATEGYBLOCK * SBRequester
|
|||
lfxbb->current_state = LFXS_Flicking;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,23 +36,13 @@
|
|||
#define UseLocalAssert Yes
|
||||
#include "ourasert.h"
|
||||
|
||||
/* KJL 09:47:33 03/19/97 - vision stuff for marine and predator.
|
||||
Currently PC only because it will probably be implemented in a completely
|
||||
different way on the consoles, so I won't worry the PSX guys for now.
|
||||
*/
|
||||
#if SupportWindows95
|
||||
|
||||
#include "vision.h"
|
||||
|
||||
#include "cheat.h"
|
||||
#include "pldnet.h"
|
||||
|
||||
#endif
|
||||
|
||||
#if SupportWindows95 || Saturn
|
||||
#include "kshape.h"
|
||||
#include "krender.h"
|
||||
#endif
|
||||
|
||||
/* KJL 16:00:13 11/22/96 - One of my evil experiments.... */
|
||||
#define PENTIUM_PROFILING_ON 0
|
||||
|
@ -76,14 +66,8 @@ different way on the consoles, so I won't worry the PSX guys for now.
|
|||
Extern Engine Varibles
|
||||
******************/
|
||||
|
||||
extern void (*UpdateScreen[]) (void);
|
||||
extern int VideoMode;
|
||||
|
||||
#if PSX
|
||||
#else
|
||||
extern void (*SetVideoMode[]) (void);
|
||||
#endif
|
||||
|
||||
extern int FrameRate;
|
||||
extern int NormalFrameTime;
|
||||
extern int FrameRate;
|
||||
|
@ -242,25 +226,12 @@ void StartGame(void)
|
|||
InitialiseSfxBlocks();
|
||||
InitialiseLightElementSystem();
|
||||
|
||||
#if PSX
|
||||
{
|
||||
extern int RedOut;
|
||||
RedOut=0;
|
||||
}
|
||||
#endif
|
||||
AvP.DestructTimer=-1;
|
||||
|
||||
// DHM 18/11/97: I've put hooks for screen mode changes here for the moment:
|
||||
DAVEHOOK_ScreenModeChange_Setup();
|
||||
DAVEHOOK_ScreenModeChange_Cleanup();
|
||||
|
||||
/* KJL 11:46:42 30/03/98 - I thought it'd be nice to display the version details
|
||||
when you start a game */
|
||||
#if PREDATOR_DEMO||MARINE_DEMO||ALIEN_DEMO
|
||||
#else
|
||||
// GiveVersionDetails();
|
||||
#endif
|
||||
|
||||
#if MIRRORING_ON
|
||||
if(Current_Level_Requires_Mirror_Image())
|
||||
{
|
||||
|
@ -455,10 +426,6 @@ void UpdateGame(void)
|
|||
HandleCheatModes();
|
||||
#endif
|
||||
|
||||
#if PSX
|
||||
HandleCheatModes();
|
||||
#endif
|
||||
|
||||
/*------------Patrick 1/6/97---------------
|
||||
New sound system
|
||||
-------------------------------------------*/
|
||||
|
|
|
@ -46,8 +46,7 @@ extern void DoStatisticsScreen(int completed_level);
|
|||
AvP_GameStats_Stored DefaultLevelGameStats = {
|
||||
{0,0,0,0,0,0,0,0,0,0},
|
||||
{0,0,0,0,0,0,0,0,0,0},
|
||||
{0,0,0,0,0,0,0,0,0,0}, /* Trophies */
|
||||
{0,0,0,0,0,0,0,0,0,0}, /* LiveHeadBites */
|
||||
{0,0,0,0,0,0,0,0,0,0}, /* TrophiesOrLiveHeadBites */
|
||||
{0,0,0,0,0,0,0,0,0,0},
|
||||
10000,
|
||||
0,
|
||||
|
@ -829,7 +828,8 @@ extern void CurrentGameStats_CreatureKilled(STRATEGYBLOCK *sbPtr,SECTION_DATA *s
|
|||
CurrentGameStatistics.Killed[STATS_VICTIM_PREDATOR]++;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1169,8 +1169,8 @@ extern void DoStatisticsScreen(int completed_level)
|
|||
{
|
||||
if ((CurrentGameStatistics.Killed[i])
|
||||
||(LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.Killed[i]>-1)
|
||||
||((AvP.PlayerType==I_Predator)&&(LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.Trophies[i]>-1))
|
||||
||((AvP.PlayerType==I_Alien)&&(LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.LiveHeadBites[i]>-1))
|
||||
||((AvP.PlayerType==I_Predator)&&(LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]>-1))
|
||||
||((AvP.PlayerType==I_Alien)&&(LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]>-1))
|
||||
||((AvP.PlayerType==I_Alien)&&(LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.DeadHeadBites[i]>-1))
|
||||
) {
|
||||
if ((completed_level)&&(level_num<AVP_ENVIRONMENT_END_OF_LIST)&&(NotCheating)) {
|
||||
|
@ -1235,8 +1235,8 @@ extern void DoStatisticsScreen(int completed_level)
|
|||
|
||||
if ((completed_level)&&(level_num<AVP_ENVIRONMENT_END_OF_LIST)&&(NotCheating)) {
|
||||
/* Is it a new best? */
|
||||
if (UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].Trophies[i]<=CurrentGameStatistics.Trophies[i]) {
|
||||
UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].Trophies[i]=CurrentGameStatistics.Trophies[i];
|
||||
if (UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].TrophiesOrLiveHeadBites[i]<=CurrentGameStatistics.Trophies[i]) {
|
||||
UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].TrophiesOrLiveHeadBites[i]=CurrentGameStatistics.Trophies[i];
|
||||
colour_to_draw=COLOUR_GREEN;
|
||||
}
|
||||
}
|
||||
|
@ -1249,7 +1249,7 @@ extern void DoStatisticsScreen(int completed_level)
|
|||
|
||||
if ((level_num<AVP_ENVIRONMENT_END_OF_LIST)&&(NotCheating)) {
|
||||
sprintf(buffer,"%d",
|
||||
UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].Trophies[i]
|
||||
UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].TrophiesOrLiveHeadBites[i]
|
||||
);
|
||||
RenderStringCentred(buffer,TABPOINT3,y,colour_to_draw);
|
||||
} else {
|
||||
|
@ -1259,9 +1259,9 @@ extern void DoStatisticsScreen(int completed_level)
|
|||
colour_to_draw=COLOUR_WHITE;
|
||||
if ((completed_level)&&(level_num<AVP_ENVIRONMENT_END_OF_LIST)) {
|
||||
/* Is it a completed target? */
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.Trophies[i]>-1) {
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]>-1) {
|
||||
targets++;
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.Trophies[i]<=CurrentGameStatistics.Trophies[i]) {
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]<=CurrentGameStatistics.Trophies[i]) {
|
||||
colour_to_draw=COLOUR_RED;
|
||||
targetspassed++;
|
||||
}
|
||||
|
@ -1269,9 +1269,9 @@ extern void DoStatisticsScreen(int completed_level)
|
|||
}
|
||||
if ((level_num<AVP_ENVIRONMENT_END_OF_LIST)&&(NotCheating)) {
|
||||
if (UserProfilePtr->CheatMode[LevelStatsTargets[AvP.Difficulty][level_num].CheatModeToActivate]!=1) {
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.Trophies[i]>-1) {
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]>-1) {
|
||||
sprintf(buffer,"%d",
|
||||
LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.Trophies[i]
|
||||
LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]
|
||||
);
|
||||
RenderStringCentred(buffer,TABPOINT4,y,colour_to_draw);
|
||||
} else {
|
||||
|
@ -1299,8 +1299,8 @@ extern void DoStatisticsScreen(int completed_level)
|
|||
|
||||
if ((completed_level)&&(level_num<AVP_ENVIRONMENT_END_OF_LIST)&&(NotCheating)) {
|
||||
/* Is it a new best? */
|
||||
if (UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].LiveHeadBites[i]<=CurrentGameStatistics.LiveHeadBites[i]) {
|
||||
UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].LiveHeadBites[i]=CurrentGameStatistics.LiveHeadBites[i];
|
||||
if (UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].TrophiesOrLiveHeadBites[i]<=CurrentGameStatistics.LiveHeadBites[i]) {
|
||||
UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].TrophiesOrLiveHeadBites[i]=CurrentGameStatistics.LiveHeadBites[i];
|
||||
colour_to_draw=COLOUR_GREEN;
|
||||
}
|
||||
}
|
||||
|
@ -1313,7 +1313,7 @@ extern void DoStatisticsScreen(int completed_level)
|
|||
|
||||
if ((level_num<AVP_ENVIRONMENT_END_OF_LIST)&&(NotCheating)) {
|
||||
sprintf(buffer,"%d",
|
||||
UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].LiveHeadBites[i]
|
||||
UserProfilePtr->PersonalBests[AvP.Difficulty][level_num].TrophiesOrLiveHeadBites[i]
|
||||
);
|
||||
RenderStringCentred(buffer,TABPOINT3,y,colour_to_draw);
|
||||
} else {
|
||||
|
@ -1323,9 +1323,9 @@ extern void DoStatisticsScreen(int completed_level)
|
|||
colour_to_draw=COLOUR_WHITE;
|
||||
if ((completed_level)&&(level_num<AVP_ENVIRONMENT_END_OF_LIST)) {
|
||||
/* Is it a completed target? */
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.LiveHeadBites[i]>-1) {
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]>-1) {
|
||||
targets++;
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.LiveHeadBites[i]<=CurrentGameStatistics.LiveHeadBites[i]) {
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]<=CurrentGameStatistics.LiveHeadBites[i]) {
|
||||
colour_to_draw=COLOUR_RED;
|
||||
targetspassed++;
|
||||
}
|
||||
|
@ -1333,9 +1333,9 @@ extern void DoStatisticsScreen(int completed_level)
|
|||
}
|
||||
if ((level_num<AVP_ENVIRONMENT_END_OF_LIST)&&(NotCheating)) {
|
||||
if (UserProfilePtr->CheatMode[LevelStatsTargets[AvP.Difficulty][level_num].CheatModeToActivate]!=1) {
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.LiveHeadBites[i]>-1) {
|
||||
if (LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]>-1) {
|
||||
sprintf(buffer,"%d",
|
||||
LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.LiveHeadBites[i]
|
||||
LevelStatsTargets[AvP.Difficulty][level_num].StatTargets.TrophiesOrLiveHeadBites[i]
|
||||
);
|
||||
RenderStringCentred(buffer,TABPOINT4,y,colour_to_draw);
|
||||
} else {
|
||||
|
|
|
@ -53,8 +53,9 @@ typedef struct
|
|||
int Decapitated[STATS_VICTIM_MAXIMUM];
|
||||
|
||||
// union {
|
||||
int Trophies[STATS_VICTIM_MAXIMUM];
|
||||
int LiveHeadBites[STATS_VICTIM_MAXIMUM];
|
||||
int TrophiesOrLiveHeadBites[STATS_VICTIM_MAXIMUM];
|
||||
// int Trophies[STATS_VICTIM_MAXIMUM];
|
||||
// int LiveHeadBites[STATS_VICTIM_MAXIMUM];
|
||||
// };
|
||||
|
||||
int DeadHeadBites[STATS_VICTIM_MAXIMUM];
|
||||
|
@ -104,4 +105,4 @@ extern void InitialiseCurrentGameStatistics(void);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -2270,8 +2270,6 @@ int Fast3dMagnitude(VECTORCH *v)
|
|||
#define ZOOM_SCALE_2 0.1f
|
||||
#define ZOOM_SCALE_3 0.02f
|
||||
|
||||
static int CurrentCameraZoomLevel=0;
|
||||
|
||||
static float ZoomLevels[] = {1.0f,0.4f,0.1f,0.02f};
|
||||
|
||||
void MaintainZoomingLevel(void)
|
||||
|
|
|
@ -155,7 +155,7 @@ void MaintainPlayersInventory(void)
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
} else if((collidedWith) && (collidedWith->I_SBtype == I_BehaviourNetGhost)) {
|
||||
|
|
|
@ -395,6 +395,7 @@ void MakeLightElement(VECTORCH *positionPtr, enum LIGHTELEMENT_BEHAVIOUR_ID beha
|
|||
lightElementPtr->LifeTime = 0;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -129,8 +129,6 @@ extern DISPLAYBLOCK *ActiveBlockList[];
|
|||
static VECTORCH *ViewpointDirectionPtr;
|
||||
static VECTORCH *ViewpointPositionPtr;
|
||||
|
||||
static int ObjectVisiblityTest(DISPLAYBLOCK *objectPtr,VECTORCH *positionPtr,int maxRange);
|
||||
|
||||
|
||||
/*KJL****************************************************************************************
|
||||
* CODE STARTS HERE! *
|
||||
|
|
|
@ -1748,8 +1748,6 @@ void HandleParticleSystem(void)
|
|||
}
|
||||
case PARTICLE_FLARESMOKE:
|
||||
{
|
||||
extern sine[],cosine[];
|
||||
|
||||
// particlePtr->Position.vy -= MUL_FIXED(1000+(FastRandom()&511),NormalFrameTime);
|
||||
particlePtr->Position.vy += MUL_FIXED(particlePtr->Velocity.vy,NormalFrameTime);
|
||||
|
||||
|
@ -1816,8 +1814,6 @@ void HandleParticleSystem(void)
|
|||
}
|
||||
case PARTICLE_STEAM:
|
||||
{
|
||||
extern sine[],cosine[];
|
||||
|
||||
// particlePtr->Position.vy -= MUL_FIXED(1000+(FastRandom()&511),NormalFrameTime);
|
||||
particlePtr->Position.vy += MUL_FIXED(particlePtr->Velocity.vy,NormalFrameTime);
|
||||
|
||||
|
@ -1883,8 +1879,6 @@ void HandleParticleSystem(void)
|
|||
case PARTICLE_BLACKSMOKE:
|
||||
case PARTICLE_IMPACTSMOKE:
|
||||
{
|
||||
extern sine[],cosine[];
|
||||
|
||||
// particlePtr->Position.vy -= MUL_FIXED(1000+(FastRandom()&511),NormalFrameTime);
|
||||
particlePtr->Position.vy += MUL_FIXED(particlePtr->Velocity.vy,NormalFrameTime);
|
||||
|
||||
|
@ -1947,8 +1941,6 @@ void HandleParticleSystem(void)
|
|||
}
|
||||
case PARTICLE_GUNMUZZLE_SMOKE:
|
||||
{
|
||||
extern sine[],cosine[];
|
||||
|
||||
// particlePtr->Position.vy -= MUL_FIXED(1000+(FastRandom()&511),NormalFrameTime);
|
||||
particlePtr->Position.vy += MUL_FIXED(particlePtr->Velocity.vy,NormalFrameTime);
|
||||
#if 1
|
||||
|
@ -3780,10 +3772,8 @@ void HandleRainShaft(MODULE *modulePtr, int bottomY, int topY, int numberOfRaind
|
|||
|
||||
}
|
||||
|
||||
#include <math.h>
|
||||
void HandleRipples(void)
|
||||
{
|
||||
extern int sine[];
|
||||
int i;
|
||||
|
||||
for(i=0; i<MAX_NO_OF_RIPPLES; i++)
|
||||
|
@ -4023,7 +4013,6 @@ void DrawMuzzleFlash(VECTORCH *positionPtr,VECTORCH *directionPtr, enum MUZZLE_F
|
|||
MATRIXCH rotmat;
|
||||
MakeMatrixFromDirection(directionPtr,&muzzleMatrix);
|
||||
{
|
||||
extern int cosine[], sine[];
|
||||
int angle = 4096/12;
|
||||
int cos = GetCos(angle);
|
||||
int sin = GetSin(angle);
|
||||
|
@ -5421,6 +5410,8 @@ void TimeScaleThingy()
|
|||
case I_BehaviourMolotov :
|
||||
DesiredTimeScale=MUL_FIXED(DesiredTimeScale,ONE_FIXED*.7);
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -375,7 +375,7 @@ static BOOL SaveGameAllowed()
|
|||
if(NumberOfSavesLeft > NUM_SAVES_FOR_HARD_MODE)
|
||||
NumberOfSavesLeft = NUM_SAVES_FOR_HARD_MODE;
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
|
||||
|
||||
|
@ -1043,7 +1043,8 @@ static void SaveStrategies()
|
|||
case I_BehaviourFrisbee :
|
||||
SaveStrategy_Frisbee(sbPtr);
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1232,7 +1233,8 @@ static void LoadStrategy(SAVE_BLOCK_STRATEGY_HEADER* header)
|
|||
case I_BehaviourFrisbee :
|
||||
LoadStrategy_Frisbee(header);
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1368,6 +1370,7 @@ extern void ResetNumberOfSaves()
|
|||
case I_Impossible :
|
||||
NumberOfSavesLeft = NUM_SAVES_FOR_HARD_MODE;
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,7 +83,9 @@
|
|||
* G L O B A L S *
|
||||
****************************************************************************************KJL*/
|
||||
|
||||
#if 0
|
||||
static char tempstring[256];
|
||||
#endif
|
||||
|
||||
static int WBStrikeTime=(ONE_FIXED>>1);
|
||||
static int ACStrikeTime=(ONE_FIXED/6);
|
||||
|
@ -11216,6 +11218,8 @@ int FriendlyFireDamageFilter(DAMAGE_PROFILE *damage) {
|
|||
case AMMO_PRED_TROPHY_KILLSECTION:
|
||||
return(VulnerableToPredatorDamage);
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -210,10 +210,10 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
{
|
||||
{
|
||||
{ /* Derelict / Easy */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -232,17 +232,17 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
},
|
||||
{
|
||||
{ /* Colony / Easy */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -261,17 +261,17 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
},
|
||||
{
|
||||
{ /* Invasion / Easy */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -290,17 +290,17 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
},
|
||||
{
|
||||
{ /* Orbital / Easy */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -319,17 +319,17 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
},
|
||||
{
|
||||
{ /* Tyrago / Easy */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -348,17 +348,17 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
},
|
||||
{
|
||||
{ /* Hangar / Easy */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -377,17 +377,17 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
},
|
||||
{
|
||||
{ /* Waterfall / Easy */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -406,17 +406,17 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
},
|
||||
{
|
||||
{ /* Area52 / Easy */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -435,17 +435,17 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
},
|
||||
{
|
||||
{ /* Vaults / Easy */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -464,10 +464,10 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
},
|
||||
{
|
||||
{ /* Fury161 / Easy */
|
||||
|
@ -5091,10 +5091,10 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
},
|
||||
{
|
||||
{ /* E3DemoSP / Impossible */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,}, /* Dead Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures Killed */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Creatures decapitated*/
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Trophies / Live Head Bites */
|
||||
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* Dead Head Bites */
|
||||
-1, /* Shots Fired */
|
||||
-1, /* Accuracy */
|
||||
-1, /* Spotted */
|
||||
|
@ -5113,12 +5113,12 @@ AvP_Level_Target_Desc LevelStatsTargets[I_MaxDifficulties][AVP_ENVIRONMENT_END_O
|
|||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
},
|
||||
0,0,0,0,0,0,0,0,0,0
|
||||
}
|
||||
},
|
||||
CHEATMODE_NONACTIVE, /* Cheat to activate */
|
||||
},
|
||||
},
|
||||
CHEATMODE_NONACTIVE /* Cheat to activate */
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
//#include <string.hpp>
|
||||
|
||||
#include "list_tem.hpp"
|
||||
#include "chnkload.hpp"
|
||||
|
@ -477,6 +476,9 @@ static void select_alternate_location(BehaviourBlockData* bbd)
|
|||
part_temp->orientation=m;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -499,6 +501,8 @@ void create_strategies_from_list ()
|
|||
case I_Impossible :
|
||||
if(!bbd->diff_hard) continue;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if(AvP.Network != I_No_Network && !AvP.NetworkAIServer)
|
||||
|
@ -784,6 +788,9 @@ void deallocate_behaviour_list()
|
|||
|
||||
}
|
||||
#endif //!NEW_DEALLOCATION_ORDER
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
#if !USE_LEVEL_MEMORY_POOL
|
||||
|
|
|
@ -220,6 +220,8 @@ extern void ChangePredatorVisionMode(void)
|
|||
CurrentVisionMode=VISION_MODE_NORMAL;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
Sound_Play(SID_VISION_ON,"h");
|
||||
PredatorVisionChangeCounter=ONE_FIXED;
|
||||
|
|
|
@ -1,15 +1,8 @@
|
|||
/* KJL 16:41:33 29/03/98 - not the most complicated code I've ever written... */
|
||||
#include "version.h"
|
||||
extern void NewOnScreenMessage(unsigned char *messagePtr);
|
||||
|
||||
extern void NewOnScreenMessage(unsigned char *messagePtr);
|
||||
|
||||
void GiveVersionDetails(void)
|
||||
{
|
||||
/* KJL 15:54:25 29/03/98 - give version details; this is not language localised since I thought that would be a little odd */
|
||||
// NewOnScreenMessage("ALIENS VS PREDATOR - DEATHMATCH DEMO V1.0 - REBELLION DEVELOPMENTS 1998/11/28");
|
||||
// NewOnScreenMessage("Aliens vs Predator - Alien Demo V1.3 - Rebellion Developments 1999/1/25");
|
||||
// NewOnScreenMessage("Aliens vs Predator - \n Build 103 \n Rebellion Developments 1999/7/13 \n (European Release)");
|
||||
// NewOnScreenMessage("Aliens vs Predator - \n Build 103 \n Rebellion Developments 1999/7/13 \n (American Release)");
|
||||
NewOnScreenMessage("Aliens vs Predator - Gold\n Build 116 \n Rebellion Developments 2000/16/3 \n"); //11:25
|
||||
|
||||
NewOnScreenMessage("Aliens vs Predator - Linux\n Build 000 \n Based on Rebellion Developments AvP Gold source \n");
|
||||
}
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#ifndef __WIN95_PLAT_SHP_H__
|
||||
#define __WIN95_PLAT_SHP_H__
|
||||
|
||||
/* Plat_Shp.h */
|
||||
|
||||
struct ColPolyTag;
|
||||
|
||||
extern void SetupPolygonFlagAccessForShape(SHAPEHEADER *shape);
|
||||
extern int Request_PolyFlags(void *polygon);
|
||||
|
@ -9,3 +13,5 @@ extern void AccessNextPolygon(void);
|
|||
extern void GetPolygonVertices(struct ColPolyTag *polyPtr);
|
||||
extern void GetPolygonNormal(struct ColPolyTag *polyPtr);
|
||||
extern int SetupPolygonAccessFromShapeIndex(int shapeIndex);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue