AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [CS:GO] No weapon fix 3.1 (Player models lay on ground fix) (https://forums.alliedmods.net/showthread.php?t=279035)

zipcore 02-13-2016 22:34

[CS:GO] No weapon fix 3.1 (Player models lay on ground fix)
 
On some mods/maps players don't have any weapons equipped. Since valve updated the player models ~1y ago this causes animation bugs.

Players are sometimes shows like the ragdoll animation, which is rotated and it looks like they lay on the ground.

This plugin fixes this problem by giving each player a decoy grenade as long they don't have any other item equipped. this fake decoy grenade can not be thrown and gets removed when the player picks up another item.

Download:
https://gitlab.com/Zipcore/NoWeaponFix

Known issues:
- Usage of plugins which don't allow players to equip grenades (contact me I may have a solution for this)
- Knife drop plugins can cause problems ( better use the csgo cvar for this )

SOBgaming 02-13-2016 22:36

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Best idea ever ;)
Thanks for making it almost right away!

Tested with surf_greatriver_xdre4m works perfectly with map weapon stipping, grenade room (when you throw a nade if you have no weapon you'll get the decoy back properly)

Edit: The decoy isn't invisible. I don't mind it, just letting you know.

Winn 02-13-2016 22:40

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Cool, but what do I use it for?

Bchewy 02-13-2016 22:40

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Good and awesome release! :) , fix valve's shitty bug

balonfx 02-13-2016 22:40

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Definitely useful, fixes that issue that still hasn't been solved in a few months here.

Thanks :bee:

m_bNightstalker 02-13-2016 22:46

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Quote:

Originally Posted by zipcore (Post 2392728)
The only reason why I release this here, is that this plugin will be unapproved someday anyway.

It gives players a decoy which is invisible and can't be used until they pickup a new weapon. This will fix the bug were player models lay on ground sometimes when they have no weapon. Useful for TTT, Surf, Bhop, HG, Deathrun, etc. ....... the list is damn long.

For Surf/Trikz/Bhop etc. : you can adjust the speed of the decoy grenade by editing csgo/scripts/weapon.decoy.txt and search this: "MaxPlayerSpeed" 245 After you change this script you need to restart the server.

https://git.tf/Zipcore/NoWeaponFix/tree/master

cool

Chevalier 02-13-2016 22:51

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
nice fix for the time being, thanks zip

kaeming 02-13-2016 22:54

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Nice :)

TonyBaretta 02-14-2016 02:14

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Nice plugin ty zipcore :)

headline 02-14-2016 02:33

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Thanks, ZipCore

poel 02-14-2016 03:19

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Thks zipcore ! :)

Kamizun 02-14-2016 12:59

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Maps for example mg_piratewars_csgo_v7_hp when you use the weapons, it removes the weapons/knifes and gives the decoy. then when you leave the boat/weapon it should give the knife back but its invisible and people can't knife with it. Could you add a cvar or fix this?

Zeddy_god 02-14-2016 14:07

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Sick plugin, helps a lot! Thanks

zipcore 02-15-2016 01:44

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Quote:

Originally Posted by SOBgaming (Post 2392729)
Best idea ever ;)
The decoy isn't invisible. I don't mind it, just letting you know.

Happens to me too sometimes


Quote:

Originally Posted by Kamizun (Post 2392945)
Maps for example mg_piratewars_csgo_v7_hp when you use the weapons, it removes the weapons/knifes and gives the decoy. then when you leave the boat/weapon it should give the knife back but its invisible and people can't knife with it. Could you add a cvar or fix this?

This is just a temp. solution until valve fixes this. Which kind of cvar do you expect? Just use a map config plugin to disable this plugin on target maps.

kaby47 02-15-2016 12:40

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Nice idea, still hope that Valve fixes this shitty bug as soon as possible.

Kamizun 02-15-2016 15:45

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Quote:

Originally Posted by zipcore (Post 2393104)
This is just a temp. solution until valve fixes this. Which kind of cvar do you expect? Just use a map config plugin to disable this plugin on target maps.

The problem is that sourcemod 1.8 snapshots (that im using) "sm plugins unload" does not work, some configs are always loaded and do not change until restart and the plugins do not unload even if I remove them.

Spy1337 02-15-2016 16:26

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
thanks man, gonna try that.

zipcore 02-16-2016 03:31

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Quote:

Originally Posted by Kamizun (Post 2393244)
The problem is that sourcemod 1.8 snapshots (that im using) "sm plugins unload" does not work, some configs are always loaded and do not change until restart and the plugins do not unload even if I remove them.

Ok. I'll add a cvar to disable the plugin.

EDIT: ...done

Finn1337 02-16-2016 12:13

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Link not working for me. Can some put it up as a attachment?

Bara 02-16-2016 12:32

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Maybe hardware problems at git.tf.

zipcore 02-18-2016 17:47

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
v1.3 fixed the visible decoy bug

RaZzR 02-20-2016 19:43

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Quote:

Originally Posted by zipcore (Post 2393341)
Ok. I'll add a cvar to disable the plugin.

EDIT: ...done

What is the cvar?

