- implement SetupTannerSkeleton, DrawTanner

This commit is contained in:
Ilya Shurumov 2020-05-26 18:23:53 +06:00
parent 65be109b19
commit ffd2a02ab4
5 changed files with 584 additions and 578 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1439,7 +1439,9 @@ void DrawAllPedestrians(void)
pPed = pUsedPeds;
while (pPed != NULL)
{
if (pPed->pedType - 2 < 2 && PositionVisible((VECTOR *)&pPed->position) != 0 && FrustrumCheck((VECTOR *)&pPed->position, 60) != -1)
if (pPed->pedType - 2 < 2 && // ???
PositionVisible((VECTOR *)&pPed->position) != 0 &&
FrustrumCheck((VECTOR *)&pPed->position, 60) != -1)
{
if (pPed->type - 8 < 6)
DrawCiv(pPed);
@ -1506,8 +1508,6 @@ void DrawAllPedestrians(void)
// [D]
int TannerActionHappening(void)
{
int iVar1;
PEDESTRIAN *pPed = player[0].pPed;
if (pPed && pPed->type == PED_ACTION_PRESSBUTTON)

View File

@ -7,11 +7,13 @@ extern REPLAY_PARAMETER_BLOCK *ReplayParameterPtr;
extern REPLAY_STREAM ReplayStreams[8];
extern int NumReplayStreams;
extern char *ReplayStart;
extern char *replayptr;
extern unsigned long PingBufferPos;
extern _PING_PACKET *PingBuffer;
extern PLAYBACKCAMERA *PlaybackCamera;
extern void InitPadRecording(); // 0x0001A09C

View File

@ -26,20 +26,19 @@ unsigned char HorizonTextures[40] = {
0x18, 0x19, 0x1A, 0x1B, 0x10, 0x11, 0x12, 0x13
};
SVECTOR sun_position[4] =
{
{ 33536, 54536, 60536, 0 },
{ 33536, 54536, 60536, 0 },
{ 33536, 54536, 60536, 0 },
{ 33536, 54536, 60536, 0 }
SVECTOR sun_position[4] = {
{-0x7d00,-0x2af8,-0x1388},
{-0x7d00,-0x2af8,-0x1388},
{-0x7d00,-0x2af8,-0x1388},
{-0x7d00,-0x2af8,-0x1388}
};
SVECTOR moon_position[4] =
{
{ 33536, 54036, 47536, 0 },
{ 33536, 54036, 47536, 0 },
{ 33536, 54036, 47536, 0 },
{ 33536, 54036, 47536, 0 }
SVECTOR moon_position[4] = {
{-0x7d00,-0x2cec,-0x4650},
{-0x7d00,-0x2cec,-0x4650,},
{-0x7d00,-0x2cec,-0x4650,},
{-0x7d00,-0x2cec,-0x4650,}
};
SVECTOR moon_shadow_position[4] =

View File

@ -1,6 +1,8 @@
#ifndef SKY_H
#define SKY_H
extern SVECTOR sun_position[4];
extern SVECTOR moon_position[4];
extern void LoadSky(); // 0x000775C8