From 453754eff948bb3d44afb2efeee128cf878b3c6d Mon Sep 17 00:00:00 2001 From: div0 Date: Thu, 21 Feb 2008 10:09:45 +0000 Subject: [PATCH] merge dpextensions.qc git-svn-id: svn://svn.icculus.org/nexuiz/trunk@3395 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/extensions.qh | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/data/qcsrc/server/extensions.qh b/data/qcsrc/server/extensions.qh index c73b5230d..23c3b8ba4 100644 --- a/data/qcsrc/server/extensions.qh +++ b/data/qcsrc/server/extensions.qh @@ -267,6 +267,29 @@ float EF_LOWPRECISION = 4194304; //description: //this is a very special capability, attachs the entity to the view of the client specified, origin and angles become relative to the view of that client, all effects can be used (multiple skins on a weapon model etc)... the entity is not visible to any other client. +//DP_GECKO_SUPPORT +//idea: Res2k, BlackHC +//darkplaces implementation: Res2k, BlackHC +//constant definitions: +float GECKO_BUTTON_DOWN = 0; +float GECKO_BUTTON_UP = 1; +// either use down and up or just press but not all of them! +float GECKO_BUTTON_PRESS = 2; +// use this for mouse events if needed? +float GECKO_BUTTON_DOUBLECLICK = 3; +//builtin definitions: +float(string name) gecko_create( string name ) = #487; +void(string name) gecko_destroy( string name ) = #488; +void(string name) gecko_navigate( string name, string URI ) = #489; +float(string name) gecko_keyevent( string name, float key, float eventtype ) = #490; +void gecko_mousemove( string name, float x, float y ) = #491; +void gecko_resize( string name, float w, float h ) = #492; +vector gecko_get_texture_extent( string name ) = #493; +//engine-called QC prototypes: +//string(string name, string query) Qecko_Query; +//description: +//provides an interface to the offscreengecko library and allows for internet browsing in games + //DP_GFX_EXTERNALTEXTURES //idea: LordHavoc //darkplaces implementation: LordHavoc @@ -535,6 +558,16 @@ string(string s) cvar_string = #448; //description: //returns the value of a cvar, as a tempstring. +//DP_QC_EDICT_NUM +//idea: 515 +//DarkPlaces implementation: LordHavoc +//builtin definitions: +entity(float entnum) edict_num = #459; +float(entity ent) wasfreed = #353; // same as in EXT_CSQC extension +//description: +//edict_num returns the entity corresponding to a given number, this works even for freed entities, but you should call wasfreed(ent) to see if is currently active. +//wasfreed returns whether an entity slot is currently free (entities that have never spawned are free, entities that have had remove called on them are also free). + //DP_QC_ETOS //idea: id Software //darkplaces implementation: id Software @@ -620,6 +653,23 @@ vector(entity e, float s, vector p) getsurfaceclippedpoint = #439; //description: //functions to query surface information. +//DP_QC_GETSURFACEPOINTATTRIBUTE +//idea: BlackHC +//darkplaces implementation: BlackHC +// constants +float SPA_POSITION = 0; +float SPA_S_AXIS = 1; +float SPA_T_AXIS = 2; +float SPA_R_AXIS = 3; // same as SPA_NORMAL +float SPA_TEXCOORDS0 = 4; +float SPA_LIGHTMAP0_TEXCOORDS = 5; +float SPA_LIGHTMAP0_COLOR = 6; +//builtin definitions: +vector(entity e, float s, float n, float a) getsurfacepointattribute = #486; + +//description: +//function to query extended information about a point on a certain surface + //DP_QC_GETTAGINFO //idea: VorteX, LordHavoc (somebody else?) //DarkPlaces implementation: VorteX -- 2.39.2