Raised This Month: $32 Target: $400
 8% 

Bailopan Deathmatch + Trash CS:GO engine = Player doesn't respawn on initial spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 10-24-2018 , 14:21   Bailopan Deathmatch + Trash CS:GO engine = Player doesn't respawn on initial spawn
Reply With Quote #1

Ive been searching the past 5 hours for the fix for this and tried so much different stuff from plugins to changing cvars like forcelimit and gracetime. None of it helps.

Problem is when player joins the game, sometime he just won't ever respawn even though there is a deathmatch running. He can do !respawn and it gets fixed, later on he just respawns like everyone else but the initial spawn just bugs out and you need to take control over a bot or !respawn to fix it.

When you take control over a bot and after that bot dies, the bot now gets stuck being dead forever and you get respawned.
HvG Community is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-24-2018 , 16:00   Re: Bailopan Deathmatch + Trash CS:GO engine = Player doesn't respawn on initial spaw
Reply With Quote #2

Post in the plugins thread. Dont make a new thread in a general area for plugin related problem.
__________________
Neuro Toxin is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 10-24-2018 , 16:07   Re: Bailopan Deathmatch + Trash CS:GO engine = Player doesn't respawn on initial spaw
Reply With Quote #3

Quote:
Originally Posted by Neuro Toxin View Post
Post in the plugins thread. Dont make a new thread in a general area for plugin related problem.
Not a plugin related problem.
HvG Community is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-24-2018 , 16:12   Re: Bailopan Deathmatch + Trash CS:GO engine = Player doesn't respawn on initial spaw
Reply With Quote #4

Bailopan's Deathmatch plugin could clearly be patched to work properly with the changes in team msg handling from the panarama updates.
__________________
Neuro Toxin is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 10-25-2018 , 00:53   Re: Bailopan Deathmatch + Trash CS:GO engine = Player doesn't respawn on initial spaw
Reply With Quote #5

in gamemodes_XXX_server.cfg

mp_respawn_on_death_t "1"
mp_respawn_on_death_ct "1"

should work.
asdfxD is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 10-25-2018 , 09:37   Re: Bailopan Deathmatch + Trash CS:GO engine = Player doesn't respawn on initial spaw
Reply With Quote #6

I actually preferred using these cvars coz they are native to csgo but when using them together with deathmatch i got laggy. The reason I still need Bail DM is for the weapons.

BUT I also tried looking for cvars that would give people random weapon on spawn (because then I don't need to use bailopan DM for anything) but none of them worked.


I also tried making my own script that would give random weapon on spawn

EDIT- BELOW CODE ACTUALLY STARTED WORKING ALL OF THE SUDDEN.


Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <cstrike>
#define PLUGIN_VERSION "1.0"

new Handle:rnd_Cvar_Enable = INVALID_HANDLE


new const String:Rifles[][] =
{
    "weapon_ak47", "weapon_aug", "weapon_bizon", "weapon_famas", "weapon_g3sg1", "weapon_galilar", "weapon_m249",
    "weapon_m4a1", "weapon_mac10", "weapon_mag7", "weapon_mp7", "weapon_mp9", "weapon_negev", "weapon_nova", "weapon_p90", "weapon_sawedoff",
    "weapon_scar20", "weapon_sg556", "weapon_ssg08", "weapon_ump45", "weapon_xm1014"
}
 
new const String:Pistols[][] =
{
    "weapon_deagle", "weapon_elite", "weapon_fiveseven", "weapon_p250", "weapon_tec9", "weapon_glock", "weapon_hkp2000"
}


public Plugin:myinfo = 
{
	name = "Random Weapon On Spawn",
	author = "Shitler",
	description = "RNDM MOTHERFUCKING WEAPONS",
	version = PLUGIN_VERSION,
	url = "www.alliedmods.com"
}

public OnPluginStart() 
{
		HookEvent("player_spawn", Event_PlayerSpawn);
        rnd_Cvar_Enable = CreateConVar("sm_rndweapon_enabled", "1", "Enables or Disables random weapon each spawn");
}


public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{

	new client = GetClientOfUserId(GetEventInt(event, "userid"));

	if (GetConVarInt(rnd_Cvar_Enable) && IsClientInGame(client) && (!IsFakeClient(client)))
	{
	
		new Prim = GetPlayerWeaponSlot(client, CS_SLOT_PRIMARY);
               
                if(Prim != -1)
                    RemovePlayerItem(client, Prim);
                   
                new Sec = GetPlayerWeaponSlot(client, CS_SLOT_SECONDARY);
               
                if(Sec != -1)
                RemovePlayerItem(client, Sec);
           
                GivePlayerItem(client, Rifles[GetRandomInt(0, sizeof(Rifles)-1)]);
                GivePlayerItem(client, Pistols[GetRandomInt(0, sizeof(Pistols)-1)]);
		
	}
}

Last edited by HvG Community; 10-25-2018 at 11:50.
HvG Community is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 10-25-2018 , 10:42   Re: Bailopan Deathmatch + Trash CS:GO engine = Player doesn't respawn on initial spaw
Reply With Quote #7

you can remove the respawn code from bailopan plugin and use the csgo cvars
Ilusion9 is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 10-25-2018 , 10:51   Re: Bailopan Deathmatch + Trash CS:GO engine = Player doesn't respawn on initial spaw
Reply With Quote #8

Yep that solution can work for people that want to have the gun menu.

If anyone is having the issues i explained in my first post, disable your deathmatch plugin or just disable respawning that it has and use the script above that i posted together with:

Quote:
mp_respawn_on_death_t "1"
mp_respawn_on_death_ct "1"

Last edited by HvG Community; 10-25-2018 at 11:51.
HvG Community 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 16:27.


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