protected override void OnIntellectCommand(Intellect.Command command) { base.OnIntellectCommand(command); if (EntitySystemWorld.Instance.IsServer() || EntitySystemWorld.Instance.IsSingle()) { if (command.KeyPressed) { if (command.Key == GameControlKeys.Jump) { //TPS arcade specific (camera observe) //No jump if (GameMap.Instance.GameType == GameMap.GameTypes.TPSArcade) { if (Intellect != null && PlayerIntellect.Instance == Intellect) { return; } } TryJump(); } } } }
protected override void OnIntellectCommand(Intellect.Command command) { base.OnIntellectCommand(command); if (EntitySystemWorld.Instance.IsServer() || EntitySystemWorld.Instance.IsSingle()) { if (command.KeyPressed) { if (command.Key == GameControlKeys.Fire1) { GunsTryFire(false); } if (command.Key == GameControlKeys.Fire2) { GunsTryFire(true); } } } }
protected override void OnIntellectCommand(Intellect.Command command) { base.OnIntellectCommand(command); if (EntitySystemWorld.Instance.IsServer() || EntitySystemWorld.Instance.IsSingle()) { if (command.KeyPressed) { if (command.Key >= GameControlKeys.Weapon1 && command.Key <= GameControlKeys.Weapon9) { int index = (int)command.Key - (int)GameControlKeys.Weapon1; SetActiveWeapon(index); } if (command.Key == GameControlKeys.PreviousWeapon) { SetActivePreviousWeapon(); } if (command.Key == GameControlKeys.NextWeapon) { SetActiveNextWeapon(); } if (command.Key == GameControlKeys.Fire1) { WeaponTryFire(false); } if (command.Key == GameControlKeys.Fire2) { WeaponTryFire(true); } if (command.Key == GameControlKeys.Reload) { WeaponTryReload(); } } } }
public void DoIntellectCommand(Intellect.Command command) { OnIntellectCommand(command); }
protected virtual void OnIntellectCommand(Intellect.Command command) { }