Raised This Month: $51 Target: $400
 12% 

[TF2]Invisible Weapon Fixer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
kgbproject
Member
Join Date: Nov 2014
Location: Russia
Plugin ID:
5654
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Solves problem with invisible weapons of players.
    Old 06-11-2017 , 04:37   [TF2]Invisible Weapon Fixer
    Reply With Quote #1

    Invisible Weapon Fixer

    Fixes problem what makes weapons of player invisible.





    Installation:
    -Put in plugins folder
    -Restart or type sm plugins load invisfix in server console
    -Respawn and fun with yours weapons
    Attached Files
    File Type: sp Get Plugin or Get Source (invisfix.sp - 1751 views - 872 Bytes)
    __________________
    Steam
    Making SM plugins for TF2 for money. PM in Steam.

    Last edited by kgbproject; 06-11-2017 at 04:42.
    kgbproject is offline
    ThatKidWhoGames
    Veteran Member
    Join Date: Jun 2013
    Location: IsValidClient()
    Old 06-11-2017 , 11:11   Re: [TF2]Invisible Weapon Fixer
    Reply With Quote #2

    Thanks for this!
    ThatKidWhoGames is offline
    xXDeathreusXx
    Veteran Member
    Join Date: Mar 2013
    Location: pPlayer->GetOrigin();
    Old 01-26-2018 , 19:25   Re: [TF2]Invisible Weapon Fixer
    Reply With Quote #3

    I was about to comment on this being illegal until I looked at the source code and realized what you meant by fixing invisible weapons
    __________________
    Plugins|Profile
    Requests closed

    I'm a smartass by nature, get used to it
    xXDeathreusXx is offline
    MrFrenzoid
    Junior Member
    Join Date: Jul 2019
    Old 08-06-2020 , 05:45   Re: [TF2]Invisible Weapon Fixer
    Reply With Quote #4

    Hello! This plugin is great! but due that after an update issued around 2014 - 2015, the TF2_RegeneratePlayer function changes slightly, slightly enough that if its bound to player_spawn, it will make minions switch teams the moment they spawn on any vsh / ff2 server, to fix that i've made some changes on the plugin, heres the fixed version:

    PHP Code:
    #include <sourcemod>
    #include <sdktools>
    #include <tf2>
    #include <tf2_stocks>

    public Plugin myinfo 
    {
        
    name "invisiwepfix",
        
    author "Frenzoid",
        
    description "Fixes invisible weapons.",
        
    version "2.0",
        
    url "sourcemod.net"
    };

    public 
    void OnPluginStart()
    {
        
    HookEvent("teamplay_round_start"Fix_FunctionEventHookMode_Post);
    }

    public 
    Action Fix_Function(Event eEvent, const char[] sNamebool bDontBroadcast)
    {
        for (new 
    1<= MaxClientsi++)
        {
            if (
    IsClientInGame(i) && (!IsFakeClient(i)) && IsPlayerAlive(i))
            {
                
    TF2_RemoveAllWeapons(i);
                
    TF2_RegeneratePlayer(i);
            }
        }

    Best regards!
    MrFrenzoid 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 11:14.


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