Skip to content

ioq3 compatibility libraries for gamelogic #1964

@slipher

Description

@slipher

We might want to add some optional libraries to src/shared/, for building into the gamelogic, to help porting gamelogic from other Q3-based engines. This would be code that is not used by Unvanquished, but would be useful to other games for adapting to differences in trap functions.

Legacy cvars: vmCvar_t

Resurrect the legacy gamelogic cvar library which was deleted in 12f42a0.

Model positioning/blending API

For Smokin' Guns I implemented trap_R_LerpTag with its ioq3 signature of trap_R_LerpTag( orientation_t *tag, clipHandle_t mod, int startFrame, int endFrame,float frac, const char *tagName ) using the entity cache APIs. (The one recently deleted from Daemon with skeleton changes had different arguments.) This is useful for porting MD3 model handling code. Also it would be nice to make the engine APIs more flexible, such that you could do tag queries without having to add an entity to the cache. Since I haven't tried to rewrite everything to use caching, for now it is necessary to add an entity to the cache, do the query, and then remove it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions