CSGO basic usage
I know this has probably been asked a million times, but I am struggling to even find out how to create a CSGO plugin that mimics even the most basic of SourceMod behaviour.
If I can only use header files that are public in the hl2sdk, there isn't much I can do is there? How do I implement even the most basic of CBaseEntity features when all I have is the edict_t struct? Any sort of getting started info would be great. Should I go off and learn how hl2sdk works in general before even trying my hand at MM:S? |
Re: CSGO basic usage
Well, you have to look at the server binary. Create signatures, look for offsets and call the functions.
https://wiki.alliedmods.net/Signature_scanning |
Re: CSGO basic usage
Okay can I just run something by you?
I've taken the objdump from my server binary (since im on linux) and I'm trying to implement the CommitSuicide method. I find it in my dump here: Code:
00686550 <_ZN11CBasePlayer13CommitSuicideEv>: |
Re: CSGO basic usage
You need to include enough so it is unique, and mask out any absolute addresses.
There is an IDA script that can help in the SM repo. |
Re: CSGO basic usage
Alrighty, so new question,
I'm currently trying to implement the sigscan.cpp shown on the Signature scanning wiki page and I've reached a block in the road. In the Load() of my MM plugin I am telling the CSigScan::sigscan_dllfunc pointer to point to the server factory as such: Code:
CSigScan::sigscan_dllfunc = ismm->GetServerFactory(0); Quote:
|
Re: CSGO basic usage
What's the exact location of the crash? Attach a debugger.
Make sure you call GetDllMemInfo() before any Init(), like in the example: Code:
void InitSigs(void) |
Re: CSGO basic usage
Alright, I've gotten past the segfault, but I'm still at a loss regarding the mask. How do I find out what will change at runtime? Is there an easy method to find which bytes should get masked?
|
Re: CSGO basic usage
it won't change on runtime, but it could change on update. you need to mask absolute addresses and near relative displacements, basically just mask all symbols
|
All times are GMT -4. The time now is 21:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.