Raised This Month: $7 Target: $400
 1% 

[L4D2] Survivor Spawn Position Fix (Gabu's Version)


Post New Thread Reply   
 
Thread Tools Display Modes
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 09-01-2022 , 14:34   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #11

1.2
  • Fixed a plugin failure where it would try to apply changes too soon.
  • Fixed several cases where it wouldn't apply the fix
  • Changed the generic spawn point from info_player_start to info_survivor_position, since it should work more consistently
__________________
gabuch2 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 09-01-2022 , 15:24   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #12

Thanks...but ...this warning ,,, is ok ?

Quote:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// l4d2_spawnpos_fix.sp
//
// E:\Games e Programas\Games\LEFT 4 DEAD 2\PLUGINS\SOURCEMODS\sourcemod-1.11.0-git6906-windows\addons\sourcemod\scripting\l4d2_spawn pos_fix.sp(44) : warning 242: function "Timer_MapStart" should return an explicit value
// Code size: 7100 bytes
// Data size: 6432 bytes
// Stack/heap size: 16744 bytes
// Total requirements: 30276 bytes
//
// 1 Warning.
//
// Compilation Time: 1,66 sec
// ----------------------------------------

Press enter to exit ...
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 09-01-2022 , 16:01   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #13

Quote:
Originally Posted by Mi.Cura View Post
Thanks...but ...this warning ,,, is ok ?
It should work regardless, but I'll later release a new version that fixes the warning.
__________________
gabuch2 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 09-03-2022 , 10:05   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #14

I attached an image, tested it on Snow Den and Dead Beat Escape maps, but it didn't work.
Attached Thumbnails
Click image for larger version

Name:	mapa.jpg
Views:	142
Size:	72.6 KB
ID:	196653  
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 10-02-2022 , 23:57   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #15

Quote:
Originally Posted by Mi.Cura View Post
I attached an image, tested it on Snow Den and Dead Beat Escape maps, but it didn't work.
I'm still working on this and there's progress, but I still need a bit of time to fully test.



You can see the map Dead Beat Escape working.

A new version will be released soon.
__________________
gabuch2 is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 10-16-2022 , 14:33   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #16

New version released, hopefully it was worth the wait.

2.0
  • It now requires Left 4 DHooks Direct 1.119 or newer.
  • Changed the way the plugin works. Instead of creating entities the plugin will ensure every player will be in an "optimal" starting position. (Usually where Nick/Bill starts in the first map, or where the first player that enters the world in every other map).
    • This fixes erratic spawns in custom campaigns like Snow Den, Day Break, Deadbeat Escape while keeping compatibility with multiple branch spawns like the ones found in Resident Evil 3.
  • On spawn, the player will be teleported to this optimal position.
  • On ForceSurvivalPosition, every player will be forced to the position, not just the survivors set the map.*
    • It may be incompatible with plugins that allow you to be the L4D1 survivors in map where the holdout team appears.
    • This fixes the bug where the incorrect survivors might fall off the rescue vehicle. It may conflict with the same fix included in Dragoka's [L4D & L4D2] Special Exploit Fixes. Set l4d_sef_fall_transport_fix to 0 if you're using that plugin.
  • When the Director releases the survivor's positions (when the cutscene ends), the plugin will find an optimal spawn position again. This fixes changing spawnpoint positions in custom campaigns like Absolute Zero.
  • Added new command: sm_resetpos it will allow you to teleport to the desired spawnpoint if every fix failed. Only if nobody has left the safe room.
__________________

Last edited by gabuch2; 10-16-2022 at 14:36.
gabuch2 is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 10-17-2022 , 20:43   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #17

2.1
  • Fixed a bug where players could not move after a map change.
  • Deleted some unused functions from unreleased development versions.
__________________
gabuch2 is offline
kochiurun119
BANNED
Join Date: Sep 2014
Location: GB
Old 09-14-2023 , 13:02   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #18

L 09/15/2023 - 00:00:08: [SM] Blaming: left4dhooks.smx
L 09/15/2023 - 00:00:08: [SM] Call stack trace:
L 09/15/2023 - 00:00:08: [SM] [0] ThrowNativeError
L 09/15/2023 - 00:00:08: [SM] [1] Line 753, l4dd\l4dd_natives.sp::Native_CTerrorGameRules _GetSurvivorSetMap
L 09/15/2023 - 00:00:08: [SM] [3] L4D2_GetSurvivorSetMap
L 09/15/2023 - 00:00:08: [SM] [4] Line 124, D:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d2_ spawnpos_fix.sp::OnMapStart

I got error
kochiurun119 is offline
Send a message via ICQ to kochiurun119 Send a message via AIM to kochiurun119 Send a message via Yahoo to kochiurun119 Send a message via Skype™ to kochiurun119
kochiurun119
BANNED
Join Date: Sep 2014
Location: GB
Old 09-14-2023 , 21:28   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #19

Error in c8m5 https://upanh.org/image/koi.gXK845

Last edited by kochiurun119; 09-14-2023 at 21:28.
kochiurun119 is offline
Send a message via ICQ to kochiurun119 Send a message via AIM to kochiurun119 Send a message via Yahoo to kochiurun119 Send a message via Skype™ to kochiurun119
king kong
Member
Join Date: Oct 2021
Old 09-19-2023 , 06:38   Re: [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #20

Native 'L4D2_GetSurvivorSetMap' should not be used before OnMapStart, please report to 3rd party plugin author.
==========
L 09/19/2023 - 183:47: [SM] Blaming: left4dhooks.smx
L 09/19/2023 - 183:47: [SM] Call stack trace:
L 09/19/2023 - 183:47: [SM] [0] ThrowNativeError
L 09/19/2023 - 183:47: [SM] [1] Line 753, l4dd\l4dd_natives.sp::Native_CTerrorGameRules _GetSurvivorSetMap
L 09/19/2023 - 183:47: [SM] [3] L4D2_GetSurvivorSetMap
L 09/19/2023 - 183:47: [SM] [4] Line 124, C:\Program Files (x86)\steamcmd\l4d2sv\left4dead2\addons\sourc emod\scripting\l4d2_spawnpos_fix.sp::OnMapSta rt

Last edited by king kong; 09-19-2023 at 07:34.
king kong 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 01:15.


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