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

[TF2] tNoUnlocksPls v0.4.8 (2013-02-10)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Thrawn2
Veteran Member
Join Date: Apr 2009
Plugin ID:
1994
Plugin Version:
0.4.8
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Replaces unlockable weapons with their original counterpart.
    Old 10-08-2010 , 12:04   [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
    Reply With Quote #1

    What? Another one?
    It is basically the same as many other unlock replacement plugins, it blocks players from using a specific weapon.
    This plugin is using the UnlockBlock or the TF2Items extension if they are loaded. Otherwise it tries to do its best with SourceMod itself.

    Known Issues:
    If possible and if it's currently working use the UnlockBlock extension as it provides the best results. If you are using one of the other methods the following issues will occur:
    • Although set hats may be blocked their attributes will still be active.
    • Some weapons will have the ammo of the weapon they replaced.
    • The viewmodel of some weapons may block your field of view.

    Cvars:
    A config will be auto-generated on first run, located in your cfg/sourcemod folder. Change any permanent settings there.
    • sm_tnounlockspls_enable - enables, disables the plugin
    • sm_tnounlockspls_default - set to 1 to replace weapons by default, set to 0 to keep weapons by default. This cvar inverts what you have configured ingame.
    • sm_tnounlockspls_blocksets - set to 1 to remove hats that would complement a set giving attributes. (default 0).
    • sm_tnounlockspls_blockstrange - set to 1 to block those annoying strange weapons. (default 0).
    • sm_tnounlockspls_cfgfile - File to store configuration in
    • sm_tnounlockspls_announce - (0/1) Announces the removal of weapons/attributes

    Configuration:
    This is done ingame. The plugin hooks itself into the admin menu, where you can enable/disable (depending on sm_tnounlockspls_default) unlocks. There is no sm_toggleunlock command anymore.
    To make sure everything works as it should, follow the rule of thumb and change the map after you've made changes to the tNoUnlocksPls configuration.

    Translations:
    This plugin comes with translations for every language valve implemented. I will update them shortly after valve releases an update. Feel free to use them in your own project.

    Installation:
    • Just unpack the whole zip into the correct folders.
    • This has support for Updater built in.
    • If you want to compile this yourself you'll also need the colors include by exvel.
    • For some of the modules the smlib by berni is needed, as well as the corresponding extension includes.

    Why so many plugins?
    Basically, because it's easier to maintain them and easier to add new things.
    • tNoUnlocksPls.smx
      This is the core plugin. It's responsible for configuring which weapons are blocked and provides natives and forwards for other plugins to interact with it. This is the absolute minimum, but won't do anything alone - as there is no plugin actually blocking any weapons.
    • tNoUnlocksPls.announce.smx
      This is only used so players get informed that their weapons have been replaced. It prints the name of the weapon in the chat.
    • tNoUnlocksPls.menu.smx
      Allows to configure the core easily via adminmenu.
    • tNoUnlocksPls.noext.smx
      This is a plugin that actually blocks weapons, but only if none of the other two are available. It is trying to get the best results by only using sourcemod method calls, so you won't need an extension. This only works partially and some attributes might stick to the players.
    • tNoUnlocksPls.tf2items.smx
      This is a plugin that actually blocks weapons, but only if the vanillaweps one is not available. This is using TF2Items to replace weapons with their default counterparts. It generally works better than the sourcemod version, but some attributes might stick to the players as well.
    • tNoUnlocksPls.vanillaweps.smx
      This would be the best choice of plugin for the actual blocking of weapons, but its extension is currently broken. Don't install the extension or your server will most likely crash.

    Changelog:
    Can be found here.
    Attached Files
    File Type: sp Get Plugin or Get Source (tNoUnlocksPls.announce.sp - 653 views - 1.2 KB)
    File Type: sp Get Plugin or Get Source (tNoUnlocksPls.menu.sp - 650 views - 3.7 KB)
    File Type: sp Get Plugin or Get Source (tNoUnlocksPls.noext.sp - 634 views - 3.3 KB)
    File Type: sp Get Plugin or Get Source (tNoUnlocksPls.vanillaweps.sp - 717 views - 1.9 KB)
    File Type: inc tNoUnlocksPls.inc (1.3 KB, 826 views)
    File Type: sp Get Plugin or Get Source (tNoUnlocksPls.tf2items.sp - 748 views - 3.7 KB)
    File Type: zip tNoUnlocksPls_0.4.8.zip (155.6 KB, 2368 views)
    File Type: sp Get Plugin or Get Source (tNoUnlocksPls.sp - 712 views - 25.8 KB)
    __________________
    einmal mit profis arbeiten. einmal.

    Last edited by Thrawn2; 02-10-2013 at 07:33. Reason: Updated to v0.4.8 - Fixed values being overwritten by prefabs
    Thrawn2 is offline
    snelvuur
    Veteran Member
    Join Date: Jun 2008
    Location: Netherlands
    Old 10-08-2010 , 20:50   Re: [TF2] tNoUnlocksPls v0.0.2 (2010-10-08)
    Reply With Quote #2

    It says "no weapons found" when i press the menu. I did copy all off the files over and installed the tf2items, both are running, no errors there.
    snelvuur is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 10-09-2010 , 04:01   Re: [TF2] tNoUnlocksPls v0.0.2 (2010-10-08)
    Reply With Quote #3

    sry, i've named one of the cfg files incorrectly in the zip :[
    either rename your configs/tNoUnlockPls.cfg to tNoUnlocksPls.cfg or use the updated zip.
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    snelvuur
    Veteran Member
    Join Date: Jun 2008
    Location: Netherlands
    Old 10-09-2010 , 16:37   Re: [TF2] tNoUnlocksPls v0.0.2 (2010-10-08)
    Reply With Quote #4

    Well other plugins remove the weapon, but then you need to change your loadout. This way you dont have too.. (at least thats my thoughts about it)
    snelvuur is offline
    MjrNuT
    SourceMod Donor
    Join Date: Feb 2008
    Location: Under the Beaming CA Sun
    Old 10-11-2010 , 12:20   Re: [TF2] tNoUnlocksPls v0.0.2 (2010-10-08)
    Reply With Quote #5

    Sorry for the basic question here.

    Natasha to be replaced. This means when a Player spawns with Nat, they will see a Nat model, but it will have the MiniGun attributes?

    DH and Black Box == Attributes of RL (as stated in OP)?

    Backburner or DGreaser == FlameThrower?

    Thanks any help in my understanding here as I'd like to be prepared in how to communicate to the player base what happens.
    __________________
    Flames and Ash Gaming
    Addon: SM v1.4.0-dev MM 1.8.5-dev
    Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
    MjrNuT is offline
    snelvuur
    Veteran Member
    Join Date: Jun 2008
    Location: Netherlands
    Old 10-11-2010 , 12:24   Re: [TF2] tNoUnlocksPls v0.0.2 (2010-10-08)
    Reply With Quote #6

    Yes, thats basicly it. Sandvich is gone ofcourse, since you cant really replace that with a shotgun, as stated in the beginning posts i believe.
    __________________
    Arguing with a fool only proves there are two
    snelvuur is offline
    tatercrisp
    SourceMod Donor
    Join Date: Mar 2008
    Location: Chicken Coop
    Old 10-12-2010 , 20:49   Re: [TF2] tNoUnlocksPls v0.0.2 (2010-10-08)
    Reply With Quote #7

    What admin flag is required to toggle menu?
    tatercrisp is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 10-13-2010 , 05:38   Re: [TF2] tNoUnlocksPls v0.0.3 (2010-10-13)
    Reply With Quote #8

    Quote:
    Originally Posted by tatercrisp View Post
    What admin flag is required to toggle menu?
    You'll need root access. Same goes for the sm_toggleunlock cmd.

    Quote:
    Originally Posted by mega` View Post
    Nice plugin, but what's the point of keeping the models and sounds of replaced weapons?
    They look nice. They sound nice. They just don't play nice.

    Quote:
    Originally Posted by mega` View Post
    Is there a way to make it replace all weapons including their models and sounds?
    Yes, i've added a new cvar, see original post.


    I've added an git repository for this plugin, access here.
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    tatercrisp
    SourceMod Donor
    Join Date: Mar 2008
    Location: Chicken Coop
    Old 10-13-2010 , 18:27   Re: [TF2] tNoUnlocksPls v0.0.3 (2010-10-13)
    Reply With Quote #9

    How can i change access flag to something other than root or can you add a cvar?
    tatercrisp is offline
    athemil
    Junior Member
    Join Date: Oct 2010
    Old 10-16-2010 , 08:32   Re: [TF2] tNoUnlocksPls v0.0.3 (2010-10-13)
    Reply With Quote #10

    somehow it's not replaces the sydney sleeper but it replaces the natasha... some bug or wat? btw good plug
    athemil 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 06:23.


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