Raised This Month: $51 Target: $400
 12% 

Knife: Home Run Bat


Post New Thread Reply   
 
Thread Tools Display Modes
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 08-12-2014 , 08:28   Re: Knife: Home Run Bat
Reply With Quote #11

I didn't test the plugin but I see that the brass knuckles model from the video is missed in your archive, to add it will be better imo.

weird funny plugin btw .
__________________
ANTICHRISTUS is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-12-2014 , 10:04   Re: Knife: Home Run Bat
Reply With Quote #12

This plugin seems very cool( from the video ). What happens if two players, strike them with the "knife" at the same time ?
__________________
HamletEagle is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-12-2014 , 11:52   Re: Knife: Home Run Bat
Reply With Quote #13

Quote:
Originally Posted by ANTICHRISTUS View Post
I didn't test the plugin but I see that the brass knuckles model from the video is missed in your archive, to add it will be better imo.

weird funny plugin btw .
The brass knuckles are a part of Knife API which is required for this plugin.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Lokogaditano
Senior Member
Join Date: Apr 2009
Old 08-14-2014 , 09:14   Re: Knife: Home Run Bat
Reply With Quote #14

Quote:
Originally Posted by Mario AR. View Post



You get logs in the console? May I enter to your server to check the problem and get a fix?

No error logs in console, or in amxmodx/logs/errorlogs

Two plugins working, ;
knifeapi.amxx
;homerunbat.amxx, are ON in server

People download models of homerunbat, but.....

in the server, when choose knife, appear knuckles, and only hit in walls, if you hit somebody, nothing happened

And if I press R, only appear weapon "hands"
Lokogaditano is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-14-2014 , 16:42   Re: Knife: Home Run Bat
Reply With Quote #15

Open the .sma, find this:
PHP Code:
public fw_PlayerSpawn_Post(id)
    
g_attacker{id} = 0
And change it to:
PHP Code:
public fw_PlayerSpawn_Post(id)
{
    
g_attacker{id} = 0;
    
Knife_PlayerGive(idg_homerun);

Now in-game press R and you'll be able to switch to the homerun bat.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 08-14-2014 , 18:35   Re: Knife: Home Run Bat
Reply With Quote #16

My fault

Working on the Knife API Shop...

Quote:
Originally Posted by HamletEagle View Post
This plugin seems very cool( from the video ). What happens if two players, strike them with the "knife" at the same time ?
Both fly ^^ Watch the video.

Last edited by Mario AR.; 08-14-2014 at 18:37.
Mario AR. is offline
last_hope
Senior Member
Join Date: Dec 2011
Old 08-25-2014 , 09:15   Re: Knife: Home Run Bat
Reply With Quote #17

WOOT!
I'll try modify some hand items with knife api (including this bat) in ZP5.
__________________
last_hope is offline
Send a message via ICQ to last_hope
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 10-27-2014 , 15:09   Re: Knife: Home Run Bat
Reply With Quote #18

If I want to use this klife I need to run knifeapi.amxx ( https://forums.alliedmods.net/showthread.php?t=240304 ) or no?
Krtola is offline
Send a message via Skype™ to Krtola
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-27-2014 , 15:17   Re: Knife: Home Run Bat
Reply With Quote #19

Quote:
Originally Posted by Krtola View Post
If I want to use this klife I need to run knifeapi.amxx ( https://forums.alliedmods.net/showthread.php?t=240304 ) or no?
You need it.
__________________
HamletEagle is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-02-2016 , 04:38   Re: Knife: Home Run Bat
Reply With Quote #20

Looks ok.
The only thing that you should fix(if you are active) is to use charsmax() to get a string array size instead of hardcoding it.

client_PostThink is a heavy forward, but since you don't have much alternatives and you need a smooth effect, it's fair.

Approved.
__________________

Last edited by HamletEagle; 07-02-2016 at 04:40.
HamletEagle 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 02:54.


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