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

[TF2] Force Halloween


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Plugin ID:
2513
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Force Halloween mode to be enabled on a specific set of maps
    Unapprover:
    Reason for Unapproving:
    Author requested. Valve has the same functionality with the stock game.
    Old 08-24-2011 , 10:28   [TF2] Force Halloween
    Reply With Quote #1

    This plugin is deprecated. Use [TF2] Force Holidays instead.

    Requirements

    SourceMod 1.3.8 (will not work with 1.3.7 or earlier) or SourceMod 1.4.0-hg3063 or newer

    Description
    I hear you all saying "Wait... another halloween mod? Isn't there a plugin that can already enable that?"

    Yes, there is. However, it either is enabled for all maps or disabled for all maps. Switching which holiday is in effect requires an admin, as setting the cvar in a map config file does not affect the map as its loading, but affects the next map instead.

    Enter this plugin. This plugin has a list of maps to enable Halloween mode on.

    SIDE NOTE: To my knowledge, this will disable the Team Fortress Birthday event on August 24th, disabling the party favor and modified healthkits. Which is the same day I'm releasing this (bad timing on my part).

    Changelog
    1.0.1 Changed plugin to fail if the Halloween map list can't be loaded.
    1.0 Initial Release

    Installation instructions
    1. Copy halloween_maps.txt to addons/sourcemod/configs/
    2. Copy tfforcehalloween.smx to addons/sourcemod/plugins/

    ConVars
    tfh_enabled - 0 to disable this plugin, 1 to enable it. Default 1.
    tfh_version - TF2 Force Halloween version

    Translations
    There aren't any. The only messages this plugin prints are diagnostic messages about loading/updating the map list.

    What works in Halloween Mode
    • The Horseless Headless Horsemann on Mann Manor (including related achievements)
    • Crit Candy randomly on kills
    • Halloween taunt (Thriller)
    • Halloween hats
    • Exploding pumpkins (these work year-round anyway)

    What doesn't work in Halloween Mode
    • Haunted Halloween Gift on Mann Manor
    Attached Files
    File Type: txt halloween_maps.txt (36 Bytes, 1481 views)
    File Type: sp Get Plugin or Get Source (tfforcehalloween.sp - 2449 views - 1.9 KB)
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 10-31-2011 at 13:24. Reason: Removed version cvar for new thread
    Powerlord is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 08-24-2011 , 10:43   Re: [TF2] Force Halloween
    Reply With Quote #2

    TF2 Holidays + map specific config files = this plugin.
    or not?
    Leonardo is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-24-2011 , 10:54   Re: [TF2] Force Halloween
    Reply With Quote #3

    Quote:
    Originally Posted by Leonardo View Post
    TF2 Holidays + map specific config files = this plugin.
    or not?
    Doesn't work. I already tried it. In fact, the Description section in this thread's first post discusses this in depth.
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 08-24-2011 , 11:01   Re: [TF2] Force Halloween
    Reply With Quote #4

    how long? from today?
    Leonardo is offline
    ltgenkd
    AlliedModders Donor
    Join Date: Sep 2008
    Old 08-24-2011 , 12:44   Re: [TF2] Force Halloween
    Reply With Quote #5

    Getting the TFBirthday event, and the HHH never spawned on cp_manor_event. Anything else I have to enable?


    Code:
    12:18:28 sm version
    12:18:28  SourceMod Version Information:
                 SourceMod Version: 1.4.0-dev
                 SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.4.0-dev)
                 SourcePawn API: v1 = 4, v2 = 3
                 Compiled on: Jul 24 2011 12:02:47
                 Build ID: 3366:d4afcec1be26-dev
                 http://www.sourcemod.net/
    __________________
    ltgenkd is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-24-2011 , 12:57   Re: [TF2] Force Halloween
    Reply With Quote #6

    Quote:
    Originally Posted by ltgenkd View Post
    Getting the TFBirthday event, and the HHH never spawned on cp_manor_event. Anything else I have to enable?


    Code:
    12:18:28 sm version
    12:18:28  SourceMod Version Information:
                 SourceMod Version: 1.4.0-dev
                 SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.4.0-dev)
                 SourcePawn API: v1 = 4, v2 = 3
                 Compiled on: Jul 24 2011 12:02:47
                 Build ID: 3366:d4afcec1be26-dev
                 http://www.sourcemod.net/
    I know this was working last night on my own servers when we played on cp_manor_event, but the TFBirthday event hadn't yet started at that point.

    Incidentally, are you getting any messages from the plugin when it first starts? Right now, it should log a message when it loads/updates the map list (or fails to load it). It should also log a message ("Halloween map detected: map_name_here") when a halloween map loads.

    I uploaded a new version, 1.0.1, which will cause the plugin to fail if the map list cannot be loaded. This is to help with debugging, so we know right away that the plugin didn't load and why.
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 08-24-2011 at 13:08.
    Powerlord is offline
    ltgenkd
    AlliedModders Donor
    Join Date: Sep 2008
    Old 08-24-2011 , 13:11   Re: [TF2] Force Halloween
    Reply With Quote #7

    Quote:
    Incidentally, are you getting any messages from the plugin when it first starts? Right now, it should log a message when it loads/updates the map list (or fails to load it). It should also log a message ("Halloween map detected: map_name_here") when a halloween map loads.
    Code:
    L 08/24/2011 - 13:05:11: [tfforcehalloween.smx] Halloween map detected: cp_manor
    _event
    L 08/24/2011 - 13:05:12: server_cvar: "sm_nextmap" "koth_harvest_event"
    I'll try the new version you posted. Above log is from original version.
    __________________
    ltgenkd is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-24-2011 , 13:14   Re: [TF2] Force Halloween
    Reply With Quote #8

    I've just been informed that the tf_forced_holiday cvar makes this plugin (and the Holidays plugin) obsolete. Obviously, I want to test it in cp_manor_event.cfg before getting rid of my plugin, but if it works...
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    ltgenkd
    AlliedModders Donor
    Join Date: Sep 2008
    Old 08-24-2011 , 13:33   Re: [TF2] Force Halloween
    Reply With Quote #9

    Code:
    L 08/24/2011 - 13:04:52: SourceMod log file session started (file "L20110824.log") (Version "1.4.0-dev")
    L 08/24/2011 - 13:04:52: -------- Mapchange to cp_manor_event --------
    L 08/24/2011 - 13:04:53: [GEOIP] GeoIP database info: GEO-106FREE 20110601 Build 1 Copyright (c) 2011 MaxMind Inc All Rights Reserved
    L 08/24/2011 - 13:04:53: [TF2_Stats.smx] TF2_Stats connected to MySQL Database!
    L 08/24/2011 - 13:05:09: [tfforcehalloween.smx] Loaded/Updated Halloween map list
    L 08/24/2011 - 13:05:11: [basecommands.smx] "Console<0><Console><Console>" changed cvar (cvar "mp_waitingforplayers_time") (value "0")
    L 08/24/2011 - 13:05:11: [tfforcehalloween.smx] Halloween map detected: cp_manor_event
    L 08/24/2011 - 13:11:19: SourceMod log file session started (file "L20110824.log") (Version "1.4.0-dev")
    L 08/24/2011 - 13:11:19: -------- Mapchange to cp_manor_event --------
    L 08/24/2011 - 13:11:20: [GEOIP] GeoIP database info: GEO-106FREE 20110601 Build 1 Copyright (c) 2011 MaxMind Inc All Rights Reserved
    L 08/24/2011 - 13:11:20: [TF2_Stats.smx] TF2_Stats connected to MySQL Database!
    L 08/24/2011 - 13:11:26: [tfforcehalloween.smx] Loaded/Updated Halloween map list
    L 08/24/2011 - 13:11:27: [basecommands.smx] "Console<0><Console><Console>" changed cvar (cvar "mp_waitingforplayers_time") (value "0")
    L 08/24/2011 - 13:11:27: [tfforcehalloween.smx] Halloween map detected: cp_manor_event
    L 08/24/2011 - 13:13:22: [tfforcehalloween.smx] Halloween map detected: cp_manor_event
    L 08/24/2011 - 13:13:22: [tfforcehalloween.smx] Halloween map detected: cp_manor_event
    New logs from new version. No HHH & TF Birthday still active.
    Good luck with it.
    __________________
    ltgenkd is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-30-2011 , 10:11   Re: [TF2] Force Halloween
    Reply With Quote #10

    I've asked that this plugin be unapproved, as it is essentially identical to setting "tf_forced_holiday cvar 2" in the .cfg file for a specific map.
    __________________
    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 21:19.


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