AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   No Weapon Drop [+defuser support] [v0.1.2beta] (https://forums.alliedmods.net/showthread.php?t=49323)

VEN 01-01-2007 20:28

No Weapon Drop [+defuser support] [v0.1.2beta]
 
2 Attachment(s)
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


vvg125 01-01-2007 21:43

Re: No Weapon Drop [+defuser support]
 
So this makes it so when you die, you don't leave a weapon on the floor?

VEN 01-01-2007 22:12

Re: No Weapon Drop [+defuser support]
 
By default this plugin disables any weapon drop except C4. You can configure the plugin via CVars, see the first post for details.

vvg125 01-02-2007 09:21

Re: No Weapon Drop [+defuser support]
 
This is pretty cool.

Zenith77 01-02-2007 11:48

Re: No Weapon Drop [+defuser support]
 
Why don't you just update the other one that's already approved?

VEN 01-02-2007 13:01

Re: No Weapon Drop [+defuser support]
 
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.

SubStream 01-03-2007 01:36

Re: No Weapon Drop [+defuser support]
 
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?

VEN 01-03-2007 02:35

Re: No Weapon Drop [+defuser support]
 
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.

SubStream 01-03-2007 16:03

Re: No Weapon Drop [+defuser support]
 
Quote:

Originally Posted by VEN (Post 423056)
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!

VEN 01-03-2007 17:07

Re: No Weapon Drop [+defuser support]
 
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.


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

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