00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #define AGRIP
00025
00026
00041
00042
00043 .entity agrip_nav;
00044 .entity agrip_d5k;
00045 .entity agrip_esr;
00046 .entity agrip_aux;
00047
00048
00049 .float volume;
00050
00051
00052 void KickABotDM(float clientcalled);
00053 float KickABotTeam(float bteam, float clientcalled);
00054 void create_bot(float bottom, float top, string bteam, float clientcalled);
00055
00056
00057
00058 entity (string name) testbot = #0x5a0A;
00059
00060 void soundtoclient(entity client, entity e, float chan, string samp, float vol, float atten)
00061
00062
00063 void safe_soundtoclient(entity client, entity e, float chan, string samp, float vol, float atten)
00064 {
00065
00066
00067
00068
00069
00070
00071
00072 if( vol < 0 )
00073 {
00074 dprint("PLEASE REPORT THIS BUG, INCLUDING ALL ERROR MESSAGES!\n");
00075 local float i;
00076 while( i < 1000000)
00077 {
00078 i = i + 1;
00079 }
00080 }
00081 else if( vol > 1 )
00082 {
00083 dprint("PLEASE REPORT THIS BUG, INCLUDING ALL ERROR MESSAGES!\n");
00084 local float i;
00085 while( i < 1000000)
00086 {
00087 i = i + 1;
00088 }
00089 }
00090 else
00091 {
00092 soundtoclient(client, e, chan, samp, vol, atten);
00093 }
00094 }
00095
00096