AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [TF2] Unusual effects 2.19 SQL (21/12/2015) (https://forums.alliedmods.net/showthread.php?t=205599)

Erreur 500 01-12-2013 09:17

[TF2] Unusual effects 2.19 SQL (21/12/2015)
 
17 Attachment(s)
Unusual effects




-------------------------------------------------------------------------


Because of VALVE restriction:
This plugin just add unusual effects on weapons, I don't have permission to add free unusual effects on hats, killstreak effects or australium items!



-------------------------------------------------------------------------





Last Change v2.19 (21/12/2015): Show log, Change : .sp and .smx. Use TF2 Item DB now!




Description


I publish this little plugin, to help admins who want add unusual effects on their players, donors or admins.
Players can choose qualities and unusual effects on their items (level = 100 ). Plugin auto saves player data in SQL DB.

Players can show current effect by selecting in the menu "Show effects" and will go on this site : http://bit.ly/l77777





How does it works ?


Write !unusual and select what you want on your current weapon.
Effects are directly added or deleted!

Players can be limited by flags:
- You can restrict the number of effects that a player with a flag (or without flag) can have, by editing unusual_permissions.cfg
- When a players lost his unusual effect flag, or has more effects than authorized by his flag, this plugin will delete all his effects!
- You can upgrade players, nothing will be deleted.
- You can restrict some unusual effects by editing flags in unusual_list.cfg
- If a player has an effect which need a flag to be used, it will lose his effect!

There is an admin tools in the menu, which allow you to add effects on a connected player or remove an unusual effect from player in DB. [/LEFT]


There is a fix for FF2 and VSH mod:
- If you run a FF2 server, this plugin will automatically block boss unusual effect update thanks to this enabled cvar : unusual_fix_ff2boss 1
- If you run a VSH server, you must force boss team, and use this CVAR to block unusual effect on this team : unusual_team_restriction

Command :
Quote:

!unusual

Admin Commands (flag generic) :
Code:

unusual_permissions            // Update permissions
unusual_control          //Control all player if they can still have unusual effects

Cvar :
Code:


unusual_team_restriction (def: 0 )    // 0 = no restriction, 1 = red, 2 = blue, can't have unusual effects
unusual_panel_flag (def: 0 )            // 0 = ADMFLAG_ROOT, 1 = ADMFLAG_GENERIC (Which flag can use it?)
unusual_fix_ff2boss (def: 1 )            // 0 = boss can have unusual effects, 1 = boss can't (Work only for FF2)
unusual_tag (def: 1 )            // 1 = Add 'unusual' tag, 0 = No




For Developer : Native functions
Spoiler



unusual_list.cfg
Spoiler



unusual_permissions.cfg
Spoiler


Warning: Due to an issue which we are not able to fix, only Valve can, I remove Gunslinger and Lollichop from the plugin.




Installation

unusual.smx in tf\addons\sourcemod\plugins
unusual.sp in tf\addons\sourcemod\scripting
unusual.inc in tf\addons\sourcemod\scripting\include
unusual.phrases in tf\addons\sourcemod\translations
unusual_list.cfg in tf\addons\sourcemod\configs
unusual_permissions.cfg in tf\addons\sourcemod\configs

If you want to use MySQL, copy/paste this in sourcemod/configs/databases.cfg. Replace by your own data.

PHP Code:

 
"unusual"
{
            
"driver"                          "mysql"
            "host"                            "YourHost"
            "database"                        "YourDatabaseName"
            "user"                            "Login"
            "pass"                            "PassWord"
           
//"timeout"                        "0"
           //"port"                           "0"


Else use SQLite and do nothing.


Need
SourceMod 1.7 or after
morecolors.inc
Tf2 Items (the last snapshot)
TF2 Items DB
If you want to convert your old database file (unusual_effects.txt) to the new DB SQLite or MySQL, You can use this tool : Unusual effects SQL converter


I'm alway open for any suggestion

Old versions http://bit.ly/1auTR2Z



Logs
Spoiler



BEFOR REPPORT A PROBLEM:

Quote:

My server Crash when I add an unusual effect !
No effect appear when I had one !

Are you using the last TF2ItemManager Snapshot !?
Quote:

Effect Menu or delete Menu don't appear !

Are you using the last Database of TF2iDB !? If not, Update the Database !
Quote:

I can see my unusual effect just 1 sec, and it disappear when I'm at third person !
But others players can see my effects !
Thank Valve !

Skyrider 01-12-2013 10:01

Re: [TF2] Unusuals effects
 
Effects on weapons works great, but when I chose new hat, and choose head or misc, nothing appears. The menu closes and does nothing.

Fearts 01-12-2013 10:05

Re: [TF2] Unusuals effects
 
The add new hat and add new weapons don't seem to do anything. Once I get to the head/misc or prim/sec the menu just closes.

Pootisbird 01-12-2013 10:12

Re: [TF2] Unusuals effects
 
Thats really nice! Thanks

Mr. Man 01-12-2013 10:33

Re: [TF2] Unusuals effects
 
Oh... God. It has begun. Is it possible to remove particle attachments to hats? I'd prefer not to give my donors that as an incentive since... I have morals?

PS: For those of you who don't like the inherent particle names and can't tell them apart, I've renamed them in the code snippet here:

Code:

PanelEffect(iClient)
{
        new Handle:UnusualMenu = CreateMenu(UnusualMenuAnswer);
        SetMenuTitle(UnusualMenu, "Select Unusual Effect");

        AddMenuItem(UnusualMenu, "1", "Particle 1 (Red)");
        AddMenuItem(UnusualMenu, "2", "Flying Bits");
        AddMenuItem(UnusualMenu, "3", "Nemesis Burst (Blue)");
        AddMenuItem(UnusualMenu, "4", "Community Sparkle");
        AddMenuItem(UnusualMenu, "5", "Holy Glow");
        AddMenuItem(UnusualMenu, "6", "Green Confetti");
        AddMenuItem(UnusualMenu, "7", "Purple Confetti");
        AddMenuItem(UnusualMenu, "8", "Haunted Ghost");
        AddMenuItem(UnusualMenu, "9", "Green Energy Plasma");
        AddMenuItem(UnusualMenu, "10", "Purple Energy Plasma");
        AddMenuItem(UnusualMenu, "11", "Circling TF Logo");
        AddMenuItem(UnusualMenu, "12", "Massed Flies");
        AddMenuItem(UnusualMenu, "13", "Burning Flame (Red)");
        AddMenuItem(UnusualMenu, "14", "Burning Flame (Blue)");
        AddMenuItem(UnusualMenu, "15", "Searing Plasma");
        AddMenuItem(UnusualMenu, "16", "Vivid Plasma");
        AddMenuItem(UnusualMenu, "17", "Sunbeams");
        AddMenuItem(UnusualMenu, "18", "Circling Peace Sign");
        AddMenuItem(UnusualMenu, "19", "Circling Heart");
        AddMenuItem(UnusualMenu, "20", "Stamp Pin");
        AddMenuItem(UnusualMenu, "28", "Pipe Smoke");
        AddMenuItem(UnusualMenu, "29", "Stormy Storm");
        AddMenuItem(UnusualMenu, "30", "Blizzardy Storm");
        AddMenuItem(UnusualMenu, "31", "Nuts and Bolts");
        AddMenuItem(UnusualMenu, "32", "Orbiting Planets");
        AddMenuItem(UnusualMenu, "33", "Orbiting Fire");
        AddMenuItem(UnusualMenu, "34", "Bubbling");
        AddMenuItem(UnusualMenu, "35", "Smoking");
        AddMenuItem(UnusualMenu, "36", "Steaming");
        AddMenuItem(UnusualMenu, "37", "Orbiting Flaming Lantern");
        AddMenuItem(UnusualMenu, "38", "Cloudy Moon");
        AddMenuItem(UnusualMenu, "39", "Cauldron Bubbles");
        AddMenuItem(UnusualMenu, "40", "Orbiting Eerie Fire");
        AddMenuItem(UnusualMenu, "43", "Knifestorm");
        AddMenuItem(UnusualMenu, "44", "Misty Skull");
        AddMenuItem(UnusualMenu, "45", "Harvest Moon");
        AddMenuItem(UnusualMenu, "46", "It's a Secret to Everybody");
        AddMenuItem(UnusualMenu, "47", "Stormy 13th Hour");

        SetMenuExitButton(UnusualMenu, true);
        DisplayMenu(UnusualMenu, iClient, MENU_TIME_FOREVER);
}

Copy and preplace the codes with this in the .sp file and recompile.

Oshizu 01-12-2013 11:20

Re: [TF2] Unusuals effects
 
Are you sure releasing plugin like that is okay?
Not that i don't like plugin. It's nice but valve may put some restrictions on tf2items related plugins. Same was when people abused 'attachables'

Mr. Man 01-12-2013 11:50

Re: [TF2] Unusuals effects
 
Nevermind. Looked through the code and realized the original .sp calls the TF2items plugin by its native name, not my renamed (name).

NameUser 01-12-2013 12:48

Re: [TF2] Unusuals effects
 
Valve will not like this.

Oshizu 01-12-2013 13:28

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Dispenz0r (Post 1872232)
Well, i've been using Advanced Give Item to give myself effects for a long time now, so why not this?

The diffrence between advanced give item and this is that. Purpose of this is clearly saying that it gives unusual effects to items and 'Advanced Give item' is thing that allows you to modify item attributes and eventualy you can use it to give effects. Also there were already 2 plugins posted that gived clients unusual effects throught !unusuals / !unusual / !effects command. They all were closed

Mr. Man 01-12-2013 13:29

Re: [TF2] Unusuals effects
 
2 Attachment(s)
For those who are concerned about the ethics of attaching particles to hats/miscs, I've attached a modified version below:

Changes:

1. Removed hats/misc section (ineffective anyways).
2. Removed class/slot selection (ineffective anyways).
3. Suppressed menu popup after particle application and removal.
4. Cleaned up phrases and made particle effects more recognizable.
5. Changed the command trigger from !unusual to !particle.
6. CVAR flag changed to particle_immunity (def: 0). Accepted flags: a, b, o, p, q, r, s, t or z. 0 = don't need flag

Please check whether I did the menus right. Also remove this post if it violates any Valve policies.

ReFlexPoison 01-12-2013 13:33

Re: [TF2] Unusuals effects
 
inb4removed?

Oshizu 01-12-2013 14:00

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Dispenz0r (Post 1872281)
But i love this ;_;

Let's hope atleast somebody will fix plugin and post it here with all features that didn't worked before this thread gets moved to 'Trash' :)

Mr. Man 01-12-2013 14:02

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Oshizu (Post 1872286)
Let's hope atleast somebody will fix plugin and post it here with all features that didn't worked before this thread gets moved to 'Trash' :)

