Raised This Month: $95 Target: $400
 23% 

Grab+


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   GHW_Chronic (70)
ian.cammarata
Member
Join Date: May 2007
Location: U.S.
Old 10-13-2007 , 19:04   Grab+
Reply With Quote #1

Grab+ v1.2.5
Feb 19, 2011
AGPLv3
- "This is a new license; it is based on version 3 of the GNU General Public License (GNU GPLv3), but has an additional term to allow users who interact with the licensed software over a network to receive the source for that program." - http://www.fsf.org/agplv3-pr

Description:
This is a remake from scratch of SpaceDude's Jedi Force Grab plugin. It has many additional features and optimizations, is less spammy, multilingual and requires fewer binds.


Features:
Multilingual
Screenfade to indicate grab activity instead of chat spam.
Can grab players off a ladder.
Automatically choke by holding down +pull while at min distance.
Choke with use key.
Throw with drop.
Can't have mutliple admins grabbing the same object.
Auto drop on death.
Grab entities other than players, such as bombs, weapons, and hostages.


Commands:
+grab : Grab something for as long as you hold down the key.
grab_toggle : Same as +grab but toggles.
amx_grab <name> : Grab client by name or id and teleport them to you. Use +grab or grab_toggle key to release.

+pull/+push : Pulls/pushes the grabbed towards/away from you as you hold the button.

+use : Chokes the grabbed (it damages the grabbed with 5 (cvar: gp_chokedmg) hp per 1.5 (cvar: gp_choketime) seconds)
drop - Throws the grabbed with 1500 velocity. (cvar: gp_throwforce)


Cvars (First value is default):
gp_enabled <1|0> Enables all plugin functionality.
gp_players_only <0|1> Disables admins grabbing entities other than players.

gp_min_dist <90|...> Min distance between the grabber and grabbed.
gp_grab_force <8|...> Sets the amount of force used when grabbing players.
gp_throw_force <1500|...> Sets the power used when throwing players.
gp_speed <5|...> How fast the grabbed moves when using push and pull.

gp_choke_time <1.5|...> Time frequency for choking.
gp_choke_dmg <5|...> Amount of damage done with each choke.
gp_auto_choke <1|0> Enable/disable choking automatically with +pull command.

gp_screen_fade <1|0> Enables/disables screenfade when grabbing.
gp_glow <1|0> Enables/disables glowing for grabbed objects.

gp_glow_r <50|0-255> Sets red amount for glow and screenfade.
gp_glow_g <0|0-255> Sets green amount for glow and screenfade.
gp_glow_b <0|0-255> Sets blue amount for glow and screenfade.
gp_glow_a <0|0-255> Sets alpha for glow and screenfade.


Notes:
Make sure you place the grab_plus.txt file in addons\amxmodx\data\lang


Credits:
Thanks to vittu for contributing code (changed all engine/fun module stuff to fakemeta).

Thanks to all the coders who worked on the original Jedi Force Grab plugin for all their ideas:
SpaceDude
KCE
KRoTaL
BOB_SLAYER
kosmo111


