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

Unusual effects don't work on weapon ?!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erreur 500
Senior Member
Join Date: Aug 2012
Location: Paris, France
Old 10-22-2015 , 11:31   Unusual effects don't work on weapon ?!
Reply With Quote #1

Does anyone has an idea why since the last TF2 update (invasion), unusual effects on weapons don't work ?

I explain:
If you set unusual effects on player weapons, effect will appear the first time, but when you switch to an other weapon, effects will appear less than 1 sec and disappear ...
But if you look, the 3D character at the below left of your screen, it show the unusual effect! But there is no effect on your weapon ...

Else unusual effects work correctly on hat and misc.



Here a picture of the problem (first time = works):


When you switch (no effect on weapon):

Like you can see effect appear at the below left of your screen, but there is nothing on your item!


Code I used to test:
PHP Code:
#include <sourcemod>
#include <tf2>
#include <tf2_stocks>
#include <tf2items>




#define PLUGIN_NAME         "Unusual tf2item test"
#define PLUGIN_AUTHOR       "Erreur 500"
#define PLUGIN_DESCRIPTION    "Add Unusual effects on your weapons (test)"
#define PLUGIN_VERSION      "1.0"
#define PLUGIN_CONTACT      "[email protected]"

new Handle:g_hItem                     INVALID_HANDLE;


public 
Plugin:myinfo =
{
    
name        PLUGIN_NAME,
    
author      PLUGIN_AUTHOR,
    
description PLUGIN_DESCRIPTION,
    
version     PLUGIN_VERSION,
    
url         PLUGIN_CONTACT
};

public 
OnPluginStart()
{    
    
CreateConVar("unusualtest_version"PLUGIN_VERSION"Unusual test version"FCVAR_PLUGIN|FCVAR_NOTIFY|FCVAR_REPLICATED);

    
g_hItem TF2Items_CreateItem(OVERRIDE_ATTRIBUTES PRESERVE_ATTRIBUTES);
    
TF2Items_SetNumAttributes(g_hItem1);
}

public 
Action:TF2Items_OnGiveNamedItem(iClientString:classname[], iItemDefinitionIndex, &Handle:hItem)
{
    if(!
IsValidClient(iClient)) return Plugin_Continue;
    if(
IsFakeClient(iClient))    return Plugin_Continue;
    
    if(
iItemDefinitionIndex == 739 || iItemDefinitionIndex == 142// Blacklisted weapon due to crash.
        
return Plugin_Continue;
    
    if(
StrEqual(classname"tf_wearable"))
        return 
Plugin_Continue;
    

    
TF2Items_SetAttribute(g_hItem01342.0);
    
TF2Items_SetQuality(g_hItem4);
        
    
hItem g_hItem;
    return 
Plugin_Changed;    
}

stock bool:IsValidClient(iClient)
{
    if (
iClient <= 0) return false;
    if (
iClient MaxClients) return false;
    return 
IsClientInGame(iClient);


Ps: I use the last TF2Item snapshot.
__________________
My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

Need private plugin ? We can found an agreement !
Steam : Erreur 500

Last edited by Erreur 500; 10-22-2015 at 11:33.
Erreur 500 is offline
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 10-29-2015 , 09:24   Re: Unusual effects don't work on weapon ?!
Reply With Quote #2

For me it completely stopped working since the invasion update :/

Edit:Hello, found you on saigns helltower ^^

Last edited by DJPlaya; 10-29-2015 at 17:39.
DJPlaya is offline
Send a message via Skype™ to DJPlaya
Erreur 500
Senior Member
Join Date: Aug 2012
Location: Paris, France
Old 10-29-2015 , 15:33   Re: Unusual effects don't work on weapon ?!
Reply With Quote #3

Do I understand that valve has blocked unusual effects on weapon ...
__________________
My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

Need private plugin ? We can found an agreement !
Steam : Erreur 500
Erreur 500 is offline
SimplyJpk
Member
Join Date: Oct 2013
Location: Just Jump
Old 10-29-2015 , 22:07   Re: Unusual effects don't work on weapon ?!
Reply With Quote #4

I noticed this the other day, as far as I'm aware it still works just not on the client view.

So other people will still see the effect, you just won't.

Someone, feel free to correct me. I haven't experimented as I didn't have the time.
__________________
Code is Fun
If your plugin is broken, add me. If I have some free time I don't mind taking a look and fixing. (FreeTime lately is Limited).
SimplyJpk is offline
Erreur 500
Senior Member
Join Date: Aug 2012
Location: Paris, France
Old 10-31-2015 , 11:04   Re: Unusual effects don't work on weapon ?!
Reply With Quote #5

Right, I tested it ! So now, since the invasion update, you can't see your own unusual effects on weapons, but you can see other player effects!

__________________
My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

Need private plugin ? We can found an agreement !
Steam : Erreur 500
Erreur 500 is offline
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 10-31-2015 , 15:09   Re: Unusual effects don't work on weapon ?!
Reply With Quote #6

Quote:
Originally Posted by Erreur 500 View Post
You can't see your own unusual effects on weapons, but you can see other player effects!
Interesting, ive also tested these today, is there an quick fix in sight or will it be an
ServerCommand(sm_tsay client "U cant see your unusual but for others it works")
?

Last edited by DJPlaya; 10-31-2015 at 15:10.
DJPlaya is offline
Send a message via Skype™ to DJPlaya
StormishJustice
Member
Join Date: May 2015
Location: In a mysterious place.
Old 04-24-2016 , 18:09   Re: Unusual effects don't work on weapon ?!
Reply With Quote #7

Quote:
Originally Posted by Erreur 500 View Post
Do I understand that valve has blocked unusual effects on weapon ...
It's probably a bug, i used to make my wanga prick have an unusual effect but everytime i switch it disappears (for me as usual)

valve should really focus on fixing this but i think not because they're greedy.
__________________
StormishJustice is offline
Send a message via AIM to StormishJustice Send a message via Yahoo to StormishJustice Send a message via Skype™ to StormishJustice
Dragonisser
AlliedModders Donor
Join Date: Jan 2014
Location: Germany
Old 05-02-2016 , 09:28   Re: Unusual effects don't work on weapon ?!
Reply With Quote #8

Just drop the weapon and pick it up. Now everyone can see it.
Dragonisser 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