I guess no one reads :P https://forums.alliedmods.net/showpo...0&postcount=11

Skippy 01-12-2013 14:03

Re: [TF2] Unusuals effects
 
Is there a way for the unusual effect to change on just going to the resupply cabinet This would help a lot because then when you change the effect and when you delete the effect you don't have to change classes.

Mr. Man 01-12-2013 14:05

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Skippy (Post 1872291)
Is there a way for the unusual effect to change on just going to the resupply cabinet and instead of changing your class back and forth.

No. TF2Items item effect changing behavior requires at least a weapon.txt reload. This one reloads the entire plugin.

Mr. Man 01-12-2013 14:06

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Dispenz0r (Post 1872296)
Damn, no effects for hats/miscs made me sad

I just changed the CVAR too. Done! And you can't apply it to hats/miscs if you want Valve to not crack down on it. It's already borderline.

Oshizu 01-12-2013 14:08

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Mr. Man (Post 1872289)

I've seen this but i've talked about fixed version with all features not with cutdown features. Your modified only allows to change particle and quality of weapons. Anyway it will function good as weapons quality & particles manager :P

Mr. Man 01-12-2013 14:10

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Oshizu (Post 1872304)
I've seen this but i've talked about fixed version with all features not with cutdown features. Your modified only allows to change particle and quality of weapons. Anyway it will function good as weapons quality & particles manager :P

