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

[L4D] weapon_spawn are disappearing on transition


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-25-2022 , 04:49   [L4D] weapon_spawn are disappearing on transition
Reply With Quote #1

Hi,

it is often happen to me, weapon_spawn is disappearing from the table in saferoom when players transitioning from previous map.
But, if I reload the same map (via ForceChangeLevel) the weapon is located on the table as it should.

Any ideas how to troubleshoot it?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-25-2022 , 10:58   Re: [L4D] weapon_spawn are disappearing on transition
Reply With Quote #2

Player 5+ multiplayer server?
__________________

Last edited by HarryPotter; 01-25-2022 at 10:58.
HarryPotter is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 01-25-2022 , 12:52   Re: [L4D] weapon_spawn are disappearing on transition
Reply With Quote #3

I think it may be that the author of the custom map did not do a good job of transition related content
sorallll is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-28-2022 , 03:08   Re: [L4D] weapon_spawn are disappearing on transition
Reply With Quote #4

@HarryPotter, yes.

@sorallll, I guess you're right in my case. Actually it was only one custom map, which constantly suffering.
Co-admin said, the Stripper also doesn't help to spawn weapon there.

Looks like, need to spawn it with a little delay.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-28-2022 , 10:56   Re: [L4D] weapon_spawn are disappearing on transition
Reply With Quote #5

Quote:
Originally Posted by Dragokas View Post
@HarryPotter, yes.

@sorallll, I guess you're right in my case. Actually it was only one custom map, which constantly suffering.
Co-admin said, the Stripper also doesn't help to spawn weapon there.

Looks like, need to spawn it with a little delay.
I encountered this issue before, I share what I did to reduce the possibility.

1. I used many spawn plugins by silvers and spawn lots of weapons and items on map.
I found that if I spawn a machine gun or gun cabinet or even Laser Box in end saferoom, next stage all weapons are disappearing and all survivor players were teleported into map center origin(0,0,0).
My method is to remove all possible end safe room zone entities spawned by plugin or stripper.

My guess is that because server saves laser box entity on map transition, but the next map didn't precache and load laser box model on default, so weapon transition function stops continue and return because of it.

2. When I start to write multislots and try to create 5+ survivor bots.
If the plugin spawn 5+ survivor bots too early after the map loads, this bug could happen.
I think because server saves players' items and restores them, on next stage the plugin spawn 5+ survivor bots too early and messed up weapon transition function.

My solution is to spawn 5+ survivor bot after "player_spawn" and "round_start" events.


Not 100% work for you, good luck.
__________________

Last edited by HarryPotter; 01-28-2022 at 15:08.
HarryPotter is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-28-2022 , 11:04   Re: [L4D] weapon_spawn are disappearing on transition
Reply With Quote #6

...this was bad example
Spoiler
__________________
Do not Private Message @me

Last edited by Bacardi; 01-28-2022 at 11:22.
Bacardi is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-28-2022 , 11:30   Re: [L4D] weapon_spawn are disappearing on transition
Reply With Quote #7

@HarryPotter, thanks for detalied research description!

@Bacardi, what exactly did you mean?
Ahh, you mean this one:
Code:
Checkpoint bounds: 2075.000000 4800.000000 298.428253 --> 2800.000000 5450.000000 598.428223 and has 8 weapon spawns
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-28-2022 at 11:32.
Dragokas is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-28-2022 , 11:44   Re: [L4D] weapon_spawn are disappearing on transition
Reply With Quote #8

there were console outputs of saving and restoring entities, but some of them are outside of checkpoint area.
__________________
Do not Private Message @me
Bacardi 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 10:54.


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