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

Hook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 - 45154 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
 


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 17:40.


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