Skip to content

Commit

Permalink
removed gethandle
Browse files Browse the repository at this point in the history
  • Loading branch information
ampreeT committed Jun 23, 2024
1 parent 96dfdd1 commit 09b6174
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripting/include/srccoop/classdef.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2392,21 +2392,17 @@ methodmap CTraceRay < Handle
return view_as<CTraceRay>(TR_TraceRayFilterEx(vecPosition, vecRayType, iTraceMask, eRayType, fnFilter, pData));
}

public Handle GetHandle()
{
return view_as<Handle>(this);
}
public bool StartedSolid()
{
return TR_StartSolid(this.GetHandle());
return TR_StartSolid(this);
}
public float GetFraction()
{
return TR_GetFraction(this.GetHandle());
return TR_GetFraction(this);
}
public CBaseEntity GetEntity()
{
return CBaseEntity(TR_GetEntityIndex(this.GetHandle()));
return CBaseEntity(TR_GetEntityIndex(this));
}
}

Expand Down

0 comments on commit 09b6174

Please sign in to comment.