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

[ANY] Death Streaks Rewarder/Tracker v1.0.2


Post New Thread Reply   
 
Thread Tools Display Modes
Author
nergal
Veteran Member
Join Date: Apr 2012
Plugin ID:
4317
Plugin Version:
1.0.3
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    recreates the Deathstreaks system from Call of Duty
    Old 08-17-2014 , 23:21   [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #1

    This plugin recreates the Deathstreaks system from Call of Duty

    To clear up any misconceptions about this plugin, this plugin ONLY TRACKS deathstreaks (amount of deaths without getting a kill) (and killstreaks)

    This plugin is also equipped with natives so you don't have to keep remaking the same death tracking system, over and over again, in many plugins when you have one plugin to do the job for you.

    EDIT: added Killstreak support so it can cover all source engine games.

    For those that don't know, a killstreak is "A reward based system for getting kills without dying" (http://callofduty.wikia.com/wiki/Killstreaks) while a deathstreak is "A system based on dying multiple times without getting a kill" (http://callofduty.wikia.com/wiki/Deathstreak)

    Instructions: Simply use any of the natives in any of your RTD/Reward-giving plugins and that's it.
    Example Code
    PHP Code:
    if (GetDeathstreak(client) >= 5GodModeForTenSecondsLol;
    switch ( 
    GetDeathstreak(client) )
    {
     case 
    7code-here;
    }
    SetDeathstreak(client2); 
    NATIVES
    PHP Code:
    /** 
     * Returns the deathstreaks of a client. 
     * 
     * @param client    Client index. 
     * 
     * @return        deathstreaks. 
     */ 
    native int GetDeathstreak(int client); 
     
    /** 
     * Sets the deathstreaks of a client. 
     * 
     * @param client    Client index. 
     * 
     * @param integer    int number. 
     */ 
    native void SetDeathstreak(int clientint integer); 
     
    /** 
     * Returns the killstreaks of a client. 
     * 
     * @param client    Client index. 
     * 
     * @return        killstreaks. 
     */ 
    native int GetKillstreak(int client); 
     
    /** 
     * Sets the killstreaks of a client. 
     * 
     * @param client    Client index. 
     * @param number    int number. 
     * 
     */ 
    native void SetKillstreak(int clientint number); 
    Changelog
    PHP Code:
    12/29/2014 1.0.3 converted to new syntaxREQUIRES SM 1.7TO WORK.
    8/18/2014 1.0.2 added killstreak support too and supporting natives.
    8/17/2014 1.0.1 made it workable for all games that support sourcemod.
    8/17/2014 1.0.0 release 
    Attached Files
    File Type: inc deathstreaks.inc (1.3 KB, 395 views)
    File Type: sp Get Plugin or Get Source (deathstreaks.sp - 287 views - 2.7 KB)
    File Type: smx deathstreaks.smx (5.4 KB, 220 views)
    __________________

    Last edited by nergal; 04-14-2015 at 20:43. Reason: more info
    nergal is offline
    nergal
    Veteran Member
    Join Date: Apr 2012
    Old 08-18-2014 , 18:08   Re: [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #2

    changelog 8/18/2014 - 1.0.2 - added killstreak support too with supporting natives!
    __________________

    Last edited by nergal; 08-18-2014 at 18:09.
    nergal is offline
    lyric
    Veteran Member
    Join Date: Sep 2012
    Old 08-18-2014 , 21:26   Re: [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #3

    got screenshot or video for those of us who dont know what call of dooty killstreaks are even?
    __________________
    lyric is offline
    nergal
    Veteran Member
    Join Date: Apr 2012
    Old 08-18-2014 , 23:21   Re: [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #4

    Quote:
    Originally Posted by lyric View Post
    got screenshot or video for those of us who dont know what call of dooty killstreaks are even?
    done!
    __________________
    nergal is offline
    VegetaVision
    Junior Member
    Join Date: Jul 2013
    Old 08-26-2014 , 15:58   Re: [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #5

    what's the reward for Killstreaks?
    VegetaVision is offline
    nergal
    Veteran Member
    Join Date: Apr 2012
    Old 08-26-2014 , 21:53   Re: [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #6

    Quote:
    Originally Posted by VegetaVision View Post
    what's the reward for Killstreaks?
    any reward u code a plugin to give. This plugin only tracks killstreaks and deathstreaks but the natives allow you to utilize them.

    The plugin ONLY TRACKS killstreaks and deathstracks as stated in my OP.

    For tf2, u could simply use the m_iKillstreak netprop but this plugin is designed for all games and not all games have that netprop.
    __________________
    nergal is offline
    nergal
    Veteran Member
    Join Date: Apr 2012
    Old 12-29-2014 , 23:58   Re: [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #7

    Update: converted plugin to work in new syntax, requires SM 1.7+ to compile/function.
    __________________
    nergal is offline
    WeDoItLive
    Member
    Join Date: Mar 2015
    Old 04-09-2015 , 11:36   Re: [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #8

    Could it be possible to use this as player configurable?
    What I mean by that is; can individual players select what their streaks are at specific kills so that Player #1 might have toxic at 10 and Player #2 would have low gravity. Maybe set at the start of the round in a player menu type interface?

    Would it be possible to set a convar to set at what point specific streaks are available?
    WeDoItLive is offline
    nergal
    Veteran Member
    Join Date: Apr 2012
    Old 04-09-2015 , 12:17   Re: [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #9

    Quote:
    Originally Posted by WeDoItLive View Post
    Could it be possible to use this as player configurable?
    What I mean by that is; can individual players select what their streaks are at specific kills so that Player #1 might have toxic at 10 and Player #2 would have low gravity. Maybe set at the start of the round in a player menu type interface?

    Would it be possible to set a convar to set at what point specific streaks are available?
    Yes it can my good sir but this plugin is meant to be used with another plugin that uses the data this plugin records while the other plugin simply does the effects you're talking about.
    __________________
    nergal is offline
    WeDoItLive
    Member
    Join Date: Mar 2015
    Old 04-09-2015 , 12:23   Re: [ANY] Death Streaks Rewarder/Tracker v1.0.2
    Reply With Quote #10

    Ah, gotcha. Thank you for clearing that up!
    WeDoItLive 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 02:01.


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