public static void LegitInitialize(EntityBase *EntityBase, TeamID EntityTeam, TeamID PlayerBaseTeam) { ActiveWeapon = ConfigManager.CAimWeapon[Starting.GetWeaponID(BaseWeapon.ActiveWeaponIndex)]; if (NativeMethods.GetAsyncKeyState(KeysCode.MS_Click1)) { if (ActiveWeapon.WeaponActive && BaseWeapon.ActiveWeaponClip > 0) { if (!IsClosed) { entity = GetTarget(EntityBase, ActiveWeapon, EntityTeam, PlayerBaseTeam); IsClosed = true; } if (entity != null && entity->Health > 0) { if (ActiveWeapon.SilentActive && BasePlayer.Bullet(false)) { SetViewAngelSilent(AngelToTarget(entity, ActiveWeapon.WeaponBone, ActiveWeapon.RcsValue, ActiveWeapon.RcsActive)); } else { VEngineClient.ViewAngels = Vector.SmoothAngle(VEngineClient.ViewAngels, AngelToTarget(entity, ActiveWeapon.WeaponBone, ActiveWeapon.RcsValue, ActiveWeapon.RcsActive), ActiveWeapon.Smooth); } } else { IsClosed = false; } if (ActiveWeapon.RcsStandaloneActive && BasePlayer.Bullet(true)) { RcsStandalone(ActiveWeapon.RcsStandaloneX, ActiveWeapon.RcsStandaloneY); } } if (ConfigManager.CAimMisc.MouseAttackActive) { VClient.ForceAttack = VClient.SUserCMD.ButtonID.IN_ATTACK; } } else { OldAngle.X = OldAngle.Y = 0.0f; IsClosed = false; VClient.ForceAttack = VClient.SUserCMD.ButtonID.IN_NOATTACK; } }