Quote:

You can't apply it to hats/miscs if you want Valve to not crack down on it. It's already borderline.

Oshizu 01-12-2013 14:15

Re: [TF2] Unusuals effects
 
Somehow while discussing in this thread later i've forgot about Valve and possiblity for them to add restrictions about particles
My bad :down:

Mr. Man 01-12-2013 14:21

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Dispenz0r (Post 1872309)
Plugin failed to compile! Please try contacting the author.

Fixed. Forgot the online compiler doesn't have other necessary .incs.

Mr. Man 01-12-2013 15:37

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Dispenz0r (Post 1872360)
Thanks mate

I am testing it now and am getting higher latency than normal. Can someone check whether I have a handle that's not closed or something?

Erreur 500 01-12-2013 16:05

Re: [TF2] Unusuals effects
 
Ouah ... I didn't think this little plugin will create a polemic ! I just wanted to help administrator and give more fun for donator !

Quote:

Originally Posted by Skyrider (Post 1872128)
Effects on weapons works great, but when I chose new hat, and choose head or misc, nothing appears. The menu closes and does nothing.

I'm currently testing misc and weapon effect, and it works for me. Do you have an error ?


Else I'm agree with you Mr. Man I writed official particle name but it isn't explicit.
I will add cvar for enable or disable hat particle.

