Yea, it's integrated in libcod for that reason

PHP Code:
void gsc_entity_setbounds(int id) {
    
float widthheight;

    if ( ! 
stackGetParams("ff", &width, &height)) {
        
printf("scriptengine> ERROR: please specify width and height to gsc_entity_setbounds()\n");
        
stackPushUndefined();
        return;
    }

    *(
float*)(gentities gentities_size*id 280) = height;
    *(
float*)(gentities gentities_size*id 276) = width;
    *(
float*)(gentities gentities_size*id 272) = width;
    *(
float*)(gentities gentities_size*id 264) = -width;
    *(
float*)(gentities gentities_size*id 260) = -width;
    
    
printf("id=%d height=%f width=%f\n"idheightwidth);
    
stackReturnInt(1);

I want this to work to release a new version, which cleans up alot of old mess (closer which depends on std\-functions and quite some bloat code).


Edit: to destroy false hopes, it never worked as good as in CoD 1