Raised This Month: $94 Target: $400
 23% 

Knife: Home Run Bat


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   HamletEagle (32)
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 08-09-2014 , 05:42   Knife: Home Run Bat
Reply With Quote #1

Knife: Home Run Bat


Description
  • This plugin adds a new knife to the game: the Home Run Bat.
  • When you hit to a player with the Home Run Bat, he will fly like a ball going directly to the Home Run Zone. If you hit good enough to make the player fly more than <x> units (see CVARs), you'll get cheers; however, if you're not a good baseball batter, you'll be booed!

CVARs
  • homerunbat_strength <#> - The "strength" of the hits (Velocity multiplier). (Default: 2000)
  • homerunbat_height <#> - Custom height for the players hit by the Home Run Bat. Set to 0 to base the height on the aim. (Default: 1000)
  • homerunbat_min_distance <#> - If you hit someone with the Home Run Bat and get a distance lower than this num, you'll be booed. (Default: 200)
  • homerunbat_hr_distance <#> - Min distance that the hit player must fly to consider a home run. Get a distance higher than this num and you'll be cheered. (Default: 800)

Requirements
Credits
  • Backstabnoob - Main Knife API, suggestions.
  • Federicomb - Testing.
  • The creator of the model - Sadly, the page where I got it does not say his name.

Video
Attached Files
File Type: zip resources.zip (476.6 KB, 364 views)
File Type: sma Get Plugin or Get Source (homerunbat.sma - 1115 views - 6.4 KB)
__________________


Last edited by Mario AR.; 08-10-2014 at 00:53. Reason: Fixed: Mod and category.
Mario AR. is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-09-2014 , 07:39   Re: Knife: Home Run Bat
Reply With Quote #2

Cool, glad to see my Knife API getting some use. There's one thing though - how do you obtain the bat? o.O
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Lokogaditano
Senior Member
Join Date: Apr 2009
Old 08-09-2014 , 09:45   Re: Knife: Home Run Bat
Reply With Quote #3

dont work for me, I compiled it with the last version of amx 1.8.3

I put homerunbat.amxx and knifeapi.amxx , in pause plugins are ON, but....only see the models of knifeapi and dont hit humans, only walls
Lokogaditano is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-09-2014 , 10:10   Re: Knife: Home Run Bat
Reply With Quote #4

make an alternate attack - launch a baseball ball that stuns enemy upon hitting him in head (like in TF2).
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-09-2014 , 12:37   Re: Knife: Home Run Bat
Reply With Quote #5

So, cool. I'll try this. ;)
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Portugal
Old 08-09-2014 , 13:16   Re: Knife: Home Run Bat
Reply With Quote #6

I like Knife API and is good to see sub-plugins for it. But i think you should release 2 versions, one using the api and other without the api.
__________________
Jhob94 is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-09-2014 , 14:49   Re: Knife: Home Run Bat
Reply With Quote #7

Quote:
Originally Posted by Jhob94 View Post
I like Knife API and is good to see sub-plugins for it. But i think you should release 2 versions, one using the api and other without the api.
Do you have anything to back up that statement?
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Portugal
Old 08-09-2014 , 15:05   Re: Knife: Home Run Bat
Reply With Quote #8

I might want to use this knife without your knife api. Same for ban hammer. I am just saying that 2 versions would be nice so people can choose if want to use with the api or not.
__________________
Jhob94 is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-09-2014 , 15:34   Re: Knife: Home Run Bat
Reply With Quote #9

That doesn't explain why. Why? The knife API was designed to help developers accomplish what they want easier, not to make two versions of everything.
__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 08-09-2014 at 15:35.
Backstabnoob is offline
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 08-09-2014 , 17:42   Re: Knife: Home Run Bat
Reply With Quote #10

Quote:
Originally Posted by Backstabnoob View Post
Cool, glad to see my Knife API getting some use. There's one thing though - how do you obtain the bat? o.O
If I were a modeler.. I would make a lot of knives, but sadly I'm not .
That thing.... I was thinking in make a shop for Knife API, where you can choose what knives will be on sale and the cost. But until that... editing the source

Quote:
Originally Posted by NiHiLaNTh View Post
make an alternate attack - launch a baseball ball that stuns enemy upon hitting him in head (like in TF2).
Interesting...
EDIT: Maybe for another plugin, it's not suitable for a knife.

Quote:
Originally Posted by Jhob94 View Post
I might want to use this knife without your knife api. Same for ban hammer. I am just saying that 2 versions would be nice so people can choose if want to use with the api or not.
That makes absolutely no sense! Copy the same code in every knife?

Quote:
Originally Posted by Lokogaditano View Post
dont work for me, I compiled it with the last version of amx 1.8.3

I put homerunbat.amxx and knifeapi.amxx , in pause plugins are ON, but....only see the models of knifeapi and dont hit humans, only walls
You get logs in the console? May I enter to your server to check the problem and get a fix?
__________________


Last edited by Mario AR.; 08-10-2014 at 00:36.
Mario AR. is offline
Old 08-09-2014, 17:44
Mario AR.
This message has been deleted by Mario AR.. Reason: Sorry, double post.
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:34.


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