danielkrupinski / Osiris

Cross-platform game hack for Counter-Strike 2 with Panorama-based GUI.
MIT License
3.34k stars 963 forks source link

Not exactly an issue but... #3332

Closed Auditormadness9 closed 1 year ago

Auditormadness9 commented 3 years ago

I can't find any proper help either on Unknowncheats or any Discord server but I was looking to implement this TTT traitor detector into Osiris, but all I have tried in the instructions that the author left yielded no results... if somebody could give me a tip on how to do it properly I'll be extremly thankful 🙏🏼

https://www.unknowncheats.me/forum/counterstrike-global-offensive/304526-trouble-terrorist-town-csgo-traitor-detector.html

Thanks in advanace!^^

wemanzoz commented 3 years ago

From what i undetstand, you create a file on the sdk folder called PlayerLogic.cpp/.h then you paste the codes provided there. then you do something on eventlistener i think

Auditormadness9 commented 3 years ago

From what i undetstand, you create a file on the sdk folder called PlayerLogic.cpp/.h then you paste the codes provided there. then you do something on eventlistener i think

I thought so as well. I did create both of those files and pasted the codes inside them, and moved them to the SDK folder, but I couldn't figure out what to do next with the eventlistener thingy. He mentioned putting clearmap() into round_end but I can't find round_end, nor player_hurt

Auditormadness9 commented 3 years ago

@wemanzoz Okay so I worked on the code a bit and managed to put the necessary functions and code snippets into round_end (it wasn't there so I just created one lol), and player_hurt, so I think the technical parts are done (it wasn't that easy since I'm quite new to c++), but now I have to rename quite a lot of functions and declare variables since I get around 39 errors in total, 21 in GameListener, and around 8 in PlayerLogic.h and PlayerLogic.cpp

image image image

wemanzoz commented 3 years ago

@wemanzoz Okay so I worked on the code a bit and managed to put the necessary functions and code snippets into round_end (it wasn't there so I just created one lol), and player_hurt, so I think the technical parts are done (it wasn't that easy since I'm quite new to c++), but now I have to rename quite a lot of functions and declare variables since I get around 39 errors in total, 21 in GameListener, and around 8 in PlayerLogic.h and PlayerLogic.cpp

image image image

you didnt define the identifier on eventlistener.h and u did something wrong on eventlistener aswell

Auditormadness9 commented 3 years ago

@wemanzoz Okay so I worked on the code a bit and managed to put the necessary functions and code snippets into round_end (it wasn't there so I just created one lol), and player_hurt, so I think the technical parts are done (it wasn't that easy since I'm quite new to c++), but now I have to rename quite a lot of functions and declare variables since I get around 39 errors in total, 21 in GameListener, and around 8 in PlayerLogic.h and PlayerLogic.cpp image image image

you didnt define the identifier on eventlistener.h and u did something wrong on eventlistener aswell

I don't know how to define it tho, it just looks like this atm image