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

[L4D & L4D2] Loot Boxes(v1.2)[03-Apr-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Old 10-15-2022 , 19:35   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #21

Quote:
Originally Posted by TQH View Post
Which line should I remove to pick up the box by touching it without pressing the E key? Thank you!
Deleting the use button feature won't allow box open by touch because that's not implemented.
__________________
>>My plugins<<
>>GitHub<<
Earendil is offline
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 11-05-2022 , 20:58   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #22

Hi Again Earendil

I am seeing this appearing when trying to once again get this to work on L4D1

Code:
[SM] The plugin list has been refreshed and reloaded.
[LB] Warning: Invalid ConVar <l4d_lootbox_positive_weights> value amount. Expected 17, found 14
[LB] Warning: Invalid ConVar <l4d_lootbox_negative_weights> value amount. Expected 17, found 14

Last edited by Dominatez; 11-05-2022 at 20:59.
Dominatez is offline
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Old 11-08-2022 , 13:46   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #23

Quote:
Originally Posted by Dominatez View Post
Hi Again Earendil

I am seeing this appearing when trying to once again get this to work on L4D1

Code:
[SM] The plugin list has been refreshed and reloaded.
[LB] Warning: Invalid ConVar <l4d_lootbox_positive_weights> value amount. Expected 17, found 14
[LB] Warning: Invalid ConVar <l4d_lootbox_negative_weights> value amount. Expected 17, found 14
I haven't tested the plugin much in L4D, sorry. Try this code (compile yourself) and tell me if you can make it work. Right now I don't have a computer capable of run games, and I don't have time to put myself to test it neither.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_lootboxes.sp - 97 views - 89.7 KB)
__________________
>>My plugins<<
>>GitHub<<
Earendil is offline
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 11-08-2022 , 16:34   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #24

I have tried compiling this with the latest compiler and all include files. Now errors out with this on compile.

Code:
l4d_lootboxes1.sp(189) : warning 228: enum multiplers are deprecated and will be removed in the next release
l4d_lootboxes1.sp(1569) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1632) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1781) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1796) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1810) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1835) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1883) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1910) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1937) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1957) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1992) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2009) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2239) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2302) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2327) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2345) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2372) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2432) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2499) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2520) : error 101: fixed dimensions must be after the array name, not on the type

20 Errors.

Compilation Time: 1.19 sec


The lootboxes are now spawning when special infected are killed, but there is no glow around them to highlight to users when they kill a special infected. They just look like normal boxes that someone would not even think of picking up for the loot.

Image attached so you will see what i mean.



https://imgur.com/a/EtJzdQv

Last edited by Dominatez; 11-12-2022 at 18:44. Reason: Image attached
Dominatez is offline
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 11-12-2022 , 18:15   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #25

Been running this now without the glow round the boxes, and checked the error logs today, and this has now popped up. Just making you aware.

Code:
[SM] Exception reported: Property "m_bIsOnThirdStrike" not found (entity 1/player)
[SM] Blaming: l4d_lootboxes.smx
[SM] Call stack trace:
[SM]   [0] SetEntProp
[SM]   [1] Line 2466, l4d_lootboxes.sp::BlackWhite
[SM]   [2] Line 1681, l4d_lootboxes.sp::OpenNeg
[SM]   [3] Line 1564, l4d_lootboxes.sp::OpenLootBox
[SM]   [4] Line 1518, l4d_lootboxes.sp::LootBox_Used
Dominatez is offline
apples1949
Junior Member
Join Date: Apr 2021
Old 11-29-2022 , 06:07   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #26

Code:
bool xxx(float[3] vPos, int client)
should be
Code:
bool xxx(float vPos[3], int client)
I modified this plugin myself and was able to compile it in the 1.11 plugin platform. However, it has not been actually used yet. You guys can try this version of mine.
Code:
L 11/30/2022 - 00:05:08: [SM] Exception reported: Client index 225(any number) is invalid
L 11/30/2022 - 00:05:08: [SM] Blaming: another/l4d_lootboxes.smx
L 11/30/2022 - 00:05:08: [SM] Call stack trace:
L 11/30/2022 - 00:05:08: [SM]   [0] IsFakeClient
L 11/30/2022 - 00:05:08: [SM]   [1] Line 1545, C:\Users\apples1949\Desktop\l4dplugins\1.11\l4d_lootboxes.sp::Weapon_Used
Related Code:
Code:
Action Weapon_Used(int entity, int caller, int activator, UseType type, float value)
{
	// Just a stupid bot trying to steal the weapon
	if( IsFakeClient(activator) )
	{
		L4D_StaggerPlayer(activator, entity, NULL_VECTOR);
		return Plugin_Handled;
	}
	return Plugin_Continue;
}
Attached Files
File Type: sp Get Plugin or Get Source (l4d_lootboxes.sp - 108 views - 89.7 KB)

Last edited by apples1949; 11-29-2022 at 11:10. Reason: some error
apples1949 is offline
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 11-29-2022 , 12:43   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #27

I have tested this on a Vanilla server, and still no glow around the boxes as shown on the L4D2 pic on the original post, so when you kill Special Infected, it just shows boxes which people think are just props with no use. Hope this helps Earendil
Dominatez is offline
ForTheSakura
Junior Member
Join Date: Dec 2022
Old 12-09-2022 , 10:03   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #28

@Earendil I love your fun plugin and it works beautifully for me, but I noticed that your plugin overrides the action that this plugin does (specifically the l4d_survivor_utilities.smx file) and not the movement speed but the other stuff: shoot speed reload speed deploy speed heal speed, can you please make a compatibility with this plugin I would deeply appreciate it and if not can you tell me how I can modify your plugin to make it compatible? I'm willing to give up the speed from good Loot Box results or something else in order to keep the adrenaline boost from the other plugin.
ForTheSakura is offline
TQH
Junior Member
Join Date: May 2021
Location: Vietnam
Old 01-23-2023 , 21:17   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #29

Quote:
Originally Posted by Dominatez View Post
I have tried compiling this with the latest compiler and all include files. Now errors out with this on compile.

Code:
l4d_lootboxes1.sp(189) : warning 228: enum multiplers are deprecated and will be removed in the next release
l4d_lootboxes1.sp(1569) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1632) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1781) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1796) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1810) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1835) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1883) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1910) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1937) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1957) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(1992) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2009) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2239) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2302) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2327) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2345) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2372) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2432) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2499) : error 101: fixed dimensions must be after the array name, not on the type
l4d_lootboxes1.sp(2520) : error 101: fixed dimensions must be after the array name, not on the type

20 Errors.

Compilation Time: 1.19 sec


The lootboxes are now spawning when special infected are killed, but there is no glow around them to highlight to users when they kill a special infected. They just look like normal boxes that someone would not even think of picking up for the loot.

Image attached so you will see what i mean.



https://imgur.com/a/EtJzdQv
Use SourceMod 1.10 to compile. L4D1 only has white glow, other colors do not work.
PHP Code:
Line 1482:         DispatchKeyValue(entity"glowcolor""195 195 0"); 
PHP Code:
Line 1482:         DispatchKeyValue(entity"glowcolor""255 255 255"); 
TQH is offline
zonbarbar
Member
Join Date: Jul 2022
Old 02-04-2023 , 20:36   Re: [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
Reply With Quote #30

specials spawn underground

Last edited by zonbarbar; 02-04-2023 at 20:37.
zonbarbar 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 02:33.


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