AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] First Map - Skip Intro Cutscenes (1.13) [10-Apr-2022] (https://forums.alliedmods.net/showthread.php?t=321993)

Silvers 03-10-2020 13:53

[L4D & L4D2] First Map - Skip Intro Cutscenes (1.13) [10-Apr-2022]
 
18 Attachment(s)
About:
  • Skips the intro cutscene on first chapters.
  • Should work for all maps including 3rd party.
  • Optionally uses Left 4 DHooks to detect the first chapter so it doesn't attempt to run on every round_start.



CVars:

Saved to l4d_skip_intro.cfg in your servers \left4dead\cfg\sourcemod\ folder.

PHP Code:

// 0=Plugin off, 1=Plugin on.
l4d_skip_intro_allow "1"

// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_skip_intro_modes ""

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_skip_intro_modes_off ""

// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_skip_intro_modes_tog "0"

// Skip Intro plugin version.
l4d_skip_intro_version 



Changes:
Code:

1.13 (10-Apr-2022)
    - Fixed the "l4d_skip_intro_modes_tog" cvar always turning off the plugin. Thanks to "Thefollors" for reporting.

1.12 (01-Dec-2021)
    - Changes to fix warnings when compiling on SourceMod 1.11.
    - Minor change to fix bad coding practice.

1.11 (11-Jul-2021)
    - Slight optimization and change to fix the unhook event errors.

1.10 (21-Jun-2021)
    - Changes to fix the last update potentially not working for all maps.

1.9 (20-Jun-2021)
    - Changed some code to prevent adding multiple identical outputs.

1.8 (15-Feb-2021)
    - Blocked working on finale maps when not using left4dhooks. Thanks to "Zheldorg" for reporting.

1.7 (10-Oct-2020)
    - Minor change again to hopefully fix unhook event errors.

1.6 (05-Oct-2020)
    - Changes to hopefully fix unhook event errors.

1.5 (01-Oct-2020)
    - Changes to support "The Last Stand" update.
    - Fixed lateload not enabling the plugin.

1.4 (10-May-2020)
    - Added cvars: "l4d_skip_intro_allow", "l4d_skip_intro_modes", "l4d_skip_intro_modes_off" and "l4d_skip_intro_modes_tog".
    - Cvar config saved as "l4d_skip_intro.cfg" in "cfgs/sourcemod" folder.
    - Extra checks to skip intro on some addon maps that use a different entity.
    - Thanks to "TiTz" for reporting.

1.3 (29-Apr-2020)
    - Increased the timer delay from 0.1 to 1.0 due to some conditions failing to skip intro. Thanks to "TiTz" for reporting.

1.2 (08-Apr-2020)
    - Added a check incase the director entity was not found. Thanks to "TiTz" for reporting.

1.1 (16-Mar-2020)
    - Fixed not working on all maps when info_director is named differently.

1.0 (10-Mar-2020)
    - Initial release.



Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.]
  2. L4D2: Install FollowTargetDHook (post #19) to fix server crashes from "FollowTarget" issues.

sxslmk 03-11-2020 22:41

Re: [L4D & L4D2] First Map - Skip Intro Cutscenes (1.0) [10-Mar-2020]
 
Works fine!

Tonblader 03-12-2020 01:37

Re: [L4D & L4D2] First Map - Skip Intro Cutscenes (1.0) [10-Mar-2020]
 
in The Passing, it seems not to work properly, I have the screen frozen in first person with my pistol in hand, but I must wait for the "time" of the cinematic to be able to move and aim properly.

Silvers 03-12-2020 16:04

Re: [L4D & L4D2] First Map - Skip Intro Cutscenes (1.0) [10-Mar-2020]
 
Quote:

Originally Posted by Tonblader (Post 2686660)
in The Passing, it seems not to work properly, I have the screen frozen in first person with my pistol in hand, but I must wait for the "time" of the cinematic to be able to move and aim properly.

I tested this map before release, have no problem.

SkiPlix 03-16-2020 01:53

Re: [L4D & L4D2] First Map - Skip Intro Cutscenes (1.0) [10-Mar-2020]
 
It seems The Passing does have a problem as Tonblader said.
When you restart the first map, it happened to me when the whole team died.

Silvers 03-16-2020 02:15

Re: [L4D & L4D2] First Map - Skip Intro Cutscenes (1.0) [10-Mar-2020]
 
Ahh thought I tried on restart, I did with other maps.

Code:

1.1 (16-Mar-2020)
    - Fixed not working on all maps when info_director is named differently.


foxhound27 03-16-2020 07:07

Re: [L4D & L4D2] First Map - Skip Intro Cutscenes (1.1) [16-Mar-2020]
 
Amazing, Nice work! Thank you Silvers.

Dragokas 03-23-2020 11:46

Re: [L4D & L4D2] First Map - Skip Intro Cutscenes (1.1) [16-Mar-2020]
 
One more thank. This made me save a lot of time when I constantly restart map during debugging.

AK978 03-23-2020 11:56

Re: [L4D & L4D2] First Map - Skip Intro Cutscenes (1.1) [16-Mar-2020]
 
Works fine!, thanks.

Silvers 04-28-2020 19:51

Re: [L4D & L4D2] First Map - Skip Intro Cutscenes (1.3) [29-Apr-2020]
 
Code:

1.3 (29-Apr-2020)
    - Increased the timer delay from 0.1 to 1.0 due to some conditions failing to skip intro. Thanks to "TiTz" for reporting.



All times are GMT -4. The time now is 09:19.

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