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

Secondary Weapons Only


Post New Thread Reply   
 
Thread Tools Display Modes
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 12-28-2008 , 15:37   Re: Secondary Weapons Only
Reply With Quote #11

Its called holidays, and I usually prefer not to write scripts when family is here. This should work, and I am not to blame if it doesnt work. It is your resonsibility to decide how and when to test a plugin, and setting up a local testing server is your best bet. I dont have the time to go test it again, although I am pretty sure I tested this version the other day and it worked fine.

It doesnt automatically switch them to another weapon when it removes the primary, but with another 0.1 second timer, you could force an equip and they would never know the difference.
Attached Files
File Type: sp Get Plugin or Get Source (tf2secondaryweapons.sp - 434 views - 1.0 KB)
__________________
CrimsonGT is offline
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 12-28-2008 , 21:15   Re: Secondary Weapons Only
Reply With Quote #12

Quote:
Originally Posted by CrimsonGT View Post
Its called holidays, and I usually prefer not to write scripts when family is here. This should work, and I am not to blame if it doesnt work. It is your resonsibility to decide how and when to test a plugin, and setting up a local testing server is your best bet. I dont have the time to go test it again, although I am pretty sure I tested this version the other day and it worked fine.

It doesnt automatically switch them to another weapon when it removes the primary, but with another 0.1 second timer, you could force an equip and they would never know the difference.
lol.
Completely understandable.
Sorry if I seemed pushy, I just didn't want my request to go unnoticed!

This does work, but with some bugs.
I'm not sure now to script any of this, so if you could help me out, please do.
Again, sorry to be so pushy!
__________________
[BSM] isuckatlinux is offline
Send a message via AIM to [BSM] isuckatlinux Send a message via Yahoo to [BSM] isuckatlinux
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 12-28-2008 , 21:35   Re: Secondary Weapons Only
Reply With Quote #13

I cant help with bugs if you dont tell me what they are.
__________________
CrimsonGT is offline
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 12-29-2008 , 12:39   Re: Secondary Weapons Only
Reply With Quote #14

Quote:
Originally Posted by CrimsonGT View Post
I cant help with bugs if you dont tell me what they are.
lol, k.
As they leave the spawn (or come back to spawn), if they go to the ammo locker, it will give them their weapons back!
Also, you said that I could force equip the secondary, how?
Again, thanks so much for the help!
__________________
[BSM] isuckatlinux is offline
Send a message via AIM to [BSM] isuckatlinux Send a message via Yahoo to [BSM] isuckatlinux
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 12-29-2008 , 14:53   Re: Secondary Weapons Only
Reply With Quote #15

To force equip a weapon, you will need to make a timer inside of the already existing timer for 0.1 seconds, and in it use EquipPlayerWeapon(client, weapon)

For resupply cabinets, you will need to see if there is an event, which I believe there is, for when a player uses a cabinent, and strip the weapons again.
__________________
CrimsonGT is offline
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 12-29-2008 , 16:50   Re: Secondary Weapons Only
Reply With Quote #16

Quote:
Originally Posted by CrimsonGT View Post
To force equip a weapon, you will need to make a timer inside of the already existing timer for 0.1 seconds, and in it use EquipPlayerWeapon(client, weapon)

For resupply cabinets, you will need to see if there is an event, which I believe there is, for when a player uses a cabinent, and strip the weapons again.
Erm, I'm still new a scripting, so I don't understand any of that.
Sorry.
__________________
[BSM] isuckatlinux is offline
Send a message via AIM to [BSM] isuckatlinux Send a message via Yahoo to [BSM] isuckatlinux
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 12-30-2008 , 00:23   Re: Secondary Weapons Only
Reply With Quote #17

When I get a chance I will add it. Im not testing it though as it takes a while for TF2 to load up. It will be up to you to run it on a development server, or an empty one or something and make sure it doesnt crash.
__________________
CrimsonGT is offline
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 12-30-2008 , 16:32   Re: Secondary Weapons Only
Reply With Quote #18

Quote:
Originally Posted by CrimsonGT View Post
When I get a chance I will add it. Im not testing it though as it takes a while for TF2 to load up. It will be up to you to run it on a development server, or an empty one or something and make sure it doesnt crash.
I don't mind testing, that's not a problem!
__________________
[BSM] isuckatlinux is offline
Send a message via AIM to [BSM] isuckatlinux Send a message via Yahoo to [BSM] isuckatlinux
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 01-07-2009 , 04:50   Re: Secondary Weapons Only
Reply With Quote #19

Have you had any time to look at this?
__________________
[BSM] isuckatlinux is offline
Send a message via AIM to [BSM] isuckatlinux Send a message via Yahoo to [BSM] isuckatlinux
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 01-28-2009 , 16:59   Re: Secondary Weapons Only
Reply With Quote #20

Quote:
Originally Posted by [BSM] isuckatlinux View Post
Have you had any time to look at this?
It's been a while and I just wanted to bump this.
__________________
[BSM] isuckatlinux is offline
Send a message via AIM to [BSM] isuckatlinux Send a message via Yahoo to [BSM] isuckatlinux
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 02:40.


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