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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Rodya
Senior Member
Join Date: Mar 2017
Location: Russia
Old 08-19-2017 , 07:53   Re: [CS:GO] Multi-1v1 (v1.1.5, 2017-2-12)
Reply With Quote #1321

Quote:
Originally Posted by splewis View Post
If you're having trouble with your server, you can:

- set sm_multi1v1_mute_other_arenas to 0 (cfg/multi1v1/multi1v1.cfg)
- do the edit Haullucinogenic Troll suggested and recompile: https://forums.alliedmods.net/showpo...postcount=1320
- get a compiled version of the edit from my dev builds: https://ci.splewis.net/job/csgo-mult...stStableBuild/
- or wait until I put out a new release tomorrow.
dont work..
HTML Code:
public bool CanHear(int shooter, int client) {
    if (!IsValidClient(shooter) || !IsValidClient(client) || shooter == client) {
        return true;
    }

    float pos[3];
    GetClientAbsOrigin(client, pos);

    // Block the transmisson.
    if (Multi1v1_GetArenaNumber(shooter) != FindClosestArenaNumber(pos)) {
        return false;
    }

    // Transmit by default.
    return true;
}

public Action Hook_ShotgunShot(const char[] te_name, const int[] players, int numClients, float delay) {
    if (g_MuteOtherArenasCvar.IntValue == 0 || g_EnabledCvar.IntValue == 0) {
        return Plugin_Continue;
    }

    int shooterIndex = TE_ReadNum("m_iPlayer") + 1;

    // Check which clients need to be excluded.
    int[] newClients = new int[MaxClients];
    int newTotal = 0;

    for (int i = 0; i < numClients; i++) {
        int client = players[i];

        bool rebroadcast = true;
        if (!IsPlayer(client)) {
            rebroadcast = true;
        } else {
            rebroadcast = CanHear(shooterIndex, client);
        }

        if (rebroadcast) {
            // This Client should be able to hear it.
            newClients[newTotal] = client;
            newTotal++;
        }
    }

    // No clients were excluded.
    if (newTotal == numClients) {
        return Plugin_Continue;
    }

    // All clients were excluded and there is no need to broadcast.
    if (newTotal == 0) {
        return Plugin_Stop;
    }

    // Re-broadcast to clients that still need it.
    float vTemp[3];
    TE_Start("Shotgun Shot");
    TE_ReadVector("m_vecOrigin", vTemp);
    TE_WriteVector("m_vecOrigin", vTemp);
    TE_WriteFloat("m_vecAngles[0]", TE_ReadFloat("m_vecAngles[0]"));
    TE_WriteFloat("m_vecAngles[1]", TE_ReadFloat("m_vecAngles[1]"));
    TE_WriteNum("m_weapon", TE_ReadNum("m_weapon"));
    TE_WriteNum("m_iMode", TE_ReadNum("m_iMode"));
    TE_WriteNum("m_iSeed", TE_ReadNum("m_iSeed"));
    TE_WriteNum("m_iPlayer", TE_ReadNum("m_iPlayer"));
    TE_WriteFloat("m_fInaccuracy", TE_ReadFloat("m_fInaccuracy"));
    TE_WriteFloat("m_fSpread", TE_ReadFloat("m_fSpread"));
    TE_Send(newClients, newTotal, delay);

    return Plugin_Stop;
}
Rodya is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 08-19-2017 , 15:42   Re: [CS:GO] Multi-1v1 (v1.1.5, 2017-2-12)
Reply With Quote #1322

Quote:
Originally Posted by Rodya View Post
dont work..
I gave you 4 options. Saying "don't work" is not helpful unless you say what option you did.
__________________
splewis is offline
Rodya
Senior Member
Join Date: Mar 2017
Location: Russia
Old 08-20-2017 , 09:35   Re: [CS:GO] Multi-1v1 (v1.1.5, 2017-2-12)
Reply With Quote #1323

Quote:
Originally Posted by splewis View Post
I gave you 4 options. Saying "don't work" is not helpful unless you say what option you did.
1,2
__________________

Rodya is offline
freakav
Senior Member
Join Date: Jul 2016
Old 08-20-2017 , 15:56   Re: [CS:GO] Multi-1v1 (v1.1.6, 2017-8-18)
Reply With Quote #1324

L 08/20/2017 - 22:42:25: [SM] Call stack trace:
L 08/20/2017 - 22:42:25: [SM] [0] TE_ReadNum
L 08/20/2017 - 22:42:25: [SM] [1] Line 63, ./scripting/multi1v1/mute.sp::Hook_ShotgunShot
L 08/20/2017 - 22:42:27: [SM] Exception reported: Temp entity property "m_iWeaponID" not found
L 08/20/2017 - 22:42:27: [SM] Blaming: multi1v1.smx
__________________
freakav is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 08-20-2017 , 16:17   Re: [CS:GO] Multi-1v1 (v1.1.6, 2017-8-18)
Reply With Quote #1325

Quote:
Originally Posted by freakav View Post
L 08/20/2017 - 22:42:25: [SM] Call stack trace:
L 08/20/2017 - 22:42:25: [SM] [0] TE_ReadNum
L 08/20/2017 - 22:42:25: [SM] [1] Line 63, ./scripting/multi1v1/mute.sp::Hook_ShotgunShot
L 08/20/2017 - 22:42:27: [SM] Exception reported: Temp entity property "m_iWeaponID" not found
L 08/20/2017 - 22:42:27: [SM] Blaming: multi1v1.smx
Try the 1.1.7 build in the first post.
__________________
splewis is offline
freakav
Senior Member
Join Date: Jul 2016
Old 08-20-2017 , 16:34   Re: [CS:GO] Multi-1v1 (v1.1.6, 2017-8-18)
Reply With Quote #1326

Quote:
Originally Posted by splewis View Post
Try the 1.1.7 build in the first post.
works
__________________
freakav is offline
j1gg
Senior Member
Join Date: Dec 2015
Old 08-21-2017 , 08:35   Re: [CS:GO] Multi-1v1 (v1.1.7, 2017-8-20)
Reply With Quote #1327

I have strange bug, after respawn i dont have hands.
__________________
j1gg is offline
Masterofks
AlliedModders Donor
Join Date: Sep 2016
Location: Poland
Old 08-22-2017 , 15:15   Re: [CS:GO] Multi-1v1 (v1.1.7, 2017-8-20)
Reply With Quote #1328

Plugin doesn't save preferences. I tried delete client preference but didnt help.

Code:
  [01] SourceMod (1.8.0.6024) by AlliedModders LLC
  [02] CS Tools (1.8.0.6024) by AlliedModders LLC
  [03] SDK Tools (1.8.0.6024) by AlliedModders LLC
  [04] SteamWorks Extension (1.2.1) by Kyle Sanderson
  [05] SDK Hooks (1.8.0.6024) by AlliedModders LLC
CS:GO Multi1v1" (1.1.7) by splewis
Masterofks is offline
szogun
Senior Member
Join Date: Apr 2016
Old 08-22-2017 , 17:47   Re: [CS:GO] Multi-1v1 (v1.1.7, 2017-8-20)
Reply With Quote #1329

### Steps to reproduce @splewis
- Plugin version: 1.1.5"
- Sourcemod version: 1.8.0.6024
- Metamod version:= "1.10.7-devV" ( def. "1.10.7-dev" ) notify singleplayer - Metamod:Source Version

Crash logs:
https://crash.limetech.org/3j5jaxdhmyca

Last edited by szogun; 08-22-2017 at 17:48.
szogun is offline
Masterofks
AlliedModders Donor
Join Date: Sep 2016
Location: Poland
Old 08-22-2017 , 17:52   Re: [CS:GO] Multi-1v1 (v1.1.7, 2017-8-20)
Reply With Quote #1330

Quote:
Originally Posted by szogun View Post
### Steps to reproduce @splewis
- Plugin version: 1.1.5"
- Sourcemod version: 1.8.0.6024
- Metamod version:= "1.10.7-devV" ( def. "1.10.7-dev" ) notify singleplayer - Metamod:Source Version

Crash logs:
https://crash.limetech.org/3j5jaxdhmyca
Update plugin to 1.1.7
Masterofks 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 18:38.


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