I should point out now that I am developing for a Linux Team Fortress 2 server.
So I have just discovered the joys of offsets. For my latest plugin mock-up I would like to return the names of weapons as they appear in the kill cam as these weapons names are names that people recognise rather than being tf_weapon_bat_wood etc. I had a look in CBaseCombatWeapon and found a few functions that looked interesting however I have no idea how to use them. My problem being is how do I know what parameters to add when I am preparing the SDK call and what I should expect to be returned.
I already have a few SDK calls such as this:
PHP Code:
StartPrepSDKCall(SDKCall_Player);
PrepSDKCall_SetFromConf(gameConf, SDKConf_Virtual, "GiveNamedItem");
PrepSDKCall_AddParameter(SDKType_String, SDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
PrepSDKCall_SetReturnInfo(SDKType_CBaseEntity, SDKPass_Plain);
giveNamedItem = EndPrepSDKCall();
MikeJS coded the above block and it works 100%. What I would like to know is how would I find out these parameters and returns for myself for something like this:
PHP Code:
StartPrepSDKCall(SDKCall_Player);
PrepSDKCall_SetFromConf(gameConf, SDKConf_Virtual, "GetDeathNoticeName");
/* Some Parameters
and returns in here */
getDeathNoticeName = EndPrepSDKCall();
Thanks in advance for your time and advice.