Thread: Jailbreak doors
View Single Post
potatoz
AlliedModders Donor
Join Date: Nov 2016
Old 08-16-2018 , 17:42   Re: Jailbreak doors
Reply With Quote #18

Quote:
Originally Posted by Zyten View Post
i do like the future when there is no one on ct doors open right away but i have map which been trolling "func_breakable" its breaks doors even there is cts, so my idea is to make 5 sec delay before check if there is anyone on ct if not they open doors
While your way of saying it makes it slightly hard to understand, i understand it as you wanna be able to set a slight delay before checking whether there are CT's instead of instantly opening if there are none, correct? Either way, that is what i've done to the attached plugin which is an edit of my original in post #5

Use yourself of the cvar "sjd_auto_open_ctcheck_delay" to set the amount of seconds after round start to do the check, keep in mind it is set to 0 (disabled) by default so you'd have to change it to for instance 5, as you said, in order to see any effect

TL;DR; attached is a plugin which does what i assume is what you've asked for, change "sjd_auto_open_ctcheck_delay" to any amount of seconds see the effect
Attached Files
File Type: smx sjd_auto_open.smx (5.1 KB, 66 views)
File Type: sp Get Plugin or Get Source (sjd_auto_open.sp - 81 views - 1.4 KB)
__________________

Last edited by potatoz; 08-16-2018 at 17:42.
potatoz is offline