Counter-Strike SDK
Counter-Strike SDK
|
Re: Counter-Strike SDK
* snip *
|
Re: Counter-Strike SDK
Nice job!
EDIT: In player.cpp, lines 231 and 241, you're assigning instead of comparing: Quote:
|
Re: Counter-Strike SDK
*snip*
|
Re: Counter-Strike SDK
Thanks, it will be fixed for the next version.
|
Re: Counter-Strike SDK
*snip*
|
Re: Counter-Strike SDK
Arkshine, Nice job.
Regards. |
Re: Counter-Strike SDK
*snip*
|
Re: Counter-Strike SDK
*snip*
|
Re: Counter-Strike SDK
*snip*
|
Re: Counter-Strike SDK
Woop, god like!
valve doesn't give us source codes? edit: Quote:
|
Re: Counter-Strike SDK
In weapon_awp.cpp, line 153:
Quote:
Quote:
In multiplay_gamerules.cpp, lines 238, 245, 252 and 259, you're using sprintf incorrectly (I'm not sure what you meant, but it was probably a ClientPrint) In the same file, line 268, there's an incomplete statement: Quote:
|
Re: Counter-Strike SDK
I think Arkshine went crazy doing this :P
Good job, very useful. |
Re: Counter-Strike SDK
Well, you may right because there is still so much to post. :mrgreen:
@seta00 : Thanks, it's fixed. About sprintf, it's actually ALERT(). |
Re: Counter-Strike SDK
*snip*
|
Re: Counter-Strike SDK
Arkshine, your anchor tag is not working between pages
|
Re: Counter-Strike SDK
*snip*
|
Re: Counter-Strike SDK
Quote:
|
Re: Counter-Strike SDK
You should create some small page atleast on wiki
|
Re: Counter-Strike SDK
Later. When there will too much data I will migrate all on the wiki. But right now it's only the beginning and I prefer sharing here, seeing feedbacks, adjusting the contents etc..
|
Re: Counter-Strike SDK
are there any m_CollisionGroup like offset in HL1 ? Iam thinkin a NoBlock plugin like this for HL1 -> http://forums.alliedmods.net/showthread.php?p=746250
|
Re: Counter-Strike SDK
Quote:
By the way, how exactly are you doing this? |
Re: Counter-Strike SDK
IDA pro + HLSDK + a lot of times ( because you need to check, recheck, searching, guessing, switching between linux/windows IDA output etc.. IDA is a motherfucker sometimes you have to be careful :/ )
@Dr.G : No idea right now. |
Re: Counter-Strike SDK
This is amazing! :D
|
Re: Counter-Strike SDK
I need this :)
Quote:
|
Re: Counter-Strike SDK
Maybe useful for somebody....
List of game events for TheBots, TheTutor, ... OnEvent() function Code:
enum GameEventType_t |
Re: Counter-Strike SDK
Quote:
What you need would be probably : CBasePlayer::Observer_CheckProperties() CBasePlayer::Observer_CheckTarget() CBasePlayer::Observer_FindNextPlayer() CBasePlayer::Observer_HandleButtons() CBasePlayer::Observer_IsValidTarget() CBasePlayer::Observer_SetMode() What do you search ? Quote:
|
Re: Counter-Strike SDK
Fabulous work, Arkshine.
|
Re: Counter-Strike SDK
Quote:
I wonder if Observer stands for spectator player or just hltv. I need spectator. |
Re: Counter-Strike SDK
Something like :
Code:
I don't know how to name the offsets. You ask now you have to give names. :mrgreen: |
Re: Counter-Strike SDK
Thanks.
FYI and from hlsdk: I found observer.cpp only on ricochet & dmc |
Re: Counter-Strike SDK
Nice catch. :mrgreen:
Will take a look too. |
Re: Counter-Strike SDK
Code:
else if ( m_afButtonPressed & IN_FORWARD ) Observer_FindNextPlayer( 1, 0 ) First param could be something like Next/Previous, and i think that 2nd param could be about allowed players, like team specific param. |
Re: Counter-Strike SDK
It's weird because I see for both linux/window IDA output "& 8" ; but it makes sens it should be IN_ATTACK2. ( EDIT : Ah I think I know why )
About the last param, the type is a string, it seems to be an optional param to search directly a player by its name. Looking at the function I see a check done in a loop with this param and m_hObserverTarget->pev->netname. Anyway it should look now like : Code:
|
Re: Counter-Strike SDK
From cl_dll/hud_spectator.cpp
PHP Code:
It was hard to my to understand the structure of the decompiled code. |
Re: Counter-Strike SDK
For sure, we can reduce the code like that. I know there are some functions which are taken from the Client and modified on the server like StudioEstimateGait().
I'm not enough crazy to try to decompile from the disassembled code !! :mrgreen: I don't have the knowledge to start ( even though I've read severals asm tutorials ). I'm using a decompiler provided with IDA which greatly help by given a nearly C output. Even with that, it takes a lot of time to understand because the output is often weird and you have to read carefully, following the goto, thinking if the structure is right, filtering between virtual functions, entities data, etc., switching between windows/linux decompiled binary because the output differs and you can have an output more pertinent than the other. For example CBasePlayer::Killed() takes me ~2h ( without counting the time to search what does some things ), though I have to finish one part yet. So, you can imagine without decompiled code it would take so much more time. :) By the way, I'm thinking to actually try to reproduce a decent SDK with header and such, so I could use Doxygen to generate a documentation system like we can see for metamod. This way it would be better to see the relations and references. I wanted to do that manually but the forum or the wiki suck as hell. I think it's a more appropriate solution instead of posting like I do. |
Re: Counter-Strike SDK
Quote:
|
Re: Counter-Strike SDK
Another way is to start a Google Code project and put all together in SVN to you can upload updates with revision control.
You have code parsing and you can search inside the SVN too so it's very useful. |
Re: Counter-Strike SDK
In waiting to have more file and a good structure to use Doxygen, I could use for sure a Google Code project so people could help more easily, especially people knowing very well C/C++ who could fix easily typos/errors and such. Thanks for the suggestions.
|
Re: Counter-Strike SDK
Quote:
By the way: Quote:
|
All times are GMT -4. The time now is 00:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.