Re: [ANY] Input Hooks - DevTools (1.4) [10-May-2020]
Quote:
I dhook AcceptInput on SDKHook_SpawnPost and no crashes. |
Re: [ANY] Input Hooks - DevTools (1.4a) [10-May-2020]
I have found a plugin conflict with [L4D2] Gas Cans by disawar1.
After many tests, I noticed that on c1m4_atrium map, when I enable the listen mode (sm_input_listen), right after pressing the elevator button the server crashes. Here is the crash log. I extracted the part from disawar1 code that triggers the crash and made a short plugin to test it. To reproduce: Go to c1m4_atrium map, use !input_listen and then !testcrash. Just reporting in case someone has the same problem. Code snippet for testing below:
Spoiler
EDIT: Fixed by Silvers in newer versions. |
Re: [ANY] Input Hooks - DevTools (1.5) [03-Mar-2021]
Thanks, fixed. Example crash plugin was very helpful to test.
|
Re: [ANY] Input Hooks - DevTools (1.5) [03-Mar-2021]
Quote:
https://github.com/ValveSoftware/sou...ariant_t.h#L37 |
Re: [ANY] Input Hooks - DevTools (1.5) [03-Mar-2021]
Quote:
|
Re: [ANY] Input Hooks - DevTools (1.5) [03-Mar-2021]
Quote:
|
Re: [ANY] Input Hooks - DevTools (1.5) [03-Mar-2021]
Quote:
|
Re: [ANY] Input Hooks - DevTools (1.5) [03-Mar-2021]
Quote:
But you could try this: I don't know if the offset should be divided by sizeof(int). int fieldtype = DHookGetParamObjectPtrVar(hParams, 4, offset_of_fieldType, ObjectValueType_Int), then check if fieldtype == FIELD_STRING or FIELD_INTEGER or some other type here: https://github.com/ValveSoftware/sou.../datamap.h#L28 |
Re: [ANY] Input Hooks - DevTools (1.5) [03-Mar-2021]
I don't think that's the same offset as NetProps and DataMaps which would be possible to get the param type.
|
Re: [ANY] Input Hooks - DevTools (1.5) [03-Mar-2021]
Quote:
The acceptinput function you are hooking has a variant_t struct. AcceptInput( const char *szInputName, CBaseEntity *pActivator, CBaseEntity *pCaller, variant_t Value, int outputID ); You have the definition of this struct right here: PHP Code:
Anyway I didn't want to spent any more time on this, but I was confused by what you meant and thought it couldn't be that hard so I decided to try it myself and it works. PHP Code:
2091 math_counter. (GetValue). "counter" (). 1 player caller 50 param type 1 2079 info_target. (InValue). "case" (). 1 player caller 50 |
| All times are GMT -4. The time now is 22:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.