Raised This Month: $ Target: $400
 0% 

Banhammer


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Mati_
Member
Join Date: Sep 2010
Old 09-25-2010 , 20:59   Banhammer
Reply With Quote #1

AMXX Banhammer
by Mati

Hello,
this is the first plugin I'm releasing in public. I have started working on it after I was reading about that idea and saw that it was made for TF2 already. I hope you like it and have fun with it.


Description

This plugin equips an admin with the almighty banhammer. Depending on the options, you gain godmode/fast speed/noclip as well with it, to catch the rulebreaker as fast as possible. Of course a nice FX isn't missing as well.


Installation

- Download the AMXX-File or compile locally, and put it in cstrike/addons/amxmodx/plugins.
- Enable the plugin by editing the plugins.ini file locates at amxmodx/configs.
- Copy the included folders (sound and models) in cstrike/sound and cstrike/models.


Usage

amx_banhammer (requires: ADMIN_BAN)


CVARS

hammer_bantime <minutes> (Default: 15)
- Duration of the victims ban in minutes
hammer_check <0/1> (Default: 0)
- Displays a verification menu after someone gets hit with the banhammer. The victim is freezed during that time.
hammer_noclip <0/1>
(Default: 0) - Activates noclip when beeing equipped with the banhammer
hammer_godmode <0/1> (Default: 1
) - Activates godmode when beeing equipped with the banhammer
hammer_speed <number>
(Default: Value of sv_maxspeed) - Defines the players speed when beeing equipped with the banhammer
hammer_delay <number>
(Default: 0.0)- Adds a delay in between the hammer attacks. Will have no effect if <0.4. Might cause faulty animations.
hammer_explosiondelay <number> (Default: 0.1) - Delay between the hammerhit and the explosion/ban (minimum: 0.1)


Demo Video

A demo video can be seen here.


Thanks goes to Sepelin, who provided the model and helped with testing, and to the guy who originally created the gore functions (most likely mike_cao).
Attached Files
File Type: zip banhammer.zip (255.0 KB, 409 views)
File Type: sma Get Plugin or Get Source (banhammer.sma - 1309 views - 10.6 KB)

Last edited by Mati_; 09-26-2010 at 00:23.
Mati_ is offline
dejan
Senior Member
Join Date: Mar 2009
Location: Sweden
Old 09-25-2010 , 21:00   Re: Banhammer
Reply With Quote #2

This BanHammer is Awesome!!!
__________________
dejan is offline
Send a message via Skype™ to dejan
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-25-2010 , 21:14   Re: Banhammer
Reply With Quote #3

Why are you using a Fakemeta native yet not including Fakemeta?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Mati_
Member
Join Date: Sep 2010
Old 09-25-2010 , 21:38   Re: Banhammer
Reply With Quote #4

I knew someone would ask that instantly. Well, I was trying to keep the plugin as "small" as possible, and even though I know that not every function is "loaded", I prefered to not include all the rest of variables and structures from the fakemeta includes, just because I'm using a single little function of it.

Last edited by Mati_; 09-26-2010 at 00:30.
Mati_ is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-25-2010 , 21:40   Re: Banhammer
Reply With Quote #5

So now you are forcing users to manually enable Fakemeta instead of having AMXX automatically enable it for them...
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-25-2010 , 21:45   Re: Banhammer
Reply With Quote #6

In other words, include fakemeta no matter what.
__________________
fysiks is offline
Mati_
Member
Join Date: Sep 2010
Old 09-25-2010 , 21:46   Re: Banhammer
Reply With Quote #7

Is that really the case? I do not have fakemeta enabled in my modules.ini, but it seems to auto-load just well nevertheless (no other third party plugins enabled in plugins.ini as well).

Otherwise I can include the loadlib/library pragma (which I did now), still better to include the whole bunch. I know it might be an unorthodox way, but I'm not a fan of including dozens of stuff just because using a single function.

Edit: The module get's now auto-loaded even if not auto-loaded by another plugin before.


Other comments are appreciated as well, maybe someone has alternative methods concerning hammer_delay.

Last edited by Mati_; 09-25-2010 at 22:24.
Mati_ is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-25-2010 , 21:51   Re: Banhammer
Reply With Quote #8

Quote:
Originally Posted by Mati_ View Post
but it seems to auto-load just well nevertheless (no other third party plugins enabled in plugins.ini as well).
Then a 1st party plugin is loading it
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-25-2010 , 23:38   Re: Banhammer
Reply With Quote #9

So . . . you prefer 9 lines instead of 1? I don't get it. Does declaring a native mean it affects runtime performance?
__________________
fysiks is offline
Mati_
Member
Join Date: Sep 2010
Old 09-26-2010 , 00:20   Re: Banhammer
Reply With Quote #10

Ok w/e. I followed your advice since you're scripting already for a longer time than me, and just included it now.
Mati_ 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 08:03.


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