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

[TF2] pick up weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vadia111
Senior Member
Join Date: Dec 2013
Old 07-03-2015 , 16:46   [TF2] pick up weapons
Reply With Quote #1

It is to update .... now it is possible to get weapons from the same class ...... is possible to create a plugin to get weapons of all classes?
vadia111 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 07-03-2015 , 16:48   Re: [TF2] pick up weapons
Reply With Quote #2

Quote:
Originally Posted by vadia111 View Post
It is to update .... now it is possible to get weapons from the same class ...... is possible to create a plugin to get weapons of all classes?
Yeah, well, you can try this but it kinda sucks... You sohuld wait for a kind soul to script that for ya
__________________
Want to check my plugins ?
Arkarr is offline
vadia111
Senior Member
Join Date: Dec 2013
Old 07-03-2015 , 17:01   Re: [TF2] pick up weapons
Reply With Quote #3

Quote:
Originally Posted by Arkarr View Post
Yeah, well, you can try this but it kinda sucks... You sohuld wait for a kind soul to script that for ya


I wore this !! but with new att ..... is improved! let's see if anyone can do it = X
vadia111 is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 07-04-2015 , 14:08   Re: [TF2] pick up weapons
Reply With Quote #4

What do you want exactly? A plugin that allows a class to pickup a different class weapon?
thecount is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-04-2015 , 23:14   Re: [TF2] pick up weapons
Reply With Quote #5

Quote:
Originally Posted by thecount View Post
What do you want exactly? A plugin that allows a class to pickup a different class weapon?
Basically, he wants that restriction where you can pick up weapons that your class can use to be removed.

So for example, if he's scout and he sees a minigun on the ground, he wants to be able to pick up and use the minigun as scout.
Potato Uno is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 07-05-2015 , 06:38   Re: [TF2] pick up weapons
Reply With Quote #6

The animations will be wrong, and some combinations will crash the server/clients.
There is probably a sdkhook that controls if the player can pick it up, or if not, could be done with dhooks. I didn't look into it so I dont know.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-06-2015 , 10:09   Re: [TF2] pick up weapons
Reply With Quote #7

Quote:
Originally Posted by friagram View Post
The animations will be wrong, and some combinations will crash the server/clients.
The Randomizer plugin seems to work OK, so I'm not sure how big a deal this would actually be.

Quote:
Originally Posted by friagram View Post
There is probably a sdkhook that controls if the player can pick it up, or if not, could be done with dhooks. I didn't look into it so I dont know.
There's a function:

Code:
CTFPlayer::CanPickupDroppedWeapon(CTFDroppedWeapon  const*)
However, it's not virtual. Since it's not virtual, it requires a signature, and last I checked, DHooks doesn't work with signatures.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-06-2015 at 10:36.
Powerlord 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 07:28.


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