JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.01k stars 612 forks source link

Eent-files for external map entities #612

Closed keyten closed 9 years ago

keyten commented 9 years ago

Load entities from mapentities/mapname.eent in addition to loading them from the .bsp file.

Like in the redsaurus SP Customization Mod: http://jkhub.org/topic/2480-sp-customisation-stuff/?p=75158

ensiform commented 9 years ago

Was this originally taken from rtcwcoop ? They have eents files support too. But its GPLv3.

xycaleth commented 9 years ago

Seems like a neat feature to have. It should be easy enough to add without source code tbh so licensing issues aren't a problem.

On 14 Jan 2015, at 15:50, Ensiform notifications@github.com wrote:

Was this originally taken from rtcwcoop ? They have eents files support too. But its GPLv3.

— Reply to this email directly or view it on GitHub.

ensiform commented 9 years ago

I just was clarifying if that was where red took it from or not.

Yes its easy, I did it years ago and as have some other older mods.

Could probably also extend Icarus to spawn entities maybe as well.

redsaurus commented 9 years ago

Was from scratch https://github.com/redsaurus/OpenJK/commit/8cc21f9761cb6a2b0502ea6ce4db35f6fd541d6c

ensiform commented 9 years ago

How's this looking for MP?

http://slexy.org/view/s2T4ZkYuVT

+ added free(file buffer)

Not tested. (Not in patch: level.mapname, level.rawmapname added)

dionrhys commented 9 years ago

I've merged something similar to this in #674. The engine will now load a .ent file for the map - if one exists - instead of the BSP's entities. Allowing the entire list of entities to be overriden allows addition and removal of BSP entities and their properties, as opposed to only the addition of entities covered in this issue.

Mods are still free to implement their own entity loading systems in gamecode.