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

[CSS] Ammo from dead


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 12-03-2011 , 06:14   [CSS] Ammo from dead
Reply With Quote #1

I couldn't find anything like this for CSS, but there is such plugin for CS1.6 HERE.

Version for CSS could be alittle different, if someone would like to create it:

- pick up ammo left and not loaded (i.e. if the player died with 28/46 ammo left, only 46 bullets can be picked up)

- pick up ammo of the same type only (player running with AK47 can't pick up ammo from player, who died with MP5 i.e., but can pick up ammo from player, who died with AK47 or M4A1).


It would be great to have such functionality I think.

Last edited by GrO; 12-03-2011 at 06:16.
GrO is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 12-04-2011 , 09:44   Re: [CSS] Ammo from dead
Reply With Quote #2

Maybe just simple port it from AMX to SM without those differences I wrote? Anyone?
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-04-2011 , 11:48   Re: [CSS] Ammo from dead
Reply With Quote #3

that should be able to be done... using sdkhooks be able to know what weapon you're touching, if it's the same one you have, and if so, take all of the rounds except those in the magazine of the dropped gun (or limit it like that amx plugin can)...
TnTSCS is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 12-04-2011 , 19:33   Re: [CSS] Ammo from dead
Reply With Quote #4

Quote:
Originally Posted by TnTSCS View Post
that should be able to be done... using sdkhooks be able to know what weapon you're touching, if it's the same one you have, and if so, take all of the rounds except those in the magazine of the dropped gun (or limit it like that amx plugin can)...
Good to hear, it's possible. I can donate the one, who'd like to write it under SM.

BTW
Some weapons are using the same type of bullets (i.e. AK47 and GALIL?), so it would be good to associate them in the plugin, is it also possible?
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-04-2011 , 21:04   Re: [CSS] Ammo from dead
Reply With Quote #5

yes... sounds like a good exercise/experiment for me...

kind of like the money drop, just a little different
TnTSCS is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 12-05-2011 , 08:42   Re: [CSS] Ammo from dead
Reply With Quote #6

Quote:
Originally Posted by TnTSCS View Post
yes... sounds like a good exercise/experiment for me...
Awesome!

Would it be too complicated to allow ammo pick up, when dead player's and alive player's weapon is pistol only?

Last edited by GrO; 12-06-2011 at 03:36.
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-06-2011 , 16:55   Re: [CSS] Ammo from dead
Reply With Quote #7

I'll try to get pounding on this soon... been busy with work
TnTSCS is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 12-07-2011 , 08:41   Re: [CSS] Ammo from dead
Reply With Quote #8

Quote:
Originally Posted by TnTSCS View Post
I'll try to get pounding on this soon... been busy with work
No problem, just wondering about the pistols case from my previous post and another one with using some default HL2 'bullet box' models (like money in Your plugin), but I don't know, if it's a good idea for server performance. It could also cost too much work to associate a different 'bullet box' model for each type of ammo. It's up to Your opinion.
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-08-2011 , 17:58   Re: [CSS] Ammo from dead
Reply With Quote #9

Okay - here's my first attempt at this...

Thanks to all the fellas in IRC who helped out with the ability to find the ammo value for weapons on the ground.

To install this, you'll need the attached .smx (or compile the .sp yourself with the necessary includes), and gamedata file (cssdroppedammo.txt).

The gamedata (and include) were a product of psychonic and Peace-Maker as a result of my inquiry in IRC. Here's the thread for the include - THREAD

If this plugin works out - I'll post it to the new threads with a few more options (optional updater, optional adverts when players pickup cash, etc).

If you have suggestions, please let me know here in this thread
Attached Files
File Type: sp Get Plugin or Get Source (Ammo Pickup.sp - 266 views - 5.2 KB)
File Type: txt cssdroppedammo.txt (445 Bytes, 178 views)
File Type: smx Ammo Pickup.smx (8.7 KB, 240 views)
TnTSCS is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 12-08-2011 , 20:41   Re: [CSS] Ammo from dead
Reply With Quote #10

Wow, didn't expect it so early ;] I'm gonna test it right away. All my sugestions (pistols, 'bullet box' models) are already posted above, so just waiting for Your opinion about it.

Quote:
Originally Posted by TnTSCS View Post
(optional adverts when players pickup cash, etc)
You mean ammo, not cash? Or I don't know something? ;D
GrO 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 14:25.


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