[DoDS] Drop Weapon
1 Attachment(s)
Is taken from the Realism Mod in response to this:
http://forums.alliedmods.net/showthr...173#post645173 CVARS
if 1, message sent to all players (headshot only) if 2, message sent to attacker (headshot only) Installation
Version 1.0.100 SourceMod release. Version 1.0.101 Added cvar to remove messages Notes Has been tested in DoDS. |
Re: [DoDS] Drop Weapon
Nice man, THANKS!
How to make it work? Is there any command? |
Re: [DoDS] Drop Weapon
Nope. It just runs itself.
It checks to see which part of the hitbox has been damaged. If it's the arms, and the damage is over 40hp, the client is made to drop their weapon. Just pop the plugin into the plugins directory and load the next map. I think it might also work with CSS! |
Re: [DoDS] Drop Weapon
Just looking at your code I'd say you could totally remove this line
Code:
if (!(StrEqual(weapon, "bazooka") || StrEqual(weapon, "pschreck") || StrEqual(weapon, "frag_us") || StrEqual(weapon, "frag_ger") || StrEqual(weapon, "riflegren_us") || StrEqual(weapon, "riflegren_ger"))) Besides that it should work with any mod :) (It'd still work fine with that line but hey why not save a few nano seconds :wink:) |
Re: [DoDS] Drop Weapon
Man, just PERFECT.
Works FINE. But I have some suggestion to improve your plugin. Check it out: [IMG]http://img528.**************/img528/7480/armtl9.jpg[/IMG] Is there a way to make it on/off and editable ? Like: sm_drop_enable 1/0 (1 = on, 0 = off) enables or disables to plugin sm_drop_messageon 1/0 sm_drop_message "Your weapons is down, man, take it up!" And the headshot message: [IMG]http://img403.**************/img403/7232/headhc6.jpg[/IMG] is there a way to remove it and make another plugin, like DODS Stats, with things like this: sm_stats_enable 1/0 sm_stats_headshot_enable 1/2/0 1 = shows message to everybody 2 = shows message only to the killer and killed 0 = disabled sm_stats_headshot "&nick got a headshot from &killer with &weapon" (with &tags) what do you think about it? THANK YOU, anyway |
Re: [DoDS] Drop Weapon
Updated
|
All times are GMT -4. The time now is 10:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.