AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   mods:dod,tfs,ts,esf - funcs definitions (https://forums.alliedmods.net/showthread.php?t=222571)

Turanga_Leela 08-04-2013 10:54

mods:dod,tfs,ts,esf - funcs definitions
 
i am search definitions: (? - Index Or: edict_t * / entvars_t *)

_DOD_RoundStore // void (void) - Return 'void' ?
_DOD_GetStateEnt // int ( ? )

_TFC_EngineerUse // int ( ? )
_TFC_EmpExplode // void ( ? , float, float)
_TFC_TakeEmpBlast // void ( ? )
_TFC_TakeConcussionBlast // void ( ? , float)
_TFC_Concuss // void ( ? )

_ESF_TakeDamage2 // int (? , ?, float, float, size_t)

_NS_AwardKill // void ( ? )

_TS_GoSlow // void (float, ? )
_TS_ShouldCollide // BOOL ( ? )

...
pls help :cry:

Arkshine 08-04-2013 11:42

Re: mods:dod,tfs,ts,esf - funcs definitions
 
Open ham_const.inc and check yourself.

Turanga_Leela 08-04-2013 11:48

Re: mods:dod,tfs,ts,esf - funcs definitions
 
All of this from ham_const.inc
For example

/**
* Description: Unsure
* Forward params: function(this, idPlayer)
* Return type: None.
* Execute Params: ExecuteHam(Ham_DOD_AreaSendStatus, this, idPlayer);
*/
Ham_DOD_AreaSendStatus,


idPlayer - edict_t * ? entvars_t * ? CBasePlayer * ? Or '&'

Arkshine 08-04-2013 11:49

Re: mods:dod,tfs,ts,esf - funcs definitions
 
Explain first what you're trying to achieve.

Turanga_Leela 08-04-2013 11:53

Re: mods:dod,tfs,ts,esf - funcs definitions
 
Need get definitions from dll(so) src.

// example
class ... {
void DOD_AreaSendStatus(edict_t *); // virtual - of course
// ...
};

Arkshine 08-04-2013 11:57

Re: mods:dod,tfs,ts,esf - funcs definitions
 
You don't answer the question. Please don't start a XY problem. Explain what you want REALLY to do.

Turanga_Leela 08-04-2013 12:01

Re: mods:dod,tfs,ts,esf - funcs definitions
 
i am try :D
need - function prototype (all)

ExecuteHam(Ham_DOD_AreaSendStatus, this, idPlayer);
For example this may have prototype - "void (*)(edict_t *)" // in class definition

Arkshine 08-04-2013 14:11

Re: mods:dod,tfs,ts,esf - funcs definitions
 
Yes I understand you want prototype, I'm asking why you need that. I want to understand what you're trying to do by getting prototype.

Turanga_Leela 08-04-2013 15:28

Re: mods:dod,tfs,ts,esf - funcs definitions
 
for virtual hook (& Call), like - 'ExecuteHamB'

Arkshine 08-04-2013 15:59

Re: mods:dod,tfs,ts,esf - funcs definitions
 
That's something you can know using for example IDA with linux game binary, as symbols will be available and it will give prototype too.


All times are GMT -4. The time now is 15:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.