protected override void OnIntellectCommand(Intellect.Command command) { base.OnIntellectCommand(command); if (EntitySystemWorld.Instance.IsServer() || EntitySystemWorld.Instance.IsSingle()) { if (Type.JumpSupport && command.KeyPressed && command.Key == GameControlKeys.Jump) { TryJump(); } } }
protected override void OnIntellectCommand(Intellect.Command command) { base.OnIntellectCommand(command); if (command.KeyPressed) { if (command.Key == GameControlKeys.Reload) { Reset(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; if (GetActiveWeapon() != index) { SetActiveWeapon(index); } else { SetActiveWeapon(-1); } } 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(); } } } }
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) * //{ * // //add special key commands here like jump or turret loading * // if (command.Key == GameControlKeys.UpdatePhysics) * // { * // CheckPhysicsProperties(); * // } * * // if (command.Key == GameControlKeys.SetMiniTurret) * // { * // if (activeturrets < activeMaxTurrets) * // { * // activeturrets++; * // SetMiniTurret(this as Unit); * // } * // } * * // if (command.Key == GameControlKeys.RemoveMiniTurret) * // { * // if (activeturrets <= activeMaxTurrets && turretTimer >= TURRETMAXOUT) * // { * // RemoveMiniTurret(this as Unit); * // turretTimer = 0f; //reset timer * // } * // } * //} * } */ }
public void DoIntellectCommand(Intellect.Command command) { OnIntellectCommand(command); }
protected virtual void OnIntellectCommand(Intellect.Command command) { }