Raised This Month: $188 Target: $400
 47% 

[TF2] First Blood Rewards


Post New Thread Reply   
 
Thread Tools Display Modes
Author
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Plugin ID:
1112
Plugin Version:
0.2
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Player who gets first blood gets a popup menu to choose a reward or random reward(depending on cvar)
    Old 08-21-2009 , 02:50   [TF2] First Blood Rewards
    Reply With Quote #1

    First Blood Rewards (0.2)


    Stupid little plugin that has the same basic idea as my first blood crits plugin(link) but, with a twist. I wasnt sure I should post both plugins on the same thread or not, or I would have...

    **Credits for this plugin go to all the helpful people on this forum**


    Description: Player who gets first kill when round starts gets either a popup menu to choose a reward, or random reward(depending what value you set for mode cvar).



    Config is auto-created, but heres cvars anyways.

    Cvars:
    sm_arenafirstblood "0" //Enable tf2 first blood cvar in arena mode? (1/0 = yes/no)
    sm_fbrewards_crits_period "15.0" // Period in seconds for crits duration.
    sm_fbrewards_emitsound "1" // Emit the first blood sound file files? (1/0 = yes/no)
    sm_fbrewards_enabled "1" // Enable/Disable first blood rewards plugin. (1/0 = yes/no)
    sm_fbrewards_fireammo_period "60.0" // Period in seconds for fire ammo duration.
    sm_fbrewards_god_period "20.0" // Period in seconds for godmode duration.
    sm_fbrewards_health_amount "600.0" // Health amount for health buff reward.
    sm_fbrewards_invis_period "25.0" // Period in seconds for invis duration.
    sm_fbrewards_msgs "1" // Display first blood reward messages/info? (1/0 = yes/no)
    sm_fbrewards_mode "1" //Mode for first blood rewards. (1/2) 1=menu popup 2=random.
    sm_fbrewards_sentry_period "120" // Period in seconds before sentry is auto-destroyed.
    sm_fbrewards_timer "1" // Enable the center screen timer countdown? (1/0 = yes/no)
    sm_fbrewards_vampire_amount "12.0" // Health amount leeched per hit for vampire.
    sm_fbrewards_vampire_period "100.0" // Period in seconds for vampire life leech duration.

    If you don't like the default cvar values, change them. I tried to do what I thought was balanced, but it obviously depends on the type of server.


    Ideas:
    -Possibly having either 2 lvl1 sg's for that reward, figuring out how to add health and ammo to current sg, or spawning a lvl2 sg instead.
    -Possibly giving them 1 second of godmode for when the menu opens so players have at least 1 second before they worry about dying with menu open...

    Changelog:

    - 8/26/09 - v0.2 - Added cvar (sm_fbrewards_mode "2") for random reward instead of popup menu. Fixed up a few things.
    - 8/20/09 - v0.1 - Initial release


    Lmk if theres any issues... Ill try to fix them......
    Attached Files
    File Type: sp Get Plugin or Get Source (firstblood_rewards.sp - 1534 views - 36.7 KB)
    File Type: smx firstblood_rewards.smx (17.4 KB, 568 views)

    Last edited by retsam; 08-27-2009 at 18:46.
    retsam is offline
    Sexual Harassment Panda
    Veteran Member
    Join Date: Dec 2008
    Location: San Diego, CA
    Old 08-21-2009 , 14:16   Re: [TF2] First Blood Rewards
    Reply With Quote #2

    this is an interesting twist on first blood. Looks great.
    __________________
    Sexual Harassment Panda is offline
    cybersquare420
    Veteran Member
    Join Date: Nov 2008
    Old 08-26-2009 , 13:42   Re: [TF2] First Blood Rewards
    Reply With Quote #3

    nice!! can u turn off certain rewards seperately?... i run crit servers, so crits is redundant
    __________________
    cybersquare420 is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 08-26-2009 , 15:30   Re: [TF2] First Blood Rewards
    Reply With Quote #4

    Ill have to look into that. Since its added onto a menu, im not sure I know how to detect something being disabled and also remove it from a menu.
    retsam is offline
    sfPlayer
    Senior Member
    Join Date: Dec 2007
    Location: Germany
    Old 08-26-2009 , 22:01   Re: [TF2] First Blood Rewards
    Reply With Quote #5

    You should return Plugin_Stop or Plugin_Continue in your repeatable timers
    sfPlayer is offline
    Dragonshadow
    BANNED
    Join Date: Jun 2008
    Old 08-26-2009 , 22:06   Re: [TF2] First Blood Rewards
    Reply With Quote #6

    Can you please add an option to make just make it random and not give them a choice?
    Dragonshadow is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 08-26-2009 , 23:30   Re: [TF2] First Blood Rewards
    Reply With Quote #7

    Sure. I had planned on doing that the first time around, just wasnt sure I should. Ill have an updated ver with a random cvar in a bit.



    EDIT: Updated v0.2 Cvar added for random reward. Fixed up a few other things.

    Last edited by retsam; 08-27-2009 at 01:18.
    retsam is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 09-22-2009 , 15:50   Re: [TF2] First Blood Rewards
    Reply With Quote #8

    Here are a few requests I'd love to see:

    Cvars:
    Option to allow more then one player to get first blood.
    Example: setting 2 would reward the first 2 players who get kills

    Option to apply Firstblood by team, not by all.
    Example: setting this cvar to true and leaving the above cvar set to 1, would mean that the first player on each team to get firstblood would get rewards.
    Setting the above cvar to 2 would mean that the first 2 players on each team to get kills get rewarded.

    Cmds:
    Admin command to force-apply the rewards system to someone at any time in the match.

    I would love you if you added those.
    Thanks!
    DarthNinja is offline
    theshonuf
    New Member
    Join Date: Sep 2009
    Old 09-24-2009 , 19:52   Re: [TF2] First Blood Rewards
    Reply With Quote #9

    if you could make it so certain rewards can be disabled that would be awesome

    as in

    disable all but the health buff, then you could put it on random so the health buff is always selected
    theshonuf is offline
    h00x
    Senior Member
    Join Date: Jun 2009
    Old 12-25-2009 , 16:31   Re: [TF2] First Blood Rewards
    Reply With Quote #10

    It would be nice to be able to disable crits on an all crit server.
    h00x is offline
    Reply


    Thread Tools
    Display Modes

    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 19:10.


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