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

Drop All Weapons On Death (14 jul 2013)


Post New Thread Reply   
 
Thread Tools Display Modes
Killer12201
Senior Member
Join Date: Dec 2007
Old 02-16-2009 , 23:49   Re: Drop All Weapons On Death
Reply With Quote #11

Does this include secondary weapon?
__________________
Killer12201 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-17-2009 , 00:51   Re: Drop All Weapons On Death
Reply With Quote #12

Quote:
Originally Posted by MPNumB View Post
I suggest dllfunc(DLLFunc_Think, iWpnBx).
This is worse, then weaponbox is not removed; that's because weaponbox are manually created and the game doesn't know what to do with them when they think.
BTW, fixed.


Quote:
Originally Posted by Killer12201 View Post
Does this include secondary weapon?
All weapons except knife.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-17-2009 at 01:35.
ConnorMcLeod is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-17-2009 , 23:56   Re: Drop All Weapons On Death
Reply With Quote #13

Found a BIG BAD BUG !
It doesn't work along with "nosil" plugin http://forums.alliedmods.net/showthread.php?p=183118 and I really DON'T want to remove anny of them .

Explanation: When you die with USP/M4A1, whatever if the're silenced or not you will allways drop them SILENCED !
Bad thing....
Costin83 is offline
Send a message via Yahoo to Costin83
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-18-2009 , 01:17   Re: Drop All Weapons On Death
Reply With Quote #14

Neither Avalanche's plugin nor mine sets any weapon un/silent, the only thing that should not work is setting the nosil model on a dropped usp/m4a1.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-18-2009 , 20:00   Re: Drop All Weapons On Death
Reply With Quote #15

Quote:
Originally Posted by ConnorMcLeod View Post
Neither Avalanche's plugin nor mine sets any weapon un/silent, the only thing that should not work is setting the nosil model on a dropped usp/m4a1.
Never thought about one or another of the plugins setting weapons un/silent.

That's exactly the point. I believe the nosil models M4A1/USP are never called on death.

Sorry, I didn't explained verry well...
The purpose of Avalanche's plugin is to show the weapons models (p_model and w_model) the way that it should be: silenced/unsilenced, so when you hold an unsilenced M4A1/USP in your hand, the p_model will be the unsilenced one so everyone will see you with an unsilenced weapon in your hand. Same goes for dropped M4A1/USP w_models; If you drop an unsilenced weapon everyone will se an unsilenced weapon, and that is the way it should be.

The problem:
Drop_weapons_on_death plugin bypasses Avalanche's plugin (I don't know how to explain)
When a player dies your plugin makes a list of all the weapons he had "creates" them and drop them on ground. Nonthelss the weapon entities/models will be the default ones since the Avalanche's plugin function it's never called, or at least that's what I believe.......

I think I need a modified version of your plugin that will call functions within the "nosil" plugin, or a "merged" version of the two of them together
I don't know how to script, and I hope I didn't spoke nonsense all the way

Edit:

Here's a bit of Avalanche's plugin init:
register_forward(FM_SetModel,"fw_setmodel",0) ;
register_event("CurWeapon","event_curweapon", "b","1=1");

And here is a bit of your plugin:
ExecuteHam(Ham_Spawn, iWeaponBox)

Maybe the Ham_Spawn function is not "catched" by nosil plugin..... ?

Last edited by Costin83; 02-18-2009 at 20:21.
Costin83 is offline
Send a message via Yahoo to Costin83
Old 02-19-2009, 00:38
ConnorMcLeod
This message has been deleted by ConnorMcLeod. Reason: outdated
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-19-2009 , 16:19   Re: Drop All Weapons On Death
Reply With Quote #16

Quote:
Originally Posted by ConnorMcLeod View Post
Sorry but it's not doable, anyway, the model on dropped weapons is just an extra feature of avalanche's plugin, main one is to not draw the silencer on weapons that players carry.
Try this special version :
Yeeeeey! TY ! ! ! This is the way it shoud be
One single problem: the silenced models are not weapon models for some reason.... (there are battery models or something...) Idk Y..... but I stick my nose a bit in your code and changed a bit (added 2 lines) Now it works fine. GG man !
Keep it this way

Now you will do all the thinking stuff and maybe figure why didn't your version displayed the propper silenced weapons.... (in my opinion it shold have worked...)

Last edited by Costin83; 02-19-2009 at 19:43.
Costin83 is offline
Send a message via Yahoo to Costin83
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-19-2009 , 16:26   Re: Drop All Weapons On Death
Reply With Quote #17

My bad, code updated.
I may change something soon in main plugin, will add support for nosil plugin.


Quote:
Originally Posted by Costin83 View Post
Now you will do all the thinking stuff and maybe figure why didn't your version displayed the propper silenced weapons.... (in my opinion it shold have worked...)
As i told you before, there is no way to make nosil plugin detect my plugin setting a model.
I could call the plugin function but idk if it's a good thing.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-19-2009 at 16:30.
ConnorMcLeod is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 02-19-2009 , 18:56   Re: Drop All Weapons On Death
Reply With Quote #18

Please add grenade dropping when alive !
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 02-19-2009 , 19:33   Re: Drop All Weapons On Death
Reply With Quote #19

Quote:
Originally Posted by Sn!ff3r View Post
Please add grenade dropping when alive !
That is irrelevant to this plugin.
BOYSplayCS is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-19-2009 , 19:34   Re: Drop All Weapons On Death
Reply With Quote #20

Quote:
Originally Posted by ConnorMcLeod View Post
As i told you before, there is no way to make nosil plugin detect my plugin setting a model.
I could call the plugin function but idk if it's a good thing.
Ididn't refere to first version, but the "special_one"

Now the code works perfect for un/silenced models GJ!

EDIT:
Can I make litle "request" here ?

I want to merge this 3 plugins: death_weapons_drop_nosil, anti_fast_silence and nosil since the fact there are relaled to one echother and use similar functions.

Last edited by Costin83; 02-19-2009 at 19:52.
Costin83 is offline
Send a message via Yahoo to Costin83
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 23:44.


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