Quote:

Originally Posted by Mr. Man (Post 1872298)
I just changed the CVAR too. Done! And you can't apply it to hats/miscs if you want Valve to not crack down on it. It's already borderline.

Do you really think it's necessary to disable particule on hat ? Anyone will can modify this plugin and add particule on hat after !

NameUser 01-12-2013 16:07

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Erreur 500 (Post 1872394)
I'm currently testing misc and weapon effect

Yay! Hopefully we'll see something new in the future.

Leonardo 01-12-2013 16:59

Re: [TF2] Unusuals effects
 
@Erreur 500,
... approved TF2 Items Info plugin is too good?

Oshizu 01-12-2013 17:36

Re: [TF2] Unusuals effects
 
Changing particle effect of currently equipped weapons is working
But Add New Weapon
Add New Hat
Menus are closing after you choose Slot (example: Misc, PDA etc)

Quote:

Originally Posted by Leonardo (Post 1872433)
@Erreur 500,
... approved TF2 Items Info plugin is too good?

Maybe he didn't saw this :down:

Erreur 500 01-12-2013 17:57

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Leonardo (Post 1872433)
@Erreur 500,
... approved TF2 Items Info plugin is too good?

Yes I didn't know your plugin ... I will use your in the next version.

Mr. Man 01-12-2013 18:11

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Erreur 500 (Post 1872459)
Yes I didn't know your plugin ... I will use your in the next version.

No problem. Just wanted to make sure Valve/AM devs don't ding you for doing crazy things. By the way, can you check whether there are any errors in the version I uploaded? I would like to keep mine simple and limited only to weapons and the wording too.

Really appreciate what you're doing!

ReFlexPoison 01-12-2013 18:19

Re: [TF2] Unusuals effects
 
Don't see why you are using the key value structure of the tf2items config to change the effects of the items. (Plus reloading the plugin each time it's called (with ServerCommand))

