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

Grabber:SM


Post New Thread Reply   
 
Thread Tools Display Modes
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 06-28-2008 , 19:17   Re: Grabber:SM
Reply With Quote #11

Spectators can't use it right now, but if you search for all of the places where it says something like
if (!IsPlayerAlive(client))
return Plugin_Handled;

and delete that, it should work for spectators.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Zyreal
Junior Member
Join Date: Jun 2008
Old 06-29-2008 , 00:25   Re: Grabber:SM
Reply With Quote #12

Can this be used for tf2? If so, can you make a cvar that limits it to admins with the cheat flag? Thanks in advance - Zy
Zyreal is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 06-29-2008 , 01:26   Re: Grabber:SM
Reply With Quote #13

I believe it would work in TF2, but I haven't tried it yet.

TF2 doesn't really have many physics props though, so you might have to spawn your own props using another plugin or using Stripper:Source.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Fenrix
Member
Join Date: Mar 2008
Old 06-29-2008 , 05:09   Re: Grabber:SM
Reply With Quote #14

works in a mod called Zombie Panic: Source.
although the seek range for picking up props is way too far and it moves too fast towards you.
- on version 1 though, ill upgrade then tweak till it works anyway

other than that sweet plugin
Fenrix is offline
ottobohn
Senior Member
Join Date: Sep 2007
Old 06-30-2008 , 17:42   Re: Grabber:SM
Reply With Quote #15

I love you.

Otto
ottobohn is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 07-08-2008 , 08:03   Re: Grabber:SM
Reply With Quote #16

any way to disable the stupid looping sound and just have no sound?
__________________
FunTF2Server is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 07-08-2008 , 10:21   Re: Grabber:SM
Reply With Quote #17

It's off in "ground mode."

You could edit line 180 from
if (GetConVarInt(cvGround)!=1)
to
if (false)
and recompile it.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Fredd
Veteran Member
Join Date: Jul 2007
Old 07-16-2008 , 16:04   Re: Grabber:SM
Reply With Quote #18

nice job.
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 07-16-2008 , 17:10   Re: Grabber:SM
Reply With Quote #19

I have enhanced this plugin for use with TF2. The modifications allow you to pickup (& throw) the engineer's buildings (teleporter, dispenser & sentry gun). Apparently, you can also pick up cabinets.

I also added more sounds for when you throw something, when there is nothing to pickup and when attempting to pickup something that has been disallowed.

I also added a native interface so this can be called from other plugins. The native interface can also be used give a "gravgun" to specific players. zgrabber.inc defines this interface for the other plugins.

**Updated 05/23/2010**
Fixed issues from TF2 updates
Changed to use Global Forwards
Fixes for Dead Ringer
Various other fixes

**Updated 10/15/2009**
Changed ztf2grab to check the FL_ONGROUND entity flag to see if objects are on the ground (and skip ray-trace)
Don't allow cloaked or disgused spys or bonked scouts use the grabber
Included tf2_player.inc into ztf2grab (and remote) to allow compilation using SM's web compiler
Changed several plugin to only use the NOTIFY, REPLICATED, and SPONLY convar flags on the version convar
Fixed error in ztf2grab when grabbing buildings not built by a player
Fixed Gravity Gun so Engineer's can actually used them when sc_allow_gravgun is 1
Changed Gravity Gun to no longer allow sentry surfing.
Changed Gravity Gun to only allow repairing sentry for level 3 and above.
Fixed Gravity Gun so Sentries can be 'surfed' again (more or less), when allowed
Use EdictClass instead of NetClass to determine object/building type
Cleaned up entity/edict checking

**Updated 6/30/2009
-Incorporated retsam's dispenser enabled cvar (sm_grab_dispenser)
-Incorporated dragonshadow's fix to prevent throwing objects by jumping.
-Fixed spelling of sm_grab_theif convar to sm_grab_thief

**Update 6/20/2009
-fixed incorrect natives

**Updated 6/19/2009
-copied lines from zgrabber.inc so the SM web compiler will work.
-stop objects sliding when ray tracing the ground is < 5 units away.
-drop object to the (ray traced) ground when they stop.
-Check for 0 client in commands to prevent errors
-Merged alt shotgun update by dragonshadow (also changes convar names)
-rotate the building to face where it's grabber is looking
-Added rotate command
-Added reload on wrench rotates grabbed building
-Added alt-fire for wrench picks up/drops building
-Renamed to ztf2grab

**Updated 3/18/2009
Modified zgrabber to be more specific on what it grabs to reduce crashes.
Updated error messages sent to the logs to only include client names that are still InGame
Added gravity convars to zgrabber
-sm_grabber_throwgravity = Gravity for thrown objects (default=1.0)
-sm_grabber_dropgravity = Gravity for dropped objects (default=10.0)
-sm_grabber_movetype = change the MOVETYPE of thrown objects (0=no 1=yes)

**Updated 9/26/2008**
Added new convars:
sm_grabber_droponjump: to drop objects when jumping when set to 1
sm_grabber_props: Disable grabbing prop_ objects (cabinets and bomb carts) when set to 1
sm_grabber_throwsetdisabled Disables buildings when throw when 1
sm_grabber_grabsetdisabled Disables buildings when grabber when set to 1
sm_grabber_stopspeed Speed at which a building is considered stopped
sm_grabber_droponsapped Droppes buildings when the are sapped when set to 1
sm_grabber_norepair Does not allow buildings to be repaired while they have been grabber when set to 1
sm_debug to display class name of objects

Also changed the native interface
Attached Files
File Type: inc ztf2grab.inc (4.9 KB, 433 views)
File Type: sp Get Plugin or Get Source (ztf2grab.sp - 1249 views - 61.5 KB)

Last edited by naris; 05-23-2010 at 17:27. Reason: updates
naris is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 07-16-2008 , 17:11   Re: Grabber:SM
Reply With Quote #20

Quote:
Originally Posted by naris View Post
I have enhanced this plugin for use with TF2. The modifications allow you to pickup (& throw) the engineer's buildings (teleporter, dispenser & sentry gun). Apparently, you can also pick up cabinets.

I also added more sounds for when you throw something, when there is nothing to pickup and when attempting to pickup something that has been disallowed.

I also added a native interface so this can be called from other plugins. THe native interface can also be used give a "gravgun" to specific players. zgrabber.inc defines this interface for the other plugins.
Nice!

Thanks for posting that naris.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
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 11:40.


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