Post: SPRX Explosive Bullets Range?
05-03-2015, 02:18 PM #1
ItzMatriix
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); ok so this is what really confuses me. in a tool this works completly fine. but yet doing the exact same thing using SPRX it doesnt work at all?
this is what im using
    
void Cbuf_AddText(char* Command)
{
opd_s Cbuf1 = {0x1DB240 , 0x0072DCE8};
void(*Cbuf)(int type,char* cmd) = (void(*)(int,char*))&Cbuf1;
Cbuf(0, Command);
}

Cbuf_AddText("set bg_bulletExplRadius 1000");
Cbuf_AddText("set bg_bulletExplDmgFactor 10");
Cbuf_AddText("bg_bulletExplRadius 1000");
Cbuf_AddText("bg_bulletExplDmgFactor 10");
^^Tried without and without "set"


so what im trying to do is change the xplosive range of explosive bullets. and before you say "you need to turn on explosive bullets first" i know that. i am doing that and the explosive bullets themselves work fine. but the cbuf call to change the range isnt working at all. is there anyone else that has run into this problem?

ps i beleive my cBuf is correct because other dvars or calls using are working.
(adsbygoogle = window.adsbygoogle || []).push({});
05-03-2015, 02:53 PM #2
lutsch1234
Bounty hunter
Originally posted by ItzMatriix View Post
ok so this is what really confuses me. in a tool this works completly fine. but yet doing the exact same thing using SPRX it doesnt work at all?
this is what im using
    
void Cbuf_AddText(char* Command)
{
opd_s Cbuf1 = {0x1DB240 , 0x0072DCE8};
void(*Cbuf)(int type,char* cmd) = (void(*)(int,char*))&Cbuf1;
Cbuf(0, Command);
}

Cbuf_AddText("set bg_bulletExplRadius 1000");
Cbuf_AddText("set bg_bulletExplDmgFactor 10");
Cbuf_AddText("bg_bulletExplRadius 1000");
Cbuf_AddText("bg_bulletExplDmgFactor 10");
^^Tried without and without "set"


so what im trying to do is change the xplosive range of explosive bullets. and before you say "you need to turn on explosive bullets first" i know that. i am doing that and the explosive bullets themselves work fine. but the cbuf call to change the range isnt working at all. is there anyone else that has run into this problem?

ps i beleive my cBuf is correct because other dvars or calls using are working.

Try it like this
    
Cbuf_AddText("bg_bulletExplDmgFactor" "100");
Cbuf_AddText("bg_bulletExplRadius" "1000");
05-03-2015, 03:04 PM #3
ItzMatriix
Are you high?
Originally posted by lutsch1234 View Post
Try it like this
    
Cbuf_AddText("bg_bulletExplDmgFactor" "100");
Cbuf_AddText("bg_bulletExplRadius" "1000");


cbuf doesnt support multiple strings
05-03-2015, 06:59 PM #4
lutsch1234
Bounty hunter
Originally posted by ItzMatriix View Post
cbuf doesnt support multiple strings

use SV_Sendgameservercommand

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo