Raised This Month: $ Target: $400
 0% 

Killstreak value editor?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lostprophetpunk
Member
Join Date: Oct 2012
Old 11-24-2013 , 14:01   Killstreak value editor?
Reply With Quote #1

Heya there,

Whilst on this TF2 server (216.52.148.85:27015), you can type "sm_kson" into console to add 100 to your killstreak.

This allows for previewing effects etc for your killstreak weapon. Is there any way someone could make a plugin like this one? As it would be useful to have on trade servers.
lostprophetpunk is offline
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 11-24-2013 , 16:25   Re: Killstreak value editor?
Reply With Quote #2

Assuming it's as basic as increasing the killstreak count on the client, this will (probably?) work.

PHP Code:
public OnPluginStart()
{
    
RegConsoleCmd"sm_kson"Cmd_Enable );
}

public 
Action:Cmd_Enableclientargs )
{
    
SetEntPropclientProp_Send"m_iKillStreak"100 );
    return 
Plugin_Handled;

I don't really have a killstreak weapon to test, though.

Edit:

Could also just be adding attrib 2013 to the player/weapon: "killstreak effect", or attrib 2025: "killstreak tier"
__________________

Last edited by VoiDeD; 11-24-2013 at 17:53.
VoiDeD is offline
lostprophetpunk
Member
Join Date: Oct 2012
Old 11-25-2013 , 01:55   Re: Killstreak value editor?
Reply With Quote #3

Quote:
Originally Posted by VoiDeD View Post
Assuming it's as basic as increasing the killstreak count on the client, this will (probably?) work.

PHP Code:
public OnPluginStart()
{
    
RegConsoleCmd"sm_kson"Cmd_Enable );
}

public 
Action:Cmd_Enableclientargs )
{
    
SetEntPropclientProp_Send"m_iKillStreak"100 );
    return 
Plugin_Handled;

I don't really have a killstreak weapon to test, though.
Thank you so much. This works beautifully.
lostprophetpunk 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:28.


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