A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE General Discussion »simple way to sync device machines

Author Topic: simple way to sync device machines (1 messages, Page 1 of 1)
Moderators: Dennis

JadeMcLain
Joined: Nov 13, 2018


Posted: Dec 5, 2018 04:49 PM    Msg. 1 of 1       
This works by having AI detect the presence of a biped. When the biped is detected, it powers the device. It runs on both client and server, so the client will have his own AI that detects the server biped.

The AI cant move and is basically blank, it can only detect things.

https://www.youtube.com/watch?v=-MwUIyt1DFQ

When the client joins, the devices will be updated. I'm working on a way of updating them instantly.

EDIT: I have a better script for this now.

Tested this with bridges , doors, and pistons that can move the player horizontally. They work great. The only small issue is giant elevators that change speed tend to be slightly offset sometimes. Normal elevators work good like they did in the vid.

https://www.youtube.com/watch?v=fmmxIlkB244

EDIT2: This is the script I use now.

I have a much better script system in the works that should allow for even better elevator functionality.

EDIT3: The updated script and I have a video coming soon. The giant elevator that was giving me problems works near flawlessly now.

(script startup spawn
(ai_place detect_ai)
)

(script continuous door1
(if (= (device_get_position control1) 1)
(object_create_containing detectme)
)
(if (= (device_get_position control1) 0)
(object_destroy_containing detectme)
)
)

(script continuous door1a
(sleep 1)
(if (!= (ai_status detect_ai) 1)
(device_set_position lift1 1)
)
(if (!= (ai_status detect_ai) 6)
(device_set_position lift1 0)
)
)

(script continuous door1aclient
(sleep_until (= is_host false))
(if (!= (ai_status detect_ai) 1)
(device_set_position lift1 1)
)
(if (!= (ai_status detect_ai) 6)
(device_set_position lift1 0)
)
)

EDIT4: The update vid.
https://www.youtube.com/watch?v=vow3KouqWik

Sorry about the crappy vid quality and such. I've tested this multiple times, and on dedicated servers. I'm actually surprised at how well the big elevator works now.
Edited by JadeMcLain on Dec 6, 2018 at 01:18 PM

 

 
Previous Older Thread    Next newer Thread







Time: Mon December 17, 2018 6:10 AM 156 ms.
A Halo Maps Website