Airlock Prefab

Half-Life HL
Airlock Prefab by Hezus
Posted 1 week ago2024-11-08 09:39:43 UTC • Examples • Half-Life
Loading...
Screenshot Thumbnail
Name
Airlock Prefab
By
Hezus Hezus
Type
Map
Engine
Goldsource
Game
Half-Life
Category
Examples
Included
RMF/VMF
Created
1 week ago2024-11-08 09:39:43 UTC
Updated
1 week ago2024-11-08 09:39:43 UTC
Views
112
Downloads
20
Comments
4
Rating
4.50 (2)

Airlock that also works in multiplayer. Part of this tutorial.

4 Comments

Commented 1 week ago2024-11-08 13:45:15 UTC Comment #106494
Cool!
IMHO, simpler option:
  • two func_door (door1, door2): speed - 50, lip - 4, toggle;
  • trigger_changetarget (door1) to change the target of func_button (airlock_button) to multimanager (a_but2);
  • trigger_changetarget (door2) to change the target of func_button (airlock_button) to multimanager (a_but1);
  • multimanager (a_but1): door1 - 0, door2 - 2;
  • multimanager (a_but2): door1 - 2, door2 - 0;
  • button (on right side, near info_player_start): target - door1;
  • buttun (on the left side): target - door2;
  • button in the middle (airlock_button), target - (empty).
Commented 1 week ago2024-11-09 14:09:27 UTC Comment #106496
@man_simple

Your setup works well for singleplayer but not for multiplayer. The button for door1 and door2 can be pressed by seperate players, which then opens both doors. Now that both are open and func_door can only TOGGLE, your airlock is broken forever. You would have to create a eleborate system of multisources to lock the buttons to prevent this. Even then, a player can block the door by crouching under it and the game would never know that the door is now not closed. Which again breaks the entire system.
Commented 5 days ago2024-11-12 09:18:05 UTC Comment #106501
Nice airlock! Can i use It in my map?
Commented 1 day ago2024-11-15 18:22:26 UTC Comment #106514
Sure! Feel free to use!

You must log in to post a comment. You can login or register a new account.