Raised This Month: $7 Target: $400
 1% 

[CS:GO] GiveNamedItemEx 1.0.8


Post New Thread Reply   
 
Thread Tools Display Modes
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 06-28-2015 , 11:53   Re: [CS:GO] GiveNamedItemEx 1.0.5
Reply With Quote #21

Another problem is both GiveNamedItemEx.GetItemDefinitionByClassname and GiveNamedItemEx.GetClassnameByItemDefinition do not work with the C4.
SM9 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-29-2015 , 19:40   Re: [CS:GO] GiveNamedItemEx 1.0.5
Reply With Quote #22

Quote:
Originally Posted by xCoderx View Post
Another problem is both GiveNamedItemEx.GetItemDefinitionByClassname and GiveNamedItemEx.GetClassnameByItemDefinition do not work with the C4.
lol keep forgetting to add this along with all the grenades. It will happen soon
__________________
Neuro Toxin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-29-2015 , 19:50   Re: [CS:GO] GiveNamedItemEx 1.0.5
Reply With Quote #23

Quote:
Originally Posted by xCoderx View Post
Bug Report:

If you have a USP-S in loadout and do select a P2K on terrorist while doing the TeamSwitch to get the correct skin, it will spawn me a P2K model with messed up animations with the wrong clip and reserve ammo size, I have tested other loadout combinations and they are fine, so its just volvo doing some weird shit.

Heres a console output with the debug messages enabled, I also posted this here and not AWS thread because AWS in theory works fine, but a workaround will need to be done in the GNI to fix this. (I have no idea how though)

The second bug happens (disappearing weapon model) when you paint a skin on a weapon which is designed for the opposite team eg: painting a skin on an M4 while on Terrorist or an AK while on CT.

This can be fixed by removing the following from givenameditem.sp:

PHP Code:
if (g_hServerHook.TeamSwitch)
SetEntPropEnt(clientProp_Send"m_hActiveWeapon"weapon); 
Many thanks for your continued hard work.
In relation to bug one. This is really difficult for always weapon skins. You can see in your debug messages that the player is switched to CT which correctly spawns your p2k. This is how AWS works. With this being said, because you have a usp on your game loadout, the game wants to force your usp while AWS wants to force the p2k.

I can probably patch this in AWS for you. In relation to patching GNI. I wont as is plugins job to make sure its working around the csgo quirks.

In relation to bug 2. This is still what i would consider a dirty fix. I think i have a better way to go about this. Just need some time to test.
__________________
Neuro Toxin is offline
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 07-01-2015 , 13:22   Re: [CS:GO] GiveNamedItemEx 1.0.5
Reply With Quote #24

Sorry if this has already been asked before (pretty sure it wasn't), but is there any way to manually trigger the hook?
Like, if a player chooses a new knife from the menu, it should strip off his current one and give him a new one.
Also, can I completly delete a knife with that (or generally, weapons)
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-01-2015 , 19:20   Re: [CS:GO] GiveNamedItemEx 1.0.5
Reply With Quote #25

You can call GivePlayerItem which will fire the hook.

You cant use this hook to block players getting named items.

If you want to replace a knife. AcceptEntityInput with "Kill" and then call GivePlayerItem with "weapon_knife". The hook will fire and u can set paintkits or reset the classname.
__________________
Neuro Toxin is offline
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 07-02-2015 , 15:11   Re: [CS:GO] GiveNamedItemEx 1.0.5
Reply With Quote #26

Quote:
Originally Posted by Neuro Toxin View Post
In relation to bug one. This is really difficult for always weapon skins. You can see in your debug messages that the player is switched to CT which correctly spawns your p2k. This is how AWS works. With this being said, because you have a usp on your game loadout, the game wants to force your usp while AWS wants to force the p2k.

I can probably patch this in AWS for you. In relation to patching GNI. I wont as is plugins job to make sure its working around the csgo quirks.

In relation to bug 2. This is still what i would consider a dirty fix. I think i have a better way to go about this. Just need some time to test.
I have fixed the invisible weapon in bug2

Replace:
PHP Code:
        if (g_hServerHook.TeamSwitch)
            
SetEntPropEnt(clientProp_Send"m_hActiveWeapon"weapon); 
With:

PHP Code:
        if (g_hServerHook.TeamSwitch)
        {
            
char classname[64]; GetEdictClassname(weaponclassnamesizeof(classname));
            
FakeClientCommandEx(client"use %s"classname);
            
SetEntPropEnt(clientProp_Send"m_hActiveWeapon"weapon); 
        } 
SM9 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-02-2015 , 19:34   Re: [CS:GO] GiveNamedItemEx 1.0.5
Reply With Quote #27

for xCoderx

I really need to mention you in the first post for all the testing even before I released this hook plugin!
__________________
Neuro Toxin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-06-2015 , 10:19   Re: [CS:GO] GiveNamedItemEx 1.0.6
Reply With Quote #28

Update 1.0.6
- Fixed GiveNamedItemEx.InUse
- Improved method to force weapons to be active (thanks xCoderx)

In essence, I used your fix (FakeClientCommandEx).

__________________
Neuro Toxin is offline
LaRoVV66
Senior Member
Join Date: Jul 2015
Old 07-06-2015 , 21:28   Re: [CS:GO] GiveNamedItemEx 1.0.6
Reply With Quote #29

now it is not working commands...

installing dhook 2.0.0

i restart server and comming so error

[SM] Unable to load plugin "alwaysweaponskins.smx": Native "GiveNamedItem_GetInUse" was not found

and i changelevel and plugins start..

54 "CS:GO GiveNamedItem Hook" (1.0.6) by Neuro Toxin
55 "Always Weapon Skins" (2.0.1) by Neuro Toxin

and commands not workings :S pls help my

LaRoVV66 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-06-2015 , 23:42   Re: [CS:GO] GiveNamedItemEx 1.0.6
Reply With Quote #30

LaRoVV66. Please dont double post across into this thread. I work full time and your expectations are to high.
__________________
Neuro Toxin 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 00:54.


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