AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Smart Jail Doors (v0.5.2-beta, 2015-11-18) (https://forums.alliedmods.net/showthread.php?t=264100)

Kailo 06-08-2015 17:17

[CS:GO] Smart Jail Doors (v0.5.2-beta, 2015-11-18)
 
6 Attachment(s)
Smart Jail Doors (v0.5.2-beta, 2015-11-18)
http://i.ytimg.com/vi/Auk0UfpUVSw/0....=1433800571233
Smart Jail Doors review

Description
It's plugin for Jail Break servers. Plugin provides API for creation plugins in which need Open/Close/Toggle jail's doors. Also plugin allows to create custom buttons on map (it helpful on maps with no buttons, example: ba_jail_alcatraz_redux_go).

Commands
sm_sjd — admin command with root flag opening plugin menu.
sm_sjddebug — write in console maps where not exist doors config.
sm_sjdhm [<name>] — dump in console entity list; handmode menu for certain entity. Tutorial on YouTube

Cvars
sjd_buttons_sound_enable (def. "1") — sound switch.
sjd_buttons_sound (def. "buttons/button3.wav") — sound file.
sjd_buttons_glow (def. "0") — glow switch.
sjd_buttons_glow_color (def. "0 150 0") — glow color.
sjd_buttons_filter (def. "0") — access filter to custom buttons (0 — all, 1 — CT).

API
Store in smartjaildoors.inc file which you can find in "addons/sourcemod/scripting/include" folder.
API Reference

Also i created plugin sample.

Installation instructions
  • Dowonload latest release.
  • Unzip all files in "<your server>/csgo" folder. (README.md and ChangeLog.txt isn't required)
  • Change map on server.
  • Configure doors on all maps of your server or download prepared config from this topic (prepared config files will be later)
  • Done.

Changelog
Quote:

2015-11-18 (v0.5.2-beta)
  • Fixed bug, when u can use button in spectate mode.
  • Distance of use increased from 64 to 80.

Previous Changelog


Download
Attachment 145728 or https://github.com/Kailo97/smartjaildoors/releases

Thanks
Thanks Феникс for some advices about scripting.
Thanks s.t.v.o.l for help with tests.
Also thanks all who answer me in this topic.
Thanks R1KO for advice about loops.

Kailo 06-09-2015 12:47

Re: [CS:GO] Smart Jail Doors (v0.1.0-beta, 2015-06-09)
 
v0.2.0-beta release!
  • Add command sm_sjddebug — write in console maps where not exist doors config.
  • Loops cleanup (Thanks R1KO).
  • Improvement logic of some functions.
  • Global vars rename.

Addicted. 06-09-2015 13:30

Re: [CS:GO] Smart Jail Doors (v0.2.0-beta, 2015-06-09)
 
Wow this looks like a great plugin, a few questions.

Can we change the type of buttons?

I know for a few maps the doors are func_breakables along with the vents, is there any way to choose specific entities to work?

Kailo 06-09-2015 13:44

Re: [CS:GO] Smart Jail Doors (v0.2.0-beta, 2015-06-09)
 
Quote:

Originally Posted by oaaron99 (Post 2306289)
Wow this looks like a great plugin, a few questions.

Can we change the type of buttons?

I know for a few maps the doors are func_breakables along with the vents, is there any way to choose specific entities to work?

Plugin support next classes of entity: func_movelinear, func_door, func_door_rotating, prop_door_rotating, func_tracktrain, func_breakable. Then use button plugin automaticly detect door class and send specific input. Also u can add in map config entity with different classes.

Addicted. 06-09-2015 14:16

Re: [CS:GO] Smart Jail Doors (v0.2.0-beta, 2015-06-09)
 
Quote:

Originally Posted by Kailo (Post 2306290)
Plugin support next classes of entity: func_movelinear, func_door, func_door_rotating, prop_door_rotating, func_tracktrain, func_breakable. Then use button plugin automaticly detect door class and send specific input. Also u can add in map config entity with different classes.

I understand that but for some maps the entity for vents is the same as the doors so opening the doors will open the vents too. I haven't been able to get around that in my own plugin but I was wondering if you had accomplished this or had any thoughts.

Kailo 06-09-2015 14:33

Re: [CS:GO] Smart Jail Doors (v0.2.0-beta, 2015-06-09)
 
Quote:

Originally Posted by oaaron99 (Post 2306300)
I understand that but for some maps the entity for vents is the same as the doors so opening the doors will open the vents too. I haven't been able to get around that in my own plugin but I was wondering if you had accomplished this or had any thoughts.

Plugin work only with named entities, i don't think that jail's doors and vents will have the same name.

Kailo 06-09-2015 18:09

Re: [CS:GO] Smart Jail Doors (v0.2.1-beta, 2015-06-10)
 
v0.2.1-beta release!
  • Fix critical bugs.
  • Loops cleanup.

Addicted. 06-09-2015 22:05

Re: [CS:GO] Smart Jail Doors (v0.2.0-beta, 2015-06-09)
 
Quote:

Originally Posted by Kailo (Post 2306306)
Plugin work only with named entities, i don't think that jail's doors and vents will have the same name.

There aren't many but just one example:

jb_minecraft...

Vents and doors are func_breakable entities.

Pohearts 06-10-2015 05:28

Re: [CS:GO] Smart Jail Doors (v0.2.1-beta, 2015-06-10)
 
Looks good, but what about a native bool for checking if current map has 'map config' set?

Kailo 06-12-2015 15:35

Re: [CS:GO] Smart Jail Doors (v0.3.0-beta, 2015-06-12)
 
v0.3.0-beta release!
  • Reworked use logic (now more like source engine).
  • Add 'SJD_IsMapConfigured' native.
  • Fix bug in 'IsMapConfigured' logic.
  • Fix bug in 'CheckMapsWithNoDoorsCfg' logic.
  • Loops cleanup.


All times are GMT -4. The time now is 12:08.

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