![]() |
Is this possible to pass #define from makefile?
The problem is - everytime I'm trying to rescue the hostage - right after I press the "use" button - if there is some bot teamnate near me - it steals my hostage. It was too much annoying for me and I've decide to solve it. The code checks only if the hostage is "used" by some another CT bot. Lack of code to check if some human player is "using" such hostage. The only way to solve this is - to hack the private data. The people from AMX X showed me how to do this (thanks to VEN).
The problem is - data stored in private data are placed in some offsets. These offsets are system depanding - win32, linux and amd64 - they use different offsets for data stored in private data. The AMX X code uses some conditions as: #if defined __linux__ (...) #if defined __amd64__ (...) but I didn't find there how do they pass these __linux__ and __amd64__ to compile code correctly for each system. The question is - is there a way to pass these __linux__ and __amd64__ as some defined from makefile to have one the same code for all systems, but during compilation compile it correctly without necessity adding somewhere in the code: #define __linux__ or #define __amd64__ before compilation? |
Re: Is this possible to pass #define from makefile?
just use the -D parameter for gcc.
|
Re: Is this possible to pass #define from makefile?
In my oponion using offsets for pvPrivateData is not good idea, since they can be broken by newest cs update. So i have no idea how to define it form makefile.
But i see two possible ways to solve problem, intercepting DispatchUse (not sure if it's work with CS hostages). And track the user use button. About a second method. It can be put in POD's SoundSimulateUpdate () function in this way (and i think it's good idea): PHP Code:
|
Re: Is this possible to pass #define from makefile?
Quote:
Quote:
|
All times are GMT +2. The time now is 22:18. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.