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

[L4D2] Weapons Skins RNG [v1.1.1 | 05-February-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Edison1318
Senior Member
Join Date: Nov 2015
Location: Peaceful place of the in
Old 06-02-2022 , 03:30   Re: [L4D2] Weapons Skins RNG [v1.0.9 | 14-March-2022]
Reply With Quote #31

For some reason whenever I pick up grenades or medkit/defib/upgrade ammo packs while equipped a primary/secondary weapon in a different skin, my weapon changes to default skin.

Also, I don't want those weapons transitioned into another map to be randomized skin again.
__________________
EdisonGar

Last edited by Edison1318; 06-08-2022 at 04:58.
Edison1318 is offline
Send a message via Skype™ to Edison1318
Hajitek Majitek
Junior Member
Join Date: Oct 2021
Old 06-23-2022 , 15:47   Re: [L4D2] Weapons Skins RNG [v1.0.9 | 14-March-2022]
Reply With Quote #32

Quote:
Originally Posted by Edison1318 View Post
For some reason whenever I pick up grenades or medkit/defib/upgrade ammo packs while equipped a primary/secondary weapon in a different skin, my weapon changes to default skin.

Also, I don't want those weapons transitioned into another map to be randomized skin again.
This happens to me as well. i can't keep the greenish AK skin for long. i pick something up or drop the AK on the ground for a second, and it returns to its default skin when i pick it up again. let's hope @Marttt fixes this.
Hajitek Majitek is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-17-2022 , 00:02   Re: [L4D2] Weapons Skins RNG [v1.0.9 | 14-March-2022]
Reply With Quote #33

Hi, Marttt, I love this plugin.

I have suggestion, can you check if weapon already has skin.
Because in some maps or plugins, game creates golden crowbar or different rifle skin on purpose.

PHP Code:
public void UpdateWeaponSkin(int entity)
{
    if (!
g_bCvar_Enabled)
        return;

    if (
GetEntPropEnt(entityProp_Send"m_hOwnerEntity") != -1)
        return;

    if (
GetEntProp(entityProp_Send"m_nSkin") > 0//some weapons has skin already
        
return;


...


__________________

Last edited by HarryPotter; 09-17-2022 at 00:03.
HarryPotter is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 09-17-2022 , 09:54   Re: [L4D2] Weapons Skins RNG [v1.1.0 | 17-September-2022]
Reply With Quote #34

Plugin updated.

Code:
1.1.0 (17-September-2022)
    - Added cvar to ignore weapons that already have a skin different than default. (thanks "HarryPotter" for requesting)
__________________
Marttt is offline
Smoak
Junior Member
Join Date: Dec 2019
Location: Maine
Old 12-25-2022 , 20:52   Re: [L4D2] Weapons Skins RNG [v1.1.0 | 17-September-2022]
Reply With Quote #35

RNG shifting command (sm_wskin_rng or something like that, the console usually autofilled it) doesn't work anymore for some reason, and whenever I pick an item up after getting a skin the gun reverts back to the default weapon skin. Please fix, or if there's a solution for how I can fix this myself, let me know.

Also for some reason only the magnum actually keeps the skin I picked up when I get to the next chapter of a campaign.

Last edited by Smoak; 12-25-2022 at 20:54.
Smoak is offline
Shao
Senior Member
Join Date: Jan 2015
Old 08-13-2023 , 14:58   Re: [L4D2] Weapons Skins RNG [v1.1.0 | 17-September-2022]
Reply With Quote #36

Think there might be a conflict with https://forums.alliedmods.net/showthread.php?t=321049 after the weapon is thrown. The skin turns back into the default.
Shao is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-16-2024 , 14:40   Re: [L4D2] Weapons Skins RNG [v1.1.0 | 17-September-2022]
Reply With Quote #37

a bug


and I think this can fix

PHP Code:
void Event_PlayerUse(Event event, const char[] namebool dontBroadcast)
{
    ...

    if (
activeWeapon != targetid// was activeWeapon == targetid
        
return;

    ...

__________________
HarryPotter is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-05-2024 , 07:35   Re: [L4D2] Weapons Skins RNG [v1.1.1 | 05-February-2024]
Reply With Quote #38

Plugin updated to 1.1.1

Code:
1.1.1 (05-February-2024)
    - Fixed a bug where the skin would reset while interacting with other items. (thanks "HarryPotter" for reporting)
    - Fixed a bug not updating the viewmodel skin while using the give command.
    - Now the plugin doesn't set skins for player weapons equipped during the map chapter transition.
__________________

Last edited by Marttt; 02-05-2024 at 07:36.
Marttt 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 15:30.


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