AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Plugins (https://forums.alliedmods.net/forumdisplay.php?f=76)
-   -   CS:S Weapon Restrictions 2 (with source code) (16Dec06) (https://forums.alliedmods.net/showthread.php?t=40075)

L. Duke 06-02-2006 12:10

CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
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.

FlyingMongoose 07-03-2006 09:26

Re: CS:S Weapon Restrictions 2 (with source code)
 
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 :(.

OoS-LJ 08-14-2006 15:23

Re: CS:S Weapon Restrictions 2 (with source code)
 
This does not seem to restrict bots from any weapons. Is there something I can do to restrict from bots.

L. Duke 08-14-2006 18:09

Re: CS:S Weapon Restrictions 2 (with source code)
 
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


OoS-LJ 08-14-2006 18:22

Re: CS:S Weapon Restrictions 2 (with source code)
 
Thank you very much, love the plugin for real people.

FlyingMongoose 08-17-2006 03:27

Re: CS:S Weapon Restrictions 2 (with source code)
 
is there any way I could get that request? or no? Just out of curiosity.

L. Duke 08-17-2006 10:46

Re: CS:S Weapon Restrictions 2 (with source code)
 
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).

OoS-LJ 08-25-2006 01:19

Re: CS:S Weapon Restrictions 2 (with source code)
 
This was broken in the new update :( Will not load up.

L. Duke 08-25-2006 09:29

Re: CS:S Weapon Restrictions 2 (with source code)
 
Will be fixed as soon as I get the chance to update the function signatures.

Dark_Templar 09-04-2006 12:13

Re: CS:S Weapon Restrictions 2 (with source code)
 
Quote:

Originally Posted by L. Duke (Post 372803)
Will be fixed as soon as I get the chance to update the function signatures.

Any progress? :)


All times are GMT -4. The time now is 02:02.

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