Glowing hat or clothes thoughtdef?

Started by Chicken Plucker, August 01, 2017, 01:43:41 AM

Previous topic - Next topic

Chicken Plucker

Hey, I'm working on night vision goggles and I need them to glow when worn, or at least a line that makes a thoughtdef come up, how do I add lights or a thoughtdef on an apparel?

Any help will be forever and ever appreciated, thanks a million

Note: I looked at the miningco helmet but .dll and csharp stuff is too much for my little .xml limited brain, no other mods seem to explore light on an apparel

SpaceDorf

you could look also look at the code for skullywags dermal regenator which is an animated building, I think you will not get around using C# if you want light.

I also don't know about thought defs.
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

Distman

Glowers doesn't work on apparel, because when a pawn wears it the apparel despawns and stops existing in the world. Meaning all methods in the class stops.

Mining&Co works by spawning an invisible thing with glower that follows the pawn around. A bit messy i think...

skullywag

glower is done on a grid no matter what you do itll look messy when moving. Trust me its fugly, ive done it.

Itd need someone to come up with a way of mimicing what the glower does but breaking it free of the grid, but then it would only really be graphical and wouldnt actually light the cell, again ive looked at this, not easy.

Dermal Regenerator simply uses motes to flash the cell.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Chicken Plucker

Thanks for the reply all. Very helpful, how about enabling a thoughtdef whenever something is worn similar to how deadman apparel clothes are worn?

Distman

Quote from: ChickenForcer on August 01, 2017, 09:27:36 AM
Thanks for the reply all. Very helpful, how about enabling a thoughtdef whenever something is worn similar to how deadman apparel clothes are worn?

You gonna need C# for that as well... Rule of the thumb is: Any cool mod you can think of most likely needs C# to work.

Chicken Plucker

I'm gonna go cry in some corner and finish up on these non-functioning night vision goggles then. Thanks all

Distman

Don't cry! Dive into C#, it's a lot of fun and the possibilites are almost endless. Rimworld is amazing in that aspect.
Jec has an easy to understand tutorial pinned in the help forum.

/Distman

Quote from: ChickenForcer on August 01, 2017, 12:11:44 PM
I'm gonna go cry in some corner and finish up on these non-functioning night vision goggles then. Thanks all