Raised This Month: $ Target: $400
 0% 

[TF2] Force Holidays - 1.10.2, Updated 2015-10-07


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-26-2012 , 08:05   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #241

Quote:
Originally Posted by SmackDaddy View Post
So what is the most current/up to date download for this or is it being revised? (I ask because sometimes people modify/change the original and post it within the thread).

THanks in advance.
First post is still up to date; however, SourceMod's tf2.inc isn't currently up to date to reflect the removal of the Mann Vs. Machine holiday. In order to compile this correctly, you must edit tf2.inc and remove TFHoliday_MannVsMachine.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 10-27-2012 , 03:25   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #242

A note to those who are forgetful like me: do not keep tfh_halloween at 2 if you want Merasmus to appear.
__________________
11530 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-27-2012 , 12:01   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #243

Quote:
Originally Posted by 11530 View Post
A note to those who are forgetful like me: do not keep tfh_halloween at 2 if you want Merasmus to appear.
One of these days, I should split tfh_halloween and tfh_fullmoon back into separate cvars.

Speaking of which, Valve added new Holidays again (Valentine's Day and a check for Halloween/Full Moon/Valentine's Day), so tf2.inc needs to be updated again and a new version of this plugin needs to be released.

I'll be doing this shortly.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-27-2012 at 12:02.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-27-2012 , 12:56   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #244

OK, here's the proposed version of 1.8.0.

It needs testing

New cvars are:
tfh_use_overrides - If set to 0, halloween_maps.txt will be ignored. Defaults to 1.
tfh_fullmoon - Force Full Moon mode on. -1 = Always off; 0 = Use game setting; 1 = Always on. Default 0.
tfh_valentines - Force Valentines Day mode on. -1 = Always off; 0 = Use game setting; 1 = Always on. Default 0.

tfh_halloween 2 is now deprecated and will be removed in a future version. It still works, but please switch over to tfh_fullmoon 1.

A lot of new code has been added to precache Merasmus's models and sounds for when the Halloween holiday ends, although Valve may have unbroken boss caching in this update.

To compile this, you need to edit tf2.inc and change the TFHoliday enum to this:

Code:
enum TFHoliday
{
    TFHoliday_MannVsMachine = -1, // Obsolete
    TFHoliday_Birthday = 1,
    TFHoliday_Halloween,
    TFHoliday_Christmas,
    TFHoliday_ValentinesDay,
    TFHoliday_MeetThePyro,
    TFHoliday_FullMoon,
    TFHoliday_HalloweenOrFullMoon,
    TFHoliday_HalloweenOrFullMoonOrValentines,
};
Bug 5526 has been opened to get this changed in SourceMod's main tf2.inc.

Edit: Use the plugin posted here.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-29-2012 at 14:26.
Powerlord is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-27-2012 , 13:40   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #245

May I ask what's special about Valentine's Day?
__________________
xPaw is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-27-2012 , 13:40   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #246

Quote:
Originally Posted by xPaw View Post
May I ask what's special about Valentine's Day?
At a guess, the Heavy's Grand Duchess costume can be used on Valentine's Day in addition to Halloween and Full Moon. I don't know, I just add the holidays to this when Valve adds them to TF2.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-27-2012 at 13:41.
Powerlord is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 10-27-2012 , 14:00   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #247

I see two convars for tfh_halloween in the code for 1.8.0 here.
__________________
11530 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-27-2012 , 14:05   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #248

Quote:
Originally Posted by 11530 View Post
I see two convars for tfh_halloween in the code for 1.8.0 here.
Good catch. I must have missed that when copypasta-ing.

This should fix it.
Attached Files
File Type: sp Get Plugin or Get Source (tfforceholidays.sp - 85 views - 35.5 KB)
File Type: smx tfforceholidays.smx (9.6 KB, 121 views)
File Type: txt halloween_maps.txt (97 Bytes, 89 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-27-2012 at 14:07.
Powerlord is offline
SmackDaddy
Veteran Member
Join Date: Oct 2009
Old 10-27-2012 , 16:17   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #249

This is only really needed for after the halloween event right? (that is, for those of us using it for the "full moon" setting)
SmackDaddy is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-29-2012 , 14:29   Re: [TF2] Force Holidays - 1.7.1, Updated 2012-10-05
Reply With Quote #250

Quote:
Originally Posted by SmackDaddy View Post
This is only really needed for after the halloween event right? (that is, for those of us using it for the "full moon" setting)
Yes.

Well, 1.7.1 has Full Moon not working properly anyway due to the holiday renumbering... why can't Valve add new holidays to the end instead of the middle?
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 13:01.


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