|
Author
|
|
|
SourceMod Donor
|
|
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
|
|
|

10-15-2009
, 22:16
[TF2] Flags (1.1) / Last Updated: 01/11/10
|
#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.
__________________
Last edited by Damizean; 01-11-2010 at 09:03.
|
|
|
|