Raised This Month: $134 Target: $400
 33% 

CS:S Weapon Restrictions 2 (with source code) (16Dec06)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 06-02-2006 , 13:10   CS:S Weapon Restrictions 2 (with source code) (16Dec06)
Reply With Quote #1

CS:S Weapon Restrictions 2
by L. Duke

Restricted weapons can't be picked up (like a rifle/pistol can't be picked up if you already have one).

Includes a CVAR to delete weapons which should be enabled for CSSDM so massive piles of weapons don't cause server issues.

Download (includes source code)


Please post any bugs in this thread.

Obsolete

Source may be useful for MMS plugin authors learning to hook virtual functions.

Last edited by L. Duke; 01-05-2009 at 17:33.
L. Duke is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 07-03-2006 , 10:26   Re: CS:S Weapon Restrictions 2 (with source code)
Reply With Quote #2

I'd still like to see something along the lines of restrict per-team.

restrict awp 2
2 awps per team

but I'd also like the ability to combine restrictions
restrict awp g3sg1 sg550 2

I sure hope you get what I mean by that...but if not.

Restricted autos and awps with a maximum of 2 per team, so it can be any combination of the following per team
2 awps
0 autos

1 awp
1 auto

0 awps
2 autos

get it? I sure hope so cuz I'm very lazy...I might sift through that source code of yours but I'm not very good at coding .
FlyingMongoose is offline
OoS-LJ
Senior Member
Join Date: Mar 2006
Location: California
Old 08-14-2006 , 16:23   Re: CS:S Weapon Restrictions 2 (with source code)
Reply With Quote #3

This does not seem to restrict bots from any weapons. Is there something I can do to restrict from bots.
__________________
No KnoW Server
Web site : Visit Noknow.net!
DOD:S Server : noknow.nuclearfallout.net:27015

OoS-LJ is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 08-14-2006 , 19:09   Re: CS:S Weapon Restrictions 2 (with source code)
Reply With Quote #4

These are bot cvars NOT plugin cvars.

Quote:
bot_all_weapons
Allows the bots to use all weapons

bot_knives_only
Restricts the bots to only using knives

bot_pistols_only
Restricts the bots to only using pistols

bot_snipers_only
Restricts the bots to only using sniper rifles

bot_allow_grenades: 0/1
bot_allow_machine_guns: 0/1
bot_allow_pistols: 0/1
bot_allow_rifles: 0/1
bot_allow_shotguns: 0/1
bot_allow_snipers: 0/1
bot_allow_sub_machine_guns: 0/1

Last edited by L. Duke; 10-17-2006 at 01:02.
L. Duke is offline
OoS-LJ
Senior Member
Join Date: Mar 2006
Location: California
Old 08-14-2006 , 19:22   Re: CS:S Weapon Restrictions 2 (with source code)
Reply With Quote #5

Thank you very much, love the plugin for real people.
__________________
No KnoW Server
Web site : Visit Noknow.net!
DOD:S Server : noknow.nuclearfallout.net:27015

OoS-LJ is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 08-17-2006 , 04:27   Re: CS:S Weapon Restrictions 2 (with source code)
Reply With Quote #6

is there any way I could get that request? or no? Just out of curiosity.
FlyingMongoose is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 08-17-2006 , 11:46   Re: CS:S Weapon Restrictions 2 (with source code)
Reply With Quote #7

Ahh...sorry for not responding. I don't have any plans to add that at this time. I might add it if I think of a simple way of doing it that doesn't involve polling each player to find out what weapon they have every time someone touches a gun on the ground (since when you run over a gun the game sees you touching it about 20 times).
L. Duke is offline
OoS-LJ
Senior Member
Join Date: Mar 2006
Location: California
Old 08-25-2006 , 02:19   Re: CS:S Weapon Restrictions 2 (with source code)
Reply With Quote #8

This was broken in the new update Will not load up.
__________________
No KnoW Server
Web site : Visit Noknow.net!
DOD:S Server : noknow.nuclearfallout.net:27015

OoS-LJ is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 08-25-2006 , 10:29   Re: CS:S Weapon Restrictions 2 (with source code)
Reply With Quote #9

Will be fixed as soon as I get the chance to update the function signatures.
L. Duke is offline
Dark_Templar
Member
Join Date: May 2005
Old 09-04-2006 , 13:13   Re: CS:S Weapon Restrictions 2 (with source code)
Reply With Quote #10

Quote:
Originally Posted by L. Duke View Post
Will be fixed as soon as I get the chance to update the function signatures.
Any progress?
Dark_Templar 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 12:31.


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