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

[L4D2] Wait for loaders on door lock


Post New Thread Reply   
 
Thread Tools Display Modes
insobniut2004
Member
Join Date: Feb 2022
Old 05-26-2022 , 01:44   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #31

is posibilit add glows in entity?

Last edited by insobniut2004; 05-26-2022 at 01:44.
insobniut2004 is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 06-13-2022 , 00:04   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #32

I created this simple plugin so bots will stay inside saferoom until timer is finished

Its very simple idea, basically bots will have unstick disabled inside saferoom, and it will be enabled after they leave it > so they will never be able to leave saferoom while door is locked.

Requires left4dhooks

I added few commands for my personal use: (Credits to Silver)

sm_stop > Force Survivor, SI Bots To Stop and Remove Witches and Commons
sm_move > Force Survivor and SI Bots To Move and Restore Witches and Commons
sm_hold > Force Director To Freeze Everything
sm_unhold > Force Director To Unfreeze Everything

sm_rr > Restarting The Round
Attached Files
File Type: sp Get Plugin or Get Source (Bots Movement.sp - 82 views - 5.3 KB)
File Type: smx Bots Movement.smx (6.3 KB, 74 views)

Last edited by alasfourom; 06-13-2022 at 14:17.
alasfourom is offline
insobniut2004
Member
Join Date: Feb 2022
Old 06-21-2022 , 15:43   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #33

https://forums.alliedmods.net/showthread.php?p=1163613
insobniut2004 is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 06-22-2022 , 07:55   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #34

Yeah this one is good, but has major defect to me, which is this will make bots stop even if time passed or move before time is passed which is hard to make it accurate without prolonging the time. And I dont want to make players wait after the door lock time has passed.

But if we disable unstick bots, they will still able to move but never out unless door is open and they will leave without wasting anytime. And it will be back to normal once they leave.
alasfourom is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 09-01-2022 , 15:26   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #35

This message contained old plugin so its deleted to prevent confusion, use the plugin down
__________________

Last edited by alasfourom; 09-06-2022 at 21:46.
alasfourom is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-02-2022 , 02:43   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #36

Quote:
Originally Posted by alasfourom View Post
I made this version, almost completely changed and updated
This has the maps hardcoded, it's possible to do without by using Left4DHooks to get the saferoom door entity or detecting if it's the first chapter.
__________________
Silvers is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 09-02-2022 , 10:57   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #37

Quote:
Originally Posted by Silvers View Post
This has the maps hardcoded, it's possible to do without by using Left4DHooks to get the saferoom door entity or detecting if it's the first chapter.
Nice I will definitely do that
__________________
alasfourom is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 09-06-2022 , 03:22   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #38

I have included left4dhooks now, and I have added 2 cvars to adjust lock and unlock doors glow color, also changed multiple lines from previous script.

HTML Code:
Updated: Fixed Bug, Added Chat Texts When Using Commands, Add Check When Leaving Saferoom To Prevent Using This Plugin Outside Safe Area
Thanks to Silvers > left4dhooks, Eyal282 > Main Script, HarryPotter > Snippet From Lockdown system

PHP Code:
// This file was auto-generated by SourceMod (v1.11.0.6911)
// ConVars for plugin "L4D2_Door_Lock.smx"


// Enable L4D2 Door Lock Plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_doorlock_plugin_enable "1"

// Add The Modes You Want To Enable This Plugin In It
// -
// Default: "versus,coop"
l4d2_doorlock_game_mode "versus,coop"

// How Long You Want To Lock The Safe Area (In Seconds)
// -
// Default: "12"
l4d2_doorlock_countdown "12"

// How Long Plugin Waits For Loaders Before Giving Up On Them (In Seconds)
// -
// Default: "30"
l4d2_doorlock_loaders_time "30"

// Set A Glow For The Saferoom Doors
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_doorlock_glow_enable "1"

// Set The Glow Range For Saferoom Doors
// -
// Default: "500"
l4d2_doorlock_glow_range "500"

// Set Saferoom Lock Glow Color, (0-255) Separated By Spaces.
// -
// Default: "255 0 0"
l4d2_doorlock_lock_glow_color "255 0 0"

// Set Saferoom Unlock Glow Color, (0-255) Separated By Spaces.
// -
// Default: "0 255 0"
l4d2_doorlock_unlock_glow_color "0 255 0" 
Attached Files
File Type: sp Get Plugin or Get Source (L4D2_Door_Lock.sp - 103 views - 16.0 KB)
File Type: smx L4D2_Door_Lock.smx (12.0 KB, 82 views)
__________________

Last edited by alasfourom; 09-06-2022 at 17:08.
alasfourom is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 09-06-2022 , 04:09   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #39

Awesome, I'm waiting to try it out.
yabi is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-06-2022 , 04:26   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #40

Quote:
Originally Posted by alasfourom View Post
I have included left4dhooks now
PHP Code:
    int iFirstChapter L4D_IsFirstMapInScenario();
    if (!
IsValidEnt(iFirstChapter))return; 
L4D_IsFirstMapInScenario returns a bool, not an entity. This code is wrong.
__________________
Silvers 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 21:18.


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