Why not just use PrepareItemHandle stock in FlaminSarge's Give Weapon plugin and use OnGiveNamedItem and change the attributes there?

+ TF2ItemsInfo to determine item slot of iIndex.

cool_myll 01-14-2013 07:10

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Mr. Man (Post 1872260)
For those who are concerned about the ethics of attaching particles to hats/miscs, I've attached a modified version below:

Changes:

1. Removed hats/misc section (ineffective anyways).
2. Removed class/slot selection (ineffective anyways).
3. Suppressed menu popup after particle application and removal.
4. Cleaned up phrases and made particle effects more recognizable.
5. Changed the command trigger from !unusual to !particle.
6. CVAR flag changed to particle_immunity (def: 0). Accepted flags: a, b, o, p, q, r, s, t or z. 0 = don't need flag

Please check whether I did the menus right. Also remove this post if it violates any Valve policies.

Does Tf2 Items and ItemsGame Manager need any further setup? I put your version but it is acting very weird. Only works on some weapons and it put random effects instead of the choosed ones.

nineteeneleven 01-14-2013 08:06

Re: Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by cool_myll (Post 1873274)
Does Tf2 Items and ItemsGame Manager need any further setup? I put your version but it is acting very weird. Only works on some weapons and it put random effects instead of the choosed ones.

Same here

MaloModo 01-14-2013 10:47

Re: [TF2] Unusuals effects
 
I don't really see what the problem is with particles on hats. It only works on said server...so what is the big deal?

cool_myll 01-14-2013 12:01

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by MaloModo (Post 1873345)
I don't really see what the problem is with particles on hats. It only works on said server...so what is the big deal?

People will prefer donate to a server to have all unusuals.

Mr. Man 01-14-2013 14:01

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by nineteeneleven (Post 1873289)
Same here

Mine is a drag/drop plugin. No other configurations are needed. Make sure you are updated to the latest TF2Items snapshot downloadable here (newest version up top): http://vphysics.limetech.org/?project=tf2items

Chaosxk 01-14-2013 14:09

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by MaloModo (Post 1873345)
I don't really see what the problem is with particles on hats. It only works on said server...so what is the big deal?

Just that Valve frowns upon it.

Mr. Man 01-14-2013 14:11

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Chaosxk (Post 1873438)
Just that Valve frowns upon it.

And when they frown on it enough, they break it. And nobody will be able to use TF2Items ever again.

Leonardo 01-14-2013 14:36

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Mr. Man (Post 1873440)
And when they frown on it enough, they break it. And nobody will be able to use TF2Items ever again.

and then - everyone will give up on tf2 :mrgreen:

MaxOldPanda 01-14-2013 14:48

Re: [TF2] Unusuals effects
 
Tried it, it needs update, but works good at some point. But, after unloading plugin, deleting it, and even after server restart, particles/effects are saved (on my RL, degreaser etc.) No plugin and i have effects, why is that?

cool_myll 01-14-2013 14:51

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Mr. Man (Post 1873435)
Mine is a drag/drop plugin. No other configurations are needed. Make sure you are updated to the latest TF2Items snapshot downloadable here (newest version up top): http://vphysics.limetech.org/?project=tf2items

Installed the latest. Still the same problem.

Mr. Man 01-14-2013 14:58

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by cool_myll (Post 1873461)
Installed the latest. Still the same problem.

You also need this dependency: https://forums.alliedmods.net/showthread.php?t=154480

Dr. McKay 01-14-2013 15:15

Re: [TF2] Unusuals effects
 
Quote:

Originally Posted by Mr. Man (Post 1873440)
And when they frown on it enough, they break it. And nobody will be able to use TF2Items ever again.

I honestly think that this plugin needs to be removed. We all saw what happened with Attachables. If Valve breaks TF2Items, many many many custom gamemodes (vs. Saxton Hale, Randomizer, Freak Fortress 2) will be broken.


All times are GMT -4. The time now is 21:07.

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