AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   Unusual effects don't work on weapon ?! (https://forums.alliedmods.net/showthread.php?t=273590)

Erreur 500 10-22-2015 11:31

Unusual effects don't work on weapon ?!
 
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):
http://i60.tinypic.com/2jbtu9d.jpg

When you switch (no effect on weapon):
http://i61.tinypic.com/6jop79.jpg
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.

DJPlaya 10-29-2015 09:24

Re: Unusual effects don't work on weapon ?!
 
For me it completely stopped working since the invasion update :/

Edit:Hello, found you on saigns helltower ^^

Erreur 500 10-29-2015 15:33

Re: Unusual effects don't work on weapon ?!
 
Do I understand that valve has blocked unusual effects on weapon ...

SimplyJpk 10-29-2015 22:07

Re: Unusual effects don't work on weapon ?!
 
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.

Erreur 500 10-31-2015 11:04

Re: Unusual effects don't work on weapon ?!
 
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!

http://i67.tinypic.com/2djox7k.jpg

DJPlaya 10-31-2015 15:09

Re: Unusual effects don't work on weapon ?!
 
Quote:

Originally Posted by Erreur 500 (Post 2358386)
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")
?

StormishJustice 04-24-2016 18:09

Re: Unusual effects don't work on weapon ?!
 
Quote:

Originally Posted by Erreur 500 (Post 2357829)
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.

Dragonisser 05-02-2016 09:28

Re: Unusual effects don't work on weapon ?!
 
Just drop the weapon and pick it up. Now everyone can see it.


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

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