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

[CS:S] Ammo From Dead


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-05-2014 , 18:05   Re: [CS:S] Ammo From Dead
Reply With Quote #151

Here's a sample of the ammo_from_dead.cfg

Code:
// ammo_from_dead models download for the ammo boxes

models\weapons\rifleshell.dx80.vtx
models\weapons\rifleshell.dx90.vtx
models\weapons\rifleshell.mdl
models\weapons\rifleshell.sw.vtx
models\weapons\rifleshell.vvd
materials\models\weapons\black.vmt
materials\models\weapons\rifleshellback.vmt
materials\models\weapons\rifleshellside.vmt
__________________
View my Plugins | Donate
TnTSCS is offline
TheLaser
Senior Member
Join Date: Jan 2008
Location: USA VA
Old 09-27-2014 , 13:16   Re: [CS:S] Ammo From Dead
Reply With Quote #152

So TnTSCS,

I ask the question is there any way to make this work in HL2mp "Team Deathmatch"
I would be nice to have on our servers ...


thanks ..........



Laser
TheLaser is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-28-2014 , 13:24   Re: [CS:S] Ammo From Dead
Reply With Quote #153

TheLaser:
Have you tried it? I don't have that game (at least I don't think I do) - does it show any error or anything? I'm not sure about the properties of items and such for that game.

Perhaps someone who is familiar with HL2MP "Team Deathmatch" can assist?
__________________
View my Plugins | Donate
TnTSCS is offline
TheLaser
Senior Member
Join Date: Jan 2008
Location: USA VA
Old 09-28-2014 , 19:40   Re: [CS:S] Ammo From Dead
Reply With Quote #154

TnTSCS,

Yes I did and nothing ... even had the right game.text , no errors because it doesnt load .

Thank anyways , keep up the good work
TheLaser is offline
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 02-21-2015 , 20:27   Re: [CS:S] Ammo From Dead
Reply With Quote #155

Here's a version that doesn't require any gamedata for usage, nor SMLib to compile.
Attached Files
File Type: sp Get Plugin or Get Source (ammo_from_dead.sp - 69 views - 37.3 KB)
StrikerMan780 is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 04-27-2015 , 09:25   Re: [CS:S] Ammo From Dead
Reply With Quote #156

1 idea and 1 question...

IDEA:
What do you think about ability of changing model's scale?
Mainly to make all those ammo boxes to have the same size in-game or to make'em all smaller, or bigger.

QUESTION:
Would this plugin drop 2 boxes (i.e. rifle ammo box and pistol ammo box), while the server also runs [CSS] Drop on Death plugin by bigbalaboom?
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-27-2015 , 10:13   Re: [CS:S] Ammo From Dead
Reply With Quote #157

Attached is a new version (0.2.1.2 0.2.1.3) that allows model scaling for ammo boxes (already available in 0.2.1.1 here). New to 0.2.1.2 is it now uses the API for giving ammo instead of requiring a gamedata.

As for your question - yes, it's possible, but I would have to see how that plugin handles dropping a pistol when the player has a rifle.

See the linked post for CVars

...:: TnT Edit ::...
After looking at that code, this plugin should work, but I've not tested it. bigbalaboom uses CS_DropWeapon to drop weapons on death. I've updated this plugin (0.2.1.3) to ignore weapon_knife drops. Let me know the results of your testing.
Attached Files
File Type: smx ammo_from_dead.smx (22.1 KB, 65 views)
File Type: sp Get Plugin or Get Source (ammo_from_dead.sp - 75 views - 36.8 KB)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-27-2015 at 10:30.
TnTSCS is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 04-27-2015 , 11:31   Re: [CS:S] Ammo From Dead
Reply With Quote #158

Quote:
Originally Posted by TnTSCS View Post
Attached is a new version (0.2.1.2 0.2.1.3) that allows model scaling for ammo boxes (already available in 0.2.1.1 here). New to 0.2.1.2 is it now uses the API for giving ammo instead of requiring a gamedata.

As for your question - yes, it's possible, but I would have to see how that plugin handles dropping a pistol when the player has a rifle.

See the linked post for CVars

...:: TnT Edit ::...
After looking at that code, this plugin should work, but I've not tested it. bigbalaboom uses CS_DropWeapon to drop weapons on death. I've updated this plugin (0.2.1.3) to ignore weapon_knife drops. Let me know the results of your testing.
WOW! Didn't expect you find the time so quickly, great job, thanks.

Unfortunately I don't run any of my servers for a while now, so I can't test it instantly. If no one will test this shortly I will set up my test server to test this plugin and maybe few others from "New Plugins" section.

Thanks again for quick reaction.
GrO is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 04-27-2015 , 11:48   Re: [CS:S] Ammo From Dead
Reply With Quote #159

Quote:
Originally Posted by TnTSCS View Post
I've updated this plugin (0.2.1.3) to ignore weapon_knife drops.
What about a nade drops, shouldn't those be ignored too, while the other plugin also handles'em?
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-27-2015 , 11:56   Re: [CS:S] Ammo From Dead
Reply With Quote #160

They were already ignored. C4 and nades were ignored, I just added knife.
__________________
View my Plugins | Donate
TnTSCS is offline
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 05:24.


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