Quote:
Originally Posted by Matheus28
Can I give the mappers, the ability to create a custom entity like func_nobuildfw (brush entity)?
|
Supply the mappers with a custom .fgd file containing the properties and whatnot of your entity.
Quote:
Originally Posted by Matheus28
How Can I detect these entities in my plugin?
|
Quote:
Originally Posted by rhelgeby
It's possible to modify entities in a map before it loads (modifying BSP loaded in memory). Stripper: Soruce do this, so maybe it's possible to add stuff too.
|
You got 2 chances on reading (and modifying) bsp data.
1) hook CBaseEntity::KeyValue() and parse the input given to detect your custom classname. You then need to rename the classname to something valid or else your entity will be dropped upon reaching the engine (since its of invalid entity class)
2) the
SDK Hooks extension exposes raw bsp data in its OnLevelInit forward. Have fun manipulating it.
Personally I think #1 is easier to manage but since theres no extension available for public that hooks the function, you're pretty much left with #2.
Quote:
Originally Posted by rhelgeby
But this is not for beginners.
|
__________________