AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Hook (https://forums.alliedmods.net/showthread.php?t=63271)

P34nut 11-16-2007 14:52

Hook
 
2 Attachment(s)
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



M249-M4A1 11-16-2007 15:22

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

P34nut 11-16-2007 15:26

Re: Hook
 
Yes this is another hook with more features then I have seen in other plugins

Alka 11-16-2007 15:34

Re: Hook
 
Why hai P34nut.
Huh, isn't this woot ?! o.O gj.

vittu 11-16-2007 17:03

Re: Hook
 
Quote:

Originally Posted by P34nut (Post 553577)
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.

P34nut 11-16-2007 17:10

Re: Hook
 
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

ConnorMcLeod 11-17-2007 02:31

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

Code:
write_byte(0) // Noise

bug 11-25-2007 08:53

Re: Hook
 
looks nice...

Apollyon 12-04-2007 15:27

Re: Hook
 
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.

Apollyon 12-04-2007 16:26

Re: Hook
 
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 ...


All times are GMT -4. The time now is 13:11.

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