Raised This Month: $51 Target: $400
 12% 

[TF2]Killstreak for everyone


Post New Thread Reply   
 
Thread Tools Display Modes
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 02-07-2015 , 01:25   Re: [TF2]Killstreak for everyone
Reply With Quote #11

Quote:
Originally Posted by Potato Uno View Post
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(iClientiSlot)
{
    return 
GetEntProp(iClientProp_Send"m_nStreaks"_iSlot);
}

// iSlot = -1 for all, else for that slot
stock TF2_SetStreak(iClientiAmountiSlot = -1)
{
    if (
iSlot == -1)
    {
        
SetEntProp(iClientProp_Send"m_nStreaks"iAmount_0); // Primary
        
SetEntProp(iClientProp_Send"m_nStreaks"iAmount_1); // Secondary
        
SetEntProp(iClientProp_Send"m_nStreaks"iAmount_2); // Melee
    
}
    else
    {
        
SetEntProp(iClientProp_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
__________________

Last edited by Chdata; 02-07-2015 at 01:27.
Chdata is offline
Dr_Newbie
Junior Member
Join Date: Jul 2014
Old 02-07-2015 , 08:58   Re: [TF2]Killstreak for everyone
Reply With Quote #12

02/07/15 - Update for showing Highest Killstreak in win panel.
Dr_Newbie is offline
Jaegermark42
Member
Join Date: May 2015
Old 06-01-2015 , 05:01   Re: [TF2]Killstreak for everyone
Reply With Quote #13

Can i know how can i make this for premium users only? Cuz i think this killstreak thing is really good.
Jaegermark42 is offline
Marverlous
Senior Member
Join Date: May 2013
Old 06-06-2015 , 00:08   Re: [TF2]Killstreak for everyone
Reply With Quote #14

This seem to break Killstreak effects (eye particles) for players that already have Professional Killstreak weapons. Any chance you can fix it?
__________________
Marverlous is offline
lugui
Senior Member
Join Date: Feb 2016
Location: GetClientAbsOrigin();
Old 03-20-2016 , 19:08   Re: [TF2]Killstreak for everyone
Reply With Quote #15

It is impossible to toggle off
lugui is offline
YoNer
Member
Join Date: Jul 2014
Old 07-19-2016 , 19:33   Re: [TF2]Killstreak for everyone
Reply With Quote #16

I have made quick mod for this so that killstreak does not get reset when faking dead with the deadringer.

I just updated the line
PHP Code:
SetEntProp(usersProp_Send"m_nStreaks"0); 
as

PHP Code:
if (!(GetEventInt(event"death_flags") & 32))
{
    
SetEntProp(usersProp_Send"m_nStreaks"0);

Attached Files
File Type: smx killstreak_drn.smx (5.3 KB, 288 views)
File Type: sp Get Plugin or Get Source (killstreak_drn.sp - 455 views - 3.5 KB)

Last edited by YoNer; 07-19-2016 at 22:50. Reason: Added another check as killstreak was getting reset on suicide fake deaths
YoNer is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode