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

Secondary Weapons Only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 12-21-2008 , 20:30   Secondary Weapons Only
Reply With Quote #1

Looking for help on a script to disable all weapons except the secondary weapon in TF2!
Anyone wanna help me?
__________________
[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 12-22-2008 , 03:30   Re: Secondary Weapons Only
Reply With Quote #2

I know melee only scripts exist, but I've never seen a mod that only allows the secondary and continues to check! Any ideas would be appreciated!
__________________
[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-22-2008 , 09:18   Re: Secondary Weapons Only
Reply With Quote #3

Here you go. Im not positive its the right weapon slot, but im pretty sure. If it strips all of them and leaves the wrong one, let me know. When you turn it on, it will strip the weapons when the player spawns. You can turn it off by setting sm_secondaryweapons_enabled to 0.
Attached Files
File Type: sp Get Plugin or Get Source (tf2secondaryweapons.sp - 450 views - 1.0 KB)
__________________
CrimsonGT is offline
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 12-22-2008 , 16:16   Re: Secondary Weapons Only
Reply With Quote #4

Quote:
Originally Posted by CrimsonGT View Post
Here you go. Im not positive its the right weapon slot, but im pretty sure. If it strips all of them and leaves the wrong one, let me know. When you turn it on, it will strip the weapons when the player spawns. You can turn it off by setting sm_secondaryweapons_enabled to 0.
First off, thanks for the help.
Secondly, I have a few questions:
1. How do I implement it? Or does it automatically implement (if this is the case, can I make it an option that you can turn on and off (like melee only))?
2. Can you make a few special instances? There are only three that I want. For medic, give him the syringe gun. For the spy, give him the revolver. And for the demoman, give him the pipe bomb launcher.
3. Can something be written in that checks to make sure that they didn't go back to the ammo locker to replenish their other weapons?

Again, thanks!
__________________
[BSM] isuckatlinux is offline
Send a message via AIM to [BSM] isuckatlinux Send a message via Yahoo to [BSM] isuckatlinux
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 12-22-2008 , 16:27   Re: Secondary Weapons Only
Reply With Quote #5

1. Read the last sentence of his post.
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 12-22-2008 , 16:28   Re: Secondary Weapons Only
Reply With Quote #6

Quote:
Originally Posted by Lebson506th View Post
1. Read the last sentence of his post.
LMFAO
Wow.
I am a moron!
__________________
[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 12-22-2008 , 16:40   Re: Secondary Weapons Only
Reply With Quote #7

A few problems.
lol

I just tested it on my server!
It doesn't work, it just strips ALL the weapons, even when i attempt to turn it off, it's useless. I had to restart my server for people to get weapons again!
lol
__________________
[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 12-22-2008 , 22:17   Re: Secondary Weapons Only
Reply With Quote #8

Quote:
Originally Posted by [BSM] isuckatlinux View Post
A few problems.
lol

I just tested it on my server!
It doesn't work, it just strips ALL the weapons, even when i attempt to turn it off, it's useless. I had to restart my server for people to get weapons again!
lol
Any ideas on how to fix it?
__________________
[BSM] isuckatlinux is offline
Send a message via AIM to [BSM] isuckatlinux Send a message via Yahoo to [BSM] isuckatlinux
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 12-23-2008 , 07:13   Re: Secondary Weapons Only
Reply With Quote #9

He'll fix it when he notices the thread, just be patient =)
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
[BSM] isuckatlinux
Member
Join Date: Oct 2008
Location: Georgia
Old 12-28-2008 , 14:11   Re: Secondary Weapons Only
Reply With Quote #10

Quote:
Originally Posted by Lebson506th View Post
He'll fix it when he notices the thread, just be patient =)
Gotcha.
About how long does this process take?
lol
I know, I'm impatient!
__________________
[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:34.


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