Added areaportals
This commit is contained in:
parent
ee88c51afe
commit
740f4fbf2f
2 changed files with 14 additions and 2 deletions
12
pr_cmds.c
12
pr_cmds.c
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue