Description: Add Chosen Unusual Effects to your Projectiles. Comes with built in menu support, automatic updating, mysql/sqlite support, and donator support.
Menu Support:
Spoiler
Effects Menu:
Admin Menu:
Commands:
uae - Opens the effects selection menu.
ua_update - Forces a check for an update.
ua_reload - Reloads the effects config file.
Convars: (Automatically Written to unusual_arrows.cfg in your tf/cfg/sourcemod/ folder.)
ua_enabled (Default: 1) - Enables/Disables the plugin.
ua_autoupdate (Default: 1) - Enables/Disables the automatic update feature of this plugin.
ua_reloadupdate (Default: 1) - Enables/Disables automatically reloading the plugin after installing an update.
ua_disabledeffects (Default: "") - Disables listed effects based on their effect number. Seperate each with a comma. (Ex. "1,2,3,4" will disable effects 1, 2, 3, and 4. See List of effect numbers below.)
ua_adminflag (Default: "") - Decides what flag is required to use the plugin at all.
ua_donatorflag (Default: "") - Decides what flag is required to have access to specified donator effects.
ua_disabledproj (Default: "") - Disables listed projectiles from receiving effects. Seperate each with a comma. (Ex. "tf_projectile_rocket" will disable rockets.)
Effects List:
Spoiler
Code:
Effect # | Effect Name
1 | Community Sparkle
2 | Green Confetti
3 | Purple Confetti
4 | Haunted Ghosts
5 | Green Energy
6 | Purple Energy
7 | Massed Flies
8 | Burning Flames
9 | Scorching Flames
10 | Searing Plasma
11 | Vivid Plasma
12 | Sunbeams
13 | Stormy Storm
14 | Blizzardy Storm
15 | Nuts N' Bolts
16 | Orbiting Fire
17 | Bubbling
18 | Smoking
19 | Steaming
20 | Cauldron Bubbles
21 | Eerie Orbiting Fire
22 | Stormy 13th Hour
23 | Kill-A-Watt
24 | Terror-Watt
25 | Cloud-9
26 | Miami Nights
27 | Disco Beat Down
28 | Phosphorous
29 | Sulphorous
30 | Memory Leak
31 | Overclocked
32 | ElectroStatic
33 | Power Surge
34 | Anti-Freeze
35 | Time Warp
36 | Green Black Hole
37 | Roboactive
38 | Arcana
39 | Spellbound
40 | Ghastly Ghosts Jr.
41 | Haunted Phantasm Jr.
42 | Frostbite
43 | Abduction
44 | Electric Hat Protector
45 | Magnetic Hat Protector
46 | Voltaic Hat Protector
47 | Galactic Codex
48 | Ancient Codex
49 | Nebula
50 | Death by Disco
51 | It's a Mystery to Everyone
52 | It's a Puzzle to Me
53 | Ether Trail
54 | Nether Trail
55 | Ancient Eldritch
56 | Eldritch Flame
Compilation Instructions:
Download unusual_arrows.sp
Download Updater.inc and place it in your includes folder
Download morecolors.inc and place it in your includes folder
Compile the plugin.
Installation Instructions:
Download unusual_arrows.zip and extract to a folder.
Place unusual_arrows.smx into your server's plugin folder.
Place ua_effects.default.cfg in your sourcemod configs folder.
Place ua_effects.custom.cfg in your sourcemod configs folder and edit to your liking. (Format is same as ua_effects.default.cfg)
Place unusual_arrows.phrases.txt in your sourcemod translations folder.
Place the below code into your Databases.cfg file. (If you have mysql, it is recommended, otherwise use sqlite.)
*Optional* Install updater for automatic update support.
Database Info
Spoiler
MYSQL
Code:
"ua"
{
"driver" "mysql"
"host" "<Your Host>"
"database" "<Your DB Name>"
"user" "<Your DB User>"
"pass" "<Your DB User Pass>"
//"timeout" "0"
"port" "3306"
}
SQLITE
Code:
"ua"
{
"driver" "sqlite"
"database" "ua"
}
How to Edit Ua.Effects.Custom.cfg... (DO NOT EDIT ua.effect.default.cfg)
Spoiler
Code:
"Effects"
{
//If I want to edit the Community Sparkle Effect I do it in here.
"0" //This is the effect number I want to edit
{
"name" "Community Sparkle" //Custom NAme of the Effect
"particle" "community_sparkle" //Particle System NAme of the Effect.
"donator" "1" //Do you want this effect to be donator? 1 = true. 0 = false.
}
//Editing the Holy Glow Effect
"1"
{
"name" "Holy Glow"
"particle" "halopoint"
"donator" "1"
}
//If I want to add new effects start with an effect id after the default effects
"57"
{
"name" "<Name goes here>" //Name of your new effect
"particle" "<Particle System Name>" //Name of the tf2 particle system.
"donator" "0/1" //Donator effect?
}
"58" //Another One
{
"name" "<Name goes here>" //Name of your new effect
"particle" "<Particle System Name>" //Name of the tf2 particle system.
"donator" "0/1" //Donator effect?
}
}
Changelog:
Code:
V1.1.0 (5/12/16)
Added full SQL support into plugin. You will need to add database info into your databases.cfg
Changed command /ua_effects into /uae for easier access to the effects menu
Updated Syntax of the plugin.
Removed Holy Glow effect from the plugin.
Added PER PROJECTILE customization. You can now have a different effect on every one of your projectiles.
Chosen effects are saved into the database.
Added ability for a user to disable their Projectile effects.
Added "No Effect" as an option.
V1.0.1 (5/10/16) -
Added support for all projectiles.
Added ua_disabledproj, which allows you to disable chosen projectiles.
So, basically, this is Projectile Particles, but only for arrows, with a menu, an automatic updater and a donator system, at this point you could just create a whole plugin for every projectile instead of JUST one.
I'm still learning the syntax behind the code, I use a lot of old plugins to learn what I know so far.
Same here! I'm more used to the old syntax though, but I'm just now learning how to convert the source code of all my old plugins over to the new syntax.
L 05/12/2016 - 20:17:24: Info (map "cp_orange_superfort_tbrv3") (file "errors_20160512.log")
L 05/12/2016 - 20:17:24: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:17:24: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:17:24: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:17:24: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:17:24: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:17:24: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:17:24: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:17:24: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:22:53: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:22:53: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:22:53: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:22:53: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:22:54: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:22:54: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:22:54: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:22:54: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:22:54: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:22:54: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:22:54: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:22:54: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:22:55: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:22:55: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:22:55: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:22:55: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:22:57: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:22:57: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:22:57: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:22:57: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:22:59: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:22:59: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:22:59: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:22:59: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:23:00: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:23:00: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:23:00: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:23:00: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:23:01: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:23:01: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:23:01: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:23:01: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:23:01: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:23:01: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:23:01: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:23:01: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:23:02: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:23:02: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:23:02: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:23:02: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()
L 05/12/2016 - 20:23:14: [SM] Plugin encountered error 15: Array index is out of bounds
L 05/12/2016 - 20:23:14: [SM] Displaying call stack trace for plugin "unusual_arrows.smx":
L 05/12/2016 - 20:23:14: [SM] [0] Line 1031, unusual_arrows.sp::AddParticle()
L 05/12/2016 - 20:23:14: [SM] [1] Line 1014, unusual_arrows.sp::Unusualify()