if(type == CSQC_KILLNOTIFY)
{
- HUD_KillNotify(ReadString(), ReadString(), ReadString(), ReadByte(), ReadByte());
+ HUD_KillNotify(ReadString(), ReadString(), ReadString(), ReadShort(), ReadByte());
}
else if(type == CSQC_CENTERPRINT)
{
case 2:
return "was gunned by";
case 3:
- if(id & HITTYPE_SECONDARY)
+ if(deathtype & HITTYPE_SECONDARY)
return "was sniped by";
return "was riddled full of holes by";
case 4:
- if(id & HITTYPE_BOUNCE)
+ if(deathtype & HITTYPE_BOUNCE)
return "didn't see #'s grenade";
return "almost dodged #'s grenade";
}
void HUD_KillNotify(string s1, string s2, string s3, float type, float msg)
{
+ float w;
if(msg == MSG_SUICIDE) {
// TODO: cl_gentle
// TODO: way of finding out secondary?
print("deathtype: ", ftos(type), "\n");
- float w;
w = DEATH_WEAPONOF(type);
if(WEP_VALID(w)) {
HUD_KillNotify_Push(s1, "", w);
} else if(msg == MSG_KILL) {
print("deathtype: ", ftos(type), "\n");
- float w;
w = DEATH_WEAPONOF(type);
if(WEP_VALID(w)) {
HUD_KillNotify_Push(s1, s2, w);
WriteString(MSG_ALL, s1);
WriteString(MSG_ALL, s2);
WriteString(MSG_ALL, s3);
- WriteByte(MSG_ALL, msg);
+ WriteShort(MSG_ALL, msg);
WriteByte(MSG_ALL, type);
}