]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - progs.h
optimized AngleVectors calls (pass NULL for vectors that should not be generated)
[xonotic/darkplaces.git] / progs.h
diff --git a/progs.h b/progs.h
index 7bcc6d19d309ccf425300ef31bdc1bf844195b3b..4d4ce0ad18fa008edb27a86e28d1051d6a604b2b 100644 (file)
--- a/progs.h
+++ b/progs.h
@@ -31,8 +31,8 @@ typedef union eval_s
        int                             edict;
 } eval_t;      
 
-// LordHavoc: increased number of leafs per entity limit from 16 to 64
-#define        MAX_ENT_LEAFS   64
+// LordHavoc: increased number of leafs per entity limit from 16 to 256
+#define        MAX_ENT_LEAFS   256
 typedef struct edict_s
 {
        qboolean        free;
@@ -51,8 +51,6 @@ typedef struct edict_s
        vec3_t          stepoldorigin;
        vec3_t          stepoldangles;
        float           steplerptime;
-       // LordHavoc: delta compression
-       float           nextfullupdate; // every second a full update is forced
        entvars_t       v;                                      // C exported fields from progs
 // other fields from progs come immediately after
 } edict_t;
@@ -72,6 +70,8 @@ extern int eval_glow_color;
 extern int eval_items2;
 extern int eval_scale;
 extern int eval_alpha;
+extern int eval_renderamt; // HalfLife support
+extern int eval_rendermode; // HalfLife support
 extern int eval_fullbright;
 extern int eval_ammo_shells1;
 extern int eval_ammo_nails1;
@@ -89,6 +89,7 @@ extern int eval_colormod;
 extern int eval_ping;
 extern int eval_movement;
 extern int eval_pmodel;
+extern int eval_punchvector;
 
 #define GETEDICTFIELDVALUE(ed, fieldoffset) (fieldoffset ? (eval_t*)((char*)&ed->v + fieldoffset) : NULL)
 
@@ -110,7 +111,7 @@ extern      int                             pr_edictareasize; // LordHavoc: for bounds checking
 
 void PR_Init (void);
 
-void PR_ExecuteProgram (func_t fnum);
+void PR_ExecuteProgram (func_t fnum, char *errormessage);
 void PR_LoadProgs (void);
 
 void PR_Profile_f (void);