Raptor007 / aq2-tng

Action Quake 2: The Next Generation. Raptor007's sandbox for testing changes. When verified stable, this code is pushed to the official aq2-tng repo:
https://github.com/aq2-tng/aq2-tng/tree/bots
4 stars 2 forks source link

Let admins add external models to game to block/add jumps... #106

Open m4son opened 2 years ago

m4son commented 2 years ago

Adding custom model into a map with q2pro/r1q2 overrides/ent file.

an example to load extra model to a map from .ent file

{
"origin" "-312 -368 -32"
"model" "models/mapmodels/gx/grass1/tris.md2"
"angle" "90"
"classname" "misc_md2"
}

model_spawn entity from kmquake2 -> https://github.com/mczero80/KMQuake2/search?q=SP_model_spawn misc_md2 from dday -> https://github.com/InFerYes/dday/blob/f89f2b26c26708e7f12865f820a0801fb49034bf/g_misc.c#L1655

This could give admins an option to fix some maps to block access to unwanted locations or add new path... like in CTF

q2jump has an option to add invisible boxes to block paths -> https://bitbucket.org/maxwagner65/q2jump/src/master/src/

To make it solid or invisible we could use spawnflags