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

[TF2]Killstreaks


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 12-08-2014 , 22:12   [TF2]Killstreaks
Reply With Quote #1

It appears this EOTL update patched something, our various killstreak related plugins are throwing no errors and appear to be working, and do NOTHING. Anyone know anything?
__________________
Dr_Knuckles is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 12-08-2014 , 22:16   Re: [TF2]Killstreaks
Reply With Quote #2

Quote:
Originally Posted by Dr_Knuckles View Post
It appears this EOTL update patched something, our various killstreak related plugins are throwing no errors and appear to be working, and do NOTHING. Anyone know anything?

They added the duck streak so it likely pushed it to the side of sorts. I've not looked at the source of the one you posted yet to tell you for sure.

Edit: Looks to be working fine for me..didy ou update latest sm snapshot? there was one released and I managed to sneak it in before updating.

Last edited by Horsedick; 12-08-2014 at 22:29.
Horsedick is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 12-08-2014 , 22:59   Re: [TF2]Killstreaks
Reply With Quote #3

I updated to the latest snapshots this afternoon, if theres been a newer one then I need to try that, thanks.
__________________
Dr_Knuckles is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 12-08-2014 , 23:05   Re: [TF2]Killstreaks
Reply With Quote #4

Looks like Valve removed the m_iKillStreak netprop and added m_nStreaks - an array of three integers, with the first one (element 0) being the killstreak count.

Code that was like this before:
PHP Code:
new oldamount GetEntProp(clientProp_Send"m_iKillStreak");
SetEntProp(clientProp_Send"m_iKillStreak"amount); 
...should now be this:
PHP Code:
new oldamount GetEntProp(clientProp_Send"m_nStreaks"_0);
SetEntProp(clientProp_Send"m_nStreaks"amount_0); 
EDIT: Whoops, 0 is the default for element...can't believe I didn't realize that. So you can just replace "m_iKillStreak" with "m_nStreaks", and killstreak plugins should still work. Like this.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

Last edited by MasterOfTheXP; 12-08-2014 at 23:43.
MasterOfTheXP is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 12-08-2014 , 23:06   Re: [TF2]Killstreaks
Reply With Quote #5

Yeah thanks man I tried using the new snapshot and that didnt fix anything so I figured it was a patch. Thanks MaterOfTheXP!!
__________________
Dr_Knuckles is offline
Kredit
Junior Member
Join Date: Aug 2014
Old 12-08-2014 , 23:31   Re: [TF2]Killstreaks
Reply With Quote #6

Quote:
Originally Posted by MasterOfTheXP View Post
Looks like Valve removed the m_iKillStreak netprop and added m_nStreaks - an array of three integers, with the first one (element 0) being the killstreak count.

Code that was like this before:
PHP Code:
new oldamount GetEntProp(clientProp_Send"m_iKillStreak");
SetEntProp(clientProp_Send"m_iKillStreak"amount); 
...should now be this:
PHP Code:
new oldamount GetEntProp(clientProp_Send"m_nStreaks"_0);
SetEntProp(clientProp_Send"m_nStreaks"amount_0); 
Hero. Hero. Hero.
Kredit 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 16:00.


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