mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 14:40:00 +00:00
PlayerSkin small cleanup
This commit is contained in:
parent
8917567508
commit
b76172e2dd
|
@ -15,6 +15,9 @@
|
||||||
#include "Timer.h"
|
#include "Timer.h"
|
||||||
#include "Lights.h"
|
#include "Lights.h"
|
||||||
|
|
||||||
|
RpClump *gpPlayerClump;
|
||||||
|
float gOldFov;
|
||||||
|
|
||||||
int CPlayerSkin::m_txdSlot;
|
int CPlayerSkin::m_txdSlot;
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -92,7 +95,7 @@ CPlayerSkin::GetSkinTexture(const char *texName)
|
||||||
CTxdStore::SetCurrentTxd(m_txdSlot);
|
CTxdStore::SetCurrentTxd(m_txdSlot);
|
||||||
tex = RwTextureRead(texName, NULL);
|
tex = RwTextureRead(texName, NULL);
|
||||||
CTxdStore::PopCurrentTxd();
|
CTxdStore::PopCurrentTxd();
|
||||||
if (tex) return tex;
|
if (tex != nil) return tex;
|
||||||
|
|
||||||
if (strcmp(DEFAULT_SKIN_NAME, texName) == 0)
|
if (strcmp(DEFAULT_SKIN_NAME, texName) == 0)
|
||||||
sprintf(gString, "models\\generic\\player.bmp");
|
sprintf(gString, "models\\generic\\player.bmp");
|
||||||
|
@ -139,7 +142,7 @@ CPlayerSkin::RenderFrontendSkinEdit(void)
|
||||||
{
|
{
|
||||||
static float rotation = 0.0f;
|
static float rotation = 0.0f;
|
||||||
RwRGBAReal AmbientColor = { 0.65f, 0.65f, 0.65f, 1.0f };
|
RwRGBAReal AmbientColor = { 0.65f, 0.65f, 0.65f, 1.0f };
|
||||||
RwV3d pos = { 1.35f, 0.35f, 7.725f };
|
const RwV3d pos = { 1.35f, 0.35f, 7.725f };
|
||||||
const RwV3d axis1 = { 1.0f, 0.0f, 0.0f };
|
const RwV3d axis1 = { 1.0f, 0.0f, 0.0f };
|
||||||
const RwV3d axis2 = { 0.0f, 0.0f, 1.0f };
|
const RwV3d axis2 = { 0.0f, 0.0f, 1.0f };
|
||||||
static uint32 LastFlash = 0;
|
static uint32 LastFlash = 0;
|
|
@ -2,12 +2,6 @@
|
||||||
|
|
||||||
#define DEFAULT_SKIN_NAME "$$\"\""
|
#define DEFAULT_SKIN_NAME "$$\"\""
|
||||||
|
|
||||||
static RpClump *gpPlayerClump;// = *(RpClump**)0x660FF8;
|
|
||||||
static float gOldFov;// = *(float*)0x660FFC;
|
|
||||||
|
|
||||||
void LoadPlayerDff(void);
|
|
||||||
void FindPlayerDff(uint32 &offset, uint32 &size);
|
|
||||||
|
|
||||||
class CPlayerSkin
|
class CPlayerSkin
|
||||||
{
|
{
|
||||||
static int m_txdSlot;
|
static int m_txdSlot;
|
Loading…
Reference in a new issue