Skip to content

Spawnpoint entity #142

@0bama272

Description

@0bama272

Is your feature request related to a problem? Please describe.
There have been times where I would like to spawn on a different point in a map, either for testing purposes or because getting to that area of the map is hard or tedious, this is especially a problem when testing new areas of maps I am creating even if I can just move player starts, which is some what tedious.

Describe the solution you'd like
Create a spawnpoint entity, the spawnpoint entity will have two states activated and deactivated signaled by a color. It doesn't really mater what model it uses, as long as it's a model that is easily identifiable.

By default when spawned it is in a deactivated state, when pressing the use key on it it activates for that client. In it's activated state, everytime you respawn you will spawn at that spawn point you set for yourself, until deactivated.

Each player can only have one respective spawn point entity, if they try to spawn another the last one will be deleted and replaced by it's new position the player spawned it at.

To create a spawnpoint entity, there will either be a bind in the JBMod controls section. Or a physics gun constraint that you can toggle to using C like the other ones, right clicking with this physics gun constraint selected will spawn it.

Describe alternatives you've considered
A dedicated console command for this feature, a bit tedious but might be easier to add then a entity. setspawnhere would be the command, along with setspawndefault which would set your spawn back to default.

Additional context
I mostly want this as mentioned previously for testing purposes when creating new maps. So that way I don't have to delete player spawns and create new ones. I think it would be a nice quality of life feature for sandbox as well. I am also aware that this is currently fully possible with console commands, but I'd rather it be a base easy to use feature in JBMod.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions