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

Hook


Post New Thread Reply   
 
Thread Tools Display Modes
Michael_a90
Junior Member
Join Date: Dec 2007
Old 12-30-2007 , 13:45   Re: Hook
Reply With Quote #31

Quote:
Originally Posted by P34nut View Post
Hook.
I dont think that I need to explain what this plugin does but it simply moves you to a point your 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
Code:
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





Hi. Sorry, but the download link doesnt work.
Plugin failed to compile! Please try contacting the author.
Welcome to the AMX Mod X 1.76-300 Compiler.Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(284) : error 017: undefined symbol "charsmax"/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(294) : error 017: undefined symbol "charsmax"/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(327) : error 017: undefined symbol "charsmax"/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(334) : error 017: undefined symbol "charsmax"/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(374) : error 017: undefined symbol "charsmax"/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(676) : error 017: undefined symbol "charsmax"/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(684) : error 017: undefined symbol "charsmax"/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(710) : error 017: undefined symbol "charsmax"/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(71 : error 017: undefined symbol "charsmax"/home/groups/alliedmodders/forums/files/9/6/9/1/21942.attach(767) : error 017: undefined symbol "charsmax"10 Errors.Could not locate output file /home/groups/amxmodx/public_html/compiled3/21942.amx (compile failed
Michael_a90 is offline
PpZ | Iconoclast
Senior Member
Join Date: Feb 2008
Old 02-02-2008 , 19:27   Re: Hook
Reply With Quote #32

Can we get someone to repost the .amxx plugin for the Hook mod please? Thanks!
PpZ | Iconoclast is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 02-03-2008 , 05:47   Re: Hook
Reply With Quote #33

Done check first post
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Jumbles
Junior Member
Join Date: Jan 2008
Location: Menai Bridge
Old 02-12-2008 , 07:57   Re: Hook
Reply With Quote #34

Hi

I've just tried adding this to SvenCoop and have encountered a couple of problems. I commented out the CStrike include and compiled it but it would report an error in line 93 about HLTV. I commented out that line and I can now throw the hook but that's all that happens.

Any ideas?

thanks
Jumbles
Jumbles is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 02-12-2008 , 11:06   Re: Hook
Reply With Quote #35

Please show me the error log
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Jumbles
Junior Member
Join Date: Jan 2008
Location: Menai Bridge
Old 02-12-2008 , 13:41   Re: Hook
Reply With Quote #36

If I don't comment out line 93 then this is what gets displayed when the server starts...

L 02/12/2008 - 18:26:11: Invalid event (name "HLTV") (plugin "Hook.amxx")
L 02/12/2008 - 18:26:11: [AMXX] Displaying debug trace (plugin "Hook.amxx")
L 02/12/2008 - 18:26:11: [AMXX] Run time error 10: native error (native "register_event")
L 02/12/2008 - 18:26:11: [AMXX] [0] Hook.sma::plugin_init (line 93)


and this is what gets displayed when I press H which I have bound to +hook

L 02/12/2008 - 18:27:23: Invalid CVAR pointer
L 02/12/2008 - 18:27:23: [AMXX] Displaying debug trace (plugin "Hook.amxx")
L 02/12/2008 - 18:27:23: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 02/12/2008 - 18:27:23: [AMXX] [0] Hook.sma::make_hook (line 150)

If I comment out line 93 then no messages get sent to the console about it and I can shoot the hook and it will attach to the wall but I won't go anywhere. I can use it to open doors/operate buttons.
Jumbles is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 02-12-2008 , 13:47   Re: Hook
Reply With Quote #37

Hmmmm I think you comment out too much, can you please add an attachement with the code you used?
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Jumbles
Junior Member
Join Date: Jan 2008
Location: Menai Bridge
Old 02-12-2008 , 14:16   Re: Hook
Reply With Quote #38

This is the code with the CStrike include and line 93 commented out. Those are the only two changes I made
Attached Files
File Type: sma Get Plugin or Get Source (Hook.sma - 1244 views - 20.1 KB)
Jumbles is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 02-12-2008 , 15:37   Re: Hook
Reply With Quote #39

dont comment out line 93
also the HLTV message does not exist in SvenCoop... Does anyone know an other way to do this in SvenCoop.. I never played the game
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 03-20-2008 , 09:01   Re: Hook
Reply With Quote #40

Hey,you can do to Hook (hook distance)?? plzzzzzz
xbatista is offline
Send a message via Skype™ to xbatista
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:51.


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