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

[L4D2] Navigation Loot Spawner


Post New Thread Reply   
 
Thread Tools Display Modes
Smoak
Junior Member
Join Date: Dec 2019
Location: Maine
Old 05-01-2021 , 00:07   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #41

Quote:
Originally Posted by BHaType View Post
Inside the source code in the lines between 69 and 118 you will find numbers these numbers and there are chances to spawn a certain item
I tried looking at the source code, but I didn't really understand too much of it.

edit: on second thought I don't actually think I even know where to look to find the source code.

edit 2: figured it out

Last edited by Smoak; 05-01-2021 at 01:52.
Smoak is offline
Smoak
Junior Member
Join Date: Dec 2019
Location: Maine
Old 05-01-2021 , 16:19   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #42

Okay, so I got it set up, I just don't think I understand how the percentages work here.
Smoak is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 06-23-2021 , 02:10   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #43

Updated
PHP Code:
 Fixed offsets for linux (untested
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
KoMiKoZa
Senior Member
Join Date: Dec 2017
Location: Thy old times.
Old 06-23-2021 , 14:42   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #44

Quote:
Originally Posted by BHaType View Post
Updated
PHP Code:
 Fixed offsets for linux (untested
PHP Code:
L 06/23/2021 19:30:05: [SMException reported: [Navigation SpawnerBad dataplease check your gamedata
L 06
/23/2021 19:30:05: [SMBlamingl4d2_random_nav_loot.smx
L 06
/23/2021 19:30:05: [SMCall stack trace:
L 06/23/2021 19:30:05: [SM]   [0SetFailState
L 06
/23/2021 19:30:05: [SM]   [1Line 168D:\SteamCMD\Future Diary\l4d2_random_nav_loot.sp::OnMapStart 
Getting this on SM 1.10 / Linux.
KoMiKoZa is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 07-07-2021 , 02:13   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #45

Updated
PHP Code:
Fixed linux "TheCount" offset 
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Shao
Senior Member
Join Date: Jan 2015
Old 07-20-2021 , 11:49   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #46

Added better support for randomly generated weapons, now will spawn with user defined ammo in it's generated CFG. (Use LuX M60_GrenadeLauncher_patches for M60 support.)
Added Shovel, Pitchfork and Laser Sight support.
Fixed double/triple roll issues with RNG spawning, will now only roll once per round whether it's Co-Op failure or Versus round change.
Fixed not spawning any items on next map, map_transition event was hooked to unlock the double/triple roll prevention in Co-Op since round_start is not available on the first attempt on a map. In Versus map_transition as well as round_start will unlock for the next round or map.

Thanks to RainyDagger for most of the work.

The plugin has been tested with certain presets on chances, edit to your heart's content the values then recompile to have those in effect.

Edit: Added Grenade Launcher, Added Re-roll function (Can be disabled.), Fixed Laser Sight and various type mismatch so that only weapons with ammo pools are now selected.

Edit 2: Fixed minor bugs. (IE Laser Sight not being on the ground.)
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_random_nav_loot.sp - 129 views - 19.8 KB)

Last edited by Shao; 08-30-2021 at 00:09. Reason: Fixed bugs, added features.
Shao is offline
KoMiKoZa
Senior Member
Join Date: Dec 2017
Location: Thy old times.
Old 07-28-2021 , 17:41   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #47

Quote:
Originally Posted by Shao View Post
...
I believe you've linked the wrong plugin?
KoMiKoZa is offline
Shao
Senior Member
Join Date: Jan 2015
Old 08-30-2021 , 00:06   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #48

Quote:
Originally Posted by KoMiKoZa View Post
I believe you've linked the wrong plugin?
Oh boy, fixed. There's a WIP coming up for the plugin though, I'll just post the current source. Make sure to modify the values to your own need since these are my own for the time being.

Last edited by Shao; 08-30-2021 at 00:10.
Shao is offline
VYRNACH_GAMING
Member
Join Date: Sep 2021
Old 11-22-2021 , 01:52   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #49

Am I the only one getting this issue when spawning frying pans?
Quote:
Couldn't find any entities named spawn_fryingpan_demo, which point_template template_demo is specifying.
https://crash.limetech.org/q3jt6cjz5t47

Edit: Minor update for the plugin using SM latest standard so that it compiles using latest compiler.
And disabled the frying pan spawn (0%spawn) as it's buggy using newest SM. You should change the gChances values to your liking as this is used for my 20player server
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_random_nav_loot.sp - 120 views - 19.8 KB)
File Type: smx l4d2_random_nav_loot.smx (8.1 KB, 88 views)
__________________

Last edited by VYRNACH_GAMING; 11-22-2021 at 01:57. Reason: edit: attach updated plugin
VYRNACH_GAMING is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-22-2021 , 04:11   Re: [L4D2] Navigation Loot Spawner
Reply With Quote #50

This is a warning probably from c5m1_waterfront map and may not be related to the plugin.
Even vanilla maps have problems, other maps won't output this *exact* same message.
I didn't notice nothing wrong with the frying_pan weapon code.
You can check which melees are enabled in the map with melee_dump_weapons console command.
__________________

Last edited by Marttt; 11-22-2021 at 04:17.
Marttt is online now
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 08:20.


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