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

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


Post New Thread Reply   
 
Thread Tools Display Modes
TrevorSoldier
New Member
Join Date: Aug 2018
Old 05-16-2021 , 23:12   Re: [L4D2] Weapons Skins RNG [v1.0.5 | 10-November-2020]
Reply With Quote #21

any chance you could include the gas cans?
TrevorSoldier is offline
ryzewash
Junior Member
Join Date: Mar 2020
Old 10-18-2021 , 11:33   Re: [L4D2] Weapons Skins RNG [v1.0.6 | 04-June-2021]
Reply With Quote #22

gascan skin is worked perfectly in last chapter of Dead Center but in other chapters like first chapter of Dark Carnival or third chapter of The Parish gascan skin is never worked. I love variations of gascan please fix this.. thank you
ryzewash is offline
ryzewash
Junior Member
Join Date: Mar 2020
Old 10-19-2021 , 15:42   Re: [L4D2] Weapons Skins RNG [v1.0.6 | 04-June-2021]
Reply With Quote #23

Quote:
Originally Posted by ryzewash View Post
gascan skin is worked perfectly in last chapter of Dead Center but in other chapters like first chapter of Dark Carnival or third chapter of The Parish gascan skin is never worked. I love variations of gascan please fix this.. thank you
I added some new lines and now it seems to work perfect in any chapter.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_wskin_rng.sp - 192 views - 26.6 KB)
ryzewash is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-19-2021 , 17:04   Re: [L4D2] Weapons Skins RNG [v1.0.6 | 04-June-2021]
Reply With Quote #24

Thanks for reporting.
I already found the issue with prop_physics entities (gascan) gonna release the fixed version soon.
I'm just checking another issue when the item is equipped.
__________________
Marttt is offline
SDK
New Member
Join Date: Jan 2022
Old 01-05-2022 , 23:03   Re: [L4D2] Weapons Skins RNG [v1.0.6 | 04-June-2021]
Reply With Quote #25

Could you add a rarity variable to make skins rarer? I manually added it in 1.0.5 but don't know how to add a cvar for it

line 458:
Code:
if (GetRandomInt(0, 100) > 15) return;   // 15% chance to randomize skin
SDK is offline
Toranks
Senior Member
Join Date: Dec 2021
Location: Spain
Old 03-10-2022 , 11:21   Re: [L4D2] Weapons Skins RNG [v1.0.6 | 04-June-2021]
Reply With Quote #26

When I pick up any gascan, skin changes to default. This can be fixed?
Toranks is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-12-2022 , 20:57   Re: [L4D2] Weapons Skins RNG [v1.0.8 | 04-June-2021]
Reply With Quote #27

Plugin updated. ( 1.0.8 )

Code:
1.0.8 (12-March-2022)
- Fixed gascans not applying skin on pickup. (thanks to "Toranks" for reporting and "ryzewash" for the code snippet to fix it)
__________________

Last edited by Marttt; 03-12-2022 at 21:00.
Marttt is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-12-2022 , 20:58   Re: [L4D2] Weapons Skins RNG [v1.0.6 | 04-June-2021]
Reply With Quote #28

Quote:
Originally Posted by SDK View Post
Could you add a rarity variable to make skins rarer?
I will add it to TO-DO list, I don't have time now to implement it since would need a heavy rewrite on some parts.
__________________
Marttt is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 03-14-2022 , 13:30   Re: [L4D2] Weapons Skins RNG [v1.0.8 | 12-March-2022]
Reply With Quote #29

Code:
L 03/14/2022 - 19:37:02: SourceMod error session started
L 03/14/2022 - 19:37:02: Info (map "c2m2_fairgrounds") (file "f:\resistance\left 4 dead 2 dedicated server\left4dead2\addons\sourcemod\logs\errors_20220314.log")
L 03/14/2022 - 19:37:02: [SM] Exception reported: Property "m_nSkin" not found (entity 143/func_button_timed)
L 03/14/2022 - 19:37:02: [SM] Blaming: l4d2_wskin_rng.smx
L 03/14/2022 - 19:37:02: [SM] Call stack trace:
L 03/14/2022 - 19:37:02: [SM]   [0] GetEntProp
L 03/14/2022 - 19:37:02: [SM]   [1] Line 647, l4d2_wskin_rng.sp::Event_PlayerUse
L 03/14/2022 - 19:38:56: Error log file session closed.
__________________
HarryPotter is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-14-2022 , 14:18   Re: [L4D2] Weapons Skins RNG [v1.0.8 | 12-March-2022]
Reply With Quote #30

Thanks for reporting.

Fixed 1.0.9

Code:
1.0.9 (14-March-2022)
    - Added safe check while getting the entity skin to prevent errors. (thanks "HarryPotter" for reporting)
__________________

Last edited by Marttt; 03-14-2022 at 14:20.
Marttt 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 06:57.


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