Example #1
0
 public LocalPlayer(Player player) : base(player)
 {
     CopyFieldsFrom(player);
     AddField<Vector3>("CSLocalPlayer.m_vecViewOffset", Offsets.NetVars.LocalPlayer.VecViewOffset);
     AddField<Vector3>("CSLocalPlayer.m_vecPunch", Offsets.NetVars.LocalPlayer.VecPunch);
     AddField<int>("CSLocalPlayer.m_iShotsFired", Offsets.NetVars.LocalPlayer.ShotsFired);
     AddField<int>("CSLocalPlayer.m_iCrosshairIdx", Offsets.NetVars.LocalPlayer.CrosshairIdx);
 }
Example #2
0
 public float DistanceToOtherEntityInMetres(Player player)
 {
     return Geometry.GetDistanceToPoint(VecOrigin, player.VecOrigin)*0.01905f;
 }
Example #3
0
 public Player(Player copyFrom) : base(copyFrom)
 {
     CopyFieldsFrom(copyFrom);
     _iWeaponIndex = 0;
     Bones = copyFrom.Bones;
 }