Quote:
Originally Posted by Potato Uno
They would have to 100% break TF2Items in order to do that, because killstreaks are attributes-based, not item-based.
You can make every weapon a killstreak,
|
They don't need to touch attributes to modify this behavior.
PHP Code:
stock TF2_GetStreak(iClient, iSlot)
{
return GetEntProp(iClient, Prop_Send, "m_nStreaks", _, iSlot);
}
// iSlot = -1 for all, else for that slot
stock TF2_SetStreak(iClient, iAmount, iSlot = -1)
{
if (iSlot == -1)
{
SetEntProp(iClient, Prop_Send, "m_nStreaks", iAmount, _, 0); // Primary
SetEntProp(iClient, Prop_Send, "m_nStreaks", iAmount, _, 1); // Secondary
SetEntProp(iClient, Prop_Send, "m_nStreaks", iAmount, _, 2); // Melee
}
else
{
SetEntProp(iClient, Prop_Send, "m_nStreaks", iAmount, _, iSlot);
}
}
new Handle:hStreak = CreateEvent("player_death", true);
SetEventInt(hStreak, "kill_streak_total", 5);
SetEventInt(hStreak, "kill_streak_wep", 5);
FireEvent(hStreak);
now someone please make plugin to make killstreak death icons stack like fish notices do, instead of make a new thing
__________________