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

No Weapon Drop [+defuser support] [v0.1.2beta]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
VEN
Veteran Member
Join Date: Jan 2005
Old 01-01-2007 , 20:28   No Weapon Drop [+defuser support] [v0.1.2beta]
Reply With Quote #1

Plugin disables weapon drop. Quite differs from No Weapon Drop on Death

Comparision table:
Code:
+------------------------+----------------+-------------------------+
|                        | No Weapon Drop | No Weapon Drop on Death |
+------------------------+----------------+-------------------------+
| safe weapon deletion   |       +        |            -            |
| death mode             |       +        |            +            |
| alive mode             |       +        |            -            |
| disconnect mode        |       +        |            -            |
| teams mode             |       +        |            -            |
| custom weapons support |       +        |            -            |
| defuser support        |       +        |            -            | 
| required modules       |    fakemeta    |    fakemeta, engine     | 
| use pcvar system       |       +        |            -            | 
+------------------------+----------------+-------------------------+
By default this plugin disables any weapon drop except C4. Via CVars you can configure alive/death/disconnect/team modes, enable drop for specific weapon(s), disable defuser drop.

Code:
CVARs
  nwd_state (flags: 1&2&4, default: 7)
    1 - affect on alive players
    2 - affect on player's death
    4 - affect on player's disconnect (bomb only)
  nwd_teams (flags: 1&2, default: 3)
    1 - affect on Terrorist players
    2 - affect on Counter-Terrorist players
  nwd_allow (flags: 1&2&4..., default: 65)
             1 - defuser [not a weapon but item; allowed by default]
             2 - p228
             4 - shield
             8 - scout
            16 - hegrenade [will not be dropped in any case]
            32 - xm1014
            64 - c4 [allowed by default]
           128 - mac10
           256 - aug
           512 - smokegrenade [will not be dropped in any case]
          1024 - elite
          2048 - fiveseven
          4096 - ump45
          8192 - sg550
         16384 - galil
         32768 - famas
         65536 - usp
        131072 - glock18
        262144 - awp
        524288 - mp5navy
       1048576 - m249
       2097152 - m3
       4194304 - m4a1
       8388608 - tmp
      16777216 - g3sg1
      33554432 - flashbang [will not be dropped in any case]
      67108864 - deagle
     134217728 - sg552
     268435456 - ak47
     536870912 - knife [will not be dropped in any case]
    1073741824 - p90
Attached Files
File Type: sma Get Plugin or Get Source (noweapondrop.sma - 8414 views - 5.7 KB)

Last edited by VEN; 01-03-2007 at 17:18.
VEN is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 01-01-2007 , 21:43   Re: No Weapon Drop [+defuser support]
Reply With Quote #2

So this makes it so when you die, you don't leave a weapon on the floor?
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
VEN
Veteran Member
Join Date: Jan 2005
Old 01-01-2007 , 22:12   Re: No Weapon Drop [+defuser support]
Reply With Quote #3

By default this plugin disables any weapon drop except C4. You can configure the plugin via CVars, see the first post for details.

Last edited by VEN; 01-01-2007 at 22:22.
VEN is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 01-02-2007 , 09:21   Re: No Weapon Drop [+defuser support]
Reply With Quote #4

This is pretty cool.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
Zenith77
Veteran Member
Join Date: Aug 2005
Old 01-02-2007 , 11:48   Re: No Weapon Drop [+defuser support]
Reply With Quote #5

Why don't you just update the other one that's already approved?
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-02-2007 , 13:01   Re: No Weapon Drop [+defuser support]
Reply With Quote #6

Because it's actually a different plugin. If the first one wasn't so old i'd just "rename" it, but now this wouldn't be that good solution, could cause some confusion in my opinion.
VEN is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 01-03-2007 , 01:36   Re: No Weapon Drop [+defuser support]
Reply With Quote #7

VEN,

I currently use your other one you refer to. I am having trouble understanding what exactly the difference is???

Do both plugins do the same thing (and this one just better with more features)? If you could clarify--I'm a little dumb in not understanding the difference--sorry.

All I want is all weapons removed from the map when a player dies--which one should I use?

Last edited by SubStream; 01-03-2007 at 01:56.
SubStream is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-03-2007 , 02:35   Re: No Weapon Drop [+defuser support]
Reply With Quote #8

I'd recommend this one mainly because of the better weapon deletion method. You can configure the plugin via CVars to feet your needs. Also i've added the comparision table. Read the first post for details.

Last edited by VEN; 01-03-2007 at 02:52.
VEN is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 01-03-2007 , 16:03   Re: No Weapon Drop [+defuser support]
Reply With Quote #9

Quote:
Originally Posted by VEN View Post
I'd recommend this one mainly because of the better weapon deletion method. You can configure the plugin via CVars to feet your needs. Also i've added the comparision table. Read the first post for details.
TY - That's a huge help. Good stuff!

Edit: I just tested this on my server and it works flawlessly! The gun dissapears as soon as it leaves my hands--and I can tell the difference in performance vs. the other one. GJ Very nice!

Last edited by SubStream; 01-03-2007 at 16:38.
SubStream is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-03-2007 , 17:07   Re: No Weapon Drop [+defuser support]
Reply With Quote #10

I believe that No Weapon Drop on Death could be potentially unstable sometimes. While i widely tested it i couldn't notice that but one of the users reported so. From what i can tell is that it's not recommended to delete weapons with RemoveEntity or by FL_KILLME flag set methods because a weapon is represented as an entity pair and the both weaponbox and weapon_* entity is linked to each other internally by the Game, so breaking this "link" by entities deleting/killing may potentially lead to some unexpected results since some Game internal data structures haven't updated properly.

That's why i always recommend to everyone to use so called "natural" (Game default) weapon deletion way.

Last edited by VEN; 01-03-2007 at 17:22.
VEN 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 16:38.


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