.qc (dot qc) - the group for quake c coders of all denominations. If you make quake one mods and write code in quake c, join our group! I'll try to answer any quake c questions - please post your inquiry in the forums...
Posts | ||
---|---|---|
darkplaces builtin - ent_load | Locked | |
Thread Options | ||
|
Jul 12 2015 Anchor | |
Per my last post, I have created a new builtin function for darkplaces: "ent_load" >add a vector I was right about this. A quick test shows the map chunk loads in the right location, but the entities center around '0, 0, 0' Edited by: numbersix |
||
Dec 5 2015 Anchor | ||
Hmm, sounds impressive. Lord Havoc ought to see this. If I undertand it right, from a qc perspective you are basicly spawning what they use to call "quaked" entities , aka, map entities such as void () func_wall = If so, then sure, you will need to specify origin arguments, or better yet why not copy them from a global field such as the entity "other" for example or create a new global entity, IE: entity dyn_mapent; just for this new built in. Then any fields that entity has get passed to your new spawned ent. |
||
|
Dec 6 2015 Anchor | |
I may have already told him. Occasionally I ask him some questions. I get the feeling he might be pretty busy. As far as actual purpose - it has to spawn _any_ entity that can be found on a map. Doors and other map model entities are the current challenge. They dont load external models, getting their model data from map brushes stored in the entity definition itself. Which the world load stores in a special array. And I already have an origin solution - a special global entity called the "maphack" master specifies a position that is added to the inital load, which by design all center on '0 0 0'. Rotating doors, buttons, plats, and other map brush model ents is also a big pain. On top of having to handle door internal triggers and other triggers and the need for a dynamic targeting system - so a button or trigger doesnt fire off every single copy of a door. I'm currently looking at modifing ent_load to load map brush model entities when {mapname}.bsp is passed to it. Darkplaces also adds an entity replacement system with {mapname}.ent. But that can not handle brush data. I want to use the .ent files too - in the tradition of roguelikes, as you proceed in quake hack, different ents will load in a chunk. More powerful weapons and monsters. This thing looks great in my imagination. If only I can make it work that way. A minecraft world...for quake. -- \|/ |
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.