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

Hook


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Zenith77 (33)
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 11-16-2007 , 14:52   Hook
Reply With Quote #1

Hook.
I dont think that I need to explain what this plugin does but it simply moves you to a point you're aiming at.

Requirements:
AMX Mod X 1.8
fakemeta

Commands/bindings:
+hook
amx_givehook
amx_takehook

Cvars:
sv_hook - Turns hook on or off (default: 1)
sv_hookthrowspeed - Throw speed (default: 1000)
sv_hookspeed - Speed to hook (default: 300)
sv_hookwidth - Width of the hook (default: 32)
sv_hooksound - Sounds of the hook on or off (default: 1)
sv_hookcolor - The color of the hook 0 is white and 1 is team color (default: 1)
sv_hookplayers - If set 1 you can hook on players (default: 0)
sv_hookinterrupt - Remove the hook when something comes in its line (default: 0)
sv_hookadminonly - Hook for admin only (default: 0)
sv_hooksky - If set 1 you can hook in the sky (default: 0)
sv_hookopendoors - If set 1 you can open doors with the hook (default: 1)
sv_hookbuttons - If set 1 you can use buttons with the hook (default: 0)
sv_hookpickweapons - If set 1 you can pickup weapons with the hook (default: 1)
sv_hookhostfollow - If set 1 you can make hostages follow you (default 1)
sv_hookinstant - Hook doesnt throw (default: 0)
sv_hooknoise - adds some noise to the hook line (default: 0)
sv_hookmax - Maximun numbers of hooks a player can use in 1 round
- 0 for infinitive hooks (default: 0)
sv_hookdelay - delay on the start of each round before a player can hook
- 0.0 for no delay (default: 0.0)

Changelog:
Code:
1.0: Release
1.5: added cvars:
          sv_hooknoise
          sv_hookmax
          sv_hookdelay
          public cvar
     added commands:
          amx_givehook <username>
          amx_takehook <username>
I only tested this in counter-strike but if you comment out the cstrike include and compile it, it should work for other mods too.

HF P34nut


Attached Files
File Type: sma Get Plugin or Get Source (Hook.sma - 45155 views - 20.1 KB)
File Type: amxx Hook.amxx (21.3 KB, 19553 views)
__________________
All you need to change the world is one good lie and a river of blood

Last edited by P34nut; 02-03-2008 at 05:46. Reason: added .amxx file (requested)
P34nut is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-16-2007 , 15:22   Re: Hook
Reply With Quote #2

EDIT 3: Looks like this plugin has more features than all the others
__________________

Last edited by M249-M4A1; 11-16-2007 at 15:25.
M249-M4A1 is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 11-16-2007 , 15:26   Re: Hook
Reply With Quote #3

Yes this is another hook with more features then I have seen in other plugins
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-16-2007 , 15:34   Re: Hook
Reply With Quote #4

Why hai P34nut.
Huh, isn't this woot ?! o.O gj.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 11-16-2007 , 17:03   Re: Hook
Reply With Quote #5

Quote:
Originally Posted by P34nut View Post
sv_hookhostflollow - If set 1 you can make hostages follow you (default 1)
yay another hook plugin


What you should do is just replicate the metamod hook plugin as that seems to be the one everyone always wants even though it isn't that great.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 11-16-2007 , 17:10   Re: Hook
Reply With Quote #6

Well I made the most features that hookmod has in my mod...
If anybody has a request just reply and I will add it

Oh and I fixed the typo thanks
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-17-2007 , 02:31   Re: Hook
Reply With Quote #7

Add some noise by cvar, or random noise could be cool.

Code:
write_byte(0) // Noise
ConnorMcLeod is offline
bug
Senior Member
Join Date: Nov 2007
Old 11-25-2007 , 08:53   Re: Hook
Reply With Quote #8

looks nice...
bug is offline
Apollyon
SourceMod Donor
Join Date: Dec 2007
Location: California
Old 12-04-2007 , 15:27   Re: Hook
Reply With Quote #9

It's nice being able to customize the hook settings. Great job!

I have 2 requests for options:

1. A 15 second delay at the start of each round before a player can hook.
2. Be able to specify the number of hooks available for each round.
__________________

Last edited by Apollyon; 12-04-2007 at 15:58.
Apollyon is offline
Apollyon
SourceMod Donor
Join Date: Dec 2007
Location: California
Old 12-04-2007 , 16:26   Re: Hook
Reply With Quote #10

I just tried to compile this locally and it failed. I'm running AMX ModX 1.8 on Condition Zero servers. Here's what it says:

//AMXXPC compile.exe
// by the AMX Mod X Dev Team

//// Hook.sma
// C:\HLDSFamily\czero\addons\amxmodx\scripting\ Hook.sma(413) : error 017: undefined symbol "fIDOrig
in"
// C:\HLDSFamily\czero\addons\amxmodx\scripting\ Hook.sma(413 -- 415) : error 088: number of argument
s does not match definition
// C:\HLDSFamily\czero\addons\amxmodx\scripting\ Hook.sma(415) : error 017: undefined symbol "fIDOrig
in"
// C:\HLDSFamily\czero\addons\amxmodx\scripting\ Hook.sma(415) : fatal error 107: too many error mess
ages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file C:\HLDSFamily\czero\addons\amxmodx\scripting\ compiled\Hook.amx (comp
ile failed).
//
// Compilation Time: 0.21 sec
// ----------------------------------------
Press enter to exit ...
__________________
Apollyon 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 09:18.


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