View Single Post
Plugin Info:     Modification:          Category:          Approver:   Emp` (115)
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 05-01-2008 , 13:00   Real Weapon Drop
Reply With Quote #1

Description:
This plugin introduces into the game more features related to dropped weapons. Features such as:
  1. Ability to drop weapons up and down - where you aim, in that direction weapon will be thrown.
  2. Ability to manually drop grenades.
  3. Drop all weapons at death. Including grenades and a special box of ammunition.
  4. Drop all weapons on disconnect. Including grenades and a special box of ammunition.
  5. Barrel of dropped weapons is always facing in the same direction as player was looking.

Requires:
FakeMeta
HamSandWich


Cvars:

* "rwd_aimdrop" - Counter-Strike:Source style manual weapon drop.
- "1" - enabled. [default]
- "0" - disabled.

* "rwd_grenadedrop" - ability to manually drop grenades.
- "1" - enabled. [default]
- "0" - disabled.

* "rwd_deathdrop" - drop all weapons on death.
- "1" - enabled. [default]
- "0" - disabled.

* "rwd_disconnectdrop" - drop all weapons on disconnect.
- "1" - enabled. [default]
- "0" - disabled.

* "rwd_modelanglefix" - barrel of the weapon angle fix.
- "1" - enabled. [default]
- "0" - disabled.


Additional info:
Tested in Counter-Strike 1.6 with amxmodx 1.8.2. Various features can be enabled and disabled via cvars. This plugin also has support VIP objectives and grenade trail plugins.


Notes:
Barrel of dropped weapons may be facing in wrong direction if client is using custom weapon models.


Warnings:
In some cases pausing this plugin may lead to glitches, therefor if when needed please use cvars instead. That is if paused in certain moments by other plugins. Manual pauses won't do much harm, except dropped flashes will fill up your flashbang slot to maximum, and ammunition box will be touchable only once.


Credits:
Special thanks to Arkshine for Counter-Strike SDK and big help what he have provided by delivering very useful information! Also big thanks goes to eDark for calculation functions!


Change-Log:

* 2.3
- Fixed: Crash at mapchange if there's too many players and other entities.
- Changed: More reliability when saving number of dropped bullets and flash grenades.

* 2.1
- Changed: Minor performance improvement.

* 2.0
- Fixed: Grenades do not bounce insane when dropped.
- Fixed: VIPs can't no longer pick-up ammunition.
- Fixed: VIPs also do drop their weapons if have any.
- Changed: Full plugin rewrite - plugin is now much more stable.

* 1.4
- Fixed: "grenade bounce for ever" by adding gravitation level manually.

* 1.3
- Fixed: Explode grenade on death if it's not armed.
- Added: Grenade drop.

* 1.2
- Fixed: Due to bug in standard ArrayDeleteItem(Array:which, item) native I created my own working one.

* 1.1
- Changed: (code) Modified array clear (less cpu usage - I think).
- Changed: (code) Entity scan (less cpu usage).
- Changed: (code) Unneeded data getting from array - removed (less cpu usage).

* 1.0
- First release.
Attached Files
File Type: sma Get Plugin or Get Source (real_weapon_drop.sma - 5792 views - 32.5 KB)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 02-04-2014 at 15:39.
MPNumB is offline
Send a message via Skype™ to MPNumB