unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Americas Army Series > America's Army UE v2

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2007, 04:18 PM
Neo_Reloaded Neo_Reloaded is offline
Tutorial Admin
 
Join Date: Dec 2006
Posts: 259
Default Add flash, smoke and inc. pictures

Ok everyone, heres a tutorial to make your hack have different pictures for the inc., flash, and smoke grenades, instead of having the original grenade picture on all of them.

Dll Section
HelperFunctions.cpp
Find
Code:
#include "artwork/grenade.h"
Replace With
Code:
#include "artwork/fraggrenade.h"
#include "artwork/incgrenade.h"
#include "artwork/smokegrenade.h"
#include "artwork/flashgrenade.h"
Find
Code:
GameInfo.m_pMarkGrenadeTex->Release();
Replace With
Code:
GameInfo.m_pMarkGrenadeFragTex->Release();
GameInfo.m_pMarkGrenadeSmokeTex->Release();
GameInfo.m_pMarkGrenadeIncTex->Release();
GameInfo.m_pMarkGrenadeFlashTex->Release();
Find
Code:
//Try to load texture for frag grenades
LoadTexture(&GameInfo.m_pMarkGrenadeTex, "grenade.png", GrenadeMarkData, sizeof(GrenadeMarkData));
Replace With
Code:
//Try to load texture for frag grenades
LoadTexture(&GameInfo.m_pMarkGrenadeFragTex, "fraggrenade.png", FragGrenadeMarkData, sizeof(FragGrenadeMarkData));
//Try to load texture for indencinary grenades
LoadTexture(&GameInfo.m_pMarkGrenadeIncTex, "incgrenade.png", IncGrenadeMarkData, sizeof(IncGrenadeMarkData));
//Try to load texture for smoke grenades
LoadTexture(&GameInfo.m_pMarkGrenadeSmokeTex, "smokegrenade.png", SmokeGrenadeMarkData, sizeof(SmokeGrenadeMarkData));
//Try to load texture for flash grenades
LoadTexture(&GameInfo.m_pMarkGrenadeFlashTex, "flashgrenade.png", FlashGrenadeMarkData, sizeof(FlashGrenadeMarkData));
Find
Code:
//Display GrenadeMarks
	if (GameInfo.m_Settings.m_bMarkFrags)
	{
		for (int i = 0; i < (int)GameInfo.m_GrenadesList.size(); i++)
		{
			pD3DDevice8->SetTexture(0, GameInfo.m_pMarkGrenadeTex);
			D3DXMATRIX CrossMatrix;
			D3DXMatrixTranslation(
				&CrossMatrix, 
				GameInfo.m_GrenadesList[i].ScreenMiddle.x + 10, 
				GameInfo.m_GrenadesList[i].ScreenMiddle.y + 10, 
				0);
			pD3DDevice8->SetTransform(D3DTS_WORLD , &CrossMatrix);
			pD3DDevice8->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2);
		}
	}
Replace With
Code:
//Display GrenadeMarks
	if (GameInfo.m_Settings.m_bMarkFrags)
	{
		for (int i = 0; i < (int)GameInfo.m_GrenadesList.size(); i++)
		{
			if (GameInfo.m_GrenadesList[i].model == M67) { pD3DDevice8->SetTexture(0, GameInfo.m_pMarkGrenadeFragTex); }
			else if (GameInfo.m_GrenadesList[i].model == M14) { pD3DDevice8->SetTexture(0, GameInfo.m_pMarkGrenadeIncTex); }
			else if (GameInfo.m_GrenadesList[i].model == M83) { pD3DDevice8->SetTexture(0, GameInfo.m_pMarkGrenadeSmokeTex); }
			else if (GameInfo.m_GrenadesList[i].model == M84) { pD3DDevice8->SetTexture(0, GameInfo.m_pMarkGrenadeFlashTex); }
			else if (GameInfo.m_GrenadesList[i].model == MILES) { pD3DDevice8->SetTexture(0, GameInfo.m_pMarkGrenadeFragTex); }
			else if (GameInfo.m_GrenadesList[i].model == RGD5) { pD3DDevice8->SetTexture(0, GameInfo.m_pMarkGrenadeFragTex); }
			D3DXMATRIX CrossMatrix;
			D3DXMatrixTranslation(
				&CrossMatrix, 
				GameInfo.m_GrenadesList[i].ScreenMiddle.x + 3, 
				GameInfo.m_GrenadesList[i].ScreenMiddle.y + 3, 
				0);
			pD3DDevice8->SetTransform(D3DTS_WORLD , &CrossMatrix);
			pD3DDevice8->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2);
		}
	}
GameInfo.h
Find
Code:
IDirect3DTexture8 *m_pMarkGrenadeTex;
Replace With
Code:
IDirect3DTexture8 *m_pMarkGrenadeFlashTex;
IDirect3DTexture8 *m_pMarkGrenadeSmokeTex;
IDirect3DTexture8 *m_pMarkGrenadeFragTex;
IDirect3DTexture8 *m_pMarkGrenadeIncTex;
Now download these grenade pics, and stick them in your Artwork folder, replacing grenade.png, and grenade.h.

Credits go to Morgan
Attached Files
File Type: rar Artwork.rar (13.8 KB, 15 views)
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
add, flash, pictures, smoke

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 07:26 PM.