Bara 02-20-2016 19:44

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
https://git.tf/Zipcore/NoWeaponFix/b...pon_fix.sp#L34

zipcore 02-25-2016 22:57

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
I updated the plugin again, should fix the bug that normal weapons are not visible sometimes

iGANGNAM 04-08-2016 10:18

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
After using cannon on mg_piratewars_csgo_v7_hp I don't have knife anymore...Or maybe I should say it is here but I can't use it.

[email protected] 05-19-2016 20:51

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
My server run this plugins,Can't synchronize skin and arms.....

hitmany 08-05-2016 04:31

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Hello, looks like git.tf is dead. Can you reupload your plugin please?

Bara 08-05-2016 12:38

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
git.tf isn't dead. I'm no longer in FOTG and received no backup from zipcore for restore.

Koga73 08-08-2016 10:58

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Any news from Valve?
Also link is dead.


Edit: I contacted Valve about the issue. Awaiting response.

zipcore 08-14-2016 18:27

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
I'll update the download link as soon I had time to upload the stuff to a new git hoster.

@Bara:
You can be happy deadhuntz has send you an backup after your attempt to scam us ;)
I wasn't the only one with access, idk why you blame me for this delay you could have asked Drunkenmonkey or Deadhuntz too ;)
And you switched the domain to early before you have a backup and have a new server to use it.
Anyway this is no place for hate Bara.

sneaK 08-14-2016 19:31

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
1 Attachment(s)
Quote:

Originally Posted by iGANGNAM (Post 2409118)
After using cannon on mg_piratewars_csgo_v7_hp I don't have knife anymore...Or maybe I should say it is here but I can't use it.

Unload the plugin for that specific map.

Here's what I have downloaded (believe its the latest version)

Koga73 08-18-2016 22:24

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Quote:

Originally Posted by blackhawk74 (Post 2444949)
Unload the plugin for that specific map.

Here's what I have downloaded (believe its the latest version)


Works like a charm. Thanks for sharing.

zipcore 09-11-2016 18:51

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
I've updated the download link in the first post.

SHAREN 10-17-2016 17:16

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
https://gitlab.com/Zipcore/NoWeaponFix/issues/1
Quote:

The plugin does not always correctly detects the presence of weapons at the player.
Sometimes, there is such a situation that the plugin thinks that there is no weapons, although it has (eg DriveDown Jail on maps) or intervene when other plugins. Do, please, every 2-4 seconds to check whether there is a plug-in player for some more weapons other than a decoy of, and that is that the player has a knife, but he can not use it until you pick up other weapons. Sorry for bad English.
thumbsup 0

zipcore 10-25-2016 19:07

Re: [CS:GO] No weapon fix (Player models lay on ground fix)
 
Try the new version 2.0 I hope this issue is fixed now and an exploit where players were able to spam decoys until the server crashes :D Still don't know how they did this or if this was maybe caused by other plugins. Someone just reported this to me without any details. Would be cool if someone could enlight me how they could spam the decoys and if this still possible with the new version. Furthermore the invisible weapon bug should be gone now too.

SHAREN 10-27-2016 13:10

Re: [CS:GO] No weapon fix 2.0 (Player models lay on ground fix)
 
Drive Down on Jail maps fixed, but but there is another bug in the plugin - TeamGames .
When a player is given a grenade without a knife, the player can not use a grenade (Screenshot 1). And when the mini game ends minigames plugin returns knives players, the knife model is not visible (although players can use a knife) (Screenshot 2).


SHAREN 10-28-2016 09:33

Re: [CS:GO] No weapon fix 2.1 (Player models lay on ground fix)
 
Quote:

#define CS_SLOT_GRENADE 3 /**< Grenade slot (will only return one grenade). */
Quote:

iWeapon = GetPlayerWeaponSlot(client, CS_SLOT_GRENADE);
I think the plugin see that the player has a weapon_decoy and other grenades, he ignores.

zipcore 10-28-2016 10:45

Re: [CS:GO] No weapon fix 2.1 (Player models lay on ground fix)
 
Quote:

Originally Posted by SHAREN (Post 2465711)
I think the plugin see that the player has a weapon_decoy and other grenades, he ignores.

PHP Code:

    // Picking up a grenade, lets remove the fake deocy
    
else if(StrEqual(classname"weapon_hegrenade") || StrEqual(classname"weapon_flashbang") || StrEqual(classname"weapon_molotov") || StrEqual(classname"weapon_incgrenade"))
    {
        
g_iFakeWeaponRef[client] = 0;
        
        
SetEntProp(clientProp_Data"m_bDrawViewmodel"1);
        
        
AcceptEntityInput(iEntity"Kill");
        
        
ClientCommand(client"slot%d"CS_SLOT_GRENADE+1);
        
        return 
Plugin_Continue;
    } 

Thats fixed by this part of the code, maybe another plugin is conflicting

SHAREN 10-28-2016 14:57

Re: [CS:GO] No weapon fix 2.3 (Player models lay on ground fix)
 
I think I did, working fine, even without SDKHooks
But by optimizing not know

PHP Code:

#pragma semicolon 1

