Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Sebo

DOOM game controlling external lights (IoT devices)

Question

Hi!
Is there a way to let the Game to control the devices in the real world (for instance IoT lighting outside the game)?
I would like for instance the red LED IoT Tuya lamp to be switched on whenever the player gets a hit in the game.

How could I register the lamp control script so that it will receive signals when the player gets hit?

Share this post


Link to post

9 answers to this question

Recommended Posts

  • 0

Look, I'm no coder, so take everything I say with a grain of salt.

It's possible if you manage to code in the scripts required for everything to work correctly like a hit detection for the circuit/light, so if you're not too much of a coder, don't expect the devs of the sourceport you're using to code it in for you.

Share this post


Link to post
  • 0

Chuckling at the idea of someone making a "my house" map and connecting all their doors and oven and thermostat into skull switches and accidentally wrecking their house.

 

Sorry can't help with the topic in question but I think the easiest way, and it might not be that easy either, is to use some port that allows printing log files (no idea if any do), and therein have a script that just writes the computer time in milliseconds (or whatever) into a file and a separate process outside of Doom reading that file and making the lamp red if there's a time that has been within the past half a second or so. Your idea is cool though.

Share this post


Link to post
  • 0
On 3/14/2023 at 7:56 AM, Sebo said:

Hi!
Is there a way to let the Game to control the devices in the real world (for instance IoT lighting outside the game)?
I would like for instance the red LED IoT Tuya lamp to be switched on whenever the player gets a hit in the game.

How could I register the lamp control script so that it will receive signals when the player gets hit?

If you know how to code, you could modify the source port of your choice (they are all open source) using whatever sdk your light uses.

Share this post


Link to post
  • 0
On 3/15/2023 at 10:20 PM, Enator18 said:

If you know how to code, you could modify the source port of your choice (they are all open source) using whatever sdk your light uses.

i am gonna look in the doom code to see if I can find the player damage function which is where you would put your code to activate the lights

Share this post


Link to post
  • 0

I am not a high skilled coder... but I have graduated MSc in IT and have some coding experience (although right now what I do is rather IT Product Management and etc).

I have no experience with any doom port... so the question is rather which one would you recommend for this idea and where it would be worth to start implementing this.

 

You can assume I've got a script that is already capable to control the light.

Share this post


Link to post
  • 0

I assume this modification shall be placed in the gameplay server source code... am I right? 🤔

Share this post


Link to post
  • 0
11 minutes ago, Sebo said:

I assume this modification shall be placed in the gameplay server source code... am I right? 🤔

There's no such thing as gameplay servers in Doom.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×