exorstudios / riftbreaker-tools

Modding and content creation tools for The Riftbreaker. Extract the contents of the archive to the root folder of the game.
22 stars 0 forks source link

Show entity trigger radius #357

Closed SenorRagequit closed 5 months ago

SenorRagequit commented 1 year ago

Enter your feature description.

Triggers are often used to trigger for player contact, but I don't think we can visualize the actual trigger size on the entity yet.

F.e:

TriggerDesc
{
    tag         "trigger_mod_tag"
    owner       "parent"
    collision   "building|building_small|ground_unit"

    Filters
    {
        TeamTriggerFilter 
        {
            team        "player"
        }
        InvisibleTriggerFilter
    }

    Shapes
    {
        PhysicsBoxShape
        {
            x "5.0"
            y "5.0"
            z "5.0"
        }
    }
}

So now in the model editor, would be cool if we could activate that and have some red bubble appear around the base unit, showing the radius with the name on it. Also: We might add the trigger as a child, so some kind of check if the child is "just" the trigger so in the model editor it shows the base unit + this trigger radius child. Otherwise it will just show a bubble without the base entity.

lukaasm commented 11 months ago

image image image

image