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

[Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 05-12-2014 , 20:24   [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #1

[Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?

It would be great to have a "melee-only " plug-in for Fistful-of-Frags (FoF) similar to the "TF2 Melee Only" plug-in by "pheadxdll".

With the TF2 plug-in, I use it in combination with a scheduling plugin to have "2 minutes of melee madness" once per hour, and under certain conditions - allow voting for it.

I would be awesome to do that with Fistful-of-Frags (FoF) - allowing just melee and "thrown" weapons such as:
  • Fists
  • Brass-Knuckles
  • Knife (stab)
  • Knife (thrown)
  • Axe (slash)
  • Axe (thrown)
  • Dynamite

and, like the TF2 equivalent, be able to turn it on/off via server-command and "voting" commands.
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter

Last edited by Weasel; 05-12-2014 at 20:29. Reason: Passed too much whiskey.
Weasel is offline
Konkey Dong
Junior Member
Join Date: Feb 2013
Old 05-13-2014 , 04:47   Re: [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #2

You can use the Weapon Blocker plugin to block weapons in FoF. Currently setting up something similar for my server.

If you want melee only you'd do something like:
Code:
sm_wpnblock "1"
sm_wpnblock_clear
sm_wpnblock_add "weapon_bow"
sm_wpnblock_add "weapon_carbine"
sm_wpnblock_add "weapon_coachgun"
sm_wpnblock_add "weapon_coltnavy"
sm_wpnblock_add "weapon_deringer"
sm_wpnblock_add "weapon_deringer2"
sm_wpnblock_add "weapon_dynamite"
sm_wpnblock_add "weapon_henryrifle"
sm_wpnblock_add "weapon_maresleg"
sm_wpnblock_add "weapon_peacemaker"
sm_wpnblock_add "weapon_sawedoff_shotgun"
sm_wpnblock_add "weapon_schofield"
sm_wpnblock_add "weapon_sharps"
sm_wpnblock_add "weapon_shotgun"
sm_wpnblock_add "weapon_volcanic"
sm_wpnblock_add "weapon_walker"
Then just toggle sm_wpnblock

Complete weapon list seems to be
Code:
weapon_axe
weapon_bow
weapon_carbine
weapon_coachgun
weapon_coltnavy
weapon_deringer
weapon_deringer2
weapon_dynamite
weapon_dynamite_black
weapon_fists
weapon_henryrifle
weapon_knife
weapon_maresleg
weapon_peacemaker
weapon_sawedoff_shotgun
weapon_schofield
weapon_sharps
weapon_shotgun
weapon_volcanic
weapon_walker
weapon_whiskey
The names kinda speak for themselves.
Also, this works really good with bots.

Last edited by Konkey Dong; 05-13-2014 at 04:52.
Konkey Dong is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 05-13-2014 , 13:12   Re: [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #3

Hmmm... yeah, maybe I can get that to work the way I want.
Thanks!

Got this preliminary list from the developer:
Code:
weapon_axe
weapon_bow
weapon_carbine
weapon_coachgun
weapon_dynamite
weapon_dynamite_black
weapon_fists
weapon_henryrifle
weapon_knife
weapon_sharps
weapon_shotgun

weapon_volcanic (right-hand)
weapon_walker (right-hand)
weapon_schofield (right-hand)
weapon_maresleg (right-hand)
weapon_peacemaker (right-hand)
weapon_sawedoff_shotgun (right-hand)
weapon_coltnavy (right-hand)
weapon_deringer (right-hand)

weapon_volcanic2 (left-hand)
weapon_walker2 (left-hand)
weapon_schofield2 (left-hand)
weapon_maresleg2 (left-hand)
weapon_peacemaker2 (left-hand)
weapon_sawedoff_shotgun2 (left-hand)
weapon_coltnavy2 (left-hand)
weapon_deringer2 (left-hand)
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter

Last edited by Weasel; 05-13-2014 at 14:12. Reason: Those are "death notices" from the logs, not weapons themselves.
Weasel is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 05-13-2014 , 18:09   Re: [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #4

Just a quick update ... using that plugin ("Weapon Blocker") to try to enforce melee-only on FoF did not work. I was still able to equip and use guns as normal - even though the plugin said they were blocked:
Code:
] sm_rcon exec sourcemod/melee-only-on.cfg
Blocked weapons:
weapon_bow
weapon_carbine
weapon_coachgun
weapon_coltnavy
weapon_coltnavy2
weapon_deringer
weapon_deringer2
weapon_henryrifle
weapon_maresleg
weapon_maresleg2
weapon_peacemaker
weapon_peacemaker2
weapon_sawedoff_shotgun
weapon_sawedoff_shotgun2
weapon_schofield
weapon_schofield2
weapon_sharps
weapon_shotgun
weapon_volcanic
weapon_volcanic2
weapon_walker
weapon_walker2
Total blocked: 23
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter

Last edited by Weasel; 05-18-2014 at 15:23. Reason: Fixed url, fixed block list
Weasel is offline
Konkey Dong
Junior Member
Join Date: Feb 2013
Old 05-13-2014 , 18:15   Re: [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #5

It works just fine on my end, did you try setting the cvar to 0 then 1 again? I've had some problems with cvars not sticking in FoF earlier and sm_cvar seemed to help.
Konkey Dong is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 05-13-2014 , 20:40   Re: [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #6

Quote:
Originally Posted by Konkey Dong View Post
It works just fine on my end, did you try setting the cvar to 0 then 1 again? I've had some problems with cvars not sticking in FoF earlier and sm_cvar seemed to help.
Thanks, I will give that a try - as soon as the server is not full again (they keep filling-up so fast with this new release!).
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter
Weasel is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 05-13-2014 , 21:24   Re: [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #7

Also, seeing this error in the SM error logs:
Code:
L 05/13/2014 - 21:22:35: [SM] Native "GetPlayerWeaponSlot" reported: "Weapon_GetSlot" not supported by this mod
L 05/13/2014 - 21:22:35: [SM] Displaying call stack trace for plugin "wpnblock.smx":
L 05/13/2014 - 21:22:35: [SM]   [0]  Line 43, wpnblock.sp::WpnCheck()
PS: Definitely still not working for me. This is under Debian Linux. The plug-in outputs a list of stuff that is (theoretically) blocked. However, none of it actually gets blocked.
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter

Last edited by Weasel; 05-14-2014 at 02:11. Reason: Update from testing.
Weasel is offline
Konkey Dong
Junior Member
Join Date: Feb 2013
Old 05-14-2014 , 08:40   Re: [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #8

sorry for the slow reply.
What sourcemod/metamod version are you running? I'm running on debian 7.0 x64, Metamod:Source version 1.11.0-dev, SourceMod Version: 1.6.0-dev+4357. I haven't edited the plugin at all and I can't seem to re-produce your error :< I'm not the best at this though, you could try asking someone else but if I were you I'd probably do a complete re-install of the server & meta/sourcemod and load plugins one-by-one.
Konkey Dong is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 05-14-2014 , 12:12   Re: [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #9

I am on Linux (Debian Jessie/8, 64-bit/multi-arch), and below what I am running regarding MM:S: and SM:
Code:
meta version
Metamod:Source version 1.11.0-dev
Build ID: 911:a2e053f9abe7-dev
Loaded As: Valve Server Plugin
Compiled on: Apr 20 2014
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/
meta list
Listing 3 plugins:
  [01] SourceMod (1.6.0-dev+4337) by AlliedModders LLC
  [02] SDK Tools (1.6.0-dev+4337) by AlliedModders LLC
  [03] SteamTools (0.8.3) by Asher Baker (asherkin)
Maybe I will try a newer snap-shot of SM some time today and see if that makes any difference.
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter
Weasel is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-14-2014 , 12:28   Re: [Request] [FoF] Melee-only plug-in for Fistful-of-Frags (FoF)?
Reply With Quote #10

should probably check to see if: 'm_hMyWeapons' is a netprop in FoF
Mitchell 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:44.


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