Skip to content

Commit

Permalink
Add casted property .Team to CCSPlayerController (#259)
Browse files Browse the repository at this point in the history
Co-authored-by: Roflmuffin <[email protected]>
  • Loading branch information
B3none and roflmuffin authored Jan 15, 2024
1 parent bac31b9 commit 204850f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public int? UserId
return NativeAPI.GetUseridFromIndex((int)this.Index);
}
}

public CsTeam Team => (CsTeam)this.TeamNum;

public IntPtr GiveNamedItem(string item)
{
Expand Down Expand Up @@ -261,4 +263,4 @@ public VoiceFlags VoiceFlags
NativeAPI.SetClientVoiceFlags(Handle, (Byte)value);
}
}
}
}

0 comments on commit 204850f

Please sign in to comment.