mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-12 23:44:34 +00:00
FTE/CLIENT: Remove deprecated CSQC events
This commit is contained in:
parent
a8f1730d58
commit
5a4ea035d3
3 changed files with 12 additions and 99 deletions
|
@ -1016,38 +1016,5 @@ noref void() CSQC_Parse_Event =
|
|||
case EVENT_BETTYPROMPT:
|
||||
bettyprompt_time = time + 4;
|
||||
break;
|
||||
case EVENT_WEAPONUPDATE:
|
||||
float wepnum = readbyte();
|
||||
string wepname = readstring();
|
||||
string wvmodel = readstring();
|
||||
float mag = readbyte();
|
||||
float reserve = readbyte();
|
||||
vector cads = stov(readstring());
|
||||
float cmin = readbyte();
|
||||
float cmax = readbyte();
|
||||
vector flash = stov(readstring());
|
||||
float flashsize = readbyte();
|
||||
string v2 = readstring();
|
||||
float isd = readbyte();
|
||||
/*W_CUSTOMNAME[wepnum] = wepname;
|
||||
W_CVMODEL[wepnum] = wvmodel;
|
||||
W_CMAG[wepnum] = mag;
|
||||
W_CRESERVE[wepnum] = reserve;
|
||||
W_CCROSSMIN[wepnum] = cmin;
|
||||
W_CCROSSMAX[wepnum] = cmax;
|
||||
W_CADS[wepnum] = cads;
|
||||
W_CFLASHSIZE[wepnum] = flashsize;
|
||||
W_CVMODEL2[wepnum] = v2;
|
||||
W_CDUAL[wepnum] = isd;*/
|
||||
break;
|
||||
case EVENT_HUDUPDATE:
|
||||
/*string temps;
|
||||
float tempf;
|
||||
G_HUD = readstring();
|
||||
G_HUDHOR = readbyte();
|
||||
|
||||
if (G_HUD != "")
|
||||
huddir = strcat("gfx/hud/", G_HUD, "/");*/
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -416,58 +416,6 @@ void(entity person) FTE_UpdateDynamicFOV =
|
|||
#endif // FTE
|
||||
|
||||
#ifdef FTE
|
||||
void(string h, float h2, entity who) pushHUD = {
|
||||
if (player_count == 0) {
|
||||
WriteByte(MSG_MULTICAST, SVC_CGAMEPACKET);
|
||||
WriteByte(MSG_MULTICAST, EVENT_HUDUPDATE);
|
||||
WriteString(MSG_MULTICAST, h);
|
||||
WriteByte(MSG_MULTICAST, h2);
|
||||
msg_entity = who;
|
||||
multicast('0 0 0', MULTICAST_ONE);
|
||||
} else {
|
||||
WriteByte(MSG_MULTICAST, SVC_CGAMEPACKET);
|
||||
WriteByte(MSG_MULTICAST, EVENT_WEAPONUPDATE);
|
||||
WriteString(MSG_MULTICAST, h);
|
||||
WriteByte(MSG_MULTICAST, h2);
|
||||
multicast('0 0 0', MULTICAST_ALL);
|
||||
}
|
||||
}
|
||||
|
||||
void (float wepnum, string wepname, string wvmodel, float mag, float reserve, string ads, float min, float max, string flash, float flashsize, string v2, float isd, entity who) sendCustomWeapon = {
|
||||
if (player_count == 0) {
|
||||
WriteByte(MSG_MULTICAST, SVC_CGAMEPACKET);
|
||||
WriteByte(MSG_MULTICAST, EVENT_WEAPONUPDATE);
|
||||
WriteByte(MSG_MULTICAST, wepnum);
|
||||
WriteString(MSG_MULTICAST, wepname);
|
||||
WriteString(MSG_MULTICAST, wvmodel);
|
||||
WriteByte(MSG_MULTICAST, mag);
|
||||
WriteByte(MSG_MULTICAST, reserve);
|
||||
WriteString(MSG_MULTICAST, ads);
|
||||
WriteByte(MSG_MULTICAST, min);
|
||||
WriteByte(MSG_MULTICAST, max);
|
||||
WriteString(MSG_MULTICAST, flash);
|
||||
WriteByte(MSG_MULTICAST, flashsize);
|
||||
WriteString(MSG_MULTICAST, v2);
|
||||
WriteByte(MSG_MULTICAST, isd);
|
||||
msg_entity = who;
|
||||
multicast('0 0 0', MULTICAST_ONE);
|
||||
} else {
|
||||
WriteByte(MSG_ALL, SVC_CGAMEPACKET);
|
||||
WriteByte(MSG_ALL, EVENT_WEAPONUPDATE);
|
||||
WriteByte(MSG_ALL, wepnum);
|
||||
WriteString(MSG_ALL, wepname);
|
||||
WriteString(MSG_ALL, wvmodel);
|
||||
WriteByte(MSG_ALL, mag);
|
||||
WriteByte(MSG_ALL, reserve);
|
||||
WriteString(MSG_ALL, ads);
|
||||
WriteByte(MSG_ALL, min);
|
||||
WriteByte(MSG_ALL, max);
|
||||
WriteString(MSG_ALL, flash);
|
||||
WriteByte(MSG_ALL, flashsize);
|
||||
WriteString(MSG_ALL, v2);
|
||||
WriteByte(MSG_ALL, isd);
|
||||
}
|
||||
}
|
||||
|
||||
void(string msg, entity who) ScrollText = {
|
||||
if (player_count == 0) {
|
||||
|
|
|
@ -59,20 +59,18 @@
|
|||
#define EVENT_WORLDDATA 20
|
||||
#define EVENT_ACHIEVEMENT 21
|
||||
#define EVENT_PLAYERUPDATE 22
|
||||
#define EVENT_WEAPONUPDATE 23
|
||||
#define EVENT_HUDUPDATE 24
|
||||
#define EVENT_ACHIEVEMENTPROGRESS 25
|
||||
#define EVENT_REVIVEON 26
|
||||
#define EVENT_REVIVEOFF 27
|
||||
#define EVENT_REVIVECHANGE 28
|
||||
#define EVENT_WEAPONRECOIL 29
|
||||
#define EVENT_SONGPLAY 30
|
||||
#define EVENT_GRENADEPULSE 31
|
||||
#define EVENT_BETTYPROMPT 32
|
||||
#define EVENT_CHATMESSAGE 33
|
||||
#define EVENT_DOUBLETAPUPDATE 34
|
||||
#define EVENT_ENDGAME 35
|
||||
#define EVENT_MAPTYPE 36
|
||||
#define EVENT_ACHIEVEMENTPROGRESS 23
|
||||
#define EVENT_REVIVEON 24
|
||||
#define EVENT_REVIVEOFF 25
|
||||
#define EVENT_REVIVECHANGE 26
|
||||
#define EVENT_WEAPONRECOIL 27
|
||||
#define EVENT_SONGPLAY 28
|
||||
#define EVENT_GRENADEPULSE 29
|
||||
#define EVENT_BETTYPROMPT 30
|
||||
#define EVENT_CHATMESSAGE 31
|
||||
#define EVENT_DOUBLETAPUPDATE 32
|
||||
#define EVENT_ENDGAME 33
|
||||
#define EVENT_MAPTYPE 34
|
||||
|
||||
// Define our FTE platform
|
||||
#ifndef STANDARD
|
||||
|
|
Loading…
Reference in a new issue