#define PLUGIN_VERSION "2.3"

#include <sourcemod>
#include <sdktools>
#include <cstrike>

public Plugin myinfo 
{
    
name "No Weapon Fix",
    
author ".#Zipcore",
    
description "",
    
version PLUGIN_VERSION,
    
url ""
};

#define LoopIngameClients(%1) for(int %1=1;%1<=MaxClients;++%1)\
if(IsClientInGame(%1))

#define EF_NODRAW 32

int g_iFakeWeaponRef[MAXPLAYERS 1];
int m_hMyWeapons;


ConVar cvEnable;
bool g_bEnable;
public 
void OnPluginStart()
{
    
CreateConVar("no_weapon_fix_version"PLUGIN_VERSION"No Weapon Fix Version"FCVAR_DONTRECORD|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
    
    
cvEnable CreateConVar("no_weapon_fix_enable""1""Set to 0 to disable this plugin.");
    
g_bEnable GetConVarBool(cvEnable);
    
HookConVarChange(cvEnableOnSettingChanged);

    
m_hMyWeapons FindSendPropInfo("CBasePlayer""m_hMyWeapons");

    if(
m_hMyWeapons == -1)
    {
        
char Error[128];
        
FormatEx(Errorsizeof(Error), "FATAL ERROR m_hMyWeapons [%d]. Please contact the author."m_hMyWeapons);
        
SetFailState(Error);
    }
}

public 
int OnSettingChanged(Handle convar, const char[] oldValue, const char[] newValue)
{
    if(
convar == cvEnable)
        
g_bEnable view_as<bool>(StringToInt(newValue));
}

public 
Action OnPlayerRunCmd(int clientint &buttonsint &impulsefloat vel[3], float angles[3], int &weaponint &subtypeint &cmdnumint &tickcountint &seedint mouse[2])
{
    if(!
g_bEnable || !IsPlayerAlive(client))
        return 
Plugin_Continue;
    
    
// Get the fake decoy
    
int iEntity EntRefToEntIndex(g_iFakeWeaponRef[client]);
    
    
int iWeapon = -1;
    for (
int i=CS_SLOT_PRIMARYi<CS_SLOT_C4i++) {
        
iWeapon GetPlayerWeaponSlot(clienti);
        if (
== CS_SLOT_GRENADE) {            // fix bug with molotov in TeamGames plugin
            
char Class[64];
            for(
int j=0,ent=0j<128j+=4) {
                
ent GetEntDataEnt2(clientm_hMyWeapons j);
                if(
ent>0) {
                    
GetEdictClassname(ent, Class, sizeof(Class));
                    if(!
StrEqual(Class, "weapon_decoy")) {
                        
iWeapon ent;
                        break;
                    }
                }
            }
        }
        if(
iWeapon 0)
            break;
    }
    
    
// No fake decoy needed anymore
    
if(iWeapon != iEntity && iEntity MaxClients && iEntity != INVALID_ENT_REFERENCE)
    {
        
PrintToConsole(client"No fake decoy needed anymore iWeapon = %i iEntity = %i"iWeaponiEntity);
        
SetEntProp(clientProp_Data"m_bDrawViewmodel"1);
        
        
AcceptEntityInput(iEntity"Kill");
        
        
g_iFakeWeaponRef[client] = 0;
    }
    
// Create a new fake decoy
    
else if(iWeapon <= 0)
    {
        
PrintToConsole(client"Create a new fake decoy iWeapon = %i iEntity = %i"iWeaponiEntity);
        
SetEntProp(clientProp_Data"m_bDrawViewmodel"0);
        
        
iWeapon GivePlayerItem(client"weapon_decoy");
        
        
PreventThrowable(clientiWeapon);
    
        
g_iFakeWeaponRef[client] = EntIndexToEntRef(iWeapon);
        
iEntity EntRefToEntIndex(g_iFakeWeaponRef[client]);
        
PrintToConsole(client"Create a new fake decoy iWeapon = %i iEntity = %i"iWeaponiEntity);
    }
    
// Prevent decoy from being throwable
    
else if(iWeapon == iEntity && iEntity MaxClients && iEntity != INVALID_ENT_REFERENCE)
        
PreventThrowable(clientiWeapon);
    
    return 
Plugin_Continue;
}

void PreventThrowable(int clientint iWeapon)
{
    
float fUnlockTime GetGameTime() + 0.5;
        
    
SetEntPropFloat(clientProp_Send"m_flNextAttack"fUnlockTime);
    
SetEntPropFloat(iWeaponProp_Send"m_flNextPrimaryAttack"fUnlockTime);


Now plugin always detect non weapon_decoy grenades

General changes in " // Get the fake decoy " part

zipcore 10-29-2016 05:14

Re: [CS:GO] No weapon fix 3.0 (Player models lay on ground fix)
 
There are still problems with your version, I've rewritten it to use m_hMyWeapons
Additionally I've added a cvar to make grenades non-throwable at all for special servers like "trade servers", since this plugin will conflict with weapon restriction.

EDIT: Conflict with ingame menus has been fixed aswell.


All times are GMT -4. The time now is 14:00.

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