Added areaportals

This commit is contained in:
cholleme 2003-02-03 13:57:21 +00:00
parent ee88c51afe
commit 740f4fbf2f
2 changed files with 14 additions and 2 deletions

View file

@ -1865,6 +1865,15 @@ void PF_Fixme (void)
PR_RunError ("unimplemented bulitin"); PR_RunError ("unimplemented bulitin");
} }
void PF_SetAreaPortalState(void)
{
int area1 = G_FLOAT(OFS_PARM0);
int area2 = G_FLOAT(OFS_PARM1);
int open = G_FLOAT(OFS_PARM2);
CM_SetAreaPortalState(area1,area2,open);
}
builtin_t pr_builtin[] = builtin_t pr_builtin[] =
@ -1965,7 +1974,8 @@ PF_precache_model,
PF_precache_sound, // precache_sound2 is different only for qcc PF_precache_sound, // precache_sound2 is different only for qcc
PF_precache_file, PF_precache_file,
PF_setspawnparms PF_setspawnparms,
PF_SetAreaPortalState,
}; };
builtin_t *pr_builtins = pr_builtin; builtin_t *pr_builtins = pr_builtin;

View file

@ -143,6 +143,8 @@ typedef struct
float pflags; float pflags;
float light_lev; float light_lev;
float style; float style;
float areanum;
float areanum2;
} entvars_t; } entvars_t;
#define PROGHEADER_CRC 32401 #define PROGHEADER_CRC 21246