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

[L4D2] Disable Magnum


Post New Thread Reply   
 
Thread Tools Display Modes
chinagreenelvis
Senior Member
Join Date: Dec 2009
Old 04-06-2012 , 00:27   Re: [L4D2] Disable Magnum
Reply With Quote #11

Quote:
Originally Posted by asto View Post
Simple way is using Stripper:Source.
http://forums.alliedmods.net/showthread.php?t=39439

Add this to global_filters.cfg to replace magnums:
Code:
modify:
{
    match:
    {    
    "classname" "weapon_pistol_magnum_spawn"
    }
    replace:
    {
    "classname" "weapon_pistol_spawn"
    }
}
Interesting. Though I assume this would also be subject to be less than 100% as a result of the dynamically-chosen random "any pistol" and "any weapon" spawn locations?
chinagreenelvis is offline
chinagreenelvis
Senior Member
Join Date: Dec 2009
Old 04-07-2012 , 00:07   Re: [L4D2] Disable Magnum
Reply With Quote #12

Quote:
Originally Posted by McFlurry View Post
I just remembered that it's not weapon_magnum or weapon_magnum_spawn, but instead weapon_pistol_magnum and weapon_pistol_magnum_spawn.
Hey, it works! Awesome.

Better than nothing, really. At least magnums are now extremely rare. I guess it's good to have them as an extra-special item rather than eradicate them altogether anyway. Giving you credit for the plugin.
chinagreenelvis is offline
asto
Member
Join Date: Aug 2010
Old 04-09-2012 , 07:45   Re: [L4D2] Disable Magnum
Reply With Quote #13

Quote:
Originally Posted by chinagreenelvis View Post
Interesting. Though I assume this would also be subject to be less than 100% as a result of the dynamically-chosen random "any pistol" and "any weapon" spawn locations?
You can replace the random pistols too.

Code:
modify:
{
    match:
    {    
    "weapon_selection" "any_pistol"
    "classname" "weapon_spawn"
    }
    replace:
    {
    "classname" "weapon_pistol_spawn"
    }
}
asto is offline
chinagreenelvis
Senior Member
Join Date: Dec 2009
Old 04-10-2012 , 01:20   Re: [L4D2] Disable Magnum
Reply With Quote #14

Quote:
Originally Posted by asto View Post
You can replace the random pistols too.

Code:
modify:
{
    match:
    {    
    "weapon_selection" "any_pistol"
    "classname" "weapon_spawn"
    }
    replace:
    {
    "classname" "weapon_pistol_spawn"
    }
}
I think there is an "any" weapon spawn as well...?
chinagreenelvis is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-10-2012 , 02:17   Re: [L4D2] Disable Magnum
Reply With Quote #15

https://developer.valvesoftware.com/wiki/Weapon_spawn

"any" - Any primary or secondary weapon
"any_pistol" - Any Pistol

So you don't need to worry about "any".
__________________
Silvers is offline
chinagreenelvis
Senior Member
Join Date: Dec 2009
Old 04-15-2012 , 03:22   Re: [L4D2] Disable Magnum
Reply With Quote #16

Quote:
Originally Posted by Silvers View Post
https://developer.valvesoftware.com/wiki/Weapon_spawn

"any" - Any primary or secondary weapon
"any_pistol" - Any Pistol

So you don't need to worry about "any".
"Any" will never spawn pistols?
chinagreenelvis is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-15-2012 , 04:19   Re: [L4D2] Disable Magnum
Reply With Quote #17

I won't help you read, I won't.
__________________
Silvers 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 04:38.


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