Git Product home page Git Product logo

Comments (7)

Garux avatar Garux commented on September 25, 2024 1

Any point entity may be defined as miscmodel f9157a6
Miscmodel is handled in many special ways: requests model path, missing display is different, supports transform keys, supports remaps. Moving all this to regular point entity is not best idea.
Model2 would be nice to display, but challenging. Idk how often this is used practically, most of time i'd expect baked model, as format requirements are way less strict.

from netradiant-custom.

Garux avatar Garux commented on September 25, 2024 1

Yes, you need to define them as of miscmodel type in .ent, @MoritzJT has halfway ported .defs doing this.
I inspected all existing ent defs, and misc_model_ prefix is only a thing in raven entities, so technically i can harcode this prefix to be handled as miscmodel sign.
But there are two problems:
do all of these support model altering?
it's better to have default model, while raven .defs have quite freestyle formatting
In general .ent is better way for this, allow per entity class miscmodel property and default model value.

from netradiant-custom.

Garux avatar Garux commented on September 25, 2024

Hm, correct model2 display is the problem, as origin is calculated during build from origin brush.

from netradiant-custom.

stoofphen avatar stoofphen commented on September 25, 2024

I would agree that model2 may not be as useful given the baking of models, i.e. targeting a misc_model to these func_ entities (as I am often doing).

While most misc_* entities display models, the misc_model_breakable, misc_model_static and misc_model_ghoul do not display them.

from netradiant-custom.

MoritzJT avatar MoritzJT commented on September 25, 2024

How about enhancing the misc_model targetting to bake .bsp model to bmodel for movers - and instead have it support an extra spawnflag or sth to then on compile time move the modelstring from that misc_model to the model2 key? That way the mapper gets a preview too...

Then again - in JKA we have model2angles and model2scale for specific mover entities limited to specific gametypes - it would require taking that into consideration as well.

from netradiant-custom.

Garux avatar Garux commented on September 25, 2024

Some compromise solution, still no correct position preview.

from netradiant-custom.

MoritzJT avatar MoritzJT commented on September 25, 2024

Could use model origin as origin for brushgroup then... Inheriting angles to model2angles and modelscale to model2scale (modelscale_vec is not supported on model2 for all I know) instead of using origin brush. So either use model2 key without preview and origin brush or use misc_model targeted with special key to func_ to be used as origin and to copy model2 stuff from.

from netradiant-custom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.