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

[CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)


Post New Thread Reply   
 
Thread Tools Display Modes
kaeming
Senior Member
Join Date: Nov 2015
Old 09-15-2016 , 05:12   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #61

Quote:
Originally Posted by shanapu View Post
You have to upload the source code! Thanks
I dont have the original source. Can be decompiled though.
Just sharing to whoever who need it, but if you really insist on it, just remove this post ty
__________________
Add me up HERE if you have inquiries regarding server related stuff!
CS:GO Multimod & Jailbreak Servers > I am selling my entire ready to play server, add me up on steam to discuss.
kaeming is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 09-15-2016 , 08:16   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #62

Quote:
Originally Posted by kaeming View Post
I dont have the original source. Can be decompiled though.
Just sharing to whoever who need it, but if you really insist on it, just remove this post ty
It wont be approved then. And why are you posting it within my plugin's thread? Especially when we have no idea what it does or how it relates to my plugin.
Mitchell is offline
kaeming
Senior Member
Join Date: Nov 2015
Old 09-15-2016 , 10:59   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #63

Quote:
Originally Posted by Mitchell View Post
It wont be approved then. And why are you posting it within my plugin's thread? Especially when we have no idea what it does or how it relates to my plugin.
it's similar to this plugin, I forgotten where I got the files but it was this plugin that helped with stripping off weapons at the start of the round. Was just sharing so that guy ^ can have it too , sharing is caring xd. Otherwise , just ignore my post . I'll delete
__________________
Add me up HERE if you have inquiries regarding server related stuff!
CS:GO Multimod & Jailbreak Servers > I am selling my entire ready to play server, add me up on steam to discuss.
kaeming is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 10-31-2016 , 19:15   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #64

plugin doesnt work
__________________
PresidentEvil is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 10-31-2016 , 20:54   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #65

Quote:
Originally Posted by PresidentEvil View Post
plugin doesnt work
If you're going to claim that this plugin no longer works at least provide more information.
Sourcemod version,
what map,
any error logs...
Mitchell is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 11-01-2016 , 17:43   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #66

Quote:
Originally Posted by Mitchell View Post
If you're going to claim that this plugin no longer works at least provide more information.
Sourcemod version,
what map,
any error logs...
sm version
SourceMod Version Information:
SourceMod Version: 1.8.0.5946
SourcePawn Engine: SourcePawn 1.8, jit-x86 (build 1.8.0.5946)
SourcePawn API: v1 = 4, v2 = 11
Compiled on: Oct 13 2016 17:46:58
Built from: https://github.com/alliedmodders/sou...commit/c5703db
Build ID: 5946:c5703db
http://www.sourcemod.net/


mg_wl_multigames_csgo_v1 http://gamebanana.com/maps/185389


no errors
__________________
PresidentEvil is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 11-01-2016 , 18:44   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #67

Quote:
Originally Posted by PresidentEvil View Post
mg_wl_multigames_csgo_v1 http://gamebanana.com/maps/185389
It doesn't work with every map, in fact we were discussing this exact map on the last page
__________________
sneaK is offline
kgns
Senior Member
Join Date: May 2017
Location: Istanbul, Turkey
Old 12-11-2018 , 05:27   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #68

did anyone else find out that game_player_equip is broken again (since Danger Zone update)?

this time its spawnflag 4 that is broken (4 : Only Strip Same Weapon Type [https://developer.valvesoftware.com/..._player_equip]). since it doesnt strip the weapon from the player, some weapon spawners in jb/fun maps just spawn the weapon and drop it on the ground. players are able to stay afk on these weapon spawners and crash the server when the weapons spawned reaches the 2048 edict limit
__________________

OyunHost Sunucu Hizmetleri: https://www.oyunhost.net

Last edited by kgns; 12-11-2018 at 05:28.
kgns is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 12-11-2018 , 07:20   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #69

The spawnflags of game_player_equip entity should contains the Use Only flag.

PHP Code:

public OnEntityCreated(entity, const String:classname[]) 
{
    if(
StrEqual(classname"game_player_equip"false))
    {
        
SDKHook(entitySDKHook_SpawnHook_OnEntitySpawn);
    }
}
public 
Action Hook_OnEntitySpawn(int entity)
{
    if (!(
GetEntProp(entityProp_Data"m_spawnflags") & 1)) 
    {
        
SetEntProp(entityProp_Data"m_spawnflags"GetEntProp(entityProp_Data"m_spawnflags") | 1);
    }

or you can just set flag 5 for use only and strip same weapon type.

PHP Code:

public void OnEntityCreated(int entity, const char[] classname)
{
    if (
StrEqual(classname"game_player_equip"))
    {
        
SDKHook(entitySDKHook_SpawnOnGamePlayerEquipSpawn);
    }
}

public 
Action OnGamePlayerEquipSpawn(int entity)
{
    
/** Flags: 1 - use only, 4 - strip same weapon type **/
    
    
SetEntProp(entityProp_Data"m_spawnflags"5);

Then you can manipulate the round_start weapons through cvars:

PHP Code:

mp_equipment_reset_rounds 1 
strip weaponskeep weapons
mp_ct_default_melee 
"weapon_knife"
etc
__________________
Ilusion9 is offline
kgns
Senior Member
Join Date: May 2017
Location: Istanbul, Turkey
Old 12-11-2018 , 07:24   Re: [CS:GO] game_player_equip temp fix (mg, dr, ttt, hg map fixer)
Reply With Quote #70

yea i know all that, spawnflags for game_player_equip entities are 5 already on the maps. and they are not working. I have tested 2,3 (1+2),4,5 (1+4), 2 and 3 works by stripping everything, 4 and 5 do not work as I said, its broken.

you can try and see for yourself
__________________

OyunHost Sunucu Hizmetleri: https://www.oyunhost.net
kgns 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 10:34.


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