Raised This Month: $52 Target: $400
 13% 

[TF2] Weapon Inspection


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xXDeathreusXx
Veteran Member
Join Date: Mar 2013
Location: *pPlayer->GetOrigin()
Plugin ID:
4716
Plugin Version:
1.0.5
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This simple plugin allows you to inspect any weapon
    Old 07-07-2015 , 14:40   [TF2] Weapon Inspection
    Reply With Quote #1

    A simple little plugin that I've only found 1 of, and that one had some issues, such as not being able to restrict it to admins, and not being able to outright disable it.

    ConVar's
    • sm_wepinspect_version - Don't touch this
    • sm_wepinspect_enabled - (0-1) Enables or disables the plugin
    • sm_weapinspect_fntblock - (0-1) Block inspection of food and throwable items

    Requires TF2 Attributes

    Override:
    "inspect_admin"

    At some point, I suspect Valve may allow normal weapons to be inspected, but until then, this will do
    Attached Files
    File Type: smx wepinspect.smx (5.6 KB, 1412 views)
    File Type: sp Get Plugin or Get Source (wepinspect.sp - 874 views - 2.6 KB)
    __________________
    Plugins|Steam Group|Profile
    I can do coding and even take requests, but I don't do a bit of modeling

    I'm a smartass by nature, get used to it

    Last edited by xXDeathreusXx; 12-25-2015 at 04:35. Reason: Update
    xXDeathreusXx is offline
    Send a message via Skype™ to xXDeathreusXx
    93SHADoW
    AlliedModders Donor
    Join Date: Jul 2014
    Location: Houston, TX
    Old 07-07-2015 , 19:07   Re: [TF2] Weapon Inspection
    Reply With Quote #2

    Should mention, some weapons may show a bugged "inspect" view, but works a charm for the most part.
    __________________
    93SHADoW is offline
    Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
    AeroAcrobat
    AlliedModders Donor
    Join Date: Apr 2011
    Location: lives in a circus
    Old 07-07-2015 , 20:02   Re: [TF2] Weapon Inspection
    Reply With Quote #3

    this [TF2] Inspect All ?
    __________________

    Last edited by AeroAcrobat; 07-07-2015 at 20:02.
    AeroAcrobat is offline
    KniL
    Senior Member
    Join Date: Jun 2012
    Old 07-07-2015 , 22:48   Re: [TF2] Weapon Inspection
    Reply With Quote #4

    4 days late?
    KniL is offline
    rakion99
    Junior Member
    Join Date: Feb 2015
    Location: ERROR 451 Unavailable Fo
    Old 07-07-2015 , 22:52   Re: [TF2] Weapon Inspection
    Reply With Quote #5

    looks like a copy paste from Inspect all just with cvars
    rakion99 is offline
    xXDeathreusXx
    Veteran Member
    Join Date: Mar 2013
    Location: *pPlayer->GetOrigin()
    Old 07-08-2015 , 00:21   Re: [TF2] Weapon Inspection
    Reply With Quote #6

    Except I didn't copy anything, I typed everything in except Plugin myinfo because I keep a template of that around

    A funny note: It's possible to inspect food and thrown items, I'm not sure if I'm gonna keep this in or filter them out, it's hilarious
    __________________
    Plugins|Steam Group|Profile
    I can do coding and even take requests, but I don't do a bit of modeling

    I'm a smartass by nature, get used to it

    Last edited by xXDeathreusXx; 07-08-2015 at 00:22.
    xXDeathreusXx is offline
    Send a message via Skype™ to xXDeathreusXx
    xXDeathreusXx
    Veteran Member
    Join Date: Mar 2013
    Location: *pPlayer->GetOrigin()
    Old 07-08-2015 , 01:32   Re: [TF2] Weapon Inspection
    Reply With Quote #7

    Eh, I went ahead and made a cvar controllable blocking of food or throwables, and fixed a copy paste error where I left out cvar descriptions, OP updated
    __________________
    Plugins|Steam Group|Profile
    I can do coding and even take requests, but I don't do a bit of modeling

    I'm a smartass by nature, get used to it
    xXDeathreusXx is offline
    Send a message via Skype™ to xXDeathreusXx
    NickischLP
    Senior Member
    Join Date: Jun 2013
    Location: Germany
    Old 07-09-2015 , 11:50   Re: [TF2] Weapon Inspection
    Reply With Quote #8

    You forgot to block the scout drinks and the jarate
    __________________
    NickischLP is offline
    Send a message via Skype™ to NickischLP
    xXDeathreusXx
    Veteran Member
    Join Date: Mar 2013
    Location: *pPlayer->GetOrigin()
    Old 07-09-2015 , 13:36   Re: [TF2] Weapon Inspection
    Reply With Quote #9

    Quote:
    Originally Posted by NickischLP View Post
    You forgot to block the scout drinks and the jarate
    "tf_weapon_lunchbox_drink" "tf_weapon_jar"

    Unless the AM wiki on item indexes is wrong about the classname of jarate and bonk
    __________________
    Plugins|Steam Group|Profile
    I can do coding and even take requests, but I don't do a bit of modeling

    I'm a smartass by nature, get used to it
    xXDeathreusXx is offline
    Send a message via Skype™ to xXDeathreusXx
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 07-09-2015 , 14:24   Re: [TF2] Weapon Inspection
    Reply With Quote #10

    Quote:
    Originally Posted by xXDeathreusXx View Post
    "tf_weapon_lunchbox_drink" "tf_weapon_jar"

    Unless the AM wiki on item indexes is wrong about the classname of jarate and bonk
    Those should be correct. I know the bonk one still is due some item testing stuffs I was doing.

    Speaking of which, I should update that with the new weapons if someone didn't already.

    Also, the new "class" for taunts (which is "no_entity". Yes, really.).

    However, I'm about to leave, so if I do update it, it won't be for a bit.
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    Reply


    Thread Tools
    Display Modes

    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 23:33.


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