Closed NexSqaud closed 5 years ago
@deprale put this in hooks.cpp in paintTraverse
Misc::drawTimer();
near of
Esp::render();
put bombEvent like on screenshot put this
bool drawBombTimer{ false };
in config.h near of
bool watermark{ false };
put this
if(miscJson.isMember("Draw bomb timer"))misc.drawBombTimer = miscJson["Draw bomb timer"].asBool();
in config.cpp in config::load near of
if (miscJson.isMember("Watermark")) misc.watermark = miscJson["Watermark"].asBool();
put this
miscJson["Draw bomb timer"] = misc.drawBombTimer;
in config.cpp in config::save near of
miscJson["Watermark"] = misc.watermark;
and finally put this
ImGui::Checkbox("Draw bomb timer", &config.misc.drawBombTimer);
in gui.cpp near of
ImGui::Checkbox("Watermark", &config.misc.watermark);
Thanks
Got errors https://imgur.com/a/WEVmByM
Oh, i forgot about that. gameevent.h in GameEvent class
constexpr auto getBool(const char* keyName) noexcept
{
return callVirtualMethod<bool, const char*, bool>(this, 5, keyName, false);
}
and check includes in top of misc.h
#include "../Memory.h"
#include "../Interfaces.h"
#include "../SDK/FrameStage.h"
#include "../SDK/UserCmd.h"
#include "../SDK/WeaponId.h"
#include "../SDK/NetworkChannel.h"
#include "../SDK/Entity.h"
#include "../SDK/Client.h"
#include "../SDK/GameEvent.h"
#include "../SDK/GlobalVars.h"
#include "../SDK/Surface.h"
#include "../SDK/ConVar.h"
#include "../SDK/Cvar.h"
I'm an idiot, can someone provide screenshots for this? .-.
TIA, if not its fine I just don't know exactly what to do
I'm an idiot, can someone provide screenshots for this? .-.
TIA, if not its fine I just don't know exactly what to do
Everything is very well explained.
@KyleIsDork t team: https://imgur.com/a/srnCVIx ct team: https://imgur.com/a/DEPJMo4
Thank you! @NexSqaud :D
I'll have to wait until someone compiles this for me :p hope Daniel incorporates it himself because I get 100+ errors. Thank you for your work though!
I think you can also get bombsite the bomb is being planted at.
Bombsite index is different on all maps.
I checked indexes on some maps:
Mirage:
A - 425
B - 426
Inferno:
A - 333
B - 422
Overpass:
A - 79
B - 507
Dust II:
A - 278
B - 279
Cobblestone:
A - 216
B - 107
Cache:
A - 317
B - 318
Train:
A - 93
B - 538
Nuke:
A - 153
B - 404
Vertigo:
A - 223
B - 278
The bombsite B index is usually greater than the bombsite A index, but not on cobblestone. Although cobblestone is still not in the MM map pool
What about C4 damage prediction , I think it base on the distant from player to the bomb ( Vertigo has small bomb range )
https://i.imgur.com/kvtridR.png
@NexSqaud Did everything you said :s
https://i.imgur.com/kvtridR.png
@NexSqaud Did everything you said :s
In misc.h Put the code in namespace misc, dont paste it outside
thanks @NexSqaud this post and your comments worked perfectly!
https://i.imgur.com/kvtridR.png @NexSqaud Did everything you said :s
In misc.h Put the code in namespace misc, dont paste it outside
Thanks bro, figured it out now.
I'm dumb! XD
EDIT: https://i.imgur.com/Y7RoZzO.png
2nd EDIT: Nvm I'm an idiot, I should have pasted everything into the namespace misc thingy. I just realised I can't even paste. lol.
I think you can also get bombsite the bomb is being planted at.
With radar hack on, the player can see where the bomb is planted.
@NexSqaud i put everything you said. I don`t get any errors but is not showing me anything in game... any ideeas why?
Edit1: Now is showing the time but is not showing "Bomb is planting" or "Defuse time"
It works, but when the players aborts the bomb planting, the message still there. When this happened to me, the player aborted the bomb planting in the round restart delay time.
For me is not showing Bomb is planting, is not show Defuse time.
Make sure you correctly copied all variables and functions and you calling it right.
I triple check them...
If i replace this
plantingBomb = false; defusingBomb = false; haveDefusers = false;
with True, its showing just Bomb is planting and the time is bugged and is not dessapear after is defused or planted etc. So clearly is a problem somewhere and i don
t understand where...
The code is put in misc.h after before last '}' .
plantingBomb, defusingBomb and haveDefusers must be false. Check in hooks.cpp in fireEventClientSide you calling Misc::bombEvents() outside switch-case construction
i have it like this
case fnv::hash("player_hurt"):
Misc::playHitSound(event);
Visuals::hitMarker(event);
break;
}
Misc::bombEvents(event);
return hooks.gameEventManager.callOriginal<bool, GameEvent*>(9, event);
Idk, all works perfectly for me.
for me dont... i don
t understand why... i recheck it 3/4 times...
can you upload your files to see the difference between them? thank you very much.
I swear i have everything like you... but is not showing me just the c4 timer after is planted is not showing me Bomb is planting, bomb is defusing etc....
Where you testing? On community servers or official servers?
Insecure, bots practice 😬 wingman/casual (offline with bots.)
I tested with bots too.
I dont know man... i dont get any errors in vs... and in game is just showing me the time after you plant the bomb... but i dont get the messages when somebody is trying to defuse or to plant
@NexSqaud I get the same problem as @cojo1989
@NexSqaud i got these errors
It works perfectly for me why are you guys getting errors?
@kschou95 you just copied my hooks.cpp? I have some unneeded stuff in this.
@kschou95 you just copied my hooks.cpp? I have some unneeded stuff in this.
wow I models changer is sick, can u share it on your repositories ?
@tirziz now it crash game.
misc.h
In hooks.cpp put bombEvents outside switch-case construstion in fireEventClientSide.