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

[CS:S] Ammo From Dead


Post New Thread Reply   
 
Thread Tools Display Modes
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 04-27-2015 , 12:05   Re: [CS:S] Ammo From Dead
Reply With Quote #161

Quote:
Originally Posted by TnTSCS View Post
They were already ignored. C4 and nades were ignored, I just added knife.
I see, only knife couldn't be dropped by default, thanks for explaining.
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-27-2015 , 16:48   Re: [CS:S] Ammo From Dead
Reply With Quote #162

The reason I added the knife to the weapons to ignore on drop is because of the drop on death plugin - it drops knives.
__________________
View my Plugins | Donate
TnTSCS is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 04-28-2015 , 13:24   Re: [CS:S] Ammo From Dead
Reply With Quote #163

Quote:
Originally Posted by TnTSCS View Post
The reason I added the knife to the weapons to ignore on drop is because of the drop on death plugin - it drops knives.
Understood.
GrO is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 04-28-2015 , 19:53   Re: [CS:S] Ammo From Dead
Reply With Quote #164

Quote:
Originally Posted by GrO View Post
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.
Currently we can change the scale of all models simultaneously (as I can see in the source file), but this way we can't make all models to have the same size, because one of'em is much bigger, than two others by default.

That's why I thoght about the ability of scaling all those 3 models separately.
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-29-2015 , 02:16   Re: [CS:S] Ammo From Dead
Reply With Quote #165

I can modify the plugin to change the scale of each of the three different model types. I'll try to work on that and post an update later today.
__________________
View my Plugins | Donate
TnTSCS is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 04-29-2015 , 05:51   Re: [CS:S] Ammo From Dead
Reply With Quote #166

Quote:
Originally Posted by TnTSCS View Post
I can modify the plugin to change the scale of each of the three different model types. I'll try to work on that and post an update later today.
I see, thanks.
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-29-2015 , 10:53   Re: [CS:S] Ammo From Dead
Reply With Quote #167

Give this a shot.

Version 0.2.1.4
+ Enhanced ammo box model scale to have seperate values for Pistols, Rifles, and Shotguns.

Removed CVar: sm_afd_scalefactor

New CVars:
sm_afd_scalefactor_pistol
-Specify scale factor for pistol ammo box model.
1.0 = Unchanged
<= 0.9 = Smaller
>= 1.1 = Larger

sm_afd_scalefactor_rifle
-Specify scale factor for rifle ammo box model.
1.0 = Unchanged
<= 0.9 = Smaller
>= 1.1 = Larger

sm_afd_scalefactor_shotgun
-Specify scale factor for shotgun ammo box model.
1.0 = Unchanged
<= 0.9 = Smaller
>= 1.1 = Larger
Attached Files
File Type: sp Get Plugin or Get Source (ammo_from_dead.sp - 63 views - 38.5 KB)
File Type: smx ammo_from_dead.smx (22.4 KB, 54 views)
__________________
View my Plugins | Donate
TnTSCS is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 04-29-2015 , 11:08   Re: [CS:S] Ammo From Dead
Reply With Quote #168

Quote:
Originally Posted by TnTSCS View Post
Give this a shot.

Version 0.2.1.4
+ Enhanced ammo box model scale to have seperate values for Pistols, Rifles, and Shotguns.
Can't wait to test this one (too bad I don't manage any Pub or Prv servers, like the old days, but... you never know), thanks again.

Anyway... more servers should use this plugin combined with the other one posted here, cause it'll make that game better (if there will be no issues) and you don't need to use or download any custom models or sounds (you can, but it's not required). Maybe remaining CSS server H@s would give this a shot...
GrO is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 05-02-2015 , 17:31   Re: [CS:S] Ammo From Dead
Reply With Quote #169

I'm close to test this new combination, but I've noticed you've used boxsrounds.mdl everywhere, I've changed that:

Code:
	HookConVarChange((hRandom = AutoExecConfig_CreateConVar("sm_afd_pistolammo_model", "models/items/boxsrounds.mdl", 
	"Specify the model to use for pistol ammo boxes.")), OnPistolModelChanged);
	GetConVarString(hRandom, g_sPistolModel, sizeof(g_sPistolModel));
	SetAppend(appended);
	
	HookConVarChange((hRandom = AutoExecConfig_CreateConVar("sm_afd_otherammo_model", "models/items/boxmrounds.mdl", 
	"Specify the model to use for other weapon ammo boxes.")), OnOtherModelChanged);
	GetConVarString(hRandom, g_sOtherModel, sizeof(g_sOtherModel));
	SetAppend(appended);
	
	HookConVarChange((hRandom = AutoExecConfig_CreateConVar("sm_afd_sgammo_model", "models/items/boxbuckshot.mdl", 
	"Specify the model to use for shotgun ammo boxes.")), OnSGModelChanged);
	GetConVarString(hRandom, g_sSGModel, sizeof(g_sSGModel));
	SetAppend(appended);
EDIT:
And I recieve this error, while compiling using SM 1.7.1:

Quote:
// X:\sourcemod-1.7.1-windows\addons\sourcemod\scripting\include\sm lib/entities.inc(33) : error 138: const was specified twice

Last edited by GrO; 05-02-2015 at 18:20.
GrO is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 05-04-2015 , 03:52   Re: [CS:S] Ammo From Dead
Reply With Quote #170

You don't need to edit the .sp, you can just change the CVar for those.

I think I compiled it against 1.6, but I can't remember. I'll try and see if compiling against 1.7.1 causes errors for me.
__________________
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 19:57.


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