VintProg Posted April 16, 2014 Share Posted April 16, 2014 source code c++ void VC_DrawFuncHUD() { auto CBulletInfo__AddBullet = (void (__cdecl*)(CEntity_ * entity, int wpnIndex, float x1, float y1, float z1, float x2, float y2, float z2))0x05C47C0;auto AddParticle = (void (__cdecl*)(char, RwV3d*, RwV3d*, CEntity_ *, float, RwRGBA*, int,int,int,int ) )0x0563CC0; if (GetAsyncKeyState(0x4D) != 0 ) { CPed *pPed = CPlayerPed::GetPlayerPed(); CBulletInfo__AddBullet((CEntity_*)pPed , 29, _Camera->cams[_Camera->activeCam].camPos.x, _Camera->cams[_Camera->activeCam].camPos.y, _Camera->cams[_Camera->activeCam].camPos.z + 0.1f, _Camera->cams[_Camera->activeCam].targetPoint.x, _Camera->cams[_Camera->activeCam].targetPoint.y, _Camera->cams[_Camera->activeCam].targetPoint.z ); RwV3d v1; RwV3d v2; RwRGBA rw; v1 = _Camera->cams[_Camera->activeCam].camPos; v2 = _Camera->cams[_Camera->activeCam].targetPoint; rw.alpha = 255; rw.blue = rand() % 255; rw.green = rand() % 255; rw.red = rand() % 255; AddParticle(56, &v1, &v2, 0, 0.0, &rw, 0, 0, 0, 8300); } }//Use inject codevoid injectFunction (DWORD address, DWORD function) {DWORD _old; VirtualProtect((LPVOID)address,4, PAGE_READWRITE, &_old); BYTE * patch = (BYTE *)address; *patch = 0xE9; // JMP *(DWORD *)(patch+1) = (function-(address+5)); VirtualProtect((LPVOID)address,4, _old, &_old); }injectFunction(0x043E490, (DWORD)VC_DrawFuncHUD); Mark01 1 Link to comment Share on other sites More sharing options...
Silent Posted April 16, 2014 Share Posted April 16, 2014 Nice, but I guess it'd be better if you provided a compiled ASI too... and maybe even the slightest description Link to comment Share on other sites More sharing options...
ALMOST610 Posted April 23, 2014 Share Posted April 23, 2014 Well this is a new one, hadnt heard you were working on this one VintProg, looks like another interesting thing from you. Link to comment Share on other sites More sharing options...
xNCx Posted April 24, 2014 Share Posted April 24, 2014 What the... Waiting for a compiled script so I can see it on my own. Link to comment Share on other sites More sharing options...
Silent Posted April 24, 2014 Share Posted April 24, 2014 The source is pretty much uncompileable unless a person who wants to compile it has some proper VC headers too. Including a compiled code would save a lot of hassle. Link to comment Share on other sites More sharing options...
sharpie_eastern Posted September 14, 2014 Share Posted September 14, 2014 (edited) Maybe there's something he doesn't want us to know Edited September 14, 2014 by sharpie_eastern Jinx. 1 Link to comment Share on other sites More sharing options...
HackMan128 Posted September 14, 2014 Share Posted September 14, 2014 (edited) I completed headers and compiled this stuff, ASI plugin and source code here. Push m key to shot bullets dllmain.cpp #include <math.h>#include <stdlib.h>#include <time.h>#include "stdafx.h"#include "vcRenderWare.h"#include "vcCamera.h"#include "vcPhysic.h"#include "vcWeapon.h"#include "vcActors.h"//Use inject codevoid injectFunction (DWORD address, DWORD function){DWORD _old; VirtualProtect((LPVOID)address,4, PAGE_READWRITE, &_old); BYTE * patch = (BYTE *)address; *patch = 0xE9; // JMP *(DWORD *)(patch+1) = (function-(address+5)); VirtualProtect((LPVOID)address,4, _old, &_old); }void VC_DrawFuncHUD(){auto CBulletInfo__AddBullet = (void (__cdecl*)(CEntity_ * entity, int wpnIndex, float x1, float y1, float z1, float x2, float y2, float z2))0x05C47C0;auto AddParticle = (void (__cdecl*)(char, RwV3d*, RwV3d*, CEntity_ *, float, RwRGBA*, int,int,int,int ) )0x0563CC0;CCamera *_Camera = (CCamera*)0x07E4688;CPed *pPed = CPlayerPed::GetPlayerPed(); if (GetAsyncKeyState(0x4D) != 0 ){ CBulletInfo__AddBullet((CEntity_*)pPed, 29, _Camera->cams[_Camera->activeCam].camPos.x, _Camera->cams[_Camera->activeCam].camPos.y, _Camera->cams[_Camera->activeCam].camPos.z + 0.1f, _Camera->cams[_Camera->activeCam].targetPoint.x, _Camera->cams[_Camera->activeCam].targetPoint.y, _Camera->cams[_Camera->activeCam].targetPoint.z ); RwV3d v1; RwV3d v2; RwRGBA rw; v1 = _Camera->cams[_Camera->activeCam].camPos; v2 = _Camera->cams[_Camera->activeCam].targetPoint; rw.alpha = 255; rw.blue = rand() % 255; rw.green = rand() % 255; rw.red = rand() % 255; AddParticle(56, &v1, &v2, 0, 0.0, &rw, 0, 0, 0, 8300);}}BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ){ switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: // SetTimer(0,0, 16, (TIMERPROC)Update); injectFunction(0x043E490, (DWORD)VC_DrawFuncHUD); break; case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE;} Edited September 15, 2014 by HackMan128 Link to comment Share on other sites More sharing options...
ThirteenAG Posted September 17, 2014 Share Posted September 17, 2014 (edited) I don't want to create another thread for such small mod, so i'm gonna post here. This is a remake of cleo version, which was planned a long time ago. 1.0 exe required, as always. github.com/ThirteenAG/Bullettraces_gta3vc/releases/latest Edited September 17, 2014 by ThirteenAG Tadzik, SaL_Leone, Gramps and 1 other 4 Widescreen Fixes Pack || Project2DFX || SaveLoader || WindowedMode || CLEO Scripts Link to comment Share on other sites More sharing options...
HackMan128 Posted September 18, 2014 Share Posted September 18, 2014 Is version for GTA III using PlayOneShot function to play any sounds from game? Link to comment Share on other sites More sharing options...
ThirteenAG Posted September 18, 2014 Share Posted September 18, 2014 Is version for GTA III using PlayOneShot function to play any sounds from game?I guess.57C840 ; cDMAudio::PlayOneShot((int, unsigned short, float)) Btw, there was a small update, it's better to redownload. Widescreen Fixes Pack || Project2DFX || SaveLoader || WindowedMode || CLEO Scripts Link to comment Share on other sites More sharing options...
SaL_Leone Posted September 18, 2014 Share Posted September 18, 2014 (edited) I don't want to create another thread for such small mod, so i'm gonna post here. This is a remake of cleo version, which was planned a long time ago. 1.0 exe required, as always. github.com/ThirteenAG/Bullettraces_gta3vc/releases/latest Wow,I've always looking for this!Can i have permission?For VCS mod?It is like in VCS. Edited September 18, 2014 by SaL_Leone Link to comment Share on other sites More sharing options...
ThirteenAG Posted September 18, 2014 Share Posted September 18, 2014 Feel free. SaL_Leone 1 Widescreen Fixes Pack || Project2DFX || SaveLoader || WindowedMode || CLEO Scripts Link to comment Share on other sites More sharing options...
Rapid_Jet Posted June 19, 2019 Share Posted June 19, 2019 Can you reupload the link please? Bodethedestroyer 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now