AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CS:S DM (https://forums.alliedmods.net/forumdisplay.php?f=77)
-   -   CS:S DM 2.1.4 Released (June 25, 2011) (https://forums.alliedmods.net/showthread.php?t=160097)

BAILOPAN 06-25-2011 05:08

CS:S DM 2.1.4 Released (June 25, 2011)
 
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/

sinblaster 06-25-2011 07:39

Re: CS:S DM 2.1.4 Released (June 25, 2011)
 
Thanks heaps for all the time you put in to Duck's Poo issues. I appreciate it

Quack.

tdldp 06-28-2011 10:48

Re: CS:S DM 2.1.4 Released (June 25, 2011)
 
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

nightrider 07-08-2011 04:18

Re: CS:S DM 2.1.4 Released (June 25, 2011)
 
Thank you Bailopan

x16 08-24-2011 11:21

Re: CS:S DM 2.1.4 Released (June 25, 2011)
 
Is this Deathmatch working with this Deathmatch version?

away000 09-19-2011 09:56

Re: CS:S DM 2.1.4 Released (June 25, 2011)
 
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.

pr0gadget 09-29-2011 08:31

Re: CS:S DM 2.1.4 Released (June 25, 2011)
 
Now you can also buy flashes in buyzone (when buy time is active) if not restricted with other plugin like (weapon restrict)

macaxeira 11-02-2011 11:02

Re: CS:S DM 2.1.4 Released (June 25, 2011)
 
1 Attachment(s)
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

soldanis 12-13-2012 18:25

Re: CS:S DM 2.1.4 Released (June 25, 2011)
 
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

demonyui 07-15-2014 22:15

Re: CS:S DM 2.1.4 Released (June 25, 2011)
 
how to open the menu settings again??? (random every time T_T)


All times are GMT -4. The time now is 13:47.

Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.