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

[TF2] Flags (1.1) / Last Updated: 01/11/10


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Damizean
SourceMod Donor
Join Date: Mar 2009
Plugin ID:
1224
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows you to modify the flag (intel) model on Capture the Flag maps
    Old 10-15-2009 , 22:16   [TF2] Flags (1.1) / Last Updated: 01/11/10
    Reply With Quote #1

    [TF2] Flags (1.1)
    by Damizean - 10/16/09

    What's this?
    This plugin allows to change the model for the Flags (Intel/Dossier) on a Capture the Flag map. I've also provided an example of a bike model (Model by Héctor Ariza, who agreed to release this for everyone to use).

    [IMG]http://img101.**************/img101/1197/capturethebiketf2bysefi.jpg[/IMG]

    Changelog
    Code:
    1.1
        - Fixed issues with the netprops.
    1.0
        - Initial release.
    How do I install it?
    Code:
    * Place the files in the zip on the correct folders:
        - The files placed at the gameserver folder should be
           placed in... well, your game server!
        - The files placed at the fastdownload folder should be
           placed in your fast download server.
    Cvars
    Code:
    - tf_flags_next - Forces the next map flag settings.
    Config Files
    The config file is located in "addons/sourcemod/configs/" under the name "tf2_flags.cfg".

    The structure of the file is as follows:
    PHP Code:
    // The section name determines the configuration for a determined map.
    // A section name of ctf_turbine will make this configuration to be
    // executed on this map. The section name of * means it's the global
    // configuration.
        
    // (Note: If any of these keys are commented, they'll be ignored)
    // (Note II: All the sound files paths should be written sans /sound/)

        
    "your map name"
        
    {
            
    // Both the models used for Red and Blu.
            
    "model-neutral"         "path to neutral model"
            "model-red"             "path to red flag model"
            "model-blu"             "path to blue flag model"
            
            
    // Should the models used drop the particles trail?
            
    "particles-neutral"     "0 - off / 1 - on"
            "particles-red"         "0 - off / 1 - on"
            "particles-blu"         "0 - off / 1 - on"
            
            
    // Sound to play when the flags are picked-up.
            
    "pickup-red"            "path to a sound (without the sound/ prefix)"
            "pickup-blu"            "path to a sound (without the sound/ prefix)"
            
            
    // Sound to play when a team caps the flag.
            
    "cap-red"             "path to a sound (without the sound/ prefix)"
            "cap-blu"             "path to a sound (without the sound/ prefix)"
            
            
    // Sounds to play when the flag drops or returns to base.
            
    "drop"                "path to a sound (without the sound/ prefix)"
            "return"              "path to a sound (without the sound/ prefix)"
        

    Example:
    PHP Code:
        // Default config for all maps ----------------------
        // (Note: If any of these keys are commented, they'll be ignored)
        // (Note II: All the sound files paths should be written sans /sound/)
        
    "*"
        
    {
            
    // Both the models used for Red and Blu.
            
    "model-neutral"            "models/rss-custom/bike/bike.mdl"
            "model-red"                "models/rss-custom/bike/bike.mdl"
            "model-blu"                "models/rss-custom/bike/bike.mdl"
            
            
    // Should the models used drop the particles trail?
            
    "particles-neutral"        "0"
            "particles-red"            "0"
            "particles-blu"            "0"
            
            
    // Sound to play when the flags are picked-up.
            
    "pickup-red"            "rss-custom/bike.mp3"
            "pickup-blu"            "rss-custom/bike.mp3"
            
            
    // Sound to play when a team caps the flag.
            //"cap-red"                ""
            //"cap-blu"                ""
            
            // Sounds to play when the flag drops or returns to base.
            //"drop"                ""
            //"return"                ""
        

    Resource files
    The plugin implements a resources precacher like the one in the Equipment Manager plugin. For every model file, it'll automatically search for a .res file with the same name, in wich every line is a dependency for the model.

    For example, with the model called "bike.mdl", the plugin will search for a file called "bike.mdl.res". It'll precache and add to the downloads table all the files listed on it:
    Code:
    models/rss-custom/bike/bike.mdl
    models/rss-custom/bike/bike.sw.vtx"
    models/rss-custom/bike/bike.vvd
    models/rss-custom/bike/bike.dx80.vtx
    models/rss-custom/bike/bike.dx90.vtx
    materials/models/rss-custom/bike/bike.vtf
    materials/models/rss-custom/bike/bike_blue.vtf
    materials/models/rss-custom/bike/bike_neutral.vtf
    materials/models/rss-custom/bike/bike.vmt
    materials/models/rss-custom/bike/bike_blue.vmt
    materials/models/rss-custom/bike/bike_neutral.vmt
    materials/models/rss-custom/bike/bike_pickedup.vmt
    materials/models/rss-custom/bike/bike_pickedup_blue.vmt
    materials/models/rss-custom/bike/bike_pickedup_neutral.vmt
    materials/models/rss-custom/bike/bike_radius.vmt
    The sound files will also be automatically precached and added to the download list automatically.

    Remember!
    Set the proper whitelist entries if you're going to use the bike on a pure server! The locations of the files are the ones listed above.

    Attached Files
    File Type: zip TF2_Flags.zip (303.5 KB, 819 views)
    __________________
    Dat annoying guy

    Last edited by Damizean; 01-11-2010 at 09:03.
    Damizean is offline
    Send a message via AIM to Damizean Send a message via MSN to Damizean
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 10-15-2009 , 22:24   Re: [TF2] Flags (1.0)
    Reply With Quote #2

    HAHA this is awesome, +karma
    noodleboy347 is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 10-16-2009 , 00:57   Re: [TF2] Flags (1.0)
    Reply With Quote #3

    Nice!
    Now if I can rangle up a TF2 themed "Flag" model...
    DarthNinja is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 10-16-2009 , 09:46   Re: [TF2] Flags (1.0)
    Reply With Quote #4

    Someone needs to adjust the bomb cart to work with this!
    __________________
    Jindo is offline
    rotab
    Junior Member
    Join Date: Dec 2005
    Location: Sweden
    Old 10-16-2009 , 10:52   Re: [TF2] Flags (1.0)
    Reply With Quote #5

    Quote:
    Originally Posted by Jindo View Post
    Someone needs to adjust the bomb cart to work with this!
    á la http://www.youtube.com/watch?v=1DdxvmL_w0M ?
    rotab is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 10-16-2009 , 11:01   Re: [TF2] Flags (1.0)
    Reply With Quote #6

    Haha brilliant, that actually looks like just a bomb cart on legs!
    __________________
    Jindo is offline
    log1k
    Junior Member
    Join Date: Oct 2009
    Old 10-19-2009 , 12:18   Re: [TF2] Flags (1.0)
    Reply With Quote #7

    haha nice!

    Now... can we RIDE THE BOMB! :O xD
    log1k is offline
    cpgrules
    Junior Member
    Join Date: Aug 2009
    Old 12-05-2009 , 17:51   Re: [TF2] Flags (1.0)
    Reply With Quote #8

    I use stripper source to add intel to my map. Will this work for that also? If not, what can I do to add bikes instead of red and blue flags? Thanks alot



    Quote:
    Originally Posted by Damizean View Post
    [TF2] Flags (1.0)
    by Damizean - 10/16/09

    What's this?
    This plugin allows to change the model for the Flags (Intel/Dossier) on a Capture the Flag map. I've also provided an example of a bike model (Model by Héctor Ariza, who agreed to release this for everyone to use).

    [IMG]http://img101.**************/img101/1197/capturethebiketf2bysefi.jpg[/IMG]

    Changelog
    Code:
    1.0
        - Initial release.
    How do I install it?
    Code:
    * Place the files in the zip on the correct folders:
        - The files placed at the gameserver folder should be
           placed in... well, your game server!
        - The files placed at the fastdownload folder should be
           placed in your fast download server.
    Cvars
    Code:
    - tf_flags_next - Forces the next map flag settings.
    Config Files
    The config file is located in "addons/sourcemod/configs/" under the name "tf2_flags.cfg".

    The structure of the file is as follows:
    PHP Code:
    // The section name determines the configuration for a determined map.
    // A section name of ctf_turbine will make this configuration to be
    // executed on this map. The section name of * means it's the global
    // configuration.
        
    // (Note: If any of these keys are commented, they'll be ignored)
    // (Note II: All the sound files paths should be written sans /sound/)

        
    "your map name"
        
    {
            
    // Both the models used for Red and Blu.
            
    "model-neutral"         "path to neutral model"
            "model-red"             "path to red flag model"
            "model-blu"             "path to blue flag model"
            
            
    // Should the models used drop the particles trail?
            
    "particles-neutral"     "0 - off / 1 - on"
            "particles-red"         "0 - off / 1 - on"
            "particles-blu"         "0 - off / 1 - on"
            
            
    // Sound to play when the flags are picked-up.
            
    "pickup-red"            "path to a sound (without the sound/ prefix)"
            "pickup-blu"            "path to a sound (without the sound/ prefix)"
            
            
    // Sound to play when a team caps the flag.
            
    "cap-red"             "path to a sound (without the sound/ prefix)"
            "cap-blu"             "path to a sound (without the sound/ prefix)"
            
            
    // Sounds to play when the flag drops or returns to base.
            
    "drop"                "path to a sound (without the sound/ prefix)"
            "return"              "path to a sound (without the sound/ prefix)"
        

    Example:
    PHP Code:
        // Default config for all maps ----------------------
        // (Note: If any of these keys are commented, they'll be ignored)
        // (Note II: All the sound files paths should be written sans /sound/)
        
    "*"
        
    {
            
    // Both the models used for Red and Blu.
            
    "model-neutral"            "models/rss-custom/bike/bike.mdl"
            "model-red"                "models/rss-custom/bike/bike.mdl"
            "model-blu"                "models/rss-custom/bike/bike.mdl"
            
            
    // Should the models used drop the particles trail?
            
    "particles-neutral"        "0"
            "particles-red"            "0"
            "particles-blu"            "0"
            
            
    // Sound to play when the flags are picked-up.
            
    "pickup-red"            "rss-custom/bike.mp3"
            "pickup-blu"            "rss-custom/bike.mp3"
            
            
    // Sound to play when a team caps the flag.
            //"cap-red"                ""
            //"cap-blu"                ""
            
            // Sounds to play when the flag drops or returns to base.
            //"drop"                ""
            //"return"                ""
        

    Resource files
    The plugin implements a resources precacher like the one in the Equipment Manager plugin. For every model file, it'll automatically search for a .res file with the same name, in wich every line is a dependency for the model.

    For example, with the model called "bike.mdl", the plugin will search for a file called "bike.mdl.res". It'll precache and add to the downloads table all the files listed on it:
    Code:
    models/rss-custom/bike/bike.mdl
    models/rss-custom/bike/bike.sw.vtx"
    models/rss-custom/bike/bike.vvd
    models/rss-custom/bike/bike.dx80.vtx
    models/rss-custom/bike/bike.dx90.vtx
    materials/models/rss-custom/bike/bike.vtf
    materials/models/rss-custom/bike/bike_blue.vtf
    materials/models/rss-custom/bike/bike_neutral.vtf
    materials/models/rss-custom/bike/bike.vmt
    materials/models/rss-custom/bike/bike_blue.vmt
    materials/models/rss-custom/bike/bike_neutral.vmt
    materials/models/rss-custom/bike/bike_pickedup.vmt
    materials/models/rss-custom/bike/bike_pickedup_blue.vmt
    materials/models/rss-custom/bike/bike_pickedup_neutral.vmt
    materials/models/rss-custom/bike/bike_radius.vmt
    The sound files will also be automatically precached and added to the download list automatically.

    Remember!
    Set the proper whitelist entries if you're going to use the bike on a pure server! The locations of the files are the ones listed above.

    cpgrules is offline
    Vader_666
    Member
    Join Date: Feb 2008
    Old 12-12-2009 , 14:52   Re: [TF2] Flags (1.0)
    Reply With Quote #9

    Hello,

    Thanks for this plugin, it is a very cool idea ;)
    I have a little problem : just one of the red or blue intel is custom... The other is the classic briefcase... Any idea ?
    Vader_666 is offline
    Vader_666
    Member
    Join Date: Feb 2008
    Old 12-12-2009 , 17:24   Re: [TF2] Flags (1.0)
    Reply With Quote #10

    Some news.

    After testing, comment the 3 particles lines solve the problem : the 2 intels are custom.
    Vader_666 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 10:11.


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