Supported Languages:
1337 (100%) - Thanks to l337newb
Brazilian Portuguese (100%) - Thanks to Arion
Danish (100%) - Thanks to nellerbabz
Dutch (100%) - Thanks to BlackMilk
English (100%)
Finnish (100%) - Thanks to Pro Patria Finland
French (100%) - Thanks to connorr
German (100%) - Thanks to SchlumPF*
Russian (100%) - Thanks to `666
Spanish (100%) - Thanks to RenXO
Swedish (100%) - Thanks to Bend3r


Change Log:
Key (+ added | - removed | c changed | f fixed)


v1.2.5 (Feb 19, 2011)
f: Applied fix mailed to me on Allied Modders site several years ago. (Maybe I should sign up for new mail notifications.)
Thanks to ConnorMcLeod

v1.2.4 (Feb 18, 2007)
f: Killing player with choke in some mods bugged out really bad.

v1.2.3 (Nov 21, 2007)
c: A few more small optimizations.
f: Bloodstream for choke wasn't aligned with player.
f: Bad message disconnect error when players were choked. ( stupid SVC_DAMAGE define )

v1.2.2 (Nov 16, 2007)
c: A few small code optimizations.

v1.2.1 (Nov 12, 2007)
f: Elimited two run time warnings in the player prethink function.
Attached Files
File Type: sma Get Plugin or Get Source (grab_plus.sma - 33779 views - 19.8 KB)
File Type: txt grab_plus.txt (1.0 KB, 20095 views)
__________________

Last edited by ian.cammarata; 02-19-2011 at 17:48.
ian.cammarata is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-13-2007 , 19:06   Re: Grab+
Reply With Quote #2

Looks good
__________________
M249-M4A1 is offline
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 10-13-2007 , 20:13   Re: Grab+
Reply With Quote #3

Code:
[sv]
COULDNT = Kan inte ta tag i den spelaren.
ALREADY = Nagon annan haller i den redan.
Bend3R is offline
ian.cammarata
Member
Join Date: May 2007
Location: U.S.
Old 10-13-2007 , 20:17   Re: Grab+
Reply With Quote #4

Quote:
Originally Posted by Bend3R View Post
Code:
[sv]
COULDNT = Kan inte ta tag i den spelaren.
ALREADY = Nagon annan haller i den redan.
Thanks!
__________________
ian.cammarata is offline
Jheshka
Senior Member
Join Date: Dec 2005
Old 10-13-2007 , 20:40   Re: Grab+
Reply With Quote #5

Looks cool.
__________________
James
Jheshka is offline
Old 10-13-2007, 23:04
hoboman
This message has been deleted by hoboman.
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 10-14-2007 , 04:29   Re: Grab+
Reply With Quote #6

ice ill test this 2morow
Styles is offline
Send a message via AIM to Styles Send a message via MSN to Styles
nellerbabz
Junior Member
Join Date: Nov 2006
Location: Denmark
Old 10-14-2007 , 05:07   Re: Grab+
Reply With Quote #7

Danish

Code:
[da]
COULDNT = Kunne ikke tage fat i spilleren.
ALREADY = Nogen har allerede fat i spilleren.
Can this grab entities aswell as players?
__________________
Need Danish translating? click here


Last edited by nellerbabz; 10-14-2007 at 12:39.
nellerbabz is offline
Send a message via MSN to nellerbabz
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 10-14-2007 , 05:09   Re: Grab+
Reply With Quote #8

Call me silly, but I'd prefer the "chat spam" over any other screen/visual effects...

The rest sounds good though, stuff like grabbing players off ladder entities...
But I'm just lazy.

And I don't mind multiple admins performing grab on entities and players xD
(we make sure it doesn't get too chaotic on our own)

GJ, karma, cool plugin

(this can't be too far off from Approval aight?)

EDIT: Just a quick idea, because you've used standard keys so well: how about a cvar (0 | 1 values) that sets the pull and push features depending on value?
For example when the cvar is set to 1, using mouse wheel (invprev and invnext or something?) would push or pull the player (but ONLY while grab is active), and when the cvar is set 0 (default), then the mouse wheel functions normally as switching weapons.
EDIT2: And maybe a value of 3 for doing the same thing but with left and right mouse buttons, again, only when grab is active.
(then people like me can still use mouse3 for grabbing)

^ Because I hate having to use separate binds for it. I've actually just got +grab binded on mouse3 and throw binded on my 'o' key, I never really use push and pull cos of the extra binds needed.

---Since we're already posting translations here in the topic...

Code:
[nl]
COULDNT = Kon die speler niet vasthouden.
ALREADY = Iemand anders houdt dat al vast.
__________________
Mod:
User:

Last edited by BlackMilk; 10-14-2007 at 05:19.
BlackMilk is offline
l33tnewb
BANNED
Join Date: Sep 2007
Old 10-14-2007 , 05:40   Re: Grab+
Reply With Quote #9

[ls]
COULDNT = c0u1d n07 gr48 7h47 p14y3r.
ALREADY = $0m30n3 31$3 !$ 41r34dy gr488!ng 7h47.
l33tnewb is offline
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 10-14-2007 , 06:22   Re: Grab+
Reply With Quote #10

Code:
[fi]
COULDNT = Tarttuminen pelaajaan epaonnistui.
ALREADY = Joku muu on jo tarttunut tuohon.
Niiice. Gotta test it.
__________________
I am not a number. I am Gordon Freeman!
Pro Patria Finland 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 23:05.


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