]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/extensions.qh
change ALL sound calls AGAIN (damn Spike)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / extensions.qh
index 2240d8f1c1357ea5a5b9f56d0581de0bdce31a00..76b16de967cc06c67f5d75aa7789c686d2182084 100644 (file)
@@ -296,29 +296,6 @@ 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
@@ -1235,29 +1212,30 @@ float(string name, string value) registercvar = #93;
 //builtin definitions:
 void(entity e, float chan, string samp, float vol, float atten, float speed, float flags) sound7 = #8;
 float SOUNDFLAG_RELIABLE = 1;
+float SOUNDFLAG_AUTO = 128;
 //description:
 //plays a sound, with some more flags
 //extensions to sound():
-//- channel may be in the range from -128 to +127; channels -128 to 0 are
-//  "automatic" channels, i.e. they can run multiple voices at once
-//  like CHAN_AUTO does
+//- channel may be in the range from 0 to 127; channel 0 is NOT magic in any
+//  way
 //- a speed parameter has been reserved for later addition of pitch shifting.
 //  it MUST be set to 0 for now, meaning "no pitch change"
 //- the flag SOUNDFLAG_RELIABLE can be specified, which makes the sound send
 //  to MSG_ALL (reliable) instead of MSG_BROADCAST (unreliable, default);
 //  similarily, SOUNDFLAG_RELIABLE_TO_ONE sends to MSG_ONE
-//- channel 0 is controlled by snd_channel0volume; channels +1 and -1 are
-//  controlled by snd_channel1volume, etc. (so positive and negative same numbered
-//  channel use the same control cvar); however, the mod MUST define
-//  snd_channel8volume and upwards in default.cfg if they are to be used,
-//  as the engine does not create them to not litter the cvar list
+//- the flag SOUNDFLAG_AUTO can be specified, which makes the sound not stop
+//  other sounds on the same channel, and not be stopped by other sounds on the
+//  same channel
+//- channel 0 is controlled by snd_channel0volume; channel 1 by
+//  snd_channel1volume, etc.; however, the mod MUST define snd_channel8volume and
+//  upwards in default.cfg if they are to be used, as the engine does not create
+//  them to not litter the cvar list
 //- this extension applies to CSQC as well; CSQC_Event_Sound will get speed and
 //  flags as extra 7th and 8th argument
 //- WIP2 ideas: SOUNDFLAG_RELIABLE_TO_ONE, SOUNDFLAG_NOPHS, SOUNDFLAG_FORCELOOP
 //- NOTE: to check for this, ALSO OR a check with DP_SND_SOUND7 to also support
 //  the finished extension once done
 
-
 //DP_SND_OGGVORBIS
 //idea: Transfusion
 //darkplaces implementation: Elric