Raised This Month: $7 Target: $400
 1% 

CS:S DM 2.1.4 Released (June 25, 2011)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BAILOPAN
Join Date: Jan 2004
Old 06-25-2011 , 04:08   CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #1

I have released CS:S DM 2.1.4 to work with the latest CS:S update. You can download it here:

http://www.bailopan.net/cssdm/index.php?page=download

To report bugs, use https://bugs.alliedmods.net/
__________________
egg
BAILOPAN is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 06-25-2011 , 06:39   Re: CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #2

Thanks heaps for all the time you put in to Duck's Poo issues. I appreciate it

Quack.
__________________
Happy Happy Joy Joy

sinblaster is offline
tdldp
Junior Member
Join Date: Jun 2010
Old 06-28-2011 , 09:48   Re: CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #3

Hello bailopan

Thanks for update..
Please refer to following post : http://forums.alliedmods.net/showthread.php?t=155040

I think i have found a flaw in sp code : let me explain (though i prefer warn i'm not a sp file developper)

in equipement.sp you start by creating menus on plugin start :
Code:
public OnPluginStart()
{
}
you then load config datas :
Code:
public OnConfigsExecuted()
{
}
Then you load a Var saying if menus are to be shown as soon as a client dies (or respawns) and when a client joins server during a round.
Code:
public Action:DM_OnClientDeath(client)
{
	if (g_SpawnTimers[client] != INVALID_HANDLE)
	{
		KillTimer(g_SpawnTimers[client]);
		g_SpawnTimers[client] = INVALID_HANDLE;
	}
	g_GunMenuAvailable[client] = true;
}

public OnClientPutInServer(client)
{
	g_GunMenuEnabled[client] = true;
	g_GunMenuAvailable[client] = true;
	g_PrimaryChoices[client] = -1;
	g_SecondaryChoices[client] = -1;
}
I believe there is a bug on the g_GunMenuEnabled[client] = true; in these 2 functions.

I think there should be a if condition checking in the convars if menu is to be enabled or not
If you accept my point of view which in gungame, would suggest i do not wish to show a menu allowing weapon choosing, i would suggest following code modification to be ported in compiled smx :

Create ConVar :
Code:
"Equipment"
{
	"Settings"
	{
		// Allow clients to say "guns" to restore their menu.
		// This is disabled if the menu isn't drawn.
		//
		"guns_command"		"no"
		
		// Choose if by default, menus are to be displayed
		//
		"show_menus"		"no"
	}
Change dm_equipment.sp to following :
Code:
/** HUMAN CONFIGS */
new g_PrimaryList[CSSDM_MAX_WEAPONS];
new g_SecondaryList[CSSDM_MAX_WEAPONS];
new g_PrimaryCount = 0;
new g_SecondaryCount = 0;
new g_PrimaryMenu = CSSDM_GUNMENU_YES;
new g_SecondaryMenu = CSSDM_GUNMENU_YES;
new bool:g_AllowBuy = false;
new g_ArmorAmount = 100;
new bool:g_Helmets = true;
new g_Flashes = 0;
new bool:g_Smokes = false;
new bool:g_HEs = false;
new bool:g_NightVision = false;
new bool:g_DefuseKits = true;
new bool:g_AllowGunCommand = true;
new bool:g_ShowMenus = true;
new g_HealthAmount = 100;
Code:
public Action:DM_OnClientDeath(client)
{
	if (g_SpawnTimers[client] != INVALID_HANDLE)
	{
		KillTimer(g_SpawnTimers[client]);
		g_SpawnTimers[client] = INVALID_HANDLE;
	}
	if (!g_ShowMenus) {
		g_GunMenuAvailable[client] = false; 
	} else {
		g_GunMenuAvailable[client] = true;
	}
}

public OnClientPutInServer(client)
{
	if (!g_ShowMenus) {
		g_GunMenuEnabled[client] = false; 
	} else {
		g_GunMenuEnabled[client] = true;
	}
	if (!g_ShowMenus) {
		g_GunMenuAvailable[client] = false; 
	} else {
		g_GunMenuAvailable[client] = true;
	}
	g_PrimaryChoices[client] = -1;
	g_SecondaryChoices[client] = -1;
}
Code:
LoadDefaults()
{
	g_PrimaryMenu = CSSDM_GUNMENU_YES;
	g_SecondaryMenu = CSSDM_GUNMENU_YES;
	g_AllowBuy = false;
	g_ArmorAmount = 100;
	g_Helmets = true;
	g_Flashes = 0;
	g_Smokes = false;
	g_HEs = false;
	g_NightVision = false;
	g_DefuseKits = true;
	g_HealthAmount = 100;
	g_AllowGunCommand = true;
	g_ShowMenus = true;
}
Code:
bool:LoadConfigFile(const String:path[])
{
	new Handle:kv = CreateKeyValues("Equipment");
	if (!FileToKeyValues(kv, path))
	{
		return false;
	}
	
	decl String:value[255];
	
	/* Load settings */
	if (KvJumpToKey(kv, "Settings"))
	{
		g_AllowGunCommand = KvGetYesOrNo(kv, "guns_command", g_AllowGunCommand);
		g_ShowMenus = KvGetYesOrNo(kv, "show_menus", g_ShowMenus);
		KvGoBack(kv);
	}
Thanks for your kind return on this suggestion...

Yours

Tdldp

Last edited by tdldp; 06-28-2011 at 10:38.
tdldp is offline
nightrider
SourceMod Donor
Join Date: Dec 2008
Old 07-08-2011 , 03:18   Re: CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #4

Thank you Bailopan
__________________
[SIGPIC][/SIGPIC] the pantless
I am the Night Rider!, I'm a fuel-injected suicide machine.
I am a rocker! I am a roller!, I am an out-of-controller!


nightrider is offline
x16
Junior Member
Join Date: Dec 2008
Old 08-24-2011 , 10:21   Re: CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #5

Is this Deathmatch working with this Deathmatch version?
x16 is offline
away000
Veteran Member
Join Date: Sep 2010
Old 09-19-2011 , 08:56   Re: CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #6

After the last updates the CS: S DM of Bailo is not giving infinite ammo on reload, is soo ubuggy with Kevlar and defuse icons (who i have fixed with a plugin), pla do a little fix (update) on the plugin bailo xD.

Thanks.

Last edited by away000; 09-19-2011 at 13:36.
away000 is offline
pr0gadget
Junior Member
Join Date: Mar 2011
Location: Planet Earth
Old 09-29-2011 , 07:31   Re: CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #7

Now you can also buy flashes in buyzone (when buy time is active) if not restricted with other plugin like (weapon restrict)
__________________
Notice: If you notice this notice you will notice that this notice is not worth noticing.
pr0gadget is offline
macaxeira
Junior Member
Join Date: Jul 2010
Old 11-02-2011 , 10:02   Re: CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #8

EN:

Hi guys,
If you want a translation from: Download CS:S DM 2.1.4 to Português "PT-BR" is attached.
thank you
Macaxeira | BR


PT:

Olá Amigos,
Se vocês quiserem a tradução da versão: CS:S DM 2.1.4 para Português "PT-BR" está em anexo.

Obrigado;
Macaxeira | BR
Attached Files
File Type: txt cssdm.phrases.txt (3.4 KB, 1003 views)

Last edited by macaxeira; 11-02-2011 at 10:04.
macaxeira is offline
soldanis
New Member
Join Date: Dec 2012
Old 12-13-2012 , 17:25   Re: CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #9

Hi BAILOPAN ,

I have a little problem ...

if i install GG51 alone is work perfectly
if i install cssdm alone is work perfectly
But if i hav this 2 script my server crash !

I have seven autoscripts configured depending on the map launched (skins/mod/....)
All work perfectly !

if I run a map gg is the crash, any idea?

thank you in advance
soldanis is offline
demonyui
New Member
Join Date: Jul 2014
Old 07-15-2014 , 21:15   Re: CS:S DM 2.1.4 Released (June 25, 2011)
Reply With Quote #10

how to open the menu settings again??? (random every time T_T)

Last edited by demonyui; 07-15-2014 at 21:16.
demonyui 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 01:22.


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