Raised This Month: $ Target: $400
 0% 

[TF2] Weapon Restrictions


Post New Thread Reply   
 
Thread Tools Display Modes
Verty
New Member
Join Date: Sep 2014
Location: Queensland
Old 09-01-2014 , 06:06   Re: [TF2] Weapon Restrictions
Reply With Quote #41

Hi All, Not sure if anyone wants it and given the type of scripting here I am not sure if anyone would use it. However while this plugin was fantastic and did everything I needed it to I knew it would be an arduous task to write out all the functions myself, particularly because I was going to create a blacklist which denied crafted weapons (going for a stock and unlock only server allowing cosmetic items and weapons).

Because of this I wrote a powershell script to output a CFG file for me. I have tested it on my own server and it works. Currently all it does is take a look at a .CSV file that you have and asks if you want a blacklist or a whitelist (and asks for the filename/restriction name you want) then it outputs the CFG. I also have a CSV file of all the weapons and indexes so you can essentially just remove what you want.

I can post full instructions and the script if anyone wants it. Or the creator of the plugin wants it. it should run on any machine that has powershell 2 or better (so any machine that is windows 7 or better). Also since it is a powershell script it is not compiled so anyone can view the source.

If anyone wants it PM me, if enough people want it I'll upload it.
Verty is offline
Sigara
Member
Join Date: Apr 2014
Old 09-18-2014 , 21:59   Re: [TF2] Weapon Restrictions
Reply With Quote #42

I have issues trying to ban scout pistols I tried index and tf_weapon_pistol_scout but It refuses to be banned also Lugermorph that also falls under pistol_scout.

Edit:Nvm I think,I must look into this more but it works sometime after unlike other weapons.
__________________

Last edited by Sigara; 09-18-2014 at 23:50.
Sigara is offline
VintageEpicFail
Senior Member
Join Date: Feb 2012
Location: Straya
Old 10-05-2014 , 03:51   Re: [TF2] Weapon Restrictions
Reply With Quote #43

I was wondering if there will be an update to have admin immunity to these weapon restrictions? If not, could someone point me towards a plugin that will have weapon restrictions but also admin immunity?

Thanks
VintageEpicFail is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-31-2014 , 11:12   Re: [TF2] Weapon Restrictions
Reply With Quote #44

I know I'm not really doing anything with this plugin any more, but if you still use it, you'll need this gamedata file.
Attached Files
File Type: txt equipwearable.txt (323 Bytes, 269 views)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
VintageEpicFail
Senior Member
Join Date: Feb 2012
Location: Straya
Old 10-31-2014 , 18:17   Re: [TF2] Weapon Restrictions
Reply With Quote #45

Quote:
Originally Posted by Powerlord View Post
I know I'm not really doing anything with this plugin any more, but if you still use it, you'll need this gamedata file.
Would you be able to add admin immunity?
VintageEpicFail is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 11-01-2014 , 03:55   Re: [TF2] Weapon Restrictions
Reply With Quote #46

Quote:
Originally Posted by VintageEpicFail View Post
Would you be able to add admin immunity?
You should probably read what you quoted.
Drixevel is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-31-2014 , 20:24   Re: [TF2] Weapon Restrictions
Reply With Quote #47

New version of the plugin, debating whether I want to maintain it or not so I'm posting it here for now.
  • Added weapon replacements.
  • Added native to change configs via code.
  • Fixed buildable options in configs.

Don't remember if I did anything else as this was a while ago.

Required External Includes:
Code:
#include <tf2items>
#include <morecolors>
#include <tf2itemsinfo>
#include <tf2attributes>
#include <tf2items_giveweapon>
Attached Files
File Type: sp Get Plugin or Get Source (tf2-weapon-restrictions.sp - 577 views - 17.0 KB)
File Type: smx tf2-weapon-restrictions.smx (17.8 KB, 767 views)
File Type: inc tf2-weapon-restrictions.inc (3.0 KB, 688 views)
Drixevel is offline
VintageEpicFail
Senior Member
Join Date: Feb 2012
Location: Straya
Old 01-02-2015 , 07:27   Re: [TF2] Weapon Restrictions
Reply With Quote #48

Quote:
Originally Posted by r3dw3r3w0lf View Post
New version of the plugin, debating whether I want to maintain it or not so I'm posting it here for now.
  • Added weapon replacements.
  • Added native to change configs via code.
  • Fixed buildable options in configs.

Don't remember if I did anything else as this was a while ago.

Required External Includes:
Code:
#include <tf2items>
#include <morecolors>
#include <tf2itemsinfo>
#include <tf2attributes>
#include <tf2items_giveweapon>
Thanks, would you be able to add admin immunity?
VintageEpicFail is offline
SuperU
Member
Join Date: Feb 2014
Location: Panama
Old 03-22-2015 , 02:08   Re: [TF2] Weapon Restrictions
Reply With Quote #49

Any idea how to solve this spamm?

[SM] Displaying call stack trace for plugin "jailbreak\tf2-weapon-restrictions.smx":
[0] Line 551, tf2-weapon-restrictions.sp::Timer_ReplaceWeapon()
SuperU is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 04-03-2015 , 05:47   Re: [TF2] Weapon Restrictions
Reply With Quote #50

New version which offers compatibility with TF2IDB.

It's recommended to use this version over the older ones as TF2IDB is more stable than TF2ItemsInfo.

Same ConVars, requirements aside from the replacement, etc.
Attached Files
File Type: smx tf2-weapon-restrictions.smx (18.7 KB, 437 views)
File Type: sp Get Plugin or Get Source (tf2-weapon-restrictions.sp - 376 views - 17.0 KB)
File Type: inc tf2-weapon-restrictions.inc (3.0 KB, 403 views)

Last edited by Drixevel; 04-03-2015 at 06:00.
Drixevel 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 12:28.


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