//////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
//
// File: d3dx9.h
// Content: D3DX utility library
//
//////////////////////////////////////////////////////////////////////////////
#ifdef __D3DX_INTERNAL__
#error Incorrect D3DX header used
#endif
#ifndef __D3DX9_H__
#define __D3DX9_H__
// Defines
#include <limits.h>
#define D3DX_DEFAULT ((UINT) -1)
#define D3DX_DEFAULT_NONPOW2 ((UINT) -2)
#define D3DX_DEFAULT_FLOAT FLT_MAX
#define D3DX_FROM_FILE ((UINT) -3)
#define D3DFMT_FROM_FILE ((D3DFORMAT) -3)
#ifndef D3DXINLINE
#ifdef _MSC_VER
#if (_MSC_VER >= 1200)
#define D3DXINLINE __forceinline
#else
#define D3DXINLINE __inline
#endif
#else
#ifdef __cplusplus
#define D3DXINLINE inline
#else
#define D3DXINLINE
#endif
#endif
#endif
// Includes
#include "d3d9.h"
#include "d3dx9math.h"
#include "d3dx9core.h"
#include "d3dx9xof.h"
#include "d3dx9mesh.h"
#include "d3dx9shader.h"
#include "d3dx9effect.h"
#include "d3dx9tex.h"
#include "d3dx9shape.h"
#include "d3dx9anim.h"
// Errors
#define _FACDD 0x876
#define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
enum _D3DXERR {
D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900),
D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901),
D3DXERR_CANNOTATTRSORT = MAKE_DDHRESULT(2902),
D3DXERR_SKINNINGNOTSUPPORTED = MAKE_DDHRESULT(2903),
D3DXERR_TOOMANYINFLUENCES = MAKE_DDHRESULT(2904),
D3DXERR_INVALIDDATA = MAKE_DDHRESULT(2905),
D3DXERR_LOADEDMESHASNODATA = MAKE_DDHRESULT(2906),
D3DXERR_DUPLICATENAMEDFRAGMENT = MAKE_DDHRESULT(2907),
D3DXERR_CANNOTREMOVELASTITEM = MAKE_DDHRESULT(2908),
};
#endif //__D3DX9_H__
this->AddItemToMenu("No Spread" ,2, 0); // "Title", Max Options, Current Option Value
switch ( mainMenu.mOpt[4].nopt )//CrossHairs
{
default://Default Values here
//Default values go here
break;
case 1:
//Semi no spread code here
break;
case 2:
//Full no spread code here
break;
}
1>Base.cpp 1>.\Base.cpp(19) : error C2065: 'L***ient' : undeclared identifier 1>Build log was saved at "file://c:\Users\Geoff\Desktop\CustomBase\CaBase\CaBase\Release\BuildLog.htm" 1>CaBase - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
void __cdecl cBase::PushToConsole( const char* szCommand )
{
void* CONoff = ( void* )*( DWORD* )( *L***ient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
switch ( Menu.mOpt[4].nopt )//3 LEVELS OF NO SPREAD
{
case 0://default normal spread
this->PushToConsole("PerturbRotationEffect 3.000000");
this->PushToConsole("PerturbIncreaseSpeed 3.000000");
this->PushToConsole("PerturbDecreaseSpeed 9.000000");
this->PushToConsole("PerturbWalkPercent 0.500000");
case 1:// 2/3 no spread
this->PushToConsole("PerturbRotationEffect 2.000000");
this->PushToConsole("PerturbIncreaseSpeed 2.000000");
this->PushToConsole("PerturbWalkPercent 0.350000");
this->PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
case 2:// 1/3 spread
this->PushToConsole("PerturbRotationEffect 1.000000");
this->PushToConsole("PerturbIncreaseSpeed 1.000000");
this->PushToConsole("PerturbWalkPercent 0.150000");
this->PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
case 3://NO SPREAD
this->PushToConsole("PerturbRotationEffect 0.000000");
this->PushToConsole("PerturbIncreaseSpeed 0.000000");
this->PushToConsole("PerturbWalkPercent 0.000000");
this->PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
}
Sleep(iRenderSpeed);