Raised This Month: $ Target: $400
 0% 

[L4D/L4D2]Lux's Model Changer(30/03/2020)


Post New Thread Reply   
 
Thread Tools Display Modes
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 04-05-2018 , 18:15   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #131

Conflicts with other plugins on map c1m3_mall will cause all players to be kicked out of the server.
Whether the plug-in can add a switch, 0=Plugin off, 1=Plugin on.
Or let the plugin be disabled on c1m3_mall
For example, the following fragment:

PHP Code:
public Action RoundStartDelay(Handle timer)
{
    
GetConVarString(FindConVar("mp_gamemode"), GameModesizeof(GameMode));
    if(
StrEqual(GameMode"survival"))
        return;
    if(
StrEqual(GameMode"scavenge"))
    {
        if(
g_bScavengeHalftime == true)
            
g_bScavengeHalftime false;
        else
            
GetWeaponSpawns();
        
SetWeaponSpawns();
        return;
    }

    if(
StrEqual(GameMode"versus"))
    {
        if(
g_bNewMap == true)
        {
            
GetWeaponSpawns();
            
g_bNewMap false;
        }

        
SetWeaponSpawns();
        return;
    }

    
GetCurrentMap(Mapsizeof(Map));
    if((
StrEqual(GameMode"coop") ||
    
StrEqual(GameMode"realism")) &&
    (
StrEqual(Map"c4m1_milltown_a") ||
    
StrEqual(Map"c4m2_sugarmill_a") ||
    
StrEqual(Map"c4m3_sugarmill_b") ||
    
StrEqual(Map"c4m4_milltown_b")))
        return;
    
GetWeaponSpawns();
    
SetWeaponSpawns();

__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 04-06-2018 , 11:28   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #132

Quote:
Originally Posted by phoenix0001 View Post
Conflicts with other plugins on map c1m3_mall will cause all players to be kicked out of the server.
Whether the plug-in can add a switch, 0=Plugin off, 1=Plugin on.
Or let the plugin be disabled on c1m3_mall
For example, the following fragment:

PHP Code:
public Action RoundStartDelay(Handle timer)
{
    
GetConVarString(FindConVar("mp_gamemode"), GameModesizeof(GameMode));
    if(
StrEqual(GameMode"survival"))
        return;
    if(
StrEqual(GameMode"scavenge"))
    {
        if(
g_bScavengeHalftime == true)
            
g_bScavengeHalftime false;
        else
            
GetWeaponSpawns();
        
SetWeaponSpawns();
        return;
    }

    if(
StrEqual(GameMode"versus"))
    {
        if(
g_bNewMap == true)
        {
            
GetWeaponSpawns();
            
g_bNewMap false;
        }

        
SetWeaponSpawns();
        return;
    }

    
GetCurrentMap(Mapsizeof(Map));
    if((
StrEqual(GameMode"coop") ||
    
StrEqual(GameMode"realism")) &&
    (
StrEqual(Map"c4m1_milltown_a") ||
    
StrEqual(Map"c4m2_sugarmill_a") ||
    
StrEqual(Map"c4m3_sugarmill_b") ||
    
StrEqual(Map"c4m4_milltown_b")))
        return;
    
GetWeaponSpawns();
    
SetWeaponSpawns();

What are the other plugins your using. i can tell u right now that this plugin works as intended with every plugin i use or have made myself. I cant personally see how this would conflict with anything on any map, unless a specific plugin your using modifies models specifically attached to clients? Whats the exact conflict your having?
MasterMind420 is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 04-06-2018 , 11:59   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #133

Quote:
Originally Posted by phoenix0001 View Post
Conflicts with other plugins on map c1m3_mall will cause all players to be kicked out of the server.
Whether the plug-in can add a switch, 0=Plugin off, 1=Plugin on.
Or let the plugin be disabled on c1m3_mall
For example, the following fragment:
phoenix i'v told you before using supertanks caused this for me (maybe signature)
So to stop it from happening remove supertanks issue fixed.
or just disable lmc for that map.

sm plugins unload L4D2ModelChanger.smx

i think

Also people are not getting kicked out, model precaching is not working causing clients to crash if you try to spawn a non prop_* entity because they can't dynamic precach however spawning prop_dynamic (example) will give it a random prop like a street sign.
however using vscript api does work which was quite strange.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 04-06-2018 at 12:03.
Lux is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 04-06-2018 , 12:52   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #134

Quote:
Originally Posted by Lux View Post
phoenix i'v told you before using supertanks caused this for me (maybe signature)
So to stop it from happening remove supertanks issue fixed.
or just disable lmc for that map.

sm plugins unload L4D2ModelChanger.smx

i think

Also people are not getting kicked out, model precaching is not working causing clients to crash if you try to spawn a non prop_* entity because they can't dynamic precach however spawning prop_dynamic (example) will give it a random prop like a street sign.
however using vscript api does work which was quite strange.
This without the .smx....sm plugins unload L4D2ModelChanger will work to unload it. I'm curious is it LMC not precaching the models on mapstart for some reason or...i'm not familiar with that issue because I don't use supertanks. I'm sure you've tried this too, try setting the preload bool to false maybe? not sure what effect it may have on the overall precaching of the models in relation to your code but just a thought, if it is LMC models not precaching properly with supertanks installed. Just a thought.
MasterMind420 is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 04-06-2018 , 14:40   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #135

Quote:
Originally Posted by MasterMind420 View Post
This without the .smx....sm plugins unload L4D2ModelChanger will work to unload it. I'm curious is it LMC not precaching the models on mapstart for some reason or...i'm not familiar with that issue because I don't use supertanks. I'm sure you've tried this too, try setting the preload bool to false maybe? not sure what effect it may have on the overall precaching of the models in relation to your code but just a thought, if it is LMC models not precaching properly with supertanks installed. Just a thought.

No its not lmc all model precaching.

as i said spawning a prop_dynamic can dynamic precache the model when you spawn it if its not precached already.

prop_dynamic_create infected/witch.mdl

something like that in the console can spawn a witch(just a prop tho trying this with the witch entity would crash clients) if it's not precached clients will get a freeze for a sec then the witch will spawn, however when i tried using supertanks this did not happen it spawn random prop model my guess is the server is not sending updated string tables.

One thing that is a big giveaway is trying to spawn a witch bride and she is a bucket or a bench then clients crash
Happen on a few custom maps too and fixed once i removed supertanks.

I'm unsure why supertanks does this and i'm not really up for messing with that code and i'm not really interested in that type of stuff either

Edit:

you can toggle each part of lmc off on there is no global off on.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 04-06-2018 at 14:46.
Lux is offline
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 04-06-2018 , 15:22   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #136

Incompatible with other addons that globally execute scripts.
We need this plugin to disable those incompatible plugins on crashed maps.
https://forums.alliedmods.net/showthread.php?t=306525
This is why I asked you to add a plug-in switch to L4D2ModelChanger.smx.
Whether the plug-in can add a switch, 0=Plugin off, 1=Plugin on.
In this way we can better control the incompatible plug-ins disabled on the map, so the problem will be solved. The plug-in will also be dynamically disabled or enabled.
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 04-06-2018 , 15:32   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #137

Quote:
Originally Posted by phoenix0001 View Post
Incompatible with other addons that globally execute scripts.
We need this plugin to disable those incompatible plugins on crashed maps.
https://forums.alliedmods.net/showthread.php?t=306525
This is why I asked you to add a plug-in switch to L4D2ModelChanger.smx.
Whether the plug-in can add a switch, 0=Plugin off, 1=Plugin on.
In this way we can better control the incompatible plug-ins disabled on the map, so the problem will be solved. The plug-in will also be dynamically disabled or enabled.
ok i will do some hand holding.

INSTALL: https://forums.alliedmods.net/showthread.php?p=760501

config to add to map.
Code:
sm_cvar lmc_ai_model_survivor 0
sm_cvar lmc_ai_model_infected 0
sm_cvar lmc_allowSurvivors 0
sm_cvar lmc_allowboomer 0
sm_cvar lmc_allowhunter 0
sm_cvar lmc_allowsmoker 0
sm_cvar lmc_allowtank 0
Try using other plugins that precache models other than lmc and you will still have issues, so said plugin is incompatible with eveything else to do with models
LMC sourcecode is there free for you to edit and add what you want!
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 04-06-2018 at 15:42. Reason: ima sure english is my first language?
Lux is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 04-06-2018 , 17:57   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #138

I have used LMC with supertanks no issue's. And currently using LMC with supertanks +. No issue's.
ricksfishin is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 04-06-2018 , 19:31   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #139

Quote:
Originally Posted by ricksfishin View Post
I have used LMC with supertanks no issue's. And currently using LMC with supertanks +. No issue's.
You on windows or linux?

I had the issue on linux with supertanks, not supertanks+ i'v never used it and unsure how much different the code is.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 04-06-2018 , 20:12   Re: [L4D2]Left 4 Dead 2 Model Changer(2.0- 31/01/2018)
Reply With Quote #140

Play from windows 7 On a linux server.
ricksfishin 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:39.


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