Raised This Month: $ Target: $400
 0% 

[CS:GO] Multi-1v1 (v1.1.10, 2021-10-30)


Post New Thread Reply   
 
Thread Tools Display Modes
klexen
Senior Member
Join Date: Sep 2013
Old 04-01-2015 , 19:48   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #621

Quote:
Originally Posted by splewis View Post
I've had an open issue for it for a few months now: https://github.com/splewis/csgo-multi-1v1/issues/50

If anyone else wants to work on it that's the quickest way of getting it added.
Here's how I would probably go about adding support for my knife plugin:

Add a convar like sm_multi1v1_support_knife_plugin and do something like:
PHP Code:
public void RifleHandler(int client) {
    
    if (!
g_hKnifeSupport) {
        
Client_RemoveAllWeapons(client""true);
    } else {
        
Client_RemoveAllWeapons(client"weapon_knife"true); //Excludes the knife from removal
    
}
    
    
GiveWeapon(clientg_PrimaryWeapon[client]);
    
Client_SetHelmet(clienttrue);
    
Client_SetArmor(client100);

    
int pistolBehavior g_hPistolBehavior.IntValue;
    if (
pistolBehavior != 1) {
        
GiveWeapon(clientg_SecondaryWeapon[client]);
    }
    if (!
g_hKnifeSupport)
        
GiveWeapon(client"weapon_knife");

I can't remember off the top of my head whether or not all the current knives are exactly of class "weapon_knife" (such as weapon_knifegg)

So just in case, I'd modify this part of the function: Client_RemoveAllWeapons in smlib/clients.inc to:

PHP Code:
if (exclude[0] != '\0' && Entity_ClassNameMatches(weaponexcludetrue)) { //Add true to use partial matching
    
Client_SetActiveWeapon(clientweapon);
    continue;

__________________



Last edited by klexen; 04-01-2015 at 22:03.
klexen is offline
laterbreh
Junior Member
Join Date: Dec 2014
Old 04-01-2015 , 20:44   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #622

Just checking in to confirm that the popup windows to view rank etc no longer work since the 3/31 patches?
laterbreh is offline
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 04-01-2015 , 20:48   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #623

Quote:
Originally Posted by laterbreh View Post
Just checking in to confirm that the popup windows to view rank etc no longer work since the 3/31 patches?
This is true.

Edit:

Should be fixed in lastest update
__________________

Last edited by versatile_bfg; 04-01-2015 at 22:37.
versatile_bfg is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 04-02-2015 , 00:32   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #624

Quote:
Originally Posted by klexen View Post
Here's how I would probably go about adding support for my knife plugin:
I've tried exactly that before - and it seems to still have the issue of resulting in duplicate flashbangs when the multi1v1_flashbangs plugin is also used. That plugin just gives a flash on spawn - and only gives 1 with sm_knifeupgrade off. When enabled, the players receive 2. (and that's with 2.5.2 of your plugin)
__________________

Last edited by splewis; 04-02-2015 at 00:36.
splewis is offline
laterbreh
Junior Member
Join Date: Dec 2014
Old 04-02-2015 , 03:09   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #625

I have a question about adding functions to the plugin.

I currently have a advertisement plugin that spams messages and information every set amount of time. My goal would be instead to have the Multi1v1 plugin make the messages so they would appear formatted in the way the Plugin chats with the players.... example [Multi1v1]: Message

I noticed in your github you have extensive information about additional functions and calls that can be used to extend the plugin.

I am somewhat new at this, but if I wanted to code up something to have multi1v1 broadcast to all clients would I have to compile the messages or "ads" to an smx to make it work?
__________________
laterbreh is offline
klexen
Senior Member
Join Date: Sep 2013
Old 04-02-2015 , 04:45   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #626

Quote:
Originally Posted by splewis View Post
I've tried exactly that before - and it seems to still have the issue of resulting in duplicate flashbangs when the multi1v1_flashbangs plugin is also used. That plugin just gives a flash on spawn - and only gives 1 with sm_knifeupgrade off. When enabled, the players receive 2. (and that's with 2.5.2 of your plugin)
I'll look into this tomorrow. But I believe I remember this, and it was because my plugin did an extra team swap / respawn when a player switches team. This was a workaround in an attempt to fix crashes caused under certain conditions when a player uses the golden knife.

In 2.5.1 (When the double flashbang issue was brought to my attention) this quick teamswap happened by default. Which is what I believe caused the double flashbang. I actually remember creating these cvars and turning them off by default because of your plugin. So in 2.5.2 it will only happen if people have one of these two cvars set to 1: (They're 0 by default)
  • sm_knifeupgrade_goldknife_crash
  • sm_knifeupgrade_round_crash

I'll be removing this workaround in 2.5.3 as soon as I have some more time to work on it. They didn't seem to help the issue anyway from what I've read. Until then, if people have the double flashbang issue, they'll need to set these to 0 or delete the config and let the plugin recreate it.
__________________



Last edited by klexen; 04-02-2015 at 04:48.
klexen is offline
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 04-05-2015 , 03:08   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #627

ANy way to make this 2vs2 ?
__________________
nguyenbaodanh is offline
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 04-06-2015 , 02:18   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #628

Quote:
Fatal Error: ED_Alloc: no free edicts
Server crash instantly .. random crash. pls helP.
__________________
nguyenbaodanh is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 04-06-2015 , 06:28   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #629

Quote:
Originally Posted by nguyenbaodanh View Post
Server crash instantly .. random crash. pls helP.
To many custom models or content?
__________________
Neuro Toxin is offline
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 04-06-2015 , 06:59   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #630

Nope .. I only 1v1 plugin and sourcemod plugins. maybe because the map ?
__________________
nguyenbaodanh 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 13:51.


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