Post: MW2 Explosive Bullets
08-01-2015, 08:32 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Does any have a working c++ function for explosive bullets? Ive tried everything and can't get them to work. I need it 1.14 NOT 1.11
(adsbygoogle = window.adsbygoogle || []).push({});
08-02-2015, 12:55 PM #2
mrtn
Little One
Originally posted by xCobraModzFTW View Post
Does any have a working c++ function for explosive bullets? Ive tried everything and can't get them to work. I need it 1.14 NOT 1.11


    

void Cbuf_AddText(char* Command)
{
opd_s Cbuf1 = {0x001D9EC0 , 0x00724C38 };
void(*Cbuf)(int type,char* cmd) = (void(*)(int,char*))&Cbuf1;
Cbuf(0, Command);
}

int (*stdc_snprintf)(char* destination, size_t len, const char* format, ...) = (int(*)(char*, size_t, const char*, ...))0x0071C2C0;

void ExplosiveBullets(int client)
{
char temp[0x100];
stdc_snprintf(temp, 0x100, "setPerk %s specialty_explosivebullets 1", getName(client));
Cbuf_AddText(temp);
SV_GSSC(client, 0, "v bg_bulletExplDmgFactor \"10\" bg_bulletExplRadius \"1000\"");
}
08-02-2015, 02:54 PM #3
Originally posted by 0x0000000 View Post
    

void Cbuf_AddText(char* Command)
{
opd_s Cbuf1 = {0x001D9EC0 , 0x00724C38 };
void(*Cbuf)(int type,char* cmd) = (void(*)(int,char*))&Cbuf1;
Cbuf(0, Command);
}

int (*stdc_snprintf)(char* destination, size_t len, const char* format, ...) = (int(*)(char*, size_t, const char*, ...))0x0071C2C0;

void ExplosiveBullets(int client)
{
char temp[0x100];
stdc_snprintf(temp, 0x100, "setPerk %s specialty_explosivebullets 1", getName(client));
Cbuf_AddText(temp);
SV_GSSC(client, 0, "v bg_bulletExplDmgFactor \"10\" bg_bulletExplRadius \"1000\"");
}


Idk why but this froze my menu
08-02-2015, 03:09 PM #4
mrtn
Little One
Originally posted by xCobraModzFTW View Post
Idk why but this froze my menu


Did you use your own get client name function?
Try with char temp[0x50] instead of [0x100]
08-02-2015, 03:28 PM #5
Originally posted by 0x0000000 View Post
Did you use your own get client name function?
Try with char temp[0x50] instead of [0x100]


this is my getname function

char* getName(int client)
{
if(*(int*)0x21910670 + client * 14080 != 0)
{
return (char*)(0x21910670 + client * 14080);
}
else
{
return "Not Ingame";
}
}
08-02-2015, 03:34 PM #6
Originally posted by 0x0000000 View Post
Did you use your own get client name function?
Try with char temp[0x50] instead of [0x100]


i changed it to 0x50 and it still froze.
08-02-2015, 03:42 PM #7
Originally posted by 0x0000000 View Post
Did you use your own get client name function?
Try with char temp[0x50] instead of [0x100]


nvm i got it... THANK YOU SO MUCH!!!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo