Skip to content

Commit

Permalink
fix sdkcall init
Browse files Browse the repository at this point in the history
  • Loading branch information
Alienmario committed Jan 13, 2025
1 parent c052fdf commit c11e253
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions scripting/include/srccoop_api/classdef/common/CRagdollProp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ methodmap CRagdollProp < CBaseAnimating
StartPrepSDKCall(SDKCall_Static);
if (!PrepSDKCall_SetFromConf(hGameConfig, SDKConf_Signature, szCreateServerRagdoll))
LogMessage("Could not obtain gamedata signature %s", szCreateServerRagdoll);
PrepSDKCall_SetReturnInfo(SDKType_CBaseEntity, SDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_CBaseEntity, SDKPass_Pointer); // CBaseAnimating *pAnimating
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain); // int forceBone
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain); // const CTakeDamageInfo &info
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain); // int collisionGroup
PrepSDKCall_AddParameter(SDKType_Bool, SDKPass_Plain); // bool bUseLRURetirement
if (!(g_pCreateServerRagdoll = EndPrepSDKCall()))
SetFailState("Could not prep SDK call %s", szCreateServerRagdoll);
else
{
PrepSDKCall_SetReturnInfo(SDKType_CBaseEntity, SDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_CBaseEntity, SDKPass_Pointer); // CBaseAnimating *pAnimating
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain); // int forceBone
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain); // const CTakeDamageInfo &info
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain); // int collisionGroup
PrepSDKCall_AddParameter(SDKType_Bool, SDKPass_Plain); // bool bUseLRURetirement
if (!(g_pCreateServerRagdoll = EndPrepSDKCall()))
SetFailState("Could not prep SDK call %s", szCreateServerRagdoll);
}
}
public CRagdollProp(const int iEntIndex = -1)
{
Expand Down

0 comments on commit c11e253

Please sign in to comment.