Skip to content

Added a few more convenience commands#139

Merged
Jimmacle merged 7 commits intoTorchAPI:masterfrom
LordTylus:master
Nov 26, 2019
Merged

Added a few more convenience commands#139
Jimmacle merged 7 commits intoTorchAPI:masterfrom
LordTylus:master

Conversation

@LordTylus
Copy link
Copy Markdown
Contributor

Since we already had a tpto command I thought it may be useful to also have tphere command.

A thing I want to try to change however is dealing with players that are seated in the cockpit. Which currently I have not done. Its nice to be able to tp grids or to grids, but if you want to tp to a player inside a grid its still broken :-(

There also now is a command to eject a given player from any seat. Since we had instances on our server where a player was stuck he had to disconnect so we could delete his character from the game and then he could reconnect. An eject command shall improve that. However as everything with essentials it wont work with offline players.

Same goes for the new kill command.

Since you cannot eject offline players we also now have a grids ejectall command where you can either call it by passing a gridname or like my ALE plugins by looking at them.

The GridFinder is a copy from my ALE Core

Copy link
Copy Markdown
Contributor

@N1Ran N1Ran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

…nd improved it a little to deal with offline players as well.
@LordTylus
Copy link
Copy Markdown
Contributor Author

Seems like eject and kill are already present and need some improvements. Which I now did. Please reevaluate

Comment on lines -266 to +288
c.RemoveUsers(false);
//Context.Respond($"Ejected {parent.DisplayName} from seat.");
continue;
controller.Use();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not tested if RemoveUsers works fine or not. Use seems to do the job very well for what I have Tested in my previous commit. So I did not see a reason to revert it back to RemoveUsers.

@Jimmacle Jimmacle self-assigned this Nov 25, 2019
Copy link
Copy Markdown
Member

@Jimmacle Jimmacle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall good, I appreciate the commenting. There are just a few style things to change to stay consistent with the rest of the code

Comment thread Essentials/Commands/EntityModule.cs Outdated
Comment thread Essentials/GridFinder.cs Outdated
Comment thread Essentials/GridFinder.cs Outdated
using VRage.Groups;
using VRageMath;

namespace ALE_Core.Utils {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bracket style is inconsistent with the rest of the Torch codebase, I'd also prefer this to be in an Essentials namespace

Comment thread Essentials/GridFinder.cs Outdated
Comment thread Essentials/Commands/PlayerModule.cs Outdated
Teleport(entityToMove, destination);
}

[Command("tphere", "Teleport an other entity directly to you.")]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another

Comment thread Essentials/Commands/GridModule.cs Outdated
@Jimmacle Jimmacle merged commit 4b70415 into TorchAPI:master Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants