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

Block TS auto jump-kick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 02-17-2006 , 22:09   Block TS auto jump-kick
Reply With Quote #1

Is there any way this can be done?
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-17-2006 , 22:42  
Reply With Quote #2

using the TSFUN module it is. but the TS modules are unstable.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Maddo
Member
Join Date: Dec 2004
Old 02-19-2006 , 23:38  
Reply With Quote #3

How would you do it? I needed this for my instagib plugin, but I found a way around it eventually.
Maddo is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 02-20-2006 , 09:28  
Reply With Quote #4

What did you use Maddo?
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Maddo
Member
Join Date: Dec 2004
Old 02-20-2006 , 09:55  
Reply With Quote #5

Well, my plugin was a bit of a special case. It's instagib using Barretts only. Since barrett does so much damage, and gunkick does very little, I disregard any damage less than 50 hp. It works fine for this plugin, but I can't imagine too many other circumstances you'd be able to use it
Maddo is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-20-2006 , 15:05  
Reply With Quote #6

You can block it using the melee_attack forward in TSFUN and returning PLUGIN_HANDLED. This will only work 95% of the time though.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 02-20-2006 , 17:01  
Reply With Quote #7

I tested that out on 1.60 an was not able to get it to work at all.

This compiled fine:
Code:
#include <amxmodx> #include <tsfun> new szPlugin[] = "AMXx TS Fu Block", szVersion[] = "1.0.A", szAuthor[] = "Charr"; public plugin_init() {     register_plugin(szPlugin,szVersion,szAuthor);     register_cvar("amx_kungfu","1"); } public Melee_Attack(id) {     if(!get_cvar_num("amx_kungfu"))     {         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; }

But this is what it should be (I got errors)
Code:
#include <amxmodx> #include <tsfun> new szPlugin[] = "AMXx TS Fu Block", szVersion[] = "1.0.A", szAuthor[] = "Charr"; public plugin_init() {     register_plugin(szPlugin,szVersion,szAuthor);     register_cvar("amx_kungfu","1"); } public Melee_Attack(id,Float:Time,Float:Dmg) {     if(!get_cvar_num("amx_kungfu"))     {         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; }
"Error 25: function header differs from prototype" (on Melee_Attack)

I checked my tsfun.inc, but it has
Code:
forward Melee_Attack(id,Float:time,Float:damage);
I really don't know why its doing that
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-20-2006 , 19:34  
Reply With Quote #8

Code:
#include <amxmodx> #include <tsfun> new szPlugin[] = "AMXx TS Fu Block", szVersion[] = "1.0.A", szAuthor[] = "Charr"; public plugin_init() {     register_plugin(szPlugin,szVersion,szAuthor);     register_cvar("amx_kungfu","1"); } public Melee_Attack(id,Float:time,Float:damage) {     if(!get_cvar_num("amx_kungfu"))     {         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 13:14.


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