if(WEP_VALID(w)) {
HUD_KillNotify_Push(s1, "", 0, DEATH_GENERIC);
if (alsoprint)
- print("^1", s1, "^1 ", Weapon_SuicideMessage(type), "\n");
+ print("^1", sprintf(Weapon_SuicideMessage(type), strcat(s1, "^1")), "\n");
} else if (type == DEATH_KILL) {
HUD_KillNotify_Push(s1, "", 0, DEATH_KILL);
if (alsoprint)
if(WEP_VALID(w)) {
HUD_KillNotify_Push(s2, s1, 1, w);
if (alsoprint)
- print("^1", s1, "^1 ", Weapon_KillMessage(type), "\n");
+ print("^1", sprintf(Weapon_KillMessage(type), strcat(s2, "^1"), strcat(s1, "^1")), "\n"); // default order: victim, killer
}
else if(type == KILL_TEAM_RED || type == KILL_TEAM_BLUE || type == KILL_TEAM_SPREE) {
HUD_KillNotify_Push(s1, s2, 1, type);
else if (req == WR_SUICIDEMESSAGE)
{
if(w_deathtype & HITTYPE_SECONDARY)
- w_deathtypestring = "shot themself automatically";
+ w_deathtypestring = "%s shot themself automatically";
else
- w_deathtypestring = "sniped themself somehow";
+ w_deathtypestring = "%s sniped themself somehow";
}
else if (req == WR_KILLMESSAGE)
{
if(w_deathtype & HITTYPE_SECONDARY)
{
if(w_deathtype & HITTYPE_BOUNCE)
- w_deathtypestring = "failed to hide from #'s bullet hail";
+ w_deathtypestring = "%s failed to hide from %s's bullet hail";
else
- w_deathtypestring = "died in #'s bullet hail";
+ w_deathtypestring = "%s died in %s's bullet hail";
}
else
{
if(w_deathtype & HITTYPE_BOUNCE)
{
// TODO special headshot message here too?
- w_deathtypestring = "failed to hide from #'s rifle";
+ w_deathtypestring = "%s failed to hide from %s's rifle";
}
else
{
if(w_deathtype & HITTYPE_HEADSHOT)
- w_deathtypestring = "got hit in the head by #";
+ w_deathtypestring = "%s got hit in the head by %s";
else
- w_deathtypestring = "was sniped by #";
+ w_deathtypestring = "%s was sniped by %s";
}
}
}
}
else if (req == WR_SUICIDEMESSAGE)
{
- w_deathtypestring = "succeeded at self-destructing themself with the Crylink";
+ w_deathtypestring = "%s succeeded at self-destructing themself with the Crylink";
}
else if (req == WR_KILLMESSAGE)
{
if(w_deathtype & HITTYPE_BOUNCE)
- w_deathtypestring = "could not hide from #'s Crylink"; // unchecked: SPLASH (SECONDARY can't be)
+ w_deathtypestring = "%s could not hide from %s's Crylink"; // unchecked: SPLASH (SECONDARY can't be)
else if(w_deathtype & HITTYPE_SPLASH)
- w_deathtypestring = "was too close to #'s Crylink"; // unchecked: SECONDARY
+ w_deathtypestring = "%s was too close to %s's Crylink"; // unchecked: SECONDARY
else
- w_deathtypestring = "took a close look at #'s Crylink"; // unchecked: SECONDARY
+ w_deathtypestring = "%s took a close look at %s's Crylink"; // unchecked: SECONDARY
}
return TRUE;
}
else if (req == WR_SUICIDEMESSAGE)
{
if(w_deathtype & HITTYPE_SECONDARY)
- w_deathtypestring = "could not remember where they put plasma";
+ w_deathtypestring = "%s could not remember where they put plasma";
else
- w_deathtypestring = "played with plasma";
+ w_deathtypestring = "%s played with plasma";
}
else if (req == WR_KILLMESSAGE)
{
if(w_deathtype & HITTYPE_SECONDARY)
{
if(w_deathtype & HITTYPE_SPLASH) // unchecked: BOUNCE
- w_deathtypestring = "just noticed #'s blue ball";
+ w_deathtypestring = "%s just noticed %s's blue ball";
else // unchecked: BOUNCE
- w_deathtypestring = "got in touch with #'s blue ball";
+ w_deathtypestring = "%s got in touch with %s's blue ball";
}
else
{
if(w_deathtype & HITTYPE_BOUNCE) // combo
- w_deathtypestring = "felt the electrifying air of #'s combo";
+ w_deathtypestring = "%s felt the electrifying air of %s's combo";
else if(w_deathtype & HITTYPE_SPLASH)
- w_deathtypestring = "got too close to #'s blue beam";
+ w_deathtypestring = "%s got too close to %s's blue beam";
else
- w_deathtypestring = "was blasted by #'s blue beam";
+ w_deathtypestring = "%s was blasted by %s's blue beam";
}
}
return TRUE;
else if (req == WR_SUICIDEMESSAGE)
{
if(w_deathtype & HITTYPE_SECONDARY)
- w_deathtypestring = "forgot about some firemine";
+ w_deathtypestring = "%s forgot about some firemine";
else
- w_deathtypestring = "should have used a smaller gun";
+ w_deathtypestring = "%s should have used a smaller gun";
}
else if (req == WR_KILLMESSAGE)
{
if(w_deathtype & HITTYPE_SECONDARY)
{
if(w_deathtype & HITTYPE_HEADSHOT)
- w_deathtypestring = "tried to catch #'s firemine";
+ w_deathtypestring = "%s tried to catch %s's firemine";
else
- w_deathtypestring = "fatefully ignored #'s firemine";
+ w_deathtypestring = "%s fatefully ignored %s's firemine";
}
else
{
if(w_deathtype & HITTYPE_BOUNCE)
{
if(w_deathtype & HITTYPE_SPLASH) // BFG effect
- {
- w_deathtypestring = "could not hide from #'s fireball";
- }
+ w_deathtypestring = "%s could not hide from %s's fireball";
else // laser
- {
- w_deathtypestring = "saw the pretty lights of #'s fireball";
- }
+ w_deathtypestring = "%s saw the pretty lights of %s's fireball";
}
else if(w_deathtype & HITTYPE_SPLASH)
- w_deathtypestring = "got too close to #'s fireball";
+ w_deathtypestring = "%s got too close to %s's fireball";
else
- w_deathtypestring = "tasted #'s fireball";
+ w_deathtypestring = "%s tasted %s's fireball";
}
}
return TRUE;
else if (req == WR_SUICIDEMESSAGE)
{
if(w_deathtype & HITTYPE_SECONDARY)
- w_deathtypestring = "tried out his own grenade";
+ w_deathtypestring = "%s tried out his own grenade";
else
- w_deathtypestring = "detonated";
+ w_deathtypestring = "%s detonated";
}
else if (req == WR_KILLMESSAGE)
{
if(w_deathtype & HITTYPE_SPLASH)
if(w_deathtype & HITTYPE_BOUNCE) // (must be secondary then)
- w_deathtypestring = "didn't see #'s grenade";
+ w_deathtypestring = "%s didn't see %s's grenade";
else // unchecked: SECONDARY
- w_deathtypestring = "almost dodged #'s grenade";
+ w_deathtypestring = "%s almost dodged %s's grenade";
else // unchecked: SECONDARY, BOUNCE
- w_deathtypestring = "ate #'s grenade";
+ w_deathtypestring = "%s ate %s's grenade";
}
return TRUE;
}
precache_sound("weapons/hagexp3.wav");
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "played with tiny rockets";
+ w_deathtypestring = "%s played with tiny rockets";
else if (req == WR_KILLMESSAGE)
{
if(w_deathtype & HITTYPE_BOUNCE) // must be secondary; unchecked: SPLASH
- w_deathtypestring = "hoped #'s missiles wouldn't bounce";
+ w_deathtypestring = "%s hoped %s's missiles wouldn't bounce";
else // unchecked: SPLASH, SECONDARY
- w_deathtypestring = "was pummeled by";
+ w_deathtypestring = "%s was pummeled by %s";
}
return TRUE;
}
precache_sound("weapons/laserimpact.wav");
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "should have used a smaller gun";
+ w_deathtypestring = "%s should have used a smaller gun";
else if (req == WR_KILLMESSAGE)
- w_deathtypestring = "was cut down by";
+ w_deathtypestring = "%s was cut down by %s";
return TRUE;
}
#endif
precache_sound("weapons/hookbomb_impact.wav");
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "did the impossible";
+ w_deathtypestring = "%s did the impossible";
else if (req == WR_KILLMESSAGE)
- w_deathtypestring = "has run into #'s gravity bomb";
+ w_deathtypestring = "%s has run into %s's gravity bomb";
return TRUE;
}
#endif
precache_sound("weapons/laserimpact.wav");
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "lasered themself to hell";
+ w_deathtypestring = "%s lasered themself to hell";
else if (req == WR_KILLMESSAGE)
{
- w_deathtypestring = "was lasered to death by"; // unchecked: SPLASH
+ w_deathtypestring = "%s was lasered to death by %s"; // unchecked: SPLASH
}
return TRUE;
}
precache_sound("weapons/neximpact.wav");
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "did the impossible";
+ w_deathtypestring = "%s did the impossible";
else if (req == WR_KILLMESSAGE)
- w_deathtypestring = "has been vaporized by";
+ w_deathtypestring = "%s has been vaporized by %s";
return TRUE;
}
#endif
precache_sound("weapons/neximpact.wav");
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "did the impossible";
+ w_deathtypestring = "%s did the impossible";
else if (req == WR_KILLMESSAGE)
- w_deathtypestring = "has been vaporized by";
+ w_deathtypestring = "%s has been vaporized by %s";
return TRUE;
}
#endif
// nothing to do
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "did the impossible";
+ w_deathtypestring = "%s did the impossible";
else if (req == WR_KILLMESSAGE)
- w_deathtypestring = "felt # doing the impossible to him";
+ w_deathtypestring = "%s felt %s doing the impossible to him";
return TRUE;
}
#endif
precache_sound("weapons/rocket_impact.wav");
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "exploded";
+ w_deathtypestring = "%s exploded";
else if (req == WR_KILLMESSAGE)
{
if(w_deathtype & HITTYPE_BOUNCE) // (remote detonation)
- w_deathtypestring = "got too close to #'s rocket";
+ w_deathtypestring = "%s got too close to %s's rocket";
else if(w_deathtype & HITTYPE_SPLASH)
- w_deathtypestring = "almost dodged #'s rocket";
+ w_deathtypestring = "%s almost dodged %s's rocket";
else
- w_deathtypestring = "ate #'s rocket";
+ w_deathtypestring = "%s ate %s's rocket";
}
return TRUE;
}
return self.ammo_rockets >= cvar("g_balance_seeker_tag_ammo") + cvar("g_balance_seeker_missile_ammo");
else if (req == WR_CHECKAMMO2)
return self.ammo_rockets >= cvar("g_balance_seeker_flac_ammo");
- else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "played with tiny rockets";
- else if (req == WR_KILLMESSAGE)
- {
- if(w_deathtype & HITTYPE_SECONDARY)
- w_deathtypestring = "ran into #'s flac";
- else
- w_deathtypestring = "was tagged by";
- }
return TRUE;
};
#endif
precache_sound("weapons/tagexp3.wav");
precache_sound("weapons/tag_impact.wav");
}
+ else if (req == WR_SUICIDEMESSAGE)
+ w_deathtypestring = "%s played with tiny rockets";
+ else if (req == WR_KILLMESSAGE)
+ {
+ if(w_deathtype & HITTYPE_SECONDARY)
+ w_deathtypestring = "%s ran into %s's flac";
+ else
+ w_deathtypestring = "%s was tagged by %s";
+ }
return TRUE;
}
#endif
precache_sound("weapons/ric3.wav");
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "did the impossible";
+ w_deathtypestring = "%s did the impossible";
else if (req == WR_KILLMESSAGE)
{
- w_deathtypestring = "was gunned by"; // unchecked: SECONDARY
+ w_deathtypestring = "%s was gunned by %s"; // unchecked: SECONDARY
}
return TRUE;
}
}
else if (req == WR_SUICIDEMESSAGE)
{
- w_deathtypestring = "hurt his own ears with the @!#%'n Tuba";
+ w_deathtypestring = "%s hurt his own ears with the @!#%%'n Tuba";
}
else if (req == WR_KILLMESSAGE)
{
- w_deathtypestring = "died of #'s great playing on the @!#%'n Tuba";
+ w_deathtypestring = "%s died of %s's great playing on the @!#%%'n Tuba";
}
return TRUE;
}
precache_sound("weapons/ric3.wav");
}
else if (req == WR_SUICIDEMESSAGE)
- w_deathtypestring = "did the impossible";
+ w_deathtypestring = "%s did the impossible";
else if (req == WR_KILLMESSAGE)
{
if(w_deathtype & HITTYPE_SECONDARY)
- w_deathtypestring = "was sniped by";
+ w_deathtypestring = "%s was sniped by %s";
else
- w_deathtypestring = "was riddled full of holes by";
+ w_deathtypestring = "%s was riddled full of holes by %s";
}
return TRUE;
}