Jump to content

[Mod Porting] Sanity monsters


Recommended Posts

I want to port my mod Hallucinations to DST.

http://steamcommunity.com/sharedfiles/filedetails/?id=255213910

As far as I know, sanity monsters are not synced with host, so I will not need to change anything in code, do I?

Sanitymonsterspawner.lua stayed the same in DST. Do I need some additional tweaks to make my hallucinatios / sanity monsters  be spawned correctly and be seen only be mad man they belong to?

Link to comment
Share on other sites

@Desblat, All sanity monsters are on the server, and networked to clients. Every entity in the game has to be networked. I'm not familiar with your mod, but my guess is that there would be a lot of changes you'd have to make in the code, particularly making sure certain code doesn't run on clients, and adding networking.

Link to comment
Share on other sites

@Desblat, All sanity monsters are on the server, and networked to clients. Every entity in the game has to be networked. I'm not familiar with your mod, but my guess is that there would be a lot of changes you'd have to make in the code, particularly making sure certain code doesn't run on clients, and adding networking.

The only thing my does is creates mobs every N time depending on sanity. (also changes their stats, so they act like hallucinations)

 

Is there any mods around what spawn mobs? Would be so much helpful. (I don't want you to spend your time writing essay about how spawning mobs in DST works)

Link to comment
Share on other sites

@Desblat, Spawning mobs in the same in DST as it is in DS, but I guess then the main thing you'll have to address is how to handle multiple players in place of any GetPlayer() calls you might have. You can look at the worldsanitymonsterspawner component to see how the way the game handles sanity monsters has changed.

Link to comment
Share on other sites

@Desblat, Spawning mobs in the same in DST as it is in DS, but I guess then the main thing you'll have to address is how to handle multiple players in place of any GetPlayer() calls you might have. You can look at the worldsanitymonsterspawner component to see how the way the game handles sanity monsters has changed.

Thanks. This will help greatly.
Link to comment
Share on other sites

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
 Share

×
  • Create New...