Raised This Month: $32 Target: $400
 8% 

[TF2] Holidays


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FoxMulder
Senior Member
Join Date: Jan 2009
Location: Orlando, FL
Plugin ID:
1774
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Sets the game Holiday
    Unapprover:
    Reason for Unapproving:
    https://forums.alliedmods.net/showpost.php?p=1587261&postcount=38
    Old 06-29-2010 , 09:57   [TF2] Holidays
    Reply With Quote #1


    Requirements:
    Requires snapshot 1.4.0-hg3063 or newer

    CVars:
    Code:
    sm_tf2holiday <0/1/2/3> 0=Disabled/1=None/2=Halloween/3=Birthday
    //sm_tf2holiday 0 //Plugin Disabled
    //sm_tf2holiday 1 //None, no holidays! Normal Game.
    //sm_tf2holiday 2 //Halloween [DEFAULT]
    //sm_tf2holiday 3 //Birthday (just use "tf_birthday 1" if you want this)
    Thanks:
    -To TheKisho for filing the "bug report"
    -Devs at Sourcemod for making it happen
    http://forums.alliedmods.net/showthread.php?t=130088
    Attached Files
    File Type: smx tf2holiday.smx (2.2 KB, 1456 views)
    File Type: sp Get Plugin or Get Source (tf2holiday.sp - 2169 views - 1.0 KB)
    __________________

    Last edited by FoxMulder; 06-29-2010 at 10:25.
    FoxMulder is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 06-29-2010 , 10:02   Re: [TF2] Holidays
    Reply With Quote #2

    Quote:
    Originally Posted by FoxMulder View Post
    (Valve's own Birthday Event is broken and does not work)
    Are you sure? I know the party hats don't works, but do the party favor gibs also not work?
    psychonic is offline
    FoxMulder
    Senior Member
    Join Date: Jan 2009
    Location: Orlando, FL
    Old 06-29-2010 , 10:14   Re: [TF2] Holidays
    Reply With Quote #3

    Quote:
    Originally Posted by psychonic View Post
    Are you sure? I know the party hats don't works, but do the party favor gibs also not work?
    I still have to set tf_birthday to 1 for the party gibs to work. I could set the holiday to Birthday but nothing happens (no party hats or funny gibs)

    EDIT:Wait party hats look like they're working with tf_birthday 1, brb gonna do more testing

    EDIT2:Ya it looks like valve fixed tf_birthday 1 but doing the following does nothing. I'll probably make it just set tf_birthday to 1 if user picks "sm_tf2holiday 3"
    PHP Code:
    public Action:TF2_OnGetHoliday(&TFHoliday:holiday)
    {
       
    holiday TFHoliday_Birthday;
       return 
    Plugin_Changed;

    __________________

    Last edited by FoxMulder; 06-29-2010 at 10:27.
    FoxMulder is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 06-29-2010 , 10:34   Re: [TF2] Holidays
    Reply With Quote #4

    That's odd. It looked from the code that (in multiple places) they check to see if tf_birthday is set to 1 or if GetHoliday returns Birthday. I've only used it with Halloween, but I know at least the holiday enum is correct.
    psychonic is offline
    Sam-1-14
    Member
    Join Date: May 2010
    Old 06-29-2010 , 14:10   Re: [TF2] Holidays
    Reply With Quote #5

    In the harvest_event map, will this cause candy to show up on death?
    EDIT: This plugin is great for those who want to revisit halloween and wear that bag
    Also, you can taunt with the skullcutter =D

    Last edited by Sam-1-14; 06-29-2010 at 17:29. Reason: forgot a revision and extra comment
    Sam-1-14 is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 06-29-2010 , 14:13   Re: [TF2] Holidays
    Reply With Quote #6

    Quote:
    Originally Posted by Sam-1-14 View Post
    In the harvest_event map, will this cause candy to show up on death?
    yes. you will also be able to wear the paper bag mask (on any map)
    psychonic is offline
    drunkenfox1
    Member
    Join Date: Aug 2009
    Location: Orange
    Old 06-29-2010 , 15:35   Re: [TF2] Holidays
    Reply With Quote #7

    Excellent
    drunkenfox1 is offline
    jouva
    Senior Member
    Join Date: Jan 2010
    Old 07-03-2010 , 21:56   Re: [TF2] Holidays
    Reply With Quote #8

    Ummmmmm, I don't see a thing in the code that hooks into TF2_OnGetHoliday one bit. Just an FYI.

    Edit: n/m I see what the idea is. Is there any way to force that to be rechecked though?

    Last edited by jouva; 07-04-2010 at 01:08.
    jouva is offline
    emuzombie
    Member
    Join Date: Sep 2009
    Location: Wisconsin, US
    Old 07-04-2010 , 18:21   Re: [TF2] Holidays
    Reply With Quote #9

    Great plugin, no problems so far.. Adding sm_tf2holiday 2 to koth_harvest_event.cfg and sm_tf2holiday 0 to server.cfg makes a great combination to enable Halloween mode only for that map.

    Although it appears the achievements are still locked into the actual time around Halloween.
    __________________
    emuzombie is offline
    MaloModo
    Veteran Member
    Join Date: Aug 2008
    Old 07-07-2010 , 13:40   Re: [TF2] Holidays
    Reply With Quote #10

    Upgraded SM and plugin working great...people liking it so far....good work
    MaloModo